Patricio -
Try something like this:
<% ServletConfig sconf = getServletConfig();
ServletContext scont = sconf.getServletContext();
String url = content.getURL();
RequestDispatcher rd = scont.getRequestDispatcher("/" + url);
rd.include(request,response); %>
- Marsha
Marsha Skoman
WorkWired, Inc.
[EMAIL PROTECTED]
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Patricio Otamendi
Sent: Wednesday, April 19, 2000 10:43 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 the filename i get it 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