How to change JSP code style? [message #186370] |
Tue, 02 January 2007 16:43 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.09446 seconds