struts用来做首页时,怎么写ACTION? 不明白你要表达的意思。如果你想把某个action作为首页,直接在web.xml中的welcome-files中添加就可以了。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 比如说index.jsp里面有数据,我打入地址之后,它不会先运行ACTION的,是先运行JSP,如何先得到ACTION的数据来填充JSP 在web.xml中的<welcome-file-list>中添加你的action 的url <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list>比如你的action的URL是/index.do。那么就在 <welcome-file-list> <welcome-file>/index.do</welcome-file> </welcome-file-list>就可以了。 jsp页面引入后问题 困惑啊,为什么我的jsp页面总是提示404错误啊,大家帮忙看下啊 Struts2 <jsp:forwoard /> 不能跳转 js 网页不可编辑 struts用标签动态填充下拉列表 Hibernate中更新的问题? Eclipse+Lomboz+Tomcat配置的一个诡异问题!!!! 各位大虾,请问关于数组这道题该如何解答。谢谢了! JSF(JavaServer Faces)将来肯定火爆,Struts????? 什么是EJB的工程使用价值 怎么将这条sql语句转换成hql呀? 使用Statement奇怪现象。谁能来解答给 100分!!!!!!!!
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>比如你的action的URL是/index.do。那么就在
<welcome-file-list>
<welcome-file>/index.do</welcome-file>
</welcome-file-list>就可以了。