Hi,
I needed to rephrase this questions. I have a concept I need a little help
with.
I'm trying to do a dynamic include page based upon a value in the URL, some
thing like this:
<%
String sender = request.getParameter("page");
%>
<jsp:include file="<% = sender %>" />
History behind this code is :
I want to assign the value of the retrieved file in an include statement at run
time based upon a value passed 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?
Thank you in Advance,
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