lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy Van Broeck" <Jimmy.Van.Bro...@syntegra.com>
Subject RE: result.jsp in the webdemo
Date Thu, 17 Jul 2003 08:34:05 GMT
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: di99mwo@student.bth.se [mailto:di99mwo@student.bth.se]
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 di99mwo@student.bth.se:

> 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: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>




-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message