Re: Which values are passed to the action with a s:submit button?
--- wild_oscar <[EMAIL PROTECTED]> wrote: > In the case you want to just display (and give no > choice of editing) and at the same time send in the > next request, the best option is then to use a > label and repeat it in a hidden field? Well, personally I wouldn't use a label if it isn't a label for a form field, because it's not labeling anything -- this might just be obsessive-compulsive, though. I'd just display it using If you want the value to be submitted then you definitely need to include it in the form somehow, either via an , through JavaScript, etc. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which values are passed to the action with a s:submit button?
In the case you want to just display (and give no choice of editing) and at the same time send in the next request, the best option is then to use a label and repeat it in a hidden field? newton.dave wrote: > > --- wild_oscar <[EMAIL PROTECTED]> wrote: >> Curiously, I tried assigning it to a . > > My fault; I assumed some familiarity with HTML forms. > > All form *input* elements (including things like > etc.) > >> newton.dave wrote: >> > --- wild_oscar <[EMAIL PROTECTED]> wrote: >> >>> Which tags are sent as parameters on a form? >> > All form tags, unless you have an interceptor >> > configured to specifically exclude specific >> > parameters. > > d. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Which-values-are-passed-to-the-action-with-a-s%3Asubmit-button--tf4522862.html#a12929004 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which values are passed to the action with a s:submit button?
--- wild_oscar <[EMAIL PROTECTED]> wrote: > Curiously, I tried assigning it to a . My fault; I assumed some familiarity with HTML forms. All form *input* elements (including things like etc.) > newton.dave wrote: > > --- wild_oscar <[EMAIL PROTECTED]> wrote: > >>> Which tags are sent as parameters on a form? > > All form tags, unless you have an interceptor > > configured to specifically exclude specific > > parameters. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which values are passed to the action with a s:submit button?
There is a page in between: 1) Page A - submit form 2) Action sets parameter1 and sends to Page A 3) Page A shows parameter1 4) Page A has a submit for another action that needs parameter1 Curiously, I tried assigning it to a . It showed parameter1 ok ( 3) ), but the parameter was null in the action in 4). with the same "name" property was ok... newton.dave wrote: > > --- wild_oscar <[EMAIL PROTECTED]> wrote: >>> Which tags are sent as parameters on a form? > > All form tags, unless you have an interceptor > configured to specifically exclude specific > parameters. > >> Putting it in another way...how can I send a value >> from the Action to the jsp and use that value in >> another action in the next request? > > On the *next* request? If there's no page between > requests you can chain your actions. If there is then > you'd have to include the parameter on the second form > using or another mechanism. > > I'm still not sure I understand the issue, though. > > d. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Which-values-are-passed-to-the-action-with-a-s%3Asubmit-button--tf4522862.html#a12928431 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Which values are passed to the action with a s:submit button?
> Putting it in another way...how can I send a value from the > Action to the jsp and use that value in another action in the > next request? Put in into a field in the form > Specifically, what struts2 tag should be used in the jsp? -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which values are passed to the action with a s:submit button?
--- wild_oscar <[EMAIL PROTECTED]> wrote: >> Which tags are sent as parameters on a form? All form tags, unless you have an interceptor configured to specifically exclude specific parameters. > Putting it in another way...how can I send a value > from the Action to the jsp and use that value in > another action in the next request? On the *next* request? If there's no page between requests you can chain your actions. If there is then you'd have to include the parameter on the second form using or another mechanism. I'm still not sure I understand the issue, though. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which values are passed to the action with a s:submit button?
Putting it in another way...how can I send a value from the Action to the jsp and use that value in another action in the next request? Specifically, what struts2 tag should be used in the jsp? wild_oscar wrote: > > I'm having doubts on a really basic question: which values are passed to > the action (and can therefore be get/set) with a s:submit button? > > I ask this because I have a form with two submit buttons: > > Button 1 does some work and sets parameter par1 which is retrieved in the > jsp with a tag; > > Button 2 should get par1 and do additional work. I thought that the action > was able to get par1 here, but apparently not. Which tags are sent as > parameters on a form? > -- View this message in context: http://www.nabble.com/Which-values-are-passed-to-the-action-with-a-s%3Asubmit-button--tf4522862.html#a12925375 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]