You need to use
<jsp:include page="<%= barFile %>" flush="true />
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ken torimaru <> technology director
ClickZ network <> los angeles
p.323.966.4423 <> f.323.966.4425
mailto:[EMAIL PROTECTED] | http://www.clickz.com
- - - - - - - - - - - - - - - - - - - - - - - - - - -
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Julia Reynolds
Sent: Friday, August 04, 2000 6:38 AM
To: [EMAIL PROTECTED]
Subject: newbie seeks wisdom
I know this is a basic question: I'm new, have mercy!
I want to include jsp files with different url variables. I want to do
this:
String barFile = "catalogBar.jsp?catPg=" +
request.getParameter("catPg");
<%@ include file= "<%= barFile %>" %>
However, of course jsp is having none of this. Here's my error:
500 internal server error (fast becoming my new motto, by the way)
javax.servlet.ServletException: Parse Error in JSP page: The include
directive on line 23 The JSP page null's depedency '1' could not be
found.
allaire.jrun.jsp.ParseException: The include directive on line 23 The
JSP page null's depedency '1' could not be found.
How can I variabalize the url of the file to be included?
Julia
-
===========================================================================
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