Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Problem running a simple webapplication in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem running a simple webapplication in struts" Watch "Problem running a simple webapplication in struts" New topic
Author

Problem running a simple webapplication in struts

Varun Nayudu
Ranch Hand

Joined: Jun 26, 2006
Posts: 157
Hi

I am having problem running a simple webapp in struts here is the full code with the error

URL:
http://localhost:8181/StrutsApp2/UserRegistrationAction.do

web.xml:


struts-config.xml:


Action class


Error which i got


SCJP 1.5, SCWCD 1.5
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874




is it action-mapping or action-mappings ?
Varun Nayudu
Ranch Hand

Joined: Jun 26, 2006
Posts: 157
Thanks man for your answer.



I am still having the same error


Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874


Few silly mistakes i can see in struts config. Please check out some tutorial struts-config before any queries

Couple of things to note
Your action path and html form action should match.
Restart the server after the changes
Varun Nayudu
Ranch Hand

Joined: Jun 26, 2006
Posts: 157
Balu Sadhasivam wrote:
Few silly mistakes i can see in struts config. Please check out some tutorial struts-config before any queries

Couple of things to note
Your action path and html form action should match.
Restart the server after the changes


Thanks for your reply I went through the documentation but still i cant find the error what is casing this, I changed the struts-config.xml



Now please tell me what am i doing wrong ...
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Are there any startup warnings in the log file?
Varun Nayudu
Ranch Hand

Joined: Jun 26, 2006
Posts: 157
Ya actually there were

Here it is

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'd start by fixing that; your application isn't starting up.
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874

Varun Nayudu wrote:
Thanks for your reply I went through the documentation but still i cant find the error what is casing this, I changed the struts-config.xml



What is the change you did ? Is it a valid xml ? Does it have valid DOCTYPE DTD declaration at the start ?
check this struts-config.xml

Also, action path must start with "/". First make sure the server startups without errors.




 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Problem running a simple webapplication in struts
 
Similar Threads
issue in calling the Action class
Problem with login page
Problem with the form.
Cancel problem in struts
HI