Errrr...

you are calling xyz.intValue in the same line that you are declaring the
variable - that's the equivalent of

Integer xyz;
// haven't asssigned to xyz yet but I'm going to get its value anyway!
xyz = xyz.intValue

Kevin Jones
DevelopMentor

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Thomas Koch
> Sent: 20 January 2000 07:16
> To: [EMAIL PROTECTED]
> Subject: JSP ERROR:The variable "xyz" may be accessed here before having
> been definitely assigned a value.
>
>
> Can anyone tell me why I am getting this error:
>
> 500 Internal Server Error
> com.livesoftware.scripting.CompilerException:
> Found 1 semantic error compiling
> "C:/JRun/jsm-default/services/jse/servlets/jsp/Startup/GetResults.java":
>
>     86.     Integer xyz = new Integer(xyz.intValue() + 1);
>                                       <->
> *** Error: The variable "xyz" may be accessed here before having been
> definitely assigned a value
>
> This code is in my JSP file.
> I am using JRun as you can tell.
>
> I got this same error when I declared a variable HttpRequest req, and then
> tried to use it.
> The "request" object is implicit in all JSP pages.
>
> I dont see how this statement should generate the same error.
> I have fooled around a lot with declaring the variable xyz different ways
> and in different parts of the page.
>
> HELP!
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to