0
我正在使用spring security将安全性集成到我的MVC应用程序中。我的web.xml片段是波纹管:web.xml中jsp配置中的多个taglib文件?
...
<jsp-config>
<taglib>
<taglib-uri>/spring</taglib-uri>
<taglib-location>/WEB-INF/tld/spring-form.tld</taglib-location>
</taglib>
</jsp-config>
</web-app>
正如我读/春季安全参考搜索,我发现this page在页面的结束,相关的taglib。现在在我现有的MVC应用程序中,我已经有了.tld文件,如上面的片段所示。我应该为security添加另一个.tld文件,例如security.tld并在web.xml中定义它?我应该如何使用?就像这样:
<taglib-location>
/WEB-INF/tld/spring-form.tld
/WEB-INF/tld/security.tld
</taglib-location>
或者这样:
<taglib>
<taglib-uri>/spring</taglib-uri>
<taglib-location>/WEB-INF/tld/spring-form.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/security</taglib-uri>
<taglib-location>/WEB-INF/tld/security.tld</taglib-location>
</taglib>
请帮助。谢谢
* 编辑:*我使用弹簧2.5.6和2.0.4的安全
非常感谢。它帮助我..从那时起我一直在寻找这个.. – AbdulAziz 2012-03-06 16:23:15
我很高兴它帮助。 – 2012-03-06 16:49:52