How do you access parameters in an included JSP?

I understand that I can pass parameters to an included JSP as follows.

<jsp:include page="inner.jsp" />
        <jsp:param name="var1" value="var1" />
        <jsp:param name="var2" value="var2" />
        <jsp:param name="var3" value="var3" />
</jsp:include>

However, in inner.jsp, how to I read these parameters?  I've tried the following on 
Web Logic 4.51 with no luck.
<%
        String p1    = (String)request.getAttribute("var1");
%>
        p1: <%=p1%>

Thanks in advance for your help.

An optimist sees an opportunity in every calamity, a pessimist sees calamity in every 
opportunity. - Winston Churchill

Jeff Ryan
[EMAIL PROTECTED]

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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
  • ... JeffRyan
    • ... Tim Fox
    • ... Caspar van Vroonhoven
    • ... Maurice Coyle - Sun ireland - Software Products and Platforms - Internationalization Engineer

Reply via email to