2,下载struts,譬如struts-1.2.8,解压之。点击Struts Assistant,设置"Struts distributive",目录指向Struts解压后的根目录。
打开工程中的struts-config.xml文件,这样可以在左边的struts assistant的panel里看到你的form和action等。
3,映射标签,在esource里做一下映射,譬如/struts-bean 对应E:/Server/frame_work/struts-1.2.8/contrib/struts-el/lib/struts-bean.tld
,
在web.xml中配置
/struts-bean
/WEB-INF/struts-bean.tld
在页面中引用:
OK!
[@more@]来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11049438/viewspace-975048/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/11049438/viewspace-975048/
本文详细介绍如何通过StrutsAssistant插件来配置Struts框架。首先,需要下载并安装Struts插件,然后设置Struts distributive路径。接着,通过在资源中进行标签映射并在web.xml中配置,最终实现在项目中正确使用Struts。
1万+

被折叠的 条评论
为什么被折叠?



