J
Joe Smith
Hi,
I'm giving my first steps with struts.
Here's the situation: I have created a jsp (say result.jsp) that displays a
table with a set of data calculated in the action, and which has been stored
in a result bean. Normal.
But, in result.jsp, I want to include a link to other action (for instance,
to show a graphic) using the data of the calculated bean.
The only solution I've come up so far is to store the result bean in a
session, ussing an id (for instance, the current timestamp), and have
result.jsp show sth like:
a href="export.do?beanid=myid"
If I don't use an Id, a user that opens a different tab, and arrives to the
same result.jsp will erase the previous value, won't he?
Is there a standard solution to do this?
I don't like storing data in the session, because if my export.do isn't
called, I don't have a choice to remove it from there.
Any pointers are welcome.
Thanks!
I'm giving my first steps with struts.
Here's the situation: I have created a jsp (say result.jsp) that displays a
table with a set of data calculated in the action, and which has been stored
in a result bean. Normal.
But, in result.jsp, I want to include a link to other action (for instance,
to show a graphic) using the data of the calculated bean.
The only solution I've come up so far is to store the result bean in a
session, ussing an id (for instance, the current timestamp), and have
result.jsp show sth like:
a href="export.do?beanid=myid"
If I don't use an Id, a user that opens a different tab, and arrives to the
same result.jsp will erase the previous value, won't he?
Is there a standard solution to do this?
I don't like storing data in the session, because if my export.do isn't
called, I don't have a choice to remove it from there.
Any pointers are welcome.
Thanks!