Hi,
1. A long time back someone pasted an example of using James Clarks XT
processor with JSP pages. I cannot locate it in the archives. Can someone
send it to me if they still have a copy.
2. I am trying to read a parameter and based on that I want to include a
file... am I correct in thinking that the <%@ include file="...."%>
directive will not
do expressions. When I try:
<%@ include file="content/test.html"%> then all works well... if I do:
<%! String myPage; %>
<% myPage = request.getParamter("target"); %> - target is
"content/test.html"
<%@ include file=myPage %>
Then it does not work! ANY help/suggestions/pointers to what I am stupidly
doing wrong would be appreciated.
Is there any way to do this besides hundreds of if statements?
My error message is:
javax.servlet.ServletException: Parse Error in JSP page: The include
directive on line 51 The JSP page null's depedency '1' could not be found.
allaire.jrun.jsp.ParseException: The include directive on line 51 The JSP
page null's depedency '1' could not be found. at
allaire.jrun.jsp.JSPParser.throwDirectiveException(JSPParser.java:408) at
allaire.jrun.jsp.JSPParser.directive(JSPParser.java, Compiled Code) at
allaire.jrun.jsp.JSPParser.parse(JSPParser.java, Compiled Code) at
allaire.jrun.jsp.JSPParser.writeXML(JSPParser.java, Compiled Code) at
allaire.jrun.jsp.JSPParser.generateXML(JSPParser.java, Compiled Code) at
allaire.jrun.jsp.JSPParser.generateXML(JSPParser.java, Compiled Code) at
allaire.jrun.jsp.JSPServlet.parsePage(JSPServlet.java, Compiled Code) at
allaire.jrun.jsp.JSPServlet.createServlet(JSPServlet.java, Compiled Code) at
allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java, Compiled Code) at
allaire.jrun.jsp.JSPServlet.service(JSPServlet.java, Compiled Code) at
allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code) at
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code) at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a, Compiled Code) at allaire.jrun.servlet.JRunSE.service(JRunSE.java,
Compiled Code) at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java,
Compiled Code) at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java,
Compiled Code) at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled
Code) at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)
Mark.
===========================================================================
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