You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Vankineni, Naga X" <na...@groton.pfizer.com> on 2002/10/28 21:09:40 UTC
form and action in struts-config
Can anyone explain me why I get this problem...
I have my action and form defined in the struts-config.xml..
Now in my jsp page when I enter a value in the text-box and try to see the
value in my action using debugger, I don't see that value in my form and all
i see is the reset value defined in the form bean.
Somehow anyvalues I enter in my jsp pages aren't getting moved to the form
and they my form just has the reset values defined initally.
Can someone explain this to me..
Naga
860-686-1643
-----Original Message-----
From: Madel,Kurt [mailto:kmadel@csmi.com]
Sent: Monday, October 28, 2002 2:55 PM
To: 'Struts Users Mailing List'
Subject: RE: Submit Using <html:link> and <html:javascript>
If anyone is interested, I figured this out. Of course this is a basic
JavaScript problem so I understand not getting a response on the Struts
list. Never the less, I feel that it pertains enough for a solution to be
submitted.
onSubmit is not called if you use JavaScript to submit a form. Rather, you
must call it yourself. So an <html:link> that submits a form, and used the
Struts Validator client side JavaScript might look like:
<html:link href="#" onclick="javascript:if
(document.forms[0].onsubmit())document.forms[0].submit()">
Submit <bean:write name="project" property="title" />
</html:link>
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-----Original Message-----
From: Madel,Kurt [mailto:kmadel@csmi.com]
Sent: Thursday, October 24, 2002 9:55 AM
To: 'Struts Users Mailing List'
Subject: Submit Using <html:link> and <html:javascript>
This may seem somewhat trivial. Never the less, look and feel is very
important to a web site. Before using Struts, we have always used
hyperlinks to submit forms. I am able to submit a Struts <html:form> with
an <html:link> tag, but it bypasses the client side validation created by
the Validation plug-in. The client side validation works fine if I use an
<html:submit> button. I would be greatly appreciative to hear if and how
anyone has gotten the <html:link> and client side <html:javascript> tags to
work together in submitting an <html:form>.
I am using the struts.jar from the 10/22 nightly build.
Thanks
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>