<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
This is my JSP page.
LogAction.java
//Created by MyEclipse Struts
// XSL source (default):
platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_4.0.1/xslt/JavaClass.xsl
package action;
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;
import form.UserForm;
import common.Com;
/**
* MyEclipse Struts
* Creation date: 03-25-2006
*
* XDoclet definition:
* @struts.action path="/log" name="userForm" input="/index.jsp"
scope="request" validate="true"
*/
public class LogAction extends Action {
// --------------------------------------------------------- Instance Variables
// --------------------------------------------------------- Methods
/**
* Method execute
* @param mapping
* @param form
* @param request
* @param response
* @return ActionForward
*/
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
UserForm userForm = (UserForm) form;
// TODO Auto-generated method stub
Com.execute();
return mapping.findForward("suc");
}
}