Hi,

It all depends on the ordering of your things. Are you sure you are accessing the attribute AFTER it has been set ? It all depends on when Jahia dispatches to the webapp, and maybe in your case it dispatches after the read of the getAttribute()

The reason why session cannot be used is that session are local to a context, but there might be ways around this limitation, especially with new Tomcat versions, but this might also require patching Jahia's request wrappers.

Regards,
 Serge Huber.

[EMAIL PROTECTED] wrote:

Hi all,

I have a problem: i want to use a webapp-positionned variable in my jahia
template that contains the webapp.

In the webapp dev guide i can read that i need to use request attribute in
the direction "webapp->jahia" (in "jahia->webapp" i've used session
attributes and it works fine)

so in my webapp, i set:
request.setAttribute("test", "test");

and in my template i want to retrieve it:
String test = (String) request.getAttribute("test")

result: test is always null......

Could you help me please? it's quite an emergency

Thanx a lot.



Reply via email to