Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » JSP editor problem(Need help in JSP formatter)
JSP editor problem [message #502647] Wed, 09 December 2009 09:38
Szabo Peter is currently offline Szabo PeterFriend
Messages: 1
Registered: July 2009
Location: Hungary
Junior Member
I would like to know if it's possible to set the JSP file's formatting to have the following output after Ctrl + F (Format Code)

Original:
<body>
<f:view>
    <h:form id="addEditForm">
         <div id="container">
        <div id="addEditSection"><atg:clientSideDropDownGrid  dataFieldName="name"
            keyDataFieldName="id"  labelCaption="Consultation/Procedure Requested:"
            value=""  required="true"       id="consulProcedure" >ABC   </atg:clientSideDropDownGrid> <br />
....

....

I would like to have the nested tags to be idented within a new line every time. (The tag's attribute can be in one line, or in multiple line. That does not matter for me.)

So the required format would be:
<body>
  <f:view>
    <h:form id="addEditForm">
        <div id="container">
           <div id="addEditSection">
               <atg:clientSideDropDownGrid  
                            dataFieldName="name"
                            keyDataFieldName="id"
                            labelCaption="Consultation/Procedure Requested:"
                           value=""   required="true" id="consulProcedure">
                    ABC
               </atg:clientSideDropDownGrid> <br />

 .....
Previous Topic:Can I declare constraints for the same project-facet-version in different plugins?
Next Topic:"Go to declaration" not working with EL-expressions
Goto Forum:
  


Current Time: Thu Mar 28 18:07:39 GMT 2024

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

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

Back to the top