如题目上的,这里的error无法保存起来,以资与无法返回到页面??这两行有什么问题??
package hello;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
// import javax.servlet.http.HttpSession;
// import javax.servlet.RequestDispatcher;
// import javax.servlet.ServletException;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;
//import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.util.MessageResources;
/**
* MyEclipse Struts
* Creation date: 09-29-2004
*
* XDoclet definition:
* @struts:action scope="request" validate="true"
*/
public final class HelloAction extends Action {
// --------------------------------------------------------- Instance Variabl
es
// --------------------------------------------------------- Methods
/**
* Method execute
* @param mapping
* @param form
* @param request
* @param response
* @return ActionForward
*/
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response ) throws Exception
{
MessageResources messages = getResources( request );
ActionMessages errors = new ActionMessages();
//ActionErrors errors = new ActionErrors();