Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error on submitting the form

 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check on my other comment?
 
Priya Jotwani
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marc,

I saw you other comment too but even that doesn't quit fit into my situation.This is because I override a Base Action class which has its Execute method signature as below :

public String exec(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response).

Thanks,
Priya
 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Had u written any validate method in ur formbean because the default value of validate will be true and by any chance if u had provided implemenation for validate then it will execute taht
 
Kedar Dravid
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that u need to specify an input attribute in your action mapping. This attribute is used to decide where to forward control to if there is a validation error. Probably some validations that u are doing are failing, and the absence of the input attribute is creating the problem.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if validate="false" does not correct the problem (which we've already determined) then the validate method of the form is NOT the culprit.

I would do a heavy examination of the Base Action. It might be grabbing the input forward if an exception gets caught or if the subclass requested a forward that does not exist.
 
Priya Jotwani
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am facing a problem in my Struts application. When I Submit the page, it gives me an error message as below :

� SRVE0026E: [Servlet Error]-[action]: com.ibm.servlet.engine.webapp.WebAppErrorReport: No input attribute for mapping path /ReportAttribute �

My JSP Code snippet is as below:

<html:form name="ClientReportingForm" type="com.fmr.fiis.ppc.cda.form.ClientReportingForm" method="Post" action="ReportAttribute.do" >

function submit_action() {
document.ClientReportingForm.subAction.value = 'next';
alert("The action is"+document.ClientReportingForm.action);
alert("The subaction is"+document.ClientReportingForm.subAction.value);
document.ClientReportingForm.submit();
}

This is my Struts-config.xml entry.

<action path="/ReportAttribute" type="com.fmr.fiis.ppc.cda.action.ClientReportingAction" name="ClientReportingForm" scope= "request">
<forward name="success" path="/WEB-INF/jsp/cda/SelectFunds.jsp"/>
<forward name="cancel" path="/WEB-INF/jsp/cda/error.jsp"/>
<forward name="error" path="/WEB-INF/jsp/cda/error.jsp"/>
</action>

Any Idea as to why it gives this error. I have tried giving validat=�false� also. If I supply the input attribute in <action mapping>, it always goes to that JSP and not my Resultant Page.

Please let me know as to where I am going wrong.

Thanks,
Priya
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hm... validate="false" SHOULD do the trick.

The Action might have mapping.getInputForward() instead of mapping.findForward(request) which would cause the problem.
 
Priya Jotwani
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marc,

I had set validate="false" but it doesn't help. I tried removing validate attribute also from the action mapping but to no avail.
What else cud be the reason

Thanks,
Priya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic