• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Problem running a simple webapplication in struts

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Ranch Hand
Posts: 874
Android VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



is it action-mapping or action-mappings ?
 
Varun Nayudu
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks man for your answer.



I am still having the same error


 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ...
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any startup warnings in the log file?
 
Varun Nayudu
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya actually there were

Here it is

 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd start by fixing that; your application isn't starting up.
 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.




 
Bras cause cancer. And tiny ads:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!