Jsp本身有问题,或者是家里的机器和公司的机器使用的字符编码不一致,看一下文件的编码。
解决方案 »
- 如何实现自动保存系统的操作记录到数据库 和 权限控制传递参数问题?????
- 请教一个servlet的菜鸟问题
- SQL 查询语句解读 !!在线等待!!
- getHibernateTemplate() and getSession()
- 本人菜鸟~急需帮助~~关于FORM的struts标准的··当转换页面时会变成空白页
- spring用JSP方式怎样读取ModelAndView返回的数据,而不用JSTL?
- 请问大家关于连接sql server的一个问题
- 急救:struts中action路径问题,解决立即给分200
- struts多个properties,如何里面取值?
- jbuilder 有没有中文版
- hql 语句 带 in 的子查询,sql语句测试没有问题,但是hql语句查不出数据来。
- Apache 反向代理
<mytags:tag value="<%= "hi!" %>" />Instead the correct sentence would be:
<mytags:tag value='<%= "hi!" %>' />
<mytags:tag value="<%= \"hi!\" %>" />
<mytags:tag value='<%= \"name\" %>' />
...
But Tomcat 5.5 accept the first sentence. It's not a real bug but accepting a
wrong sentence allow developpers to write code which does not respect the JSP
specification. And when this code is executing in another servlet container
(Websphere 6.1 for example) it doesn't work.
Attribute value request.getParameter("id") is quoted with " which must be escaped when used within the value 看看你的引号对不对
<jsp:include page="Tools.html">
<jsp:param name="id" value="<%=request.getParameter("id")%>"/>
<jsp:param name="flag" value="mate"/>
</jsp:include>
这是源码
5楼说的方法应该可行,加\
<jsp:include page="Tools.html">
<jsp:param name="id" value="<%=request.getParameter(\"id\")%>"/>
<jsp:param name="flag" value=\"mate\"/>
</jsp:include>这样应该就可以了吧
星的和三角的就是不一样
<jsp:param name="id" value="<%=request.getParameter(\"id\")%>"/>
<jsp:param name="flag" value=\"mate\"/>
</jsp:include>