R
RamRod
I am new to JSP & Struts ...I am having some trouble with the -context-
concept in Struts.
I have a simple Struts PlugIn in which I have performed:
context.setAttribute("SomeKey","value");
Within the PlugIn I can print out the value associated with
SomeKey as follows:
System.err.println("---->In Plugin Value of SomeKey " +
(String)context.getAttribute("SomeKey"));
The problem is that I do NOT seem to be able to retrieve this key
value in any of my JSP pages that are associated with this Struts
project. To retrieve the key in my JSP's I am trying:
<%
String someValue = (String)session.getAttribute("someKey");
%>
Value : <%= someValue %>
someValue is always returned as null ....anyone have any ideas?
Thanks,
Rod.
concept in Struts.
I have a simple Struts PlugIn in which I have performed:
context.setAttribute("SomeKey","value");
Within the PlugIn I can print out the value associated with
SomeKey as follows:
System.err.println("---->In Plugin Value of SomeKey " +
(String)context.getAttribute("SomeKey"));
The problem is that I do NOT seem to be able to retrieve this key
value in any of my JSP pages that are associated with this Struts
project. To retrieve the key in my JSP's I am trying:
<%
String someValue = (String)session.getAttribute("someKey");
%>
Value : <%= someValue %>
someValue is always returned as null ....anyone have any ideas?
Thanks,
Rod.