开发者

I'm facing issues while running HelloWorld Struts program

开发者 https://www.devze.com 2023-04-11 18:47 出处:网络
I\'ve gone through all the steps of the tutorial given in this http://w开发者_JS百科ww.vaannila.com/struts/struts-tutorial/struts-tutorial-using-eclipse-1.html example. Finally when i tried to run my

I've gone through all the steps of the tutorial given in this http://w开发者_JS百科ww.vaannila.com/struts/struts-tutorial/struts-tutorial-using-eclipse-1.html example. Finally when i tried to run my program, I'm getting blank page with http://localhost:8080/StrutsExample1/helloWorld.do when I manually change the extension of the url to .jsp it only shows the html content, but its not showing the hello world message which we're setting dynamically.

What may be the problem?

Am I missing something.

Please help me out of this.

Thanks in advance.


firstly, the container parses the web.xml for the configurations and when it is done, it executes the welcome page which is your index.jsp Look the url made formed is http://localhost:8080/StrutsExample1/helloWorld.do. The parser has parsed till that and it has not mapped with the servlet "ActionMapping". I think u have some problem in the directory structure u have formed. Better do 1 thing, copy the whole project from vaanila.com and import to ur workspace, then see the structure formed...

0

精彩评论

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