Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Re: varibles in include --->

Javi Alonso

2003-07-24

Replies:

>
>
> Actually the file to be included is
> different in each case i get it from database and want to embedd
> in the jsp
>
> How can i change the relative url every time ..


use <jps:include page="<%=thepage%>" flush="true">

You can set thepage using a previous SQL query.
The included file cannot set headers or cookies anyway (or you�ll get a
request exception)
It will be include the file at runtime.

Javitxu

===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com


©2008 junlu.com - Jax Systems, LLC, U.S.A.