<html:link page="readMatch.do">制定门票 </html:link> 
试试这样!

解决方案 »

  1.   

    如果2楼的没有成功 试下 下面这中形式
    <a href="readMatch.do">制定门票 </a>
      

  2.   

    页面跳转了,加上一个formbean就好,不知道单独的一个action是否可以通过这样的链接来执行,但是现在看来,光是一个简单的链接标签写上是不行的。
    但是又出现错误了
    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>
      

  3.   

    readok.jsp(1,64)
    根据1,64查查!