> > 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 > I think this might be due to the closing tag "/>" in the first line. > 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: I seem to remeber a recent post about this "dynamic forward tag"... Try building the "page" string outside the <jsp:forward> Ex <% String destination = "page2.jsp?P_USERNAME=" + Username + "&P_PASSWORD=" + Password; %> <jsp:forward page="<%= destination %>" /> =========================================================================== 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
