ers Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 5:30 PM
Subject: RE: html:submit button
> Hi Konstantina,
>
> Since you haven't supplied enough details, I'll assume that
> you have a table, and each row contains info on one product,
> p
Hi Konstantina,
Since you haven't supplied enough details, I'll assume that
you have a table, and each row contains info on one product,
plus two buttons, one for displaying info and one for do
something with the product.
In this case you then make each button look like an array, in
your form b
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:
-- Select --
RequiredParent
RequiredChild
Christian/>
-Origi
gt;
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 3:56 PM
Subject: RE: html:submit button
> Hi Konstantina,
>
> I don;t know if you have a solution yet, but I have two separate ones for
> you. The first is more st
Hi Konstantina,
I don;t know if you have a solution yet, but I have two separate ones for
you. The first is more struts oriented. If you have the following in your
JSP:
//you need to create 3 attributes in your "ActionForm" object that's being
populated when
o another actionpage
}
else
{
//neither was clicked
}
>From: "Konstantina Stamopoulou" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>, "rob"
>&
eters too. So I have 10 lines
of config parameters and two buttons under these.
Thank you for your instant reply,
Konstantina
- Original Message -
From: "rob" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 21
You can setup a property in your form bean to receive the value of the
button and just pack the button value with the product id (since if I
understand correctly you have a button for every product entry)
ie.
and
in your action you can retrieve the property and compare it.
if (form.getButton(
8 matches
Mail list logo