.This may work.....8)

                 <% myPage = request.getParamter("target"); %>
                <%@ include file=<%= myPage %>%>

        .regards,

        .javier.


   Javier Cazares
    GE Power Systems Intranet Web Team
    1 River Road, Bldg. 40-213
    Schenectady, NY 12345
    P: (518) 385-1521
    Email: mailto:[EMAIL PROTECTED]

> -----Original Message-----
> From: Veena
> Sent: Tuesday, February 01, 2000 7:46 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Two questions
>
> 1) target must be a form element(text or hidden)
> 2) or target must be a var sent in the query string
>
> How it is done in ur case........
>
>
> ----- Original Message -----
> From: Mark Torr <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 10, 2000 1:41 PM
> Subject: Two questions
>
>
> > 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.j
> av
> > 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
>
> ==========================================================================
> =
> 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

Reply via email to