Hi there,

I was trying to pass parameters from one JSP to another using method 1 and 2
and got the following errors.
I'm using GNUJSP and I'm wondering whether this has got anything to do with
the errors.

Method 1

<jsp:forward page="page2.jsp" />
        <jsp:param name="P_USERNAME" value="SUPER" />
        <jsp:param name="P_PASSWORD" value="TOMCAT" />
</jsp:forward>

Error: /myexamples/page1.jsp:9: GNUJSP: illegal parameter tag

Method 2

<%
String Username = "SUPER";
String Password = "TOMCAT";
%>
<jsp:forward
page="page2.jsp?P_USERNAME=<%=Username%>&P_PASSWORD=<%=Password%>" />

Error: /myexamples/page1.jsp:8: runtime attribute: multiple expressions and
mixing of expressions and string constants not permitted:

Method 3

<jsp:forward page="page2.jsp?P_USERNAME=SUPER&P_PASSWORD=TOMCAT" />

Works (as expected)

Regards
Will

===========================================================================
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