The JSP code below prints out a nice list of company names, with links
called Edit and Delete
which call a suitable form with a pair of parameters, one being the action,
the other being an identifying property of the company to played with.
logic:iterate name=CompanyProfile
2004 19:45
To: Struts Users Mailing List
Subject: RE: html:link instead of html:submit
Wouldn't query parameters work here?
How abt using html:link page=/youraction?buttonName=testButton /
HTH..
-jayash
-Original Message-
From: Dieter Mummenschanz [mailto:[EMAIL
PROTECTED]
Envoyé : vendredi 13 février 2004 11:36
À : 'Struts Users Mailing List'
Objet : [SPAM] - RE: html:link instead of html:submit - Bayesian
Filter detected spam
I don't beleve this will submit the values in the form's
input fields. I've
achieved this functionality by having links
Users Mailing List'
Subject: RE: html:link instead of html:submit
I don't beleve this will submit the values in the form's input fields. I've
achieved this functionality by having links which use javascript to set the
dispatch form value call submit.
Paul
-Original Message-
From
: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED]
Sent: 12 February 2004 19:45
To: Struts Users Mailing List
Subject: RE: html:link instead of html:submit
Wouldn't query parameters work here?
How abt using html:link page=/youraction?buttonName=testButton /
HTH..
-jayash
-Original Message-
From
be in sync with the script)
JCG
-Message d'origine-
De : Voinea, Marina [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 13 février 2004 15:57
À : 'Struts Users Mailing List'
Objet : [SPAM] - RE: html:link instead of html:submit - Bayesian
Filter detected spam
Paul, I have also been trying
(from struts config)?
-Original Message-
From: Gagné Jean-Christian [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 11:24 AM
To: 'Struts Users Mailing List'
Subject: RE: RE: html:link instead of html:submit
It looks like my previous answer to this did't make its way to the list
-
From: Gagné Jean-Christian [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 11:24 AM
To: 'Struts Users Mailing List'
Subject: RE: RE: html:link instead of html:submit
It looks like my previous answer to this did't make its way to the
list.
Posting again...
Works well
my action class as to extend Dispatch action.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 1:07 PM
To: Struts Users Mailing List
Subject: Re: html:link instead of html:submit
if you're saying what i think you are
function submit(form
Hello,
I have a jsp page with some html:submit buttons. The servlet identifies
the klicked button by invoking httpservletrequest.getParameter(...).
Is there a way to use links in my .jsp page using html:link instead of
html:submit?
Thx for any help,
Dieter
--
GMX ProMail (250 MB Mailbox, 50
Could you enclose this smaple please!
Thanks!
-Original Message-
From: Dieter Mummenschanz [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 12:46 PM
To: [EMAIL PROTECTED]
Subject: html:link instead of html:submit
Hello,
I have a jsp page with some html:submit buttons
of html:submit
Hello,
I have a jsp page with some html:submit buttons. The servlet identifies
the klicked button by invoking httpservletrequest.getParameter(...).
Is there a way to use links in my .jsp page using html:link instead of
html:submit?
Thx for any help,
Dieter
--
GMX ProMail (250 MB
I am trying to use bean:message for internationalization within the html:submit
button like this :
html:submit property=physicianSubmit value=bean:message
key='csc.button.submit'//
There is a key-value pair in the resource bundle.
But it seems to display the following error : Attribute
: Clark Kent [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: usergroup [EMAIL PROTECTED]
Subject: html:submit
Date: Wed, 17 Dec 2003 11:53:25 -0800 (PST)
I am trying to use bean:message for internationalization within the
html:submit button like this :
html:submit
:
logic:iterate id=item scope=session indexId=index
collection='%=session.getAttribute(theList)%'
tr
TD class=body_textbean:write name=item property=section/
bean:define id=theCode name=item property=title/bean:define
html:submit onclick=this.form.hiddenId.value='%=(String) theCode %';
value=Edit
This is because you can't mix the value of an attribute of a custom tag with
both string literal and run time expressions.
Instead of this:
html:submit onclick=this.form.hiddenId.value='%=(String) theCode %';
value=Edit /
something like this should work:
c_rt:set var=theCode value=%=(String
From: [EMAIL PROTECTED]
html:submit onclick=this.form.hiddenId.value='%=(String)
theCode %'; value=Edit /
If Struts-EL is an option, I think it would look like this:
html-el:submit property=someProp
onclick=document.forms[0].hiddenId.value=${theCode};
/
--
Wendy Smoak
hi,
i'm dispatch action addicted developper and I go a
recurent problem with html:button and html:submit
componant.
With these componants it's impossible to separate
their label and their submitted value.
I managed with some javascript like this to invoke the
dispatch method i want :
// submit
November 2003 11:21
To: [EMAIL PROTECTED]
Subject: html:submit and html:button componant : value and text label
hi,
i'm dispatch action addicted developper and I go a
recurent problem with html:button and html:submit
componant.
With these componants it's impossible to separate
Hello
just a little question about the taglib
i want to have one form with 2 buttons in it
one button should do new
the other update
how can i make my action class know which button was hit?
additionally i want that the buttons get there labels from a property file
that works as shown below
You can just use JavaScript passing some parameters
You can also try this approach:
http://husted.com/struts/tips/003.html
-Original Message-
From: Frers Michael [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 6:54 PM
To: Struts Users Mailing List
Subject: html:submit
]
Sent: Wednesday, November 05, 2003 6:54 PM
To: Struts Users Mailing List
Subject: html:submit and 2 buttons
Hello
just a little question about the taglib
i want to have one form with 2 buttons in it
one button should do new
the other update
how can i make my action class know
I have often added form properties to represent flags for the different
button actions to process. My ActionForm would have two properties
update and new:
setUpdate(boolean flag){}
boolean isUpdate()
For the submit buttons:
html:submit property=update value=true /
If I have to use an image
Hi,
How do I invoke the getter or setter method of a form bean directly using the
html:submit tag? I managed to do this successfully using the html:img tag, but not
with html:submit.
Thanks
Raj
Hi all,
How can I name a submit button. I need a name for it, because I want to
access it from Javascript. I render the submit button as follows:
html:submit styleClass=button value=send! onclick=closing=false;
document.correctionForm.action='/advertentieoverzicht/store_correction.do
Hi,
How can I tell html:submit (or html:text etc) to pick the
value= from the resources file? Am I missing something obvious in the
docs?
Regards,
Amit.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Use html:image tag.
-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 6:26 PM
To: 'Struts Users Mailing List'
Subject: Simple html:submit question
How do I use my own image in a html:submit/ or html:cancel/ tag
http://jakarta.apache.org/struts/userGuide/struts-html.html#image
On Tuesday, August 12, 2003, at 04:04 PM, Norr, Peter wrote:
Any reason why the struts html:submit/ tag does not support the src
attribute?
html:submit src=myimage.gif/
-Original Message-
From: Ravi Kora [mailto:[EMAIL
Probably because HTML doesn't.
-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 11:05 AM
To: 'Struts Users Mailing List'
Subject: RE: Simple html:submit question
Any reason why the struts html:submit/ tag does not support the src
attribute
Should I use an onclick method handler to the image tag so I can submit the
form??
-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 7:29 AM
To: 'Struts Users Mailing List'
Subject: RE: Simple html:submit question
Use html:image tag
; there is more parameters
that are submitted with this type of image button)
Alex.
-Original Message-
From: Ravi Kora [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 10:43 AM
To: 'Struts Users Mailing List'
Subject: RE: Simple html:submit question
Ya, u can do that or u can use
http://jakarta.apache.org/struts/userGuide/struts-html.html#submit
On Tuesday, August 12, 2003, at 04:04 PM, Norr, Peter wrote:
Any reason why the struts html:submit/ tag does not support the src
attribute?
html:submit src=myimage.gif/
-Original Message-
From: Ravi Kora [mailto:[EMAIL
)
-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 10:22 AM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: Simple html:submit question
Should I use an onclick method handler to the image tag so I
can submit the form
Any reason why the struts html:submit/ tag does not support the src
attribute?
html:submit src=myimage.gif/
-Original Message-
From: Ravi Kora [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 10:43 AM
To: 'Struts Users Mailing List'
Subject: RE: Simple html:submit question
Ya
How do I use my own image in a html:submit/ or html:cancel/ tag?
--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above. If you are not the intended recipient
Hi,
I'm using trying to use ValidatorActionForm and tile, but the submit button
is outside of the form on a different JSP, therefore, I need to submit my
form indirectly using a link and javascript (see code below). Neither the
client-side javascript nor the server-side validation get called.
should it be a validatorForm?
sandeep
--- Poon, Johnny [EMAIL PROTECTED] wrote:
Hi,
I'm using trying to use ValidatorActionForm and
tile, but the submit button
is outside of the form on a different JSP,
therefore, I need to submit my
form indirectly using a link and javascript (see
code
[mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 10:48 AM
To: Struts Users Mailing List
Subject: Re: Validator using A href instead of
html:submit
should it be a validatorForm?
sandeep
--- Poon, Johnny [EMAIL PROTECTED] wrote:
Hi,
I'm using trying to use ValidatorActionForm
];));
}
-Original Message-
From: Sandeep Takhar [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 11:29 AM
To: Struts Users Mailing List
Subject: RE: Validator using A href instead of html:submit
What is the javascript created by the custom tag when
looking at the source?
I think
of
html:submit
What is the javascript created by the custom tag
when
looking at the source?
I think you shouldn't need to call:
validateEnterAppInfo1(this)
but what happens if you do?
maybe there is more than one form? Is the form
being
submitted and the data is in the form
, 2003 2:09 AM
Subject: Re: logic:iterate and html:submit
Sorry friend, but it doesnt work too.
ServletException in:/common/partyCollection.jsp] Unable to compile class for
JSPNote: sun.tools.javac.Main has been deprecated. An error occurred at
line: 19 in the jsp file: /common/partyCollection.jsp
Thanx very much...
I am using another solution now. Actually, to use bean in value,
I should use bean:write within html:submit /html:submit
Anyway the button would have rendered the hashCode as label when I would like to have
passed this value as argument.
Marco Tedone writes:
Try my code
Friendly developers,
I am substituting html:link to html:submit, to populate the actionForm before to
change the action.
I would like use html:submit button to edit items of a collection.
When I ws using html:link I had specified a property of this item to find its.
So... how could I substitute
- Original Message -
From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, June 08, 2003 10:34 PM
Subject: logic:iterate and html:submit
Friendly developers,
I am substituting html:link to html:submit, to populate
Marco Tedone writes:
- Original Message -
From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, June 08, 2003 10:34 PM
Subject: logic:iterate and html:submit
Friendly developers,
I am substituting html:link
So if this is java code, you should use:
html:submit property='%= buttonAddress(address.hash).name%' Edit
/html:submit
Am I wrong? In any case, if it's a name that you need, have you tried
bean:message key=foo?
Hope it will help,
Marco
- Original Message -
From: Rodrigo di Lorenzo
:
/td
/tr
logic:iterate name=valueObjectproperty=addressesid=address
tr
td
/td
td
html:submit property=editAddress value='%=address.getHash()%'
title=Alterar/Alterar/html:submit
/td
/tr
/logic:iterate
My real problem
Try:
logic:iterate name=valueObjectproperty=addressesid=address
bean:define id=buttonName name=address property=hash /
tr
td
/td
td
html:submit property=editAddress value='%= buttonName %'
title=Alterar/Alterar/html:submit
/td
/tr
/logic:iterate
- Original Message
bean:write but nothing works...
: (
Marco Tedone writes:
Try:
logic:iterate name=valueObjectproperty=addressesid=address
bean:define id=buttonName name=address property=hash /
tr
td
/td
td
html:submit property=editAddress value='%= buttonName %'
title=Alterar/Alterar
html:submit property=editAddress value='%= buttonName %'
title=Alterar/Alterar/html:submit
Try % out.print( buttonName.toString() ); %
You'd think %= would call the toString() method and everything should
be fine, but I've run into this before and forget the reason why just
using the scriplet
in the forms for
html:submit tag ?
Good morning Shabbir!
try this:
html:image page=/images/enter.gif property=submit value=Enter/
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Shabbir Khadir Mohammed [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 24. Februar 2003 09:15
An: Struts Users
Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.
html:submit property=submit value=Save/
It is displaying normal html button.
On clicking this button form will be submitted to corresponding action.
Now my question is,
Instead of normal html
gif image instead of html button in the forms for
html:submit tag ?
Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.
html:submit property=submit value=Save/
It is displaying normal html button.
On clicking this button form will be submitted
of html button in the forms for
html:submit tag ?
Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.
html:submit property=submit value=Save/
It is displaying normal html button.
On clicking this button form will be submitted to corresponding action.
Now my
09:28
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?
use html:image
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#image
Nico.
- Original Message -
From: Shabbir Khadir Mohammed [EMAIL PROTECTED
This should work too :
bean:define id=localImage type=String
bean:message key=images.buttons.url/
/bean:define
html:image page=%= localImage % property=submit/
and this is browser-indepentend. as far as i know input type=image...
is
IE-specific.
input type=image is HTML 3.2, not browser
html:image page=%= localImage % property=submit/
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 10:07
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?
This should
bean:define id=localImage type=String
bean:message key=images.buttons.url/
/bean:define
html:image page=%= localImage % property=submit/
1. Might be. dont know.
but you should avoid using scriptlets in your code.
and this is scriptlet.
Not scriplet !
JSP scriptlet is :
%
11:38
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?
you should, you should...
don't forget... philosophical purity should always yield to pragmatism
Nicolas De Loof wrote:
1. Might be. dont know.
but you should
struts came into life.
and now i wnat to stop further discussions about this theme.
-Original Message-
From: Guido [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 11:38
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit
Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?
Don't feel it as an agression Georg,
I agree with you it's a good practice to avoid scriplet in JSP, and myself I
never use it and suggest never using it. They're is alway a way to do
I have a couple of html:submit elements on one html:form.
How do I distinguish between the different buttons?
Specifically, I have
html:submit property=operationEdit Loan/html:submit
html:submit property=operationReject Loan/html:submit
The form bean has a setOpereration(String) setter method
2002. december 3. 16:30 dátummal Kevin HaleBoyes ezt írtad:
The way it works now, I have to compare the value of the operation
property of the form bean against the string that is displayed to
the user. That seems a bit fragile - suppose the customer wants the
Reject Loan to be Cancel Loan
--- Gemes Tibor [EMAIL PROTECTED] wrote:
2002. december 3. 16:30 dátummal Kevin HaleBoyes ezt írtad:
The way it works now, I have to compare the value of the
operation
property of the form bean against the string that is displayed to
the user. That seems a bit fragile - suppose the
Hi!
On my jsp pages I have the following code:
td align=left valign=bottom width=90%
html:submit styleClass=button
bean:message key=button.view/
/html:submit
/td
(On my jsp page I only have one html:form tag)
In my SaveAction class I collect the submit value from the request, like
PROTECTED]]
Hi!
On my jsp pages I have the following code:
td align=left valign=bottom width=90%
html:submit styleClass=button
bean:message key=button.view/
/html:submit
/td
(On my jsp page I only have one html:form tag)
In my SaveAction class I collect the submit value
Hi David!
Thanks for your tip. The button.view property in your properties file has
been found all the time but I'm not used to add the property attribute to
the html:submit tag. When I did that the request parameter was found (and
probably created to begin with) and therby able to reach from my
You can use the html:image tag.
Regards,
Miguel
-Mensaje original-
De: Murray, Christopher [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 18 de noviembre de 2002 12:28
Para: 'Struts Users Mailing List'
Asunto: html:submit -- DispatchAction
How do you customize html:submit tags to use
html:image doesn't submit a form to an action ?
-Original Message-
From: Míguel Ángel Mulero Martínez
[mailto:[EMAIL PROTECTED]]
Sent: 18 November 2002 11:51
To: Struts Users Mailing List
Subject: RE: html:submit -- DispatchAction
You can use the html:image tag.
Regards,
Miguel
Mailing List'
Subject: RE: html:submit -- DispatchAction
html:image doesn't submit a form to an action ?
-Original Message-
From: Míguel Ángel Mulero Martínez
[mailto:[EMAIL PROTECTED]]
Sent: 18 November 2002 11:51
To: Struts Users Mailing List
Subject: RE: html:submit -- DispatchAction
was hoping it would
evaluate before calling the function. But it doesn't even compile as is.
(Then again, I'm looking at the nightly build docs, but using 1.1. Has the
RTExpr functionality been added recently?)
html:submit property=submit
onclick=setAction('Delete Staff
Response at end.
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 16, 2002 10:39 AM
To: 'Struts Users Mailing List'
Subject: html:submit with an onclick
I need to set two form properties when a button is clicked.
The following
works
David wrote:
And the somewhat more radical position: Use the Struts-EL library. Then,
this would look like this:
html-el:submit property=submit
onclick=setAction('Delete
Staff');setKeyToDelete('${staffMember}');
styleClass=deleteButton
Martin,
Thanks for the confirmation. I have open bugzilla #12360 on this issue
Jerry
-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 6:13 PM
To: 'Struts Users Mailing List'
Subject: RE: [BUG] html:submit disabled= requires
I'm setting the value of the disabled= parameter on a html:submit tag, and
I'm getting the following error:
Incompatible type for method. Can't convert java.lang.String to
boolean. _jspx_th_html_submit_2.setDisabled(buttonStatus);
The code in the .JSP looks like
the right way to do this?
Jerry
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 2:45 PM
To: '[EMAIL PROTECTED]'
Subject: [BUG] html:submit disabled= requires boolean value?
I'm setting the value of the disabled= parameter
From the docs for the html:submit 'disabled' attribute:
Set to true if this input field should be disabled.
The field in the tag is a boolean, so the value you supply must be
convertable to a boolean. The conversion of the string you supply to a
boolean is performed
)
session.getAttribute(buttonStatus); %
html:submit property=action value=Update
disabled=%=buttonStatus% /
(when using a bean)
bean:define id=buttonStatus name=myBean property=buttonStatus
/
html:submit property=action value=Update
disabled=%=buttonStatus% /
Either way I get
that - unless both Tomcat and Resin suffer from the
same bug - we'll need to modify the html:submit tag to take a string
value, and deal with the conversion in Struts.
If you could submit a bug report to Bugzilla, that will ensure that this
issue doesn't get lost.
--
Martin Cooper
-Original Message
'
Subject: RE: [BUG] html:submit disabled= requires boolean value?
Hmm.
First of all, disregard what I said before about
BooleanConverter - that
only applies when the form is being submitted, not when it is being
rendered. My bad.
However, you're right, there is definitely a problem. I've
I think ur code will work if u just write different value of ur sumit button
means
html:submit value =login/
html:submit value =signout/
and take value of parameter from request within ur Action class
means
if (login.equalsIgnoreCase(request.getParameter(submit))){
// login code
}
else
Hi,
I have 4 buttons on an jsp page, but what if i have to use image instead of buttons,
like html:submitAdd/html:submit
will have a button with Add Text, and then in my Action class i can find out which
button has been pressed,
but what if i have to use Image instead of a button, like how
Mailing List
Subject: html:submit and Image instead of button
Hi,
I have 4 buttons on an jsp page, but what if i have to use image instead
of buttons,
like html:submitAdd/html:submit
will have a button with Add Text, and then in my Action class i can find
out which button has been pressed
Hi,
I have 2 buttons on my jsp and i want to find out which button is pressed in my Action
class, but i m not getting the submit parameter in request, my code is as below
I am 2 buttons on my jsp as below
html:form action=/pages/test
html:submitLogin/html:submit
html:submitsignout
is as below
I am 2 buttons on my jsp as below
html:form action=/pages/test
html:submitLogin/html:submit
html:submitsignout/html:submit
/html:form
my struts-config.xml is as below
form-bean name=test dynamic=true
type=org.apache.struts.validator.DynaValidatorForm
form-property name
, 2002 12:21 PM
To: Struts Users Mailing List
Subject: RE: html:submit and Image instead of button
hi
But cant i do it in my action class instead in javascript,??
Ravi Kora wrote:Have a javascript function in the href tag like below.
The javascript function submitAct will have sth like
]]
Sent: Tuesday, September 03, 2002 11:50 AM
To: Struts Users Mailing List
Subject: html:submit and Image instead of button
Hi,
I have 4 buttons on an jsp page, but what if i have to use image instead
of buttons,
like Add
will have a button with Add Text, and then in my Action class
Hi all
Can anybody tell me how to use i18n with a html:submit tag, so the value of
the input is internationalised?
It should be a simple thing, but I can't find an attribute in the tag
reference that will let me do it. value isn't internationalised, and
titleKey just gives it a title
Don't worry. Worked it out. :)
You can put the i18n key in the middle of the tag.
html:submitbean:message key=my.key//html:submit
That wasn't obvious to me from the user guide!
Lisa
Is there a good way to achive a html:submit using a href rather than a
button? I checked out the attributes for html:link..but could not find any?
-h
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
At 11:17 AM -0500 2002/07/03, Hemanth Setty wrote:
Is there a good way to achive a html:submit using a href rather than a
button? I checked out the attributes for html:link..but could not find any?
You'd have to have an onclick handler which used JavaScript to submit
the form. It's
Just curious - does anybody use the html:submit tag,
or do folks generally just use the standard input
type=submit tag.
The reason I ask is that html:submit does not allow
you to specify the name of the button - and as a
result all buttons generated with that tag are named
'submit
Whatever you set the 'property' attribute of the html:submit is translated to the
'name' attribute of the resulting input type=submit tag.
Sri
-Original Message-
From: Gary Bartlett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 3:17 PM
To: StrutsUser Maillist
Subject
Thanks, I didn't realize that property translated into
the name attribute.
GB
--- Sri Sankaran [EMAIL PROTECTED] wrote:
Whatever you set the 'property' attribute of the
html:submit is translated to the 'name' attribute of
the resulting input type=submit tag.
Sri
-Original Message
I think this is a result of browser confusion between an
element named 'submit' (the element produced by an html:submit
without a property attribute)
and the function form.submit();
When using html:submit always specify a property.
Then you can have a named request parameter to process
Hi,
we are developing an application that uses the i18n capabilities of Struts,
and we have found a problem trying to use this capability with the
html:submit
For instance, if we use in our JSP pages:
html:submit property=action value=Accept
html:submit property=action value=Cancel
I can think of 4 ways I might approach this:
1. Have you thought about using different actions to determine which button
was pushed?
Example:
html:form action=/terms/accept
html:submit
bean:message key=terms.accept/
/html:submit
/html:form
html:form action=/terms/cancel
html:cancel
Although I'm not real found of this action, I would look at the
org.apache.struts.actons.LookupDispatchAction. This is a pre-built action
that can be used exactly for what you are trying to do.
Chuck
At 04:30 PM 4/19/2002 +0200, you wrote:
Hi,
we are developing an application that uses the
:
Subject: RE: I'm stuck on the html:submit
04/02/02
08:52 PM
stuck on the html:submit
Hi James:
But what if you have multiple html:submit's in your jsp...
And supposing only 1 of those submit button's need to have this javascript
confirm() popup. How does the onSubmit() at the form level know which
submit button-property was set?It would need to do
1 - 100 of 147 matches
Mail list logo