<html:link page="readMatch.do">制定门票 </html:link>
试试这样!
试试这样!
解决方案 »
- 还是我,求解决。求救。啊新手求救。
- oracle+s2sh hibernate注解 id使用序列自增出现问题
- java字符串操作
- 求救!~上传一个xml文件判断一个是wsdl格式
- 请问CORBA用DSI方式编写服务器如何设置数组和结构类型的参数和返回值
- extjs 保存状态问题
- 关于 appfuse(hibernate+spring)多表查询
- Spring + hibernate, MyEclipse + weblogic7,org.dom4j.DocumentException: Tried all: '1' addresses......???
- eclipse+myeclipse+jboss 开发ejb 如何配置啊 急
- 关于数据库批量插入操作的实现方式比较
- 究竟要学到什么程度才能看得懂一些开源项目的源码。。。。。
- 请教一个释放Spring容器资源的问题。
<a href="readMatch.do">制定门票 </a>
但是又出现错误了
org.apache.jasper.JasperException: /readok.jsp(1,64) quote symbol expected
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:198)
org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:143)
org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:156)
org.apache.jasper.compiler.ParserController.getPageEncodingForJspSyntax(ParserController.java:434)
org.apache.jasper.compiler.ParserController.determineSyntaxAndEncoding(ParserController.java:377)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:169)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)/readok.jsp(1,64) quote symbol expected查过后 大意是说缺少引号。下面是该jsp的代码:<html:html>
<head>
<title>管理员制定门票页面</title>
</head>
<%
String tmp = (String)session.getAttribute("curr_admin");
if(tmp == null){
%>
<jsp:forward page="/index.jsp"></jsp:forward>
<%
}
List list = (List)request.getAttribute("tickets");
Iterator it =(Iterator)list.iterator();
Match match = null;
String match_id = null, str = null, year = null, month = null, day = null;
int y = 2008, m = 1, d = 1;
%>
<body>
<html:form action="/createTicket">
<table width="97%" height="495" border="1">
<tr>
<td height="280" align="center"><table width="647" height="595" border="5">
<tr>
<td width="23%" height="73" align="center">选择赛事</td>
<td width="77%">
<html:select property="match_id" multiple="false" size="1">
<%
while(it.hasNext()){
match = (Match)it.next();
match_id = match.getId().intValue()+"";
str = match.getMatchNo();
%>
<html:option value="<%=match_id %>"><%=str %></html:option>
<%
}
%>
</html:select>
</td>
</tr>
<tr>
<td width="23%" height="73" align="center">门票总数</td>
<td width="77%">
<html:text property="total"></html:text>
</td>
</tr>
<tr>
<td width="23%" height="73" align="center">坐席等级</td>
<td width="77%">
<html:select property="type" multiple="false" size="1">
<html:option value="c">普通席A</html:option>
<html:option value="d">普通席B</html:option>
<html:option value="e">普通席C</html:option>
</html:select>
</td>
</tr>
<tr>
<td width="23%" height="73" align="center">售票地点</td>
<td width="77%">
<html:text property="sell_place"></html:text>
</td>
</tr>
<tr>
<td width="23%" height="73" align="center">价格</td>
<td width="77%"><html:text property="price"></html:text>
</td>
</tr>
<tr>
<td height="69" align="center">设定售票时间</td>
<td align="center"><table width="95%" border="1">
<tr>
<td height="34">
<html:select property="year" multiple="false" size="1">
<%
year = ""+y;
%>
<html:option value="<%=year %>"></html:option>
</html:select>
年</td>
<td>
<html:select property="month" multiple="false" size="1">
<%
while(m <= 12){
month = ""+m;
%>
<html:option value="<%=month %>"></html:option>
<%
m++;
}
%>
</html:select>
月
</td>
<td>
<html:select property="day" multiple="false" size="1">
<%
while (d <= 31){
day = ""+d;
%>
<html:option value="<%=day %>"></html:option>
<%
d++;
}
%>
</html:select>
日
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" align="center"><table width="58%" height="37" border="0" cellspacing="0">
<tr align="center">
<td><html:submit property="submit" value="设定"/>
</td></tr></table></td></tr>
</table>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
根据1,64查查!