This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hello all, I am trying to run a simple struts application. When I am submitting the JSP,the action form validate method is called successfully but my action class execute method is never called.
Are you completely sure the execute method is not getting called? Have you put a System.out.println statement somewhere in the method to see if it gets printed?
In my experience, when you get a blank page with the correct URL showing, that means the action didn't return a forward. This could be a simple as misspelling the forward name. For example: mapping.findForward("sucess") instead of mapping.findForward("success");
I have put System.out in the very first line of action class. Code snippet: JSP: <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
Your execute method has the wrong signature. The required parameters are all there, but they are in the wrong order. Your execute method must have exactly the following signature:
Viidhya Kishore
Ranch Hand
Joined: Jan 03, 2007
Posts: 99
posted
0
thank you very much .I got my issue solved.Thanks once again