Hi,

I am trying to write a JSP using the XML syntax, where I have to use for loop in 
scriptlet, as shown below:


        <jsp:scriptlet>
                String first[]=request.getParameterValues("firstname");
                for(int i=0;i<first.length;i++)
                {
                        out.println(first[i]);
                }
        </jsp:scriptlet>

I am getting the error as:

org.apache.jasper.compiler.ParseException: /xmlParam2.jsp(12,29) Element type 
"first.length" must be followed by either attribute specifications, ">" or "/>".

Am pretty new to JSP, could someone plz tell if a escape sequence is needed here, if 
yes where?

Thanks,
Faizy


DISCLAIMER:
This message contains privileged and confidential information and is intended only for 
the individual named.If you are not the intended recipient you should not 
disseminate,distribute,store,print, copy or deliver this message.Please notify the 
sender immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or 
error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or 
incomplete or contain viruses.The sender therefore does not accept liability for any 
errors or omissions in the contents of this message which arise as a result of e-mail 
transmission. If verification is required please request a hard-copy version.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to