struts的action一般要提交到一个servlet

解决方案 »

  1.   

    action是要执行的,你给的信息太少了.
    我相你可能是路径不对,或是程序中就没写返回执行的语句.
      

  2.   

    我的想法就是在Action里得到数据,然后再返回相应的JSP页面,
    在JSP页面中就能用Action得到的数据。
      

  3.   

    <template:insert template='/chapterTemplate.jsp'>
      <template:put name='title' content='Templates' direct='true'/>
      <template:put name='header' content='/header.html' />
      <template:put name='sidebar' content='/sidebar.jsp' />
      <template:put name='content' content='/introduction.html'/>
      <template:put name='footer' content='/footer.html' />
    </template:insert>如果JSP要动态取得数据,而又不希望在JSP文件中加入读取数据库的代码
    应该怎么来做?本来我的想法是通过Action先得到数据,再转向JSP。
    可是Action是执行了,可是没有得到相应的JSP页面!