日期:2014-05-18  浏览次数:20704 次

struts2的问题,求大神帮忙
朋友们好,这是我从网上下载的一个选课系统,现在struts2的配置出了问题,麻烦各位看看,能不能看出是哪里有问题了,出错在了点课程名想进入课程详细页面,结果出现错误了:

首先是choiceclass.jsp 这个就是显示选课的地方,这是table:
<s:iterator value="allClasses" status="cs">
          <tr>
                  <td>
                      <s:property value="#cs.getIndex()+1+(pageNumber-1)*10"/>
                  </td>
                  <td>
                      <s:url  id="gets" action="skanCs">//就是这里出了错误
                          <s:param name="csId">
                      <s:property value="cname"/>
                      </s:param>
                      </s:url>
                      <s:a href="%{gets}"><s:property value="cname"/></s:a></td>
                  <td><s:property value="courTime"/></td>
                  <td><s:property value="roomId"/></td>
                  <td><s:property  value="teaId"/></td>
                  <td><s:a href="%{gets}">查看</s:a></td>
                  <td> <s:url  id="gets1" action="getdelteCs">
                          <s:param name="csId">                
                      </s:param>
                      </s:url><s:a href="%{gets1}">删除</s:a></td>
           </s:iterator></table>

这是有关课程的action配置,struts2的xml文件中的
<!--查看所有课程-->
          <action name="cpageAction" class="AdminAction.CpageAction">
            <result type="redirect" &g