>>> Alfonso Urdaneta <[EMAIL PROTECTED]> 04-Jul-00 10:50:29 AM
>>>
>Is it possible for a jsp:include to pass something from
>the URL to the servlet that is being included ?
>ie, if I have a page http://domain/test.jsp?cake=chocolate
>that includes CakeServlet, can I pass it the "chocolate" ?
It will automatically get the chocolate.
>I was thinking something like
><jsp:include page=/servlet/CakeServlet ....>
>The jsp docs on the sun site either don't have this info,
>or I am too stupid to find it.
Most definitely too stupid /8->.
A JSP include is a RequestDispatcher.include() so you should also be
able to do this:
<jsp:include page="/servlet/Cake?favlour=chocolate"/>
And as I say above the parameters recieved by the servlet will be
also recieved by the JSP page.
Nic
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html