File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Error on submitting the form Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply 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: 4695

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: 4695

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: 4695

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
 
 
subject: Error on submitting the form
 
Threads others viewed
HTTP 404 Error
The server encountered an internal error (No input attribute for mapping path /login)
The requested resource (/....../........) is not available
Module and Validation Framework (path error)
Not getting bean values inside IE, In firefox working fine
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture