problems with if clause

hi,

im trying to put a very simple if clause on my jsp. but tomcat will not compile this page. im sure that the syntax of the if clause is correct.

plz help me to solve this - thx

pumpindave

here is the alert:

org.apache.jasper.JasperException: Unable to compile class for JSPC:\tomcat\work\localhost_8080%2Fbechtle\_0002ftext_0002ftext_0005fuebersicht_0002ejsptext_0005fuebersicht_jsp_15.java:228: ';' expected.

If (test =2) {

^

1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)

at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)

at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)

at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)

at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)

at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)

at org.apache.tomcat.core.Handler.service(Handler.java:287)

at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)

at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)

at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)

at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)

at java.lang.Thread.run(Thread.java:484)

--

[1963 byte] By [pumpindave] at [2007-9-26 3:05:36]
# 1
should beif (test == 2)
Zerg2000 at 2007-6-29 11:07:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
still the same problem :-(
pumpindave at 2007-6-29 11:07:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
the syntax error is at one line before the if (test == 2)
Zerg2000 at 2007-6-29 11:07:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
> the syntax error is at one line before the> if (test == 2)to proof that the code is right, i just pasted a code fragment from another jsp page in - same problem. i think there is something wrong with my tomcat or jdk?!?
pumpindave at 2007-6-29 11:07:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
i think there is something wrong with ur PC. u need to reformat it now.
Zerg2000 at 2007-6-29 11:07:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
> i think there is something wrong with ur PC. u need to> reformat it now.:-))i found the mistake. i wrote If and not if - so i think i dont have to reformat my pc ;-)thx anyway
pumpindave at 2007-6-29 11:07:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...