you can't specifiy a tag as the value of an attribute in another tag. There
are a few different ways you could solve this problem. Here's one using
jstl and struts-el:
c:set var=messy
bean:message key='csc.button.submit'/
/c:set
html-el:submit property=physicianSubmit value=${messy}/
From:
This is an html issue, rather than a struts one.
Read up on how input type=submit/ works for an in depth explanation.
Struts provides the LookupDispatchAction which is designed to deal with this
issue.
Paul
-Original Message-
From: Eric BELLARD [mailto:[EMAIL PROTECTED]
Sent: 24
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 and
Your action can read the value attribute of your
submit tag. This is the label in your case.
bean-el:message key=search.new/
Use the request.getParameter to find out which button
was clicked. Give each of your submit buttons a
different NAME. request.getParameter(NAME) will return
the label of
: RE: html:submit and 2 buttons
Your action can read the value attribute of your
submit tag. This is the label in your case.
bean-el:message key=search.new/
Use the request.getParameter to find out which button
was clicked. Give each of your submit buttons a
different NAME
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
I would guess it can't find the button.view property in your properties file. If
that was nonexistent, the value would be null.
(Note that there is no 1.02 beta version. There's versions 1.02 and 1.1b2 (and the
nightly).)
-Original Message-
From: Linnea Ahlbeck [mailto:[EMAIL
, David [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 6:41 PM
To: Struts Users Mailing List
Subject: RE: html:submit value not found in request, version 1.02 beta
I would guess it can't find the button.view property in your properties
file. If that was nonexistent, the value would
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
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
if (signout.equalsIgnoreCase(request.getParameter(submit))){
//submit code
}
Regards
Aamir
- Original Message -
From: Dan Walker [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 03, 2002 10:01 PM
Subject: Re: html:submit problem need help
I think
Have a javascript function in the href tag like below.
html:link href=javascript:submitAct(1)
html:img src=your image.gif /
/html:link
The javascript function submitAct will have sth like below
function submitAct(index){
if (index==0) {...}
document.forms[0].submit();
}
I think this link:
http://husted.com/struts/tips/002.htm
addresses that issue.
-Dan
On Tuesday 03 September 2002 11:53, you wrote:
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
, 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
One trick is to get the ActionForm to do the work:
http://husted.com/struts/tips/001.html
-Ted.
Ashish Kulkarni wrote:
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
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
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.
I believe html:image/ is used for that.
- Original Message -
From: "Dave Wellman" [EMAIL PROTECTED]
To: "Struts Users Mailing List" [EMAIL PROTECTED]
Sent: Wednesday, February 27, 2002 2:07 PM
Subject: html:submit/
is there a way to use a graphic image in place of the standard button
I may have some syntax problem, but I'm trying to get the text for a submit
button from the message bundle so it can be localized.
if I code something like
input type=submit value="bean:message key="global.prompt.submit"/"
it works
I can't figure out how to convert this an
input is not working because it probably gets confused with the
placements of in the tags. I am guessing that the value is set to
'bean:message key='. You might be able to use a different delimiter such
as ' for the value tag.
Better yet, use this:
html:submit
bean:message
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, 2002 12:32 PM
Subject: Re: html:submit button
You can
was clicked
//do whatever like forward to 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
[EMAIL PROTECTED]
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 struts oriented. If you have the following in your
JSP:
!-- JSP Snippet--
html:submit property=btnProcess
bean:message key=button.processSuspends /
/html:submit
html:submit
]
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 struts oriented. If you have the following in your
JSP
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'/
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
' [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,
plus two buttons, one for displaying info and one for do
something
I *think* this is the struts equivalent:
html:submit property="%=Constants.SEARCH%"
bean:message key="searchResource.search"/
/html:submit
You may be able to get by without the property attribute, though.
"Nanduri, Amarnath" wrote:
Hi all,
Is it possible to convert the below HTML
On Wed, 14 Mar 2001, Kyle Robinson wrote:
In the onchange event of your select I would make it look like
onchange="javascript:submit();"
Thanks for the idea, but I tried that and still get the Javascript error.
34 matches
Mail list logo