开发者

How to make GAE auto process an action

开发者 https://www.devze.com 2023-01-24 06:33 出处:网络
I use GAE and struts. When 开发者_如何学JAVAI input htpp://localhost:8888, it will autoload index.jsp.

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消