struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 梁炳場 <>
Subject How to pass sql variable from jsp to Action?
Date Thu, 01 Sep 2005 03:03:01 GMT
I retrieve a group id by JSP.
<sql:query  ...SELECT group_id../>

When user clicks a link 
<html:link .../>

Before another page is shown, in my struts-config.xml,
I try to make a ActionForward function to capture the group_id
and then update a session attribute .

Then the resulting jsp is like this
<sql:query SELECT someValue FROM .. WHERE group_id = ???groupId??? />

Is this a proper way to do this?

I do not know how to write in the Action class so that
it can retrieve the sql value from the passing in jsp file.

Your help is very much appreicated.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message