Hi,
I asked a question about this a while ago but got zero for an answer.
Probably because I didn't put a lot of background about the problem.
I'm trying to do a dynamic include page or directive based upon a value in
the URL, some thing like this:
<%@ include
file="((request.getParameter("body_val")!=null)?request.getParameter("body_v
al"):"")" %>
OR
<jsp:include page="" flush="true" >
<jsp:param name="body_val" value="body_val" />
</jsp:include>
History behind this code is :
I want to assign the value in an include statement at run time based upon a
value in the URL.
So if I GET this URL >>>>> http://.../body2.jsp?body_val=2.jsp
The following page body2.jsp will stuff the value 2.jsp into the include
directiuve.
Do I have this all wrong?
Dylan del Rosario
===========================================================================
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