Hi,
I have an action, which populates a bean(eg. B1) and pops it into the request stack. My JSP then picks up and uses some of the data in B1 to draw up a form.
I want to then carry B1 into the next action. Can I pass this along like with a HTML Hidden tag ? or somehow pass a reference to B1 along in the query string ?
Would doing this be considered a bad practice ? I just wanted to avoid a second database hit if I could. I'm also hesitant to store B1 in the session scope as I want to avoid ending up with pages showing stale data.
I have an action, which populates a bean(eg. B1) and pops it into the request stack. My JSP then picks up and uses some of the data in B1 to draw up a form.
I want to then carry B1 into the next action. Can I pass this along like with a HTML Hidden tag ? or somehow pass a reference to B1 along in the query string ?
Would doing this be considered a bad practice ? I just wanted to avoid a second database hit if I could. I'm also hesitant to store B1 in the session scope as I want to avoid ending up with pages showing stale data.