How I can edit a context parameter in the layout?
Thanks
The answer gave me support,thanks:
<% { java.util.Map sessionCtx = (java.util.Map)session.getAttribute(com.webratio.struts.WRGlobals.SESSION_CONTEXT_KEY); System.out.println("sessionCtxBefore: "+sessionCtx); Object currentCtx1 = sessionCtx.get("ctx1"); //ctx1 is thel id of the Context Parameter System.out.println("currentCtx1: "+currentCtx1); sessionCtx.put("ctx1","Hello"); //change value //sessionCtx.remove("ctx1"); // remove context param System.out.println("sessionCtxAfter: "+sessionCtx); } %>
Hi,
Can this be done instead of id context parameter name variable?
Thanks!
Also, I think you can try with JSTL tag to set value for your context parameter:
<c:set var="ctxParam" value="${otherCtxParam}"/>
or
<c:set var="ctxParam" value="newValue"/>