Hi,
DEFANGED_ was added by the e-mail client I use,
it�s not in the original code.
My code is that:
<a href="#" style="text-decoration:none;"
onclick="javascript:document.testForm.fieldname.value='page.jsp';
document.testForm.submit()">
Still the same question: Where is the error? How do I save a value in an
FormBean by clicking a button?
Manuel
|---------+---------------------------->
| | |
| | |
| | |
| |"Vijay Pawar" |
| |<[EMAIL PROTECTED]> |
| |05.06.2003 11:04 |
| |Bitte antworten an "Struts |
| |Users Mailing List" |
| | |
|---------+---------------------------->
>----------------------------------------------------------------------------------------------------------------------------|
|
|
| An: "Struts Users Mailing List" <[EMAIL PROTECTED]>
|
| Kopie:
|
| Thema: RE: RE: Submitting value with Graphical Buttons
|
>----------------------------------------------------------------------------------------------------------------------------|
Hi,
why does ur following code contain DEFANGED_
Is this in ur actual code also? if it is then scripts will not work.
try removing all instances of DEFANGED_
cheers !
Vijay
>
> 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="#" DEFANGED_STYLE="text-decoration:none;"
> DEFANGED_OnClick="DEFANGED_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
> DEFANGED_Onclick() function can be called
> eg.
> <a href="something" ><img src="something"
> DEFANGED_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]
>
>
---------------------------------------------------------------------
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]