mainMenu到底是什么

lilinew 2009-08-14 01:22:27
这个jsp文件的 mainMenu到底是社么

<%@ include file="taglibs.jsp" %>
<app:validateSession/>
<jsp:useBean id="user" scope="session" type="addressbook.model.UserBean"/>
<center>
<table border="0">
<tr><td>
<bean:message key="mainMenu.description"/>
</td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="0">

<tr><td><li><html:link forward="search"><bean:message key="mainMenu.search"/></html:link></li></td></tr>
<tr><td><li><html:link forward="displayall"><bean:message key="mainMenu.displayall"/></html:link></li></td></tr>
<tr><td><li><html:link forward="insert"><bean:message key="mainMenu.insert"/></html:link></li></td></tr>
<tr><td><li><html:link forward="logoff"><bean:message key="mainMenu.logoff"/></html:link></li></td></tr>

</table>
</center>
...全文
853 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
lilinew 2009-08-14
  • 打赏
  • 举报
回复
资源文件如何在工程里找到。
(不用看视频啦 ,都开始写程序啦)
sainer 2009-08-14
  • 打赏
  • 举报
回复
在资源文件里配置好的字段 mainMenu.description
要学的话,看struts1视频吧
lilinew 2009-08-14
  • 打赏
  • 举报
回复
他必须在 
<!-- ========== Global Forward Definitions ============================== -->
<global-forwards>
<forward name="logoff" path="/logoff.do"/>
<forward name="logon" path="/logon.jsp"/>
<forward name="success" path="/mainMenu.jsp"/>
<forward name="search" path="/search.jsp"/>
<forward name="displayall" path="/displayall.do"/>
<forward name="insert" path="/insert.jsp"/>
<forward name="mainMenu" path="/mainMenu.jsp"/>
<forward name="confirmation1" path="/confirmation1.jsp"/>
<forward name="success1" path="/display.jsp"/>
</global-forwards>

里面定义好。

java工程里 的 ApplicationResources.properies
 这个文件不知道如何使用 ???





lilinew 2009-08-14
  • 打赏
  • 举报
回复
不是 , 是资源里定义的一些字符串 
ApplicationResources.properies
 这个文件不知道如何使用 ???
anhy 2009-08-14
  • 打赏
  • 举报
回复
mainMenu应该是UserBean里面的变量

62,623

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧