You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Helmut Rubasch <He...@silbergrau.com> on 2001/07/10 10:41:48 UTC

"No Input Attribute..."

Hello!

I already wrote small struts-applications and never had to fill in an 
input-Attribute in the struts-config.xml file.
Now Struts complains, that the input-attribute is missing:

2001-07-10 01:37:31 - Ctx( /test): 500 R( /test+ /ServiceOrderAction.do + 
null) No input attribute for mapping path /ServiceOrderAction

My struts-config.xml looks like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts 
Configuration 1.0//EN" 
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd" >
<struts-config>
   <form-beans type="org.apache.struts.action.ActionFormBean">
     <form-bean name="serviceOrderForm" type="com.xxx.web.ServiceOrderForm"/>
   </form-beans>
   <global-forwards type="org.apache.struts.action.ActionForward">
     <forward name="ServiceOrders" path="/service-orders.jsp"/>
   </global-forwards>
   <action-mappings type="org.apache.struts.action.ActionMapping">
     <action path="/ServiceOrderAction" 
type="com.xxx.web.ServiceOrderAction" name="serviceOrderForm"/>
   </action-mappings>
</struts-config>


What did I miss here?

Thanks
Helmut Rubasch


Re: "No Input Attribute..."

Posted by Pham Thanh Quan <qu...@sdcgrp.com>.
In your struts-config.xml, try changing this :

<action path="/test/ServiceOrderAction"
type="com.xxx.web.ServiceOrderAction" name="serviceOrderForm"/>


----- Original Message -----
From: Helmut Rubasch <He...@silbergrau.com>
To: <st...@jakarta.apache.org>
Sent: Tuesday, July 10, 2001 3:41 PM
Subject: "No Input Attribute..."


> Hello!
>
> I already wrote small struts-applications and never had to fill in an
> input-Attribute in the struts-config.xml file.
> Now Struts complains, that the input-attribute is missing:
>
> 2001-07-10 01:37:31 - Ctx( /test): 500 R( /test+ /ServiceOrderAction.do +
> null) No input attribute for mapping path /ServiceOrderAction
>
> My struts-config.xml looks like this:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
> Configuration 1.0//EN"
> "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd" >
> <struts-config>
>    <form-beans type="org.apache.struts.action.ActionFormBean">
>      <form-bean name="serviceOrderForm"
type="com.xxx.web.ServiceOrderForm"/>
>    </form-beans>
>    <global-forwards type="org.apache.struts.action.ActionForward">
>      <forward name="ServiceOrders" path="/service-orders.jsp"/>
>    </global-forwards>
>    <action-mappings type="org.apache.struts.action.ActionMapping">
>      <action path="/ServiceOrderAction"
> type="com.xxx.web.ServiceOrderAction" name="serviceOrderForm"/>
>    </action-mappings>
> </struts-config>
>
>
> What did I miss here?
>
> Thanks
> Helmut Rubasch
>
>


Re: "No Input Attribute..."

Posted by Helmut Rubasch <He...@silbergrau.com>.
Hi again!

I think i found it myself... its because of the validate-method in the form...

Helmut Rubasch

At 01:41 7/10/2001 -0700, you wrote:
>Hello!
>
>I already wrote small struts-applications and never had to fill in an 
>input-Attribute in the struts-config.xml file.
>Now Struts complains, that the input-attribute is missing:
>
>2001-07-10 01:37:31 - Ctx( /test): 500 R( /test+ /ServiceOrderAction.do + 
>null) No input attribute for mapping path /ServiceOrderAction
>
>My struts-config.xml looks like this:
>
><?xml version="1.0" encoding="ISO-8859-1"?>
><!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts 
>Configuration 1.0//EN" 
>"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd" >
><struts-config>
>   <form-beans type="org.apache.struts.action.ActionFormBean">
>     <form-bean name="serviceOrderForm" type="com.xxx.web.ServiceOrderForm"/>
>   </form-beans>
>   <global-forwards type="org.apache.struts.action.ActionForward">
>     <forward name="ServiceOrders" path="/service-orders.jsp"/>
>   </global-forwards>
>   <action-mappings type="org.apache.struts.action.ActionMapping">
>     <action path="/ServiceOrderAction" 
> type="com.xxx.web.ServiceOrderAction" name="serviceOrderForm"/>
>   </action-mappings>
></struts-config>
>
>
>What did I miss here?
>
>Thanks
>Helmut Rubasch