This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes JSP parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP parameters" Watch "JSP parameters" New topic
Author

JSP parameters

Tom Diamond
Ranch Hand

Joined: May 10, 2001
Posts: 98
Hello,
Is it possible to use dynamically adjusted parameters for a jsp page in a jsp:include tag?
I 've tried <jsp:include page=aVariable flush="true" /> but the server says that the attribute value must be quoted (and if it is quoted things become static).
Any ideas??
Tom.
Dmitriy Pavlyuk
Ranch Hand

Joined: Mar 25, 2001
Posts: 33
<jsp:include page=<%=aVariable%> flush="true" />
It's will bee work
Dmitriy
Ajan Balakrishnan
Ranch Hand

Joined: Jan 04, 2001
Posts: 71
What it meant was enclose the scriplet within double quotes
<jsp:include page="<%=avariable%>"/>

 
 
subject: JSP parameters