Hi Konstantina,

The html:submit is used to pass the parameters of the html:form it applies
to. Whatever properties you
include in your form, they are included in the request parameter.

Here is an example:

<html:form action="/viewElementDesign.do">
<bean:message key='mainMenu.viewDesignPatterns'/>
<html:select property="type" size="3">
   <html:option value="">-- Select --</html:option>
   <html:option value="requiredparent">RequiredParent</html:option>
   <html:option value="requiredchiild">RequiredChild</html:option>
</html:select>
<html:submit>
     <bean:message key='button.continue'/>
</html:submit>
</html:form>

Christian/>



-----Original Message-----
From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 5:02 AM
To: Struts Users Mailing List
Subject: html:submit button


Hello,
I have a problem and I can't fingure out the solution to it. Here is my
case:

I have a list of products (PoductBean) on my .jsp and each one of it have
two buttons (html:submit)  :

Button1 --> Display Information for this product
Button2 --> Use the information to do something else

My question is: How can I decide which product has been selected so as to
display its information on my next page? 
>From what I have seen the html:submit tag does not contain any attributes to
pass request parameters.

Thank U in advance,
Konstantina





Reply via email to