tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristian Rink <krist...@zimmer428.net>
Subject dynamic JSP include?
Date Thu, 22 Feb 2007 11:58:53 GMT

Folks;

currently I am playing around with something like that in my JSP
pages...

<jsp:include 
	flush="true" 
	page="/pages/<%= request.getParameter("site")%>">
</jsp:include>

... which, as I understand the JSP reference, should be possible.
However, it doesn't seem to work right. It actually _does_ work and
include the page referred to this way, but it just works _sometimes_,
in any other try I get something like this:

[...]
org.apache.jasper.JasperException: /index.jsp(11,69) equal symbol
expected
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
[...]


(index.jsp line 11 is the full jsp:include as outlined above). I feel
sort of stupid now - having something that doesn't at all work would be
easier to handle, but the behaviour of this to work once and not work
again the next time is rather disturbing. Can anyone enlighten me here?
I also played around with the "flush" but it doesn't really make things
better...


Thanks in advance and bye,
Kristian


-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu@jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message