• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help on struts

 
prakash china
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to struts

I am trying to map a action class with another action class having different form �..

The sample config is

<action path="/ApplicationApprovalAction"
type="com.abc.manage.web.ApplicationApprovalAction"
name="serForm"
scope="session">
<forward name="success" path="/displayPendingApplicationAction.do"/>
</action>


<action path="/displayPendingApplicationAction"
type="com.abc.manage.web.DisplayPendingApplicationsAction"
name="loginForm"
scope="session">
<forward name="success" path="/ListPendingReimbursementApprovals.jsp"/>
</action>

The error I am getting is

HTTP Status 500 - No input attribute for mapping path /displayPendingApplicationAction

Please let me know if im doing any mistale�








[ November 27, 2006: Message edited by: Prakash.C ]
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess is that you need to add validate="false" attributes to one or more of your actions. By default validation is true, so I suspect that validation is failing and you are getting this error because there is not an input attribute.

- Brent
 
prakash china
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Brent , when I set the attribute validation = �false� I am not getting that error�.
But I want certain data�s to be transferred from one form bean to another form bean ( like serform to loginfor )� how can that be done �
-Prakash
 
Christian Nash
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
loginForm.setValue(serForm.getvalue()); in your ApplicationApprovalAction class.

[ November 28, 2006: Message edited by: Christian Nash ]
 
archana vishwanath
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check here for a similar example
http://javafasttrack.com/FirstStrutsAppl.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic