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
roperty value="reportedUserName"/></td>
<td><s
roperty value="dateStamp"/></td>
<td><s
roperty value="supplyment"/></td>
<td><s
roperty value="userName"/></td>
<td><a href="<s:url action='RejectUser'><s
aram name='id'
value='<s
roperty value='id'/>'/></s:url>" >aaa</a>
<a href="<s:url action='RatifyUser'><s
aram name='id'
value='<s
roperty 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
aram name='id'
value='<s
roperty value='id'/>'/></s:url>" >reject</a>
<a href="<s:url action='RatifyUser'><s
aram name='id'
value='<s
roperty value='id'/>'/></s:url>" >ratify</a>
How to solve this problem?
<%@ 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
<td><s
<td><s
<td><s
<td><a href="<s:url action='RejectUser'><s
value='<s
<a href="<s:url action='RatifyUser'><s
value='<s
</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
value='<s
<a href="<s:url action='RatifyUser'><s
value='<s
How to solve this problem?