I know how to get sessions with OGNL <s:property value="#session.myValue"/>
Is there any way to set a session value and header value?
I am assuming to set a session value you would use something like this.
<s:set name="sessionName" value="SessionValue" scope="session" />
This could then be retrieve that value in any page during a session with a scriptlet something like this:
<%
out.print( (
String)session.getAttribute("sessionName") );
<%
Assuming this is correct is there something similar I could use in OGNL to say set response headers similar to:
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", -1);
Thanks,
Earl