struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramachandran" <ramachand...@summitworks.com>
Subject RE: An Action doesn't work as expected
Date Tue, 03 Feb 2004 16:05:43 GMT
In your Action mapping tag,

                    u have to give the input="/xx.jsp" to redirect the error
to your application. then only it will work.


-----Original Message-----
From: f f [mailto:phipeapixh@yahoo.com]
Sent: Tuesday, February 03, 2004 9:21 PM
To: struts-user@jakarta.apache.org
Subject: An Action doesn't work as expected


Hi gurus,

I'm just learning to develop web application with
Struts. All Action works well,
except SubmitCustomerAction. I've tried to find the
problem but I can't find it so far.

Here is some relevant information

on jsp page :

<html:form action="/submitCustomer" focus="name"
	onsubmit="return
validateCustomerRegistrationForm(this);">
	<table>
		<tr>
		<!-- more html and jsp tags -->
</html:form>

on struts-config.xml :

  <form-beans>
    <form-bean
      name="CustomerRegistrationForm"
      type="proj.web.form.CustomerRegistrationForm"
    />

    <!-- more form-beans -->
 	</form-beans>

 	<action-mappings>
    <action
      path="/submitCustomer"
      type="proj.web.action.SubmitCustomerAction"
      name="CustomerRegistrationForm"
      scope="request"
      unknown="false"
      validate="true"
    >
      <forward
        name="success"
        path="/order/orderSuccess.jsp"
        redirect="false"
      />
      <forward
        name="failure"
        path="/common/error.jsp"
        redirect="false"
      />
      <forward
        name="trySubmitOrder"
        path="/trySubmitOrder.do"
        redirect="false"
      />
    </action>
    <!-- more actions -->
 	</action-mappings>

tomcat gives this error :
The server encountered an internal error (No input
attribute for mapping path /submitCustomer)
that prevented it from fulfilling this request.

and from jboss server.log:
2004-02-03 22:01:52,180 DEBUG
[org.apache.struts.util.RequestUtils]  Looking for
ActionForm bean instance in scope 'request' under
attribute key 'CustomerRegistrationForm'
2004-02-03 22:01:52,180 DEBUG
[org.apache.struts.util.RequestUtils]  Creating new
ActionForm instance of type
'proj.web.form.CustomerRegistrationForm'
2004-02-03 22:01:52,180 DEBUG
[org.apache.struts.util.RequestUtils]  -->
proj.web.form.CustomerRegistrationForm@95ddb5
2004-02-03 22:01:52,180 DEBUG
[org.apache.struts.action.RequestProcessor]  Storing
ActionForm bean instance in scope 'request' under
attribute key 'CustomerRegistrationForm'
2004-02-03 22:01:52,180 DEBUG
[org.apache.struts.action.RequestProcessor]
Populating bean properties from this request
2004-02-03 22:01:52,180 DEBUG
[org.apache.struts.action.RequestProcessor]
Validating input form properties
2004-02-03 22:01:52,390 DEBUG
[org.apache.struts.util.PropertyMessageResources]
getMessage(en,customer.email)
2004-02-03 22:01:52,390 DEBUG
[org.apache.struts.util.PropertyMessageResources]
loadLocale(en)
2004-02-03 22:01:52,431 DEBUG
[org.apache.struts.action.RequestProcessor]
Validation failed but no input form available

I use Jboss 3.2.2,Apache-Tomcat
4.1.27-LE-jdk14,Jakarta-Struts 1.1 and JDK 1.4.0-b92.

Something wrong ? Please help.

Thanks for your help.
Fredrich.


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

---------------------------------------------------------------------
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