Print This Post

«

»

Aug
23

Struts Tutorial – Sample Action Class

package com;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class CustomerAction extends Action {

public ActionForward execute(ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception{

System.out.println(” i am hre “);
ActionForward forward = mapping.findForward(“success”);

return forward;
}

}

Related Posts with Thumbnails

1 comment

  1. Li Type says:

    I truly acknjosledge you demography the time to allotment fhis . Look forwaed too added osts from yoou

    Like or Dislike: Thumb up 0 Thumb down 0

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>