Hi,

I would like to include a jsp file, the path for which would be generated at
run-time. Something like this:

documentRoot is a string constant from another class. For example "home/"
<%!
        String getPromo = new String("/" + documentRoot + "promoimage.jsp");
%>

<%@
        include file = getPromo
%>

Is there a way to do this?

Thanks
Anthony

===========================================================================
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

Reply via email to