开发者

How to make GAE auto process an action

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜