struts报错问题!
package strutsdemo;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import java.io.IOException;
import javax.servlet.ServletException;
public class LoadAction extends Action {
public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
throws ServletException, IOException {
/**@todo: complete the business logic here, this is just a skeleton.*/
LoadActionForm loadActionForm = (LoadActionForm) actionForm;
if (loadActionForm.getEmail().equals("1"))
{
HttpSession session=httpServletRequest.getSession();
session.setAttribute("email",loadActionForm.getEmail());
return (actionMapping.findForward("loadOK"));
}
if (!loadActionForm.getEmail().equals("1"))
{
return (actionMapping.findForward("error"));
}
return actionMapping.findForward("error");
}
}
怎么没有什么提示呢?