能不能只用struts的标签,而不用struts框架

来源:百度知道 编辑:UC知道 时间:2024/06/14 06:58:22
我不想用struts框架,但是希望能在项目中使用struts的几个标签.
但是好像bean标签可以使用,而logic和html两个标签都提示出错,logic的错误信息如下:
Error in using tag library uri='/WEB-INF/tags/struts-logic.tld' prefix='logic': The Tag class 'org.apache.struts.taglib.logic.RedirectTag' has no setter method corresponding to TLD declared attribute 'action', (JSP 1.1 spec, 5.4.1)

请问如何才能做到?
请问具体怎么使用,为什么会出错呢?

当然可以。我用自己写的框架,偶尔用到Struts的Logic标签,比直接用JSP可读性好一点。

你没有值传进来啊
自己写serverlet 传值进来做
跟struts的action一样 应该可以的