Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Q. Formating JSP screws up document
Q. Formating JSP screws up document [message #72163] Mon, 07 February 2005 13:42 Go to next message
Eclipse UserFriend
Originally posted by: web.itzy.net

Hello NG,

WTP 1.0M2 and Eclipse 3.1M4 so far worked pretty well. However I noticed one
strange behaviour. When formatting a JSP document as simple as

<%@ page language="java"
import="java.util.Vector,
java.util.List"%>
<HTML>
<BODY>
<%List items=null;%>
</BODY>
</HTML>

WTP formats this to

<%@ page language="java" import="java.util.List;
public class __"%>
<HTML>
<BODY>
<%List items = null;%>
</BODY>
</HTML>

which appearently won't compile anymore.

Could someone please confirm this is a common behaviour? Is there a
workaround?

TIA,
Christian
Re: A. Formating JSP screws up document [message #72217 is a reply to message #72163] Mon, 07 February 2005 22:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pavery.us.ibm.com

Hi Christian,

I thought there was a bug open on jsp already for this, but I couldn't
find it so I've opened: https://bugs.eclipse.org/bugs/show_bug.cgi?id=84648

To workaround for now you can split the imports between multiple page
directives:

<%@page import = "java.util.Vector"%>
<%@page import = "java.util.List"%>

Thanks for catching this.
-phil

Christian Schmitz wrote:
> Hello NG,
>
> WTP 1.0M2 and Eclipse 3.1M4 so far worked pretty well. However I noticed one
> strange behaviour. When formatting a JSP document as simple as
>
> <%@ page language="java"
> import="java.util.Vector,
> java.util.List"%>
> <HTML>
> <BODY>
> <%List items=null;%>
> </BODY>
> </HTML>
>
> WTP formats this to
>
> <%@ page language="java" import="java.util.List;
> public class __"%>
> <HTML>
> <BODY>
> <%List items = null;%>
> </BODY>
> </HTML>
>
> which appearently won't compile anymore.
>
> Could someone please confirm this is a common behaviour? Is there a
> workaround?
>
> TIA,
> Christian
>
>
Re: Q. Formating JSP screws up document [message #72336 is a reply to message #72163] Tue, 08 February 2005 04:18 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I have no idea what caused that problem... seems like WTP didn't like
this kind of format... I use with the nightly from 7.2 and the format
works the way you would expect...
Re: Q. Formating JSP screws up document [message #72354 is a reply to message #72163] Tue, 08 February 2005 04:19 Go to previous message
Eclipse UserFriend
Hi,

the nightly build from 7.2 formats the jsp as expected....
Previous Topic:db output limited to 50 results
Next Topic:validating XSLT
Goto Forum:
  


Current Time: Tue May 13 23:29:05 EDT 2025

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

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

Back to the top