2008/3/18, Sonu S <[EMAIL PROTECTED]>:
>  1) there is one submit button on that page and one action is associated with
>  that submit button. i can call the associated action class once the user
>  finish the form and click the submit button. When user select from list i
>  need to call another action class.
>
>  I want to know how to call another action class, (when user select something
>  from list), as list control is inside the same html:form tag.

Use Javascript.

>  2) When user selects some value from list i need to refresh the page and
>  populate the other fields.
>
>  I would like to know, Lets say there are ten values and user has selected
>  third option, how to keep selected that third option as page is already
>  refreshed?


You have two options:
1) the simplest (but I don't like it because it can cause some side
effects): use a session-scoped form bean;
2) the action is called on the "onchange" event of the <select> tag.
The new value of the select tag itself is submitted. You process it
and you reput it inside the HttpServletRequest. In the JSP page, you
can process it (e.g. with the use of EL) to show the previously
selected value.

HTH
Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to