struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manuel Lenz" <...@viessmann.com>
Subject RE: RE: Submitting value with Graphical Buttons
Date Thu, 05 Jun 2003 08:04:18 GMT

Hi,
I have seen some examples like the one below,
but no one works with struts. I don´t know how to address the form beans
field. And I habe to specify the param´s name I´d like to save.
I tried this code, but it doesn´t work:

<a href="#"  style="text-decoration:none;"
            onClick="javascript:document.testForm.fieldname.value
='page.jsp';
                  document.testForm.submit()">

Where is the error?
How do I save a value in an FormBean by clicking a button?

Manuel



|---------+---------------------------->
|         |                            |
|         |                            |
|         |                            |
|         |"Rochak Sethi"              |
|         |<Rochak_Sethi@infosys.com>  |
|         |05.06.2003 08:56            |
|         |Bitte antworten an "Struts  |
|         |Users Mailing List"         |
|         |                            |
|---------+---------------------------->
  >----------------------------------------------------------------------------------------------------------------------------|
  |                                                                                      
                                     |
  |     An:      "Struts Users Mailing List" <struts-user@jakarta.apache.org>      
                                           |
  |     Kopie:                                                                           
                                     |
  |     Thema:   RE: Submitting value with Graphical Buttons                             
                                     |
  >----------------------------------------------------------------------------------------------------------------------------|





hi ,
             a graphical button can be put inside a hyperlink tag and
onclick() function can be called
eg.
             <a href="something" ><img src="something" onclick=fnSubmitForm
()></a>

and in javascript u can make this function :

             fnSubmitForm()
{
                         document.formname.submit();
}
i am not too sure if i am tellng u something u dont know but i guess this
shud work.


tc




-----Original Message-----
From: Manuel Lenz [mailto:LzM@viessmann.com]
Sent: Thursday, June 05, 2003 12:20 PM
To: Struts Users Mailing List
Subject: Submitting value with Graphical Buttons




Hi to all,
I still have problems with submitting values by clicking graphical buttons.
By using javascript there must be an function named "on click ...." which
sets a value into a FormBean by pressing a graphical button.
To get a forwarding page a submit must be initialized too. A link to this
page might also work.
The value must be a constant one to identiy the page from which the user
has submitted.

Has anybody an idea how this works?

Greetings,
Manuel



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org







---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message