The easiest way (I've found) is through the implicit request object ....

<jsp:include page="somefile.jsp?arg1=name1" />

then in somefile.jsp:

<%
    String name = (String) request.getParameter("arg1");
%>


> -----Original Message-----
> From: Saket Raizda [SMTP:[EMAIL PROTECTED]]
> Sent: 04 August 2000 01:58
> To:   [EMAIL PROTECTED]
> Subject:      Passing param to a included file in a JSP
>
> hi folks,
> I'm puzzled about how to pass parameters to a file(also a jsp) that is
> included in a jsp file using a jsp:include tag
> any directions will appreciated.
> thanks and regards
> -Saket
>
> ==========================================================================
> =
> 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

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

Reply via email to