wood burning stoves 2.0*
The moose likes Struts and the fly likes New to Struts, where did I go wrong? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "New to Struts, where did I go wrong?" Watch "New to Struts, where did I go wrong?" New topic
Author

New to Struts, where did I go wrong?

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Hello Everyone,

I absolutely new to Struts. I read a few tutorials and was going through some online examples and tried to create one myself from one such example. I deployed it on JBoss. But when i publish the application... I get an exception. I am using Eclipse to create the applications. The main objective is to take in the name from one JSP and display it on another JSP.

Exception:


Here are my files:
NameAction.java


NameForm.java


web.xml

struts-config.xml


index.jsp (to take in the name):


displayname.jsp (to display the name):


So when i hit the browser with http://localhost:8080/StrutsProject/ I get the above mentioned exception.

I have attached the Eclipse project structuring as well, if it helps, and also just to confirm that i have put all the files in the right places. Thanks in advance.




[Thumbnail for Eclipse.jpg]

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Its ok... I got it solved myself. It turned my struts-config.xml was hopelessly incorrect!

But anyways just had another question... My application works, but i see an exception in Eclipse in the struts-config.xml. It says..

"Action /Name references to non-existent page index.jsp."
"Forward success of Action /Name path attribute references to non-existent page"
"Forward failure of Action /Name path attribute references to non-existent page"

My config file is:

 
GeeCON Prague 2014
 
subject: New to Struts, where did I go wrong?