Hello. I am new to Struts and currently developing a Struts application.
For some reason, form variables are not being transmitted upon form
submission and at the same time there is no error or stack trace that I
can reference to diagnose the error. I am not able to access the form
variables
]
Enviado el: lunes, 24 de octubre de 2005 13:34
Para: user@struts.apache.org
Asunto: Struts Form Logic Error
Hello. I am new to Struts and currently developing a Struts application.
For some reason, form variables are not being transmitted upon form
submission and at the same time
...
-Mensaje original-
De: Fulgencio Comendeiro, Eduardo
[mailto:[EMAIL PROTECTED]
Enviado el: lunes, 24 de octubre de 2005 13:42
Para: Struts Users Mailing List
Asunto: RE: Struts Form Logic Error
LoginForm is a Bean whit seter's and geter's with properties
Asad,
Is this your complete struts-config.xml? If so, you're missing form-beans
collection in it. Please add your form in the form-beans and then add the
name attribute in the action to refer to your form.
form-beans
form-bean name=testForm type=com.nms.webapp.test.TestForm/
/form-beans
and
Hello. Thanks for your help. Is form-beans essential even if I don't want
to store form data in the session? Should the values of form variables not
be available in the action class via the use of request.getParameter('x')
even if form-beans aren't used? Offcourse, I will eventually want to use
If I were you, I would first verify, that form is actually submitted
with proper values to the proper address. If you use Firefox, download
and install LiveHTTPHeaders and verify what is sent to the server. Is
your form submitted correctly?
On 10/24/05, Asad Habib [EMAIL PROTECTED] wrote:
Hello.
HttpServletRequest object is initially populated by servlet engine,
Struts does not remove information from it.
On 10/24/05, Asad Habib [EMAIL PROTECTED] wrote:
Hello. Thanks for your help. Is form-beans essential even if I don't want
to store form data in the session? Should the values of form
7 matches
Mail list logo