求教struts2首页设置为.action
飞飞无语 2010-10-23 10:51:02 在web.xml中设置为:
<welcome-file-list>
<welcome-file>index.action</welcome-file>
</welcome-file-list>
访问时出错,(There is no Action mapped for namespace / and action name )
url为:http://localhost:8080/test/
直接访问:http://localhost:8080/test/index.action没问题,这是什么原因,怎么解决?
是不是默认的起始页只能是:jsp,html等存在的页面?
我知道可以通过在这些静态页面中(比如通过,js)跳转到index.action.不知道有没有直接不需要跳转的写法?
多谢了!