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" |
| |<[EMAIL PROTECTED]> |
| |05.06.2003 08:56 |
| |Bitte antworten an "Struts |
| |Users Mailing List" |
| | |
|---------+---------------------------->
>----------------------------------------------------------------------------------------------------------------------------|
|
|
| An: "Struts Users Mailing List" <[EMAIL PROTECTED]>
|
| 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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]