想用的话就把标签库和jar包导进去,没问题

解决方案 »

  1.   

    配置文件web.xml除了<taglib>配置一下外,还需要其他配置吗?
      

  2.   

    spring 自己的标签库就很强大啊,为何要舍近求远呢
      

  3.   


    有木有类似action的标签呢?
      

  4.   


    不是form:form action="xxx"
    是form:action ....
      

  5.   

    <form:form commandName="command" cssStyle="margin:3px" onsubmit="return checkForm()">这里如果你jsp页面叫做xxx.jsp,他就会默认找
     @RequestMapping(value = "/xxx.htm", method = RequestMethod.GET)
    这里只要注意method的不同,GET是拿数据,POST是发送数据到Controller
    应该能替代
    <s:action name="allBookAction" executeResult="false"></s:action>
    的作用了
      

  6.   


    <s:action name="allBookAction" executeResult="true"></s:action>
    的作用是调用allBookAction,并且返回一个子视图回来。在父画面load的时候就调用了。<form:form commandName="command" cssStyle="margin:3px" onsubmit="return checkForm()">
    只有提交的时候会执行吧。不知道我这样说对不对
      

  7.   

    只要能实现asp的htmlhelper.action功能就可以,大家了解吗
      

  8.   

    我也遇到了这个问题,然后google搜到解决方法了。
    可以用<c:import url="menu.html"></c:import> 解决。(url="menu.html"  是Action路径)web.xml 中DispatcherServlet 拦截哪些就填什么,如果.do,就用<c:import url="menu.do"></c:import>
    这样就会当作一个请求来处理。