I use GAE and struts. When 开发者_如何学JAVAI input htpp://localhost:8888
, it will autoload index.jsp.
What I need is for it to process an action immediately.
For example, when I input htpp://localhost:8888
, it will autoload action "index.a" instead of autoloading the index.jsp page.
I tried using struts without GAE and it worked correctly. But after I added GAE to my project it would't work. What is the problem and how do I correct it?
Try adding <welcome-file-list>
to your web.xml
file:
<welcome-file-list>
<welcome-file>index.a</welcome-file>
</welcome-file-list>
精彩评论