Because interface is a reserved keyword in Java. You cann't utilise a variable named interface just like class,implements,....
Greetings Jimmy **************** Jimmy Van Broeck Syntegra, creating winners in the digital economy +32 2 247 92 20 - check us out at www.syntegra.be <http://www.syntegra.be/> **************** -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: donderdag 10 juli 2003 12:26 To: Lucene Users List Subject: Re: result.jsp in the webdemo I choosed another variable name, then it worked, but why? /Michelle Quoting [EMAIL PROTECTED]: > Hello. > > I'm trying to modify the result.jsp file in lucene webdemo. I can create a > for- > loop but can't declare any variable anywhere in the jsp file. > > I get the the following error: > > Generated servlet error: > C:\jakarta-tomcat-4.0.6 > \work\Standalone\localhost\luceneweb\results$jsp.java:250: Invalid expression > > statement. > int interface; > ^ > > > An error occurred between lines: 104 and 120 in the jsp file: /results.jsp > > Generated servlet error: > C:\jakarta-tomcat-4.0.6 > \work\Standalone\localhost\luceneweb\results$jsp.java:250: ';' expected. > int interface; > ^ > > > An error occurred between lines: 104 and 120 in the jsp file: /results.jsp > > Generated servlet error: > C:\jakarta-tomcat-4.0.6 > \work\Standalone\localhost\luceneweb\results$jsp.java:250: '}' expected. > int interface; > ^ > > > An error occurred between lines: 104 and 120 in the jsp file: /results.jsp > > Generated servlet error: > C:\jakarta-tomcat-4.0.6 > \work\Standalone\localhost\luceneweb\results$jsp.java:250: Identifier > expected. > int interface; > ^ > 4 errors, 1 warning > > > > thanks. > > /Michelle > > > > > > > > > ------------------------------------------------- > This mail sent through IMP: http://horde.org/imp/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
