A struts 2 label error

T

tenxian

Below is my JSP code.
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>


<title>aaaaa</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords"
content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->

</head>

<body>
<font color="red"><s:actionmessage/></font>
<table>
<tr>
<td><b>aaa
aaa</b></td>
<td><b>aaa</b></td>
<td><b>aaa</b></td>
<td><b>aaa</b></td>
<td><b>aaa</b></td>
</tr>
<s:iterator id="showReport" value="addList">
<tr>
<td><s:property value="reportedUserName"/></td>
<td><s:property value="dateStamp"/></td>
<td><s:property value="supplyment"/></td>
<td><s:property value="userName"/></td>
<td><a href="<s:url action='RejectUser'><s:param name='id'
value='<s:property value='id'/>'/></s:url>" >aaa</a>
<a href="<s:url action='RatifyUser'><s:param name='id'
value='<s:property value='id'/>'/></s:url>" >aaa</a>
</td>
</tr>
</s:iterator>
</table>
</body>
</html>


Preview it in tomcat, an error comes out.

org.apache.jasper.JasperException: /com_admin/showAllEncash.jsp(41,91)
equal symbol expected

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:
40)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:
407)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:
88)
org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:
195)
org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:
150)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:
1234)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:
1449)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1657)

org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:
1272)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:
1449)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1657)

org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:
1272)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:
1449)
org.apache.jasper.compiler.Parser.parse(Parser.java:133)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:
216)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:
103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:
167)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:
566)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
317)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:
266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:
413)

com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:
119)

com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:
55)

org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:
99)


note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.14 logs.

It is said that the following two lines of code is the source of
error.
<a href="<s:url action='RejectUser'><s:param name='id'
value='<s:property value='id'/>'/></s:url>" >reject</a>
<a href="<s:url action='RatifyUser'><s:param name='id'
value='<s:property value='id'/>'/></s:url>" >ratify</a>


How to solve this problem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top