File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP parameters" Watch "JSP parameters" New topic

JSP parameters

Tom Diamond
Ranch Hand

Joined: May 10, 2001
Posts: 98
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??
Dmitriy Pavlyuk
Ranch Hand

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

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

I agree. Here's the link:
subject: JSP parameters
It's not a secret anymore!