Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to change JSP code style?
How to change JSP code style? [message #186370] Tue, 02 January 2007 16:43 Go to next message
Eclipse UserFriend
Originally posted by: Kentzhou_ca.yahoo.com

In JSP page, the following code will report syntax error:

if (a!= b)
//custBean.setUserId("_S_");

But If I change the code as
if (a!= b){
//custBean.setUserId("_S_");
}

Then no error any more.

So where to change this jsp code style in Eclipse?
Re: How to change JSP code style? [message #186434 is a reply to message #186370] Wed, 03 January 2007 04:09 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

KentZhou wrote:
> In JSP page, the following code will report syntax error:
>
> if (a!= b)
> //custBean.setUserId("_S_");
>
> But If I change the code as if (a!= b){
> //custBean.setUserId("_S_");
> }
>
> Then no error any more.
>
> So where to change this jsp code style in Eclipse?
>

The first form is not legal syntax - the if statement has no
termination. The compiler sees it as :
if (a!=b)

which of course is incomplete.

Hope this helps,
Eric
Previous Topic:Problems with some key under linux-ppc
Next Topic:Problem with eclipse workbench
Goto Forum:
  


Current Time: Fri Apr 26 07:44:01 GMT 2024

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

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

Back to the top