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=



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: 4003
Registered: July 2009
Senior Member

No, but I believe it's addressed in Helios. See .

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: Sun Mar 07 15:18:42 GMT 2021

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

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

Back to the top