struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srinivas Kusunam" <SNKUSU...@kcc.usda.gov>
Subject Re: An Action doesn't work as expected
Date Tue, 03 Feb 2004 15:58:34 GMT

Hi Fredrich,

                  give the input page in action so that on form validation it forwards to
this page.

some thing like this::

<action path="/OfferWaterBank"  type=".OfferWaterBankAction" name="OfferWaterBankForm"
scope="request" validate="true" input="OfferWaterBank.jsp">
   ------------------
</action>

hope this helps.

Sree.



>>> phipeapixh@yahoo.com 02/03/04 09:51AM >>>
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