George,
It seems to me, that if you have a servlet or EJB serving up your
backend, you can use request dispatcher to dynamically pass the filename
information back to the jsp page. IE. the JSP page is populated from an
EJB using the <%usebean%> command. The EJB contains the filename and is
populated as a variable in the include file. Since the bean is
evaluated first, the include command should not occur until the variable
has been created. When a user reposts or reloads the page, the bean can
contain a different variable for the include file...remember, a servlets
requestDispatcher calls CAN pass a bean to a JSP page as needed.....i
think that this will work...
any comments?
Shawn
"Manty, George" wrote:
>
> It appears to me as though there is no way to do this. I think this
> functionality should be added to the JSP Spec.
>
> Right now, the only way it appears you can implement this is by hacking the
> JSP engine code and you can only do this if you are using an open source JSP
> engine.
>
> Anyone, have any other possible solutions?
>
> Thanks,
> George
>
> -----Original Message-----
> From: Patricio Otamendi [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 19, 2000 10:20 AM
> To: [EMAIL PROTECTED]
> Subject: How to dynamicaly include files in jsp, not using <%@ include
> file="filename"%>?
>
> How to dynamicaly include files in jsp, not using <%@ include
> file="filename"%>?
>
> I can not use it because I get the filename dynamicaly.
>
> Thaks
>
> ===========================================================================
> 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
===========================================================================
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