在struts中难道每一个action都要一个form吗? 因为我不需要bean ,所以我就没有配置bean 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 普通ACTION都要FORM ,但有一种叫FORWARD ACTION的ACTION是不需要FORM的,配置略有不同,你自己找资料拉。 随便写一个form好了,反正不会用到,只要系统不报错就可以了,呵呵 <table border="0"> <tr> <td colspan="2" align="center"><html:link action="/welcome" /></td> </tr> </table>把<html:form >表签去了看看 如果你写Action了,只要在action里写actionMapping.findForward()指向就行了,在struts-config.xml里写上全局指向就行了 能用html 搞定的就用html 好了,用jsp 加大了服务器的负担 就用HTML就可以搞定的事情,没必要用STRUTS标签的。 <action path="/welcome" parameter="other.jsp" type="org.apache.struts.actions.ForwardAction"></action>用这个试试 <html:link action="/welcome" /> 这一句不一定非要放在<html:form>中,它生成的实际只是一个连接 guodiming(香烟麻醉自己) 的是正解 这个不是在struts-config里面配置的,是在web.xml里面配置的,然后你可以在welcom.jsp上任意加你想要的连接。 <welcome-file-list> <welcome-file>/your_pages_directory/welcome.jsp</welcome-file> </welcome-file-list> 不需要,有时多个action对应一个form操作起来更简单 如果仅仅是一个画面的迁移,可以不用form的,像下面这样定义就可以了<action path="/xxxx" parameter="/jsp/menu.jsp" type="org.apache.struts.actions.ForwardAction"/> 《welcome-file-list> <welcome-file>/你的页面</welcome-file> </welcome-file-list> 使用hibernate最好使用哪种查询方式?? JavaEE框架 树状结构菜单的跳转(<sx:tree>) jsp网站发布到网络 紧急!奇怪的取得JBOss数据源问题 如何用JAVA在SQL数据库中导入如下格式的XML文件 请教个nutch的问题? ibatis 里的可以执行多个SQL语句吗? javamailapi类和jaf类包收发邮件怎么设置???? 散分 String类的问题this.value = original.value >>>菜鸟问题,什么是webservices?怎么实现webservices?<<<< 请教一个weblogic的配置问题
<tr>
<td colspan="2" align="center"><html:link action="/welcome" /></td>
</tr>
</table>
把<html:form >表签去了看看
</action>用这个试试
<welcome-file-list>
<welcome-file>/your_pages_directory/welcome.jsp</welcome-file>
</welcome-file-list>
像下面这样定义就可以了<action
path="/xxxx"
parameter="/jsp/menu.jsp"
type="org.apache.struts.actions.ForwardAction"/>
<welcome-file>/你的页面</welcome-file>
</welcome-file-list>