This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Error on submitting the form

 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check on my other comment?
 
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
 
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
 
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
Posts: 4727
Mac VI Editor Ruby
  • 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
Posts: 4727
Mac VI Editor Ruby
  • 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
 
This tiny ad is suggesting that maybe she should go play in traffic.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic