my dog learned polymorphism*
The moose likes Struts and the fly likes Error on submitting the form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error on submitting the form" Watch "Error on submitting the form" New topic
Author

Error on submitting the form

Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Did you check on my other comment?


A good workman is known by his tools.
Priya Jotwani
Ranch Hand

Joined: Oct 30, 2002
Posts: 53
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

Joined: Sep 21, 2003
Posts: 415
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

Joined: May 28, 2004
Posts: 333
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

Joined: Feb 05, 2003
Posts: 4727

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

Joined: Oct 30, 2002
Posts: 53
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

Joined: Feb 05, 2003
Posts: 4727

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

Joined: Oct 30, 2002
Posts: 53
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error on submitting the form
 
Similar Threads
Module and Validation Framework (path error)
The server encountered an internal error (No input attribute for mapping path /login)
Not getting bean values inside IE, In firefox working fine
HTTP 404 Error
The requested resource (/....../........) is not available