jsp页面使用struts2的property标签输出问题
jsp页面使用struts2的property标签输出如下内容
<s:property value="detailinfo"/> 其中,detailinfo="<strong>abc</strong>";
好像没事,问题出现了,在jsp页面上显示出了<strong>abc</strong>
一看页面源码,发现,源代码中已经变成了
< strong>写详细描述</strong>
原来是struts2标签已经自动转化了
解决办法是:用ognl表达式 ${detailinfo}
相关文档:
<jsp:include flush="true" page="Index.jsp">
<jsp:param name="username" value="<%=request.getParameter("username")%>"/>
<jsp:param name="unit" value="<%=request.getParameter("unit")%>"/>
</j ......
CGI就是web服务器辅助程序,和servlet是一个作用。
----jsp有什么-----
------------------------------------------------------
jsp可以包括什么:
1、jsp脚本(程序片段):
<% ... %>
2、jsp表达式:
<%= ... %>
3、jsp3种指令:
<%@ page attribute="xxx" %>
<%@ taglib attribut ......
500错误,classnotfound异常,代码没有问题,数据库也没问题,打了补丁,装了驱动,但是在TOMCAT上找不到那个驱动而引发的错误。。。
解决办法:首选项设置里,MyRclipse->J2EE Project->Web Project->Deployment勾上那三个驱动。 ......
1,DateTime类型数字
以下是引用片段:
当前时间System.DateTime的=新System.DateTime的();
1.1小时分钟当前日期秒,当前时间= System.DateTime.Now;
1.2检查本年度廉政年= currentTime.Year;
1.3当前月份廉政个月= currentTime.Month;
1,4采取当天廉政天= currentTime.Day;&n ......