struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damm, Gary" <ga...@qualcomm.com>
Subject Validator error...
Date Tue, 07 Jan 2003 02:14:45 GMT
Can anyone explain this error?  The action I'm mapping the validation to
has a form with a "name" attribute which is what I'm validating so I'm
not sure why I'm getting the "no input attribute" error.

HTTP Status 500 - No input attribute for mapping path /CreateGroup
------------------------------------------------------------------------
--------
type Status report

message No input attribute for mapping path /CreateGroup

description The server encountered an internal error (No input attribute
for mapping path /CreateGroup) that prevented it from fulfilling this
request.
------------------------------------------------------------------------
--------
Apache Tomcat/4.1.12

Validation.xml:
<form-validation>
   <global>
      <constant>
        <constant-name>phone</constant-name>
        <constant-value>^\(?(\d{3})\)?[-| ]?(\d{3})[-|
]?(\d{4})$</constant-value>
      </constant>         	   
      <constant>
        <constant-name>zip</constant-name>
        <constant-value>^\d{5}\d*$</constant-value>
      </constant>         	   
   </global>
   <formset>
      <form name="/CreateGroup">
         <field    
           property="name"
           depends="required,mask">
           <arg0 key="label.name"/>
           <var>
             <var-name>mask</var-name>
             <var-value>^[a-zA-Z]*$</var-value>
           </var>         	   
         </field>
      </form>            
   </formset>   
</form-validation>

Struts-config.xml:
...
<form-bean name="GroupForm"
type="org.apache.struts.validator.DynaValidatorActionForm">
    <form-property name="type" type="java.lang.String"/>
    <form-property name="name" type="java.lang.String"/>
    <form-property name="description" type="java.lang.String"/>
    <form-property name="id" type="java.lang.String"/>
    <form-property name="version" type="java.lang.String"/>
    <form-property name="carrierId" type="java.lang.String"/>
    <form-property name="redirectUrl" type="java.lang.String"/>
    <form-property name="flags" type="java.lang.String"/>
    <form-property name="mask" type="java.lang.String"/>
    <form-property name="url" type="java.lang.String"/>
    </form-bean>
...
<action path="/CreateGroup" name="GroupForm" scope="request"
type="com.qualcomm.qdc.groupmgr.web.action.CreateGroupAction">
<forward name="editGroup" path="/groups/EditGroup.jsp"
redirect="false"/>
<forward name="editPGroup" path="/groups/EditPGroup.jsp"
redirect="false"/>
</action>
...
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
    </plug-in>

Log:
2003-01-06 17:58:11,622 DEBUG [Thread-3]
<apache.commons.beanutils.BeanUtils> (B
eanUtils.java:785) -
setProperty(DynaActionForm[dynaClass=GroupForm,redirectUr
l=<NULL>,url=<NULL>,name=,id=<NULL>,flags=<NULL>,version=<NULL>,type=G,d
escripti
on=,carrierId=<NULL>,mask=<NULL>], id, [])
2003-01-06 17:58:11,622 DEBUG [Thread-3]
<apache.commons.beanutils.ConvertUtils>
 (ConvertUtils.java:363) - Convert string '' to class 'java.lang.String'
2003-01-06 17:58:11,622 DEBUG [Thread-3]
<apache.commons.beanutils.ConvertUtils>
 (ConvertUtils.java:371) -   Using converter
org.apache.commons.beanutils.conver
ters.StringConverter@298932
2003-01-06 17:58:11,622 DEBUG [Thread-3]
<apache.struts.action.RequestProcessor>
 (RequestProcessor.java:891) -  Validating input form properties
2003-01-06 17:58:11,622 DEBUG [Thread-3]
<apache.commons.validator.Validator> (?
:?) - Order
         ValidatorAction name=required  depends=null
         ValidatorAction name=maxlength  depends=required
         ValidatorAction name=minlength  depends=required
         ValidatorAction name=long  depends=required
         ValidatorAction name=date  depends=required
         ValidatorAction name=float  depends=required
         ValidatorAction name=short  depends=required
         ValidatorAction name=integer  depends=required
         ValidatorAction name=email  depends=required
         ValidatorAction name=creditCard  depends=required
         ValidatorAction name=double  depends=required
         ValidatorAction name=mask  depends=required
         ValidatorAction name=byte  depends=required
         ValidatorAction name=range  depends=required,integer

2003-01-06 17:58:11,632 DEBUG [Thread-3]
<apache.struts.util.PropertyMessageReso
urces> (PropertyMessageResources.java:176) -
getMessage(en_US,label.name)
2003-01-06 17:58:11,632 DEBUG [Thread-3]
<apache.struts.util.PropertyMessageReso
urces> (PropertyMessageResources.java:267) - loadLocale(en_US)
2003-01-06 17:58:11,632 DEBUG [Thread-3]
<apache.commons.validator.Validator> (?
:?) - name=required  size=14
2003-01-06 17:58:11,632 DEBUG [Thread-3]
<apache.commons.validator.Validator> (?
:?) - after remove - name=required  size=13
2003-01-06 17:58:11,632 DEBUG [Thread-3]
<apache.commons.validator.Validator> (?
:?) - ValidatorAction name=maxlength  depends=required
2003-01-06 17:58:11,632 DEBUG [Thread-3]
<apache.commons.validator.Validator> (?
:?) - ValidatorAction name=maxlength  depend=required  bContinue=false
2003-01-06 17:58:11,632 DEBUG [Thread-3]
<apache.commons.validator.Validator> (?
:?) - Order

2003-01-06 17:58:11,642 DEBUG [Thread-3]
<apache.struts.action.RequestProcessor>
 (RequestProcessor.java:913) -   Validation failed but no input form
available



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message