<logic:present>标签用来判断是否存在userInfoForm对象,如果存在则输出main.jsp.welcome对应的消息(<bean:mess>标签用于输出消息)和userInfoForm的username属性(用<bean:write>标签来输出)
解决方案 »
- baidu笔试题: 1900个员工,至少有多少个员工同年同月同日生
- java web登录怎么实现,自动登陆和cookie,servlet怎么处理?
- 一个简单的hibernate3 annotation问题:自动生成主键
- ibatis 数据插入问题
- Struts高手请帮忙!--几个 初级问题。
- weblogic8.1出现的一段错误,请高手来帮忙,成功再加50分!
- hibernate in action,大家帮忙:)
- 关于tomcat配置的问题,很苦恼
- eclipse/myeclipse如何快速查看接口定义?
- Springboot表格下载--服务器历史文件不翼而飞
- 请问一个关于一个表和其他三个表同时保存的问题。
- 用eclipse开发hibernate求助
<H3>
<bean:message key="main.jsp.welcome"/> //用于输出消息,注意这个消息在ApplicationResources.properties中定义.
<bean:write name="userInfoForm" property="username"/>!//输出名字为userInfoForm的Bean的username属性.
</H3>
</logic:present>
if (userInfoForm != null){
out.println("<H3>");
out.println("message");//这个对应的消息,在struts-config.xml里面设置的<message-resources>里面指定的文件里面.怎么取,这里就不写了.
out.println(userInfoForm.username);
out.println("</H3>");
}
%>