首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

为什么小弟我的这个框架加了登陆判断后显示不出来呢

2011-11-19 
为什么我的这个框架加了登陆判断后显示不出来呢?!DOCTYPEhtmlPUBLIC-//W3C//DTDXHTML1.0Frameset//EN

为什么我的这个框架加了登陆判断后显示不出来呢?
<!DOCTYPE   html   PUBLIC   "-//W3C//DTD   XHTML   1.0   Frameset//EN "   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd ">
<html   xmlns= "http://www.w3.org/1999/xhtml ">
<%@   include   file= "checkvalid.jsp "   %>
<head>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 "   />
<title> </title>
</head>

<frameset   rows= "126,* "   cols= "* "   frameborder= "no "   border= "0 "   framespacing= "0 ">
    <frame   src= "top.html "   name= "topFrame "   scrolling= "No "   noresize= "noresize "   id= "topFrame "   title= "top "   />
    <frameset   rows= "* "   cols= "257,* "   framespacing= "0 "   frameborder= "no "   border= "0 ">
        <frame   src= "left.jsp "   name= "leftFrame "   scrolling= "No "   noresize= "noresize "   id= "leftFrame "   title= "left "   />
        <frame   src= "main.jsp "   name= "rightFrame "   id= "rightFrame "     />
    </frameset>
</frameset>
<noframes> <body>
</body>
</noframes> </html>
在TOMCAT下显示不出来

哪个checkvalid.jsp页面如下:
<%@page   contentType= "text/html;   charset=gb2312 "%>
<%request.setCharacterEncoding( "gb2312 ");%>
<%@   page   language= "java "   import= "java.util.*,java.sql.* "   pageEncoding= "gb2312 "%>

<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN ">
<html>
    <head>
     
       
        <title> My   JSP   'checkvalid.jsp '   starting   page </title>
       
        <meta   http-equiv= "pragma "   content= "no-cache ">
        <meta   http-equiv= "cache-control "   content= "no-cache ">
        <meta   http-equiv= "expires "   content= "0 ">
        <meta   http-equiv= "keywords "   content= "keyword1,keyword2,keyword3 ">
        <meta   http-equiv= "description "   content= "This   is   my   page ">
       
        <!--
        <link   rel= "stylesheet "   type= "text/css "   href= "styles.css ">
        -->
    </head>
   
    <body>
        <!--验证用户是否经过有效检查   -->
        <%
         
            if(   session.getAttribute( "login ")   ==   null   ||   !session.getAttribute( "login ").equals( "ok "))   {


            response.sendRedirect( "index.html ");
           
            }
          %>    
    </body>
</html>
那位高手帮我看下

[解决办法]
看看显示的页面的源代码啊,是不是正确的页面~
[解决办法]
你把response.sendRedirect( "index.html ");换成out.print( " <script language= 'javascript '> location= 'index.html '; </script> \n ");
试试看呢

热点排行