Sign in

E-mail *, (xx@domain.com)
Password *

Register | Forgot password

Active forums

Active Forums RSS September 03, 19:59
Style properties

August 31, 21:46
antrun not found

August 31, 14:12
WCB customprofile

August 31, 12:10
End of flow not doing its job

August 24, 12:37
Sort mediaItem by expiration date

 All Forums...


JSP formatter for eclipse

The "WCB: JSP front-end design" forum contains threads on issues that are related to JSP front-end design while programming a WCB (WebManager Component Bundle). The Presentation & Element component contain JSPs that will be used for front-end rendering. Ask your questions related to these JSPs here. Some example topics: integration of AJAX, use of the taglibs, how to handle multiple websites, and so forth.

Answered
Not marked as answered yet

Forums  >  WCB: JSP Front-end design  >  JSP formatter for eclipse


Author JSP formatter for eclipse
williamb



Posts: 238

Posted: 16-07-2010 13:53

Does GX by any coincidence has, or advises, to use a JSP formatter in eclipse?

I've noticed that the default formatter makes the code quite ugly, and the GX Formatter in the Guideline Audit Tools seems to be Java-only.

Example code as formatted by the Eclipse formatter:


<div class="${normalFont.className}">&nbsp;(<fmt:formatDate value="${item.publicationDate}"
type="both" pattern="dd-MM-yyyy" />)</div>



While you would like to have


<div class="${normalFont.className}">
&nbsp;(<fmt:formatDate value="${item.publicationDate}" type="both" pattern="dd-MM-yyyy" />)
</div>


patricka



Posts: 255

Posted: 16-07-2010 14:08 Helpful

Does GX by any coincidence has, or advises, to use a JSP formatter in eclipse?



No.

You're free to format your JSP as you like.
The coding guidelines don't impose any format.

Greetings,

Patrick

williamb



Posts: 238

Posted: 16-07-2010 16:15

Thnx.

Seems like I'm not the only one wondering :)

https://bugs.eclipse.org/bugs/show_bug.cgi?id=203252

Fix seems to be (for now) using:
http://eclipsetidy.sourceforge.net/

Back to top

New message: "JSP formatter for eclipse"
Message:
bold boitalicd underline url quote code smile cool eek grin mad razz sad wink
 
© 2010 GX creative online development B.V.

Disclaimer

This website (GXdeveloperweb.com) may discuss or contain opinions, (sample) coding, software or other information that does not include GX official interfaces, instructions or guidelines and therefore is not supported by GX. Changes made based on this information are not supported.  GX will not be held liable for any damages caused by using or misusing the information, software, instructions, code or methods suggested on this website, and anyone using these methods does so at his/her own risk. GX offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this website, including any liability resulting from incompatibility between the content of this website and the materials and services offered by GX. By using this website you will not hold, or seek to hold, GX responsible or liable with respect to the content of this website.