Hi,
I am setting the values in request.setAttribute(...) from struts action class. When i invoke these values in jsp using request.getAttribute(..), they're coming fine for the first time. If i refresh the page, its becoming null. I tried session also.Getting the same problem. How could it be resolved?
Thanks in advance.
-
Action class(Struts) (1 messages)
- Posted by: Kannan G
- Posted on: August 10 2005 16:00 EDT
Threaded Messages (1)
- action class by Martin Koch on August 11 2005 02:38 EDT
-
action class[ Go to top ]
- Posted by: Martin Koch
- Posted on: August 11 2005 02:38 EDT
- in response to Kannan G
Hi,
I am always using the bean:define tag from the struts-bean taglib.
It works fine when i refresh the site.
The code my look like:
<bean:define id="component"
toScope="page"
name="component"
scope="request"
type="com.xxx.model.Component" />
But don't forget to add the taglib to the jsp:
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
br,
martin