You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Krzysztof Karnaszewski <kk...@pentacomp.com.pl> on 2003/04/02 11:37:18 UTC
[XTAGS] Passing parameters from JSP scopes
Hello,
I'd like to pass request/session/... attribute to xtag.In xtags-doc I've
found
method for accessing JSP scopes by using variables with syntax $foo.
But it doesn't work in my application.
(Tomcat 4.0.4 from NetBeans 3.4.1, struts 1.1.rc1, xtags nightly build from
20030327, Windows 2000)
in my Action Class
[...]
request.setAttribute("foo","bar");
[...]
in my jsp file:
[...]
<xtags:style xml="abc.xml" xsl="abc.xsl">
<xtags:param name="aaa" value="$foo"/>
<xtags:param name="bbb" value="$request:foo"/>
<xtags:param name="ccc" value="$param:foo"/>
</xtags:style>
no one works
It works when I do in my JSP:
[...]
<% String foo = request.getAttribute("foo"); %>
[...]
<xtags:param name="aaa" value="<%= foo %>/">
But I woud like to not have java code in my JSP files...
Had anybody similar problem? What I do wrong?
Krzysztof Karnaszewski
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org