页面过期的问题!可以在页面上判断一下就可以了!
比如写一个Tag:
部分代码如下:
public int doEndTag() throws JspException {
    
     // Is there a valid user logged on?
     boolean valid = false;
     HttpSession session = pageContext.getSession();
     if ((session != null) && (session.getAttribute(name) != null)) {
         valid = true;
        }
    
        // Forward control based on the results
        if (valid) {
            return (EVAL_PAGE);
        } else {
            ModuleConfig config =
                (ModuleConfig) pageContext.getServletContext().getAttribute(
                    org.apache.struts.Globals.MODULE_KEY);
            
                try {
pageContext.forward(config.getPrefix() + page);
                    // pageContext.forward(config.getPrefix() + page+(forward!=null?("?forward="+forward):""));
                } catch (ServletException e) {
                    throw new JspException(e.toString());
                } catch (IOException e) {
                    throw new JspException(e.toString());
                }
             
            return (SKIP_PAGE);
        }
    
    }