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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to