<webwork:include page="$includeSource" />
From here: http://www.opensymphony.com/webwork/el.jsp
This should also work (although not as nice as above):
<webwork:include page="'<%=request.getParameter("includeSource")%>'" />
You needed to escape the value, otherwise it tried to look up the parameter 'john.jsp' on the valuestack.
Cheers, Scott
James Pan wrote:
Hi,
I have a JSP page that's in the form of:
.../mypage.jsp?includeSource=john.jsp
and in mypage.jsp it has things like:
.... <webwork:include page="<HELPME>" /> ...
where I'm trying to put that parameter for "includeSource" overtop "HELPME".
Basically, I want to pass in a JSP page name into a JSP page to be included.
This doesn't work:
<webwork:include page="<%=request.getParameter("includeSource")%>" />
nor does a bunch of other variants of the same thing... what's the proper way of dealing with this situation??
I have also tried doing this:
instead of passing the parameter into "mypage.jsp", i pass it to an action, like
.../PageLoader.action?includeSource=john.jsp
and in views.properties, I include
PageLoader.success=mypage.jsp
where in mypage.jsp, I try to use
<webwork:property name="includeSource" />
and of course this doesn't work either. I've just started using webwork and I'm very unfamiliar with it... could someone please give me a hint as to how I can do this, or which example code I should go through for this???
Thank you very much,
James
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
--
ATLASSIAN - http://www.atlassian.com Expert J2EE Software, Services and Support ------------------------------------------------------- Need a simple, powerful way to track and manage issues? Try JIRA - http://www.atlassian.com/software/jira
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork