Dinesh Somasundram wrote:
>
>         String myParam = "NAME";
>       String myParam;          <-- the myParam here is supposed to be the
> value "NAME"
>


Sorry it will be either null or you will be not allowed to declare it
depending on your exact code.

If you declare a variable and initialise it. Next time you want to refer
to it simply use the variable name. Putting a data type in front of it
tries to redeclare it. This either results in an error or a new variable
that hides the orignal one. In the second case the value will be null.

Why don't you get a basic Java book and learn some Java before working
with JSP.

Ashish Shrestha

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to