Hi all!

How do i to put a <%= expression %> in the page value?


<%String file = "file.jsp"%>
<jsp:include page="<%=file%>" />

is posible to do it?

the error is in winNT + jswdk1.0.1:

com.sun.jsp.JspException: Invalid jsp:include tag
        at
com.sun.jsp.compiler.IncludeGenerator.<init>(IncludeGenerator.java:42
)
        at
com.sun.jsp.compiler.Jsp1_0ParseEventListener.handleInclude(Jsp1_0Par
seEventListener.java:782)
        at com.sun.jsp.compiler.Parser$Include.accept(Parser.java, Compiled
Code
)
        at com.sun.jsp.compiler.Parser.parse(Parser.java:727)
        at com.sun.jsp.compiler.Parser.parse(Parser.java:715)
        at com.sun.jsp.compiler.Main.compile(Main.java:283)
        at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:135)
        at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspS
ervlet.java:77)
        at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.j
ava:87)
        at
com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:218)
        at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:294)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at
com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:155
)
        at com.sun.web.core.Context.handleRequest(Context.java:414)
        at
com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:139)


Javier Aguado Mestre

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