Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Autoformat ruins javascript in JSP(Autoformat ruins javascript in JSP)
Autoformat ruins javascript in JSP [message #538860] Tue, 08 June 2010 19:49 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 3
Registered: June 2010
Junior Member
When I format shift+ctrl in a JSP file with javascript embedded then the javascript is ruined.

For instance a tag like

<input type="button" onclick="javascript:mymethod()">

Will turn into something like

<input type="button" onclick=

mymethod()

>

The javascript prefix is completely removed and quotes are removed and a lot of linefeeds are inserted.

Im using default formatting - havent changed anything in preferences. Running j2ee bundle of Eclipse 3.5 sr2 on win7. Older versions of eclipse had the same problem.

Is there any kind of setting I can change to improve this?




[Updated on: Tue, 08 June 2010 19:50]

Report message to a moderator

Re: Autoformat ruins javascript in JSP [message #539216 is a reply to message #538860] Thu, 10 June 2010 03:22 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4489
Registered: July 2009
Senior Member

No, but I believe it's addressed in Helios. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=259465 .

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Error uploading EAR file to OC4J server.
Next Topic:specifying help id for the XML editor
Goto Forum:
  


Current Time: Thu Sep 19 09:00:14 GMT 2024

Powered by FUDForum. Page generated in 0.03575 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top