Re: Question about buttons

2003-06-04 Thread sjones
there is also a class called "HTMLButton" that was suggested.

I haven't quite figured it out yet. maybe you will have better luck.

goto:   http://j2ee.lagnada.com/struts/html-buttons.htm


"Nadja Senoucci" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello everyone,
>
> if I want to have a button in my form that would be a second submit
button,
> can I give it it's own action-class? I guess not, but I thought I'd ask.
> Also, how can I check in my form bean which button has been pressed?
>
> The reason why I am asking all of this: I want to have a third button in
my
> form, next to the general submit and cancel buttons. If that button is
> pressed, some extra info is being displayed but the data in the form
should
> be validated. I thought, it'd be nicer to use a button for this than a
> normal link...
>
> Greetings,
> Nadja




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question about buttons

2003-06-03 Thread Nagendra Kumar O V S








  hi,
   
  u can obviously give any no of submit buttons  with the property 
  name in the action form. and u can get the value and go accordingly
   
  another intersting feature in struts is that , if u extend ur action 
  class with DispatchAction (instead of Action) u can implement n number of 
  execute methods, with a value based on the request parameter.
  pl go thro' struts docs u have all the answers to ur questions
   
  --nagi
   
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Tuesday, June 03, 
  2003 06:07:12 PM
  To: [EMAIL PROTECTED]
  Subject: Question about 
  buttons
   Hello everyone,if I want to have a button in my 
  form that would be a second submit button,can I give it it's own 
  action-class? I guess not, but I thought I'd ask.Also, how can I check 
  in my form bean which button has been pressed?The reason why I am 
  asking all of this: I want to have a third button in myform, next to 
  the general submit and cancel buttons. If that button ispressed, some 
  extra info is being displayed but the data in the form shouldbe 
  validated. I thought, it'd be nicer to use a button for this than 
  anormal 
  link...Greetings,Nadja-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




  IncrediMail - 
Email has finally evolved - Click 
Here



Re: Question about buttons

2003-06-03 Thread Dirk Markert
Hello Nadja,



Tuesday, June 3, 2003, 2:35:03 PM, you wrote:

NS> Hello everyone,

NS> if I want to have a button in my form that would be a second submit button,
NS> can I give it it's own action-class? I guess not, but I thought I'd ask.
You cannot. Perhaps you can use a second form with only your button?

NS> Also, how can I check in my form bean which button has been pressed?
Use something like:



Your request will contain a parameter named "second_submit_button".

NS> The reason why I am asking all of this: I want to have a third button in my
NS> form, next to the general submit and cancel buttons. If that button is
NS> pressed, some extra info is being displayed but the data in the form should
NS> be validated. I thought, it'd be nicer to use a button for this than a
NS> normal link...

NS> Greetings,
NS> Nadja



NS> -
NS> To unsubscribe, e-mail: [EMAIL PROTECTED]
NS> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Best regards,
Dirk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Question about buttons

2003-06-03 Thread Nadja Senoucci
Hello everyone,

if I want to have a button in my form that would be a second submit button,
can I give it it's own action-class? I guess not, but I thought I'd ask.
Also, how can I check in my form bean which button has been pressed?

The reason why I am asking all of this: I want to have a third button in my
form, next to the general submit and cancel buttons. If that button is
pressed, some extra info is being displayed but the data in the form should
be validated. I thought, it'd be nicer to use a button for this than a
normal link...

Greetings,
Nadja



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]