Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Eclipse WTP JSP formatter setup
Eclipse WTP JSP formatter setup [message #199056] Tue, 28 August 2007 21:28
Eclipse UserFriend
Originally posted by: tomh.a-t-g.com

This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C7E990.7AB03840
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have a JSP that when I format with Eclipse Europa it formats in this =
manner.

<body>

<f:view>

<h:form id=3D"addEditForm">

<div id=3D"container">

<div id=3D"addEditSection"><atg:clientSideDropDownGrid

dataFieldName=3D"name"

keyDataFieldName=3D"id"

labelCaption=3D"Consultation/Procedure Requested:"

value=3D""

required=3D"true"

id=3D"consulProcedure"

>

</atg:clientSideDropDownGrid> <br />

I would like the nested elements to be on new line and indented if =
possible? Like this

=20

<body>

<f:view>

<h:form id=3D"addEditForm">

<div id=3D"container">

<div id=3D"addEditSection">

<atg:clientSideDropDownGrid

dataFieldName=3D"name"

keyDataFieldName=3D"id"

labelCaption=3D"Consultation/Procedure =
Requested:"

value=3D""

required=3D"true"

id=3D"consulProcedure"

>

</atg:clientSideDropDownGrid> <br />



Thanks,

Tom



------=_NextPart_000_000A_01C7E990.7AB03840
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3157" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV>I have a JSP that when I format with Eclipse Europa it formats in =
this=20
manner.</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#008080 size=3D2>
<P align=3Dleft>&lt;</FONT><FONT color=3D#3f7f7f =
size=3D2>body</FONT><FONT=20
color=3D#008080 size=3D2>&gt;</FONT></P>
<P align=3Dleft><FONT color=3D#008080 size=3D2>&lt;</FONT><FONT =
color=3D#3f7f7f=20
size=3D2>f:view</FONT><FONT color=3D#008080 size=3D2>&gt;</FONT></P>
<P align=3Dleft><FONT color=3D#008080 size=3D2>&nbsp;&nbsp;&nbsp; =
&lt;</FONT><FONT=20
color=3D#3f7f7f size=3D2>h:form </FONT><FONT color=3D#7f007f =
size=3D2>id</FONT><FONT=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff =
size=3D2>"addEditForm"</FONT><FONT=20
color=3D#008080 size=3D2>&gt;</P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#008080=20
size=3D2> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; =
&lt;</FONT><FONT=20
color=3D#3f7f7f size=3D2>div </FONT><FONT color=3D#7f007f =
size=3D2>id</FONT><FONT=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff =
size=3D2>"container"</FONT><FONT color=3D#008080=20
size=3D2>&gt;</P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#008080 size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp; &lt;</FONT><FONT color=3D#3f7f7f size=3D2>div =
</FONT><FONT=20
color=3D#7f007f size=3D2>id</FONT><FONT size=3D2>=3D</FONT><FONT =
color=3D#2a00ff=20
size=3D2>"addEditSection"</FONT><FONT color=3D#008080 =
size=3D2>&gt;&lt;</FONT><FONT=20
color=3D#3f7f7f size=3D2>atg:clientSideDropDownGrid</P>
<P align=3Dleft></FONT><FONT color=3D#7f007f size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dataFieldName</FONT><FONT=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2>"name"</P>
<P align=3Dleft></FONT><FONT color=3D#7f007f size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; keyDataFieldName</FONT><FONT=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2>"id"</P>
<P align=3Dleft></FONT><FONT color=3D#7f007f size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; labelCaption</FONT><FONT=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff =
size=3D2>"Consultation/Procedure=20
Requested:"</P>
<P align=3Dleft></FONT><FONT color=3D#7f007f size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; value</FONT><FONT =
size=3D2>=3D</FONT><FONT=20
color=3D#2a00ff size=3D2>""</P>
<P align=3Dleft></FONT><FONT color=3D#7f007f size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; required</FONT><FONT =
size=3D2>=3D</FONT><FONT=20
color=3D#2a00ff size=3D2>"true"</P>
<P align=3Dleft></FONT><FONT color=3D#7f007f size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; id</FONT><FONT =
size=3D2>=3D</FONT><FONT=20
color=3D#2a00ff size=3D2>"consulProcedure"</P>
<P align=3Dleft></FONT><FONT color=3D#008080 size=3D2>&nbsp;&nbsp;&nbsp; =

&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#008080 size=3D2>&nbsp;&nbsp;&nbsp; =
&lt;/</FONT><FONT=20
color=3D#3f7f7f size=3D2>atg:clientSideDropDownGrid</FONT><FONT =
color=3D#008080=20
size=3D2>&gt;</FONT><FONT size=3D2> </FONT><FONT color=3D#008080=20
size=3D2>&lt;</FONT><FONT color=3D#3f7f7f size=3D2>br </FONT><FONT =
color=3D#008080=20
size=3D2>/&gt;</FONT></P>
<P><FONT color=3D#008080 size=3D2>I would like the nested elements to be =
on new line=20
and indented if possible? Like this</FONT></P>
<P><FONT color=3D#008080 size=3D2>&nbsp;</P>
<P align=3Dleft>&lt;<FONT color=3D#3f7f7f size=3D2>body</FONT><FONT =
color=3D#008080=20
size=3D2>&gt;</FONT></P>
<P align=3Dleft><FONT color=3D#008080 size=3D2>&lt;</FONT><FONT =
color=3D#3f7f7f=20
size=3D2>f:view</FONT><FONT color=3D#008080 size=3D2>&gt;</FONT></P>
<P align=3Dleft><FONT color=3D#008080 size=3D2>&nbsp;&nbsp;&nbsp; =
&lt;</FONT><FONT=20
color=3D#3f7f7f size=3D2>h:form </FONT><FONT color=3D#7f007f =
size=3D2>id</FONT><FONT=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff =
size=3D2>"addEditForm"</FONT><FONT=20
color=3D#008080 size=3D2>&gt;</P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#008080=20
size=3D2> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; =
&lt;</FONT><FONT=20
color=3D#3f7f7f size=3D2>div </FONT><FONT color=3D#7f007f =
size=3D2>id</FONT><FONT=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff =
size=3D2>"container"</FONT><FONT color=3D#008080=20
size=3D2>&gt;</P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#008080 size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;</FONT><FONT color=3D#3f7f7f =
size=3D2>div=20
</FONT><FONT color=3D#7f007f size=3D2>id</FONT><FONT =
size=3D2>=3D</FONT><FONT=20
color=3D#2a00ff size=3D2>"addEditSection"</FONT><FONT color=3D#008080=20
size=3D2>&gt;</FONT></P>
<P align=3Dleft><FONT color=3D#008080 size=3D2>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&lt;</FONT><FONT=20
color=3D#3f7f7f size=3D2>atg:clientSideDropDownGrid</P>
<P align=3Dleft></FONT><FONT color=3D#7f007f size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dataFieldName</FONT><FONT =
color=3D#000000=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2>"name"</P>
<P align=3Dleft></FONT><FONT color=3D#7f007f size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; keyDataFieldName</FONT><FONT =
color=3D#000000=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2>"id"</P>
<P align=3Dleft></FONT><FONT color=3D#7f007f size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; labelCaption</FONT><FONT =
color=3D#000000=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff =
size=3D2>"Consultation/Procedure=20
Requested:"</P>
<P align=3Dleft></FONT><FONT color=3D#7f007f size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; =20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; value</FONT><FONT color=3D#000000=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2>""</P>
<P align=3Dleft></FONT><FONT color=3D#7f007f size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; required</FONT><FONT =
color=3D#000000=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2>"true"</P>
<P align=3Dleft></FONT><FONT color=3D#7f007f size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; id</FONT><FONT color=3D#000000=20
size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2>"consulProcedure"</P>
<P align=3Dleft></FONT><FONT color=3D#008080 size=3D2>&nbsp;&nbsp;&nbsp; =

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; =20
&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#008080 size=3D2>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&lt;/</FONT><FONT=20
color=3D#3f7f7f size=3D2>atg:clientSideDropDownGrid</FONT><FONT =
color=3D#008080=20
size=3D2>&gt;</FONT><FONT size=3D2> </FONT><FONT color=3D#008080=20
size=3D2>&lt;</FONT><FONT color=3D#3f7f7f size=3D2>br </FONT><FONT =
color=3D#008080=20
size=3D2>/&gt;</FONT></P>
<P>&nbsp;</P>
<P><FONT face=3DArial color=3D#000000>Thanks,</FONT></P>
<P><FONT face=3DArial color=3D#000000>Tom</FONT></P></FONT>
<P><FONT color=3D#008080 size=3D2><FONT face=3DArial=20
color=3D#000000></FONT>&nbsp;</P></FONT></DIV></BODY ></HTML>

------=_NextPart_000_000A_01C7E990.7AB03840--
Previous Topic:Beginner problem with develoing an EAR
Next Topic:keyboard shortcuts
Goto Forum:
  


Current Time: Thu Nov 27 05:50:50 GMT 2014

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

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