严重: Servlet.service() for servlet [jsp] in context with path [/bookstore] threw exception [/menu.jsp(2,53) The JSP specification requires that an attribute name is preceded by whitespace] with root cause
org.apache.jasper.JasperException: /menu.jsp(2,53) The JSP specification requires that an attribute name is preceded by whitespace我的menu.jps的源代码为:
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:iterator value="#request['catalogs']"id="catalog">
<LI>
<a href="browseBook.action?catalogid=<s:property value="#catalog.catalogid"/>"target=_self>
<s:property value="#catalog.catalogname"/>
</a>
</LI>
</s:iterator>
org.apache.jasper.JasperException: /menu.jsp(2,53) The JSP specification requires that an attribute name is preceded by whitespace我的menu.jps的源代码为:
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:iterator value="#request['catalogs']"id="catalog">
<LI>
<a href="browseBook.action?catalogid=<s:property value="#catalog.catalogid"/>"target=_self>
<s:property value="#catalog.catalogname"/>
</a>
</LI>
</s:iterator>
解决方案 »
- 如何将spring运用于非web项目里边,比如说管理swing项目
- struts1+hibernate+spring怎么调用Oracle函数
- 怎么控制treeview开始只加载根节点,点击一级子节点加载一级
- JBOSS启动在MYECLIPSE下为什么无从控制台输出?
- 北大青鸟出来的能吃开吗?
- JSP的内置对象是什么?
- spring 事务 不回滚
- TOMCAT连接池的问题。
- 一个JAVA的面试题~!各位前辈帮我看看~!在线急等
- 自己做的音乐在线播放网站,英文名字的音乐能播放,中文的音乐名字不能播放,总是抱404错误,说找不到地址
- 关于mysql的中文写入问题~~~求教高手解答!
- xfire1.2开发WS报错 org.codehaus.xfire.handler.DefaultFaultHandler invoke, Invalid operation,binding.Wrap
这句话的翻译:JSP规范要求的属性名称前面要有空白你看看是不是少了个空格:应该是id前面要加一个空格 <s:iterator value="#request['catalogs']" id="catalog">
换成<s:iterator value="#request.catalogs" var="catalog">
试一下