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

struts页面显示有关问题

2012-01-30 
struts页面显示问题%@pagecontentType text/htmlcharsetGBK %%@tagliburi /WEB-INF/struts-bean

struts页面显示问题
<%@   page   contentType= "text/html;   charset=GBK "   %>
<%@   taglib   uri= "/WEB-INF/struts-bean.tld "   prefix= "bean "   %>
<%@   taglib   uri= "/WEB-INF/struts-html.tld "   prefix= "html "   %>
<%@   taglib   uri= "/WEB-INF/struts-logic.tld "   prefix= "logic "   %>
<jsp:include   flush= "false "   page= "isLogin.jsp "/>
<html>
<head>
<title>
jsp1
</title>
<script   type= " "   language= "javascript "   src= "js/public.js "> </script>
</head>
<body   bgcolor= "#ffffff ">
<center>
    <table>
        <tr>
            <th>
                <a   href= "BooksPageAction.do "> <bean:message   key= "jsp.user.index.menu.scanbooks "/> </a>
            </th>
            <th>
                <a   href= "LendBookListAction.do "> <bean:message   key= "jsp.user.index.menu.scanlendbook "/> </a>
            </th>
            <th>
                <a   href= "UserPunishPageAction.do?page=1 "> <bean:message   key= "jsp.user.index.menu.scanpunish "/> </a>
            </th>
            <th>
                <a   href= "index.jsp?action=4 "> <bean:message   key= "jsp.user.index.menu.chengeinfo "/> </a>
            </th>
            <th>
                <a   href= "OutAction.do "> <bean:message   key= "jsp.user.index.menu.loginout "/> </a>
            </th>
        </tr>
    </table>
    <table>
        <tbody>
        <logic:equal   parameter= "action "   value= "1 ">
        <jsp:include   flush= "false "   page= "booklist.jsp "/>
        </logic:equal>
        <logic:equal   parameter= "action "   value= "2 ">
      <jsp:include   flush= "false "   page= "lendlist.jsp "/>
        </logic:equal>
        <logic:equal   parameter= "action "   value= "3 ">
      <jsp:include   flush= "false "   page= "punishlist.jsp "/>
        </logic:equal>
        <logic:equal   parameter= "action "   value= "4 ">


        <jsp:include   flush= "false "   page= "editinfo.jsp "/>
        </logic:equal>
        </tbody>
    </table>
</center>
</body>
</html>
启动tomcat5.0.28后,无法显示页面?浏览器中什么都没有

[解决办法]
Missing message for key "jsp.user.login.title "

错误很明显的啊,你的struts标签bean:message key=jsp.user.login.title 有问题
[解决办法]
Applicationresource_zh.properties文件在classes\com\wenbb\struts\下面吗??

热点排行