Hello,

I have a MultiPageFrom with 7 seperate JSP-Pages.
I want to validate all these pages.

When I run the application and whould test if the validation works well,
I get the following error when I hit Submit.
---
type Status report

message No input attribute for mapping path /newUser

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

When validate is false, it works correctly, without validation.
No validation is not a solution.

Some more information:
NewUserAktion snippet:
...
ActionErrors errors = newUserFrom.validate(mapping, request);

if (errors != null && errros.isEmpty()){
 if (newUserFrom.getPage() == 1)
  return mapping.findForward("user2");
...
 if (newUserFrom.getPage() == 7)
  return mapping.findForward("success");
} else {
 saveErrors(request, errors);
 if (newUserFrom.getPage() == 1)
  return mapping.findForward("user"+newUserFrom.getPage());
 if (newUserFrom.getPage() == 2)
  return mapping.findForward("user"+newUserForm.getPage());
...
}

struts-config snippet:
...

<action
 attribute="newUserFrom"
 name="newUserFrom"
 path=/newUser"
 scope="session"
 type=...
 validate="true">
  <forward
   name="success"
   path="/index.html"
   redirect="false"
   contextRelative="false"/>
  <forward
   name="user1"
   path="newuser/index.jsp"
   redirect="false"
   contextRealtive="false/>
...
</action>

newuser/index.jsp snippet:
...
<logic:messagesPresent>
 <html:messages id="error"
  <bean:write name="error"/>
 </html:messages>
</logic:messagesPresent>
<html:form action="newUser">
<html:hidden property="action"/>
<html:hidden property="page" value="1"/>
...
</html:form>

I don's see any problem, wheres my failure?

Thx

Robert Lehner
[EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to