From: emmanuel.boudrant [EMAIL PROTECTED] on 20/11/2001 16:20 CET
Please respond to Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject: Re: which button pressed?
Hi,
I suggest you to use : html:submit property
Hello all
I have several submit buttons like this:
table border=0
tr
tdhtml:submit property=prevbean:message
key=button.prev//html:submit/td
tdhtml:submit property=nextbean:message
key=button.next//html:submit/td
tdhtml:submit property=savebean:message
key=button.save//html:submit/td
Hi,
I suggest you to use : html:submit property=propertyname value=buttonname/
ex:
html:submit property=myAction value=add/
html:submit property=myAction value=del/
and in Action class, to determine witch button is pressed:
String button = request.getParameter(myAction);
if (
Users Mailing List
Subject: Re: which button pressed?
Hi,
I suggest you to use : html:submit property=propertyname
value=buttonname/
ex:
html:submit property=myAction value=add/
html:submit property=myAction value=del/
and in Action class, to determine witch button is pressed:
String button
similar.
hth,
tomK
-Original Message-
From: Màris Orbidàns [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 20 november 2001 16:06
To: Struts-list (E-mail)
Subject: which button pressed?
Hello all
I have several submit buttons like this:
table border=0
tr
tdhtml:submit property
-mail)
Subject: which button pressed?
Hello all
I have several submit buttons like this:
table border=0
tr
tdhtml:submit property=prevbean:message
key=button.prev//html:submit/td
tdhtml:submit property=nextbean:message
key=button.next//html:submit/td
tdhtml:submit property
AM
Subject: Re: which button pressed?
Hi,
I suggest you to use : html:submit property=propertyname
value=buttonname/
ex:
html:submit property=myAction value=add/
html:submit property=myAction value=del/
and in Action class, to determine witch button is pressed:
String button
PM
To: Struts Users Mailing List
Subject: RE: which button pressed?
I've seen 2 ways to do this:
(1) in the action, go over all possible values to check if it is not
null:
boolean prevPressed = request.getParameter(prev)!=null;
boolean nextPressed = request.getParameter(next)!=null;
...
(2) use
I think it will work as it is...
tomK
-Original Message-
From: Maris Orbidans [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 20 november 2001 16:49
To: Struts Users Mailing List
Subject: RE: which button pressed?
Do I have to change my JSP code ?
Will it work as it is now
9 matches
Mail list logo