How to pass sql variable from jsp to Action?

2005-09-01 Thread 梁炳場
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

Re: How to pass sql variable from jsp to Action?

2005-09-01 Thread 梁炳場
I wonder if it is a proper way to do it because the 1st query displays a no of rows with different group ids. Can the html:link pass a value to Action? If it can, it is excellent. Should it be done like this? change the layout from a no of links html:link to a no of forms html:form In each form,

AW: How to pass SQL variable from JSP to Action?

2005-09-01 Thread R. Markham
Hallo Nobody(??) It is bad practice to put SQL Statement in a JSP page. Regards Richard Markham -Ursprüngliche Nachricht- Von: ??? [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 1. September 2005 05:30 An: Struts Users Mailing List Betreff: Re: How to pass sql variable from jsp

Re: How to pass SQL variable from JSP to Action?

2005-09-01 Thread 梁炳�
] Gesendet: Donnerstag, 1. September 2005 05:30 An: Struts Users Mailing List Betreff: Re: How to pass sql variable from jsp to Action? I wonder if it is a proper way to do it because the 1st query displays a no of rows with different group ids. Can the html:link pass a value to Action

RE: How to pass SQL variable from JSP to Action?

2005-09-01 Thread Mark Benussi
- Von: ??? [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 1. September 2005 05:30 An: Struts Users Mailing List Betreff: Re: How to pass sql variable from jsp to Action? I wonder if it is a proper way to do it because the 1st query displays a no of rows with different group ids. Can

Re: How to pass SQL variable from JSP to Action?

2005-09-01 Thread 梁炳�
2005 15:09 To: Struts Users Mailing List Subject: Re: How to pass SQL variable from JSP to Action? Richard Are you suggesting something like Hibernate or iBatis? Daniel 2005/9/1, R. Markham [EMAIL PROTECTED]: Hallo Nobody(??) It is bad practice to put SQL Statement in a JSP

Re: How to pass SQL variable from JSP to Action?

2005-09-01 Thread 梁炳�
in a Struts action and place in the presentation layer via an ActionForm etc before showing the JSP -Original Message- From: ??? [mailto:[EMAIL PROTECTED] Sent: 01 September 2005 15:09 To: Struts Users Mailing List Subject: Re: How to pass SQL variable from JSP to Action? Richard

Re: How to pass SQL variable from JSP to Action?

2005-09-01 Thread 梁炳�
and place in the presentation layer via an ActionForm etc before showing the JSP -Original Message- From: ??? [mailto:[EMAIL PROTECTED] Sent: 01 September 2005 15:09 To: Struts Users Mailing List Subject: Re: How to pass SQL variable from JSP to Action? Richard Are you