• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Basics: Could not find action or result

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am trying myself in struts2.
ready some tutorials and samples I tried to build my own small web app.
I am using Java 1.5 and Tomcat 7.

I have an index.jsp where the user has to insert his name, a postal code an a location name.
After that he has to click on submit.
As described in my struts.xml the submit request is mapped to a java class (implementing action interface). In the execude method I am doing some hibernate stuff (saving a new person with name and postal code and savin a new location with postal code and location name).
After that I return the constanc SUCCESS which is equal to "success" (still tried this hard coded).
Everythings works fine until now. the execute method is called, my hibernate stuff works fine and it goes to the result line. when making another step over the following error page appears:


When changing the mapped class name in my struts.xml clicking on submit button fails. This is in my mind a validation that the struts xml is basically found.

This is my struts.xml:


my index.jsp form header:


my web.xml:


in eclipse the default output folder of my src-folder is default:
ThirdWebApp/build/classes

deployment configuration (default):
"/src" --> "WEB-INF/classes"
"/WebContent" --> "/"

and finally my folder structure using eclipse:
*see attachment

Thank you very much for any help!
folder_structure.PNG
[Thumbnail for folder_structure.PNG]
Folder Structure
 
Ranch Hand
Posts: 40
Hibernate jQuery
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
would you paste execute method of you action class? and make sure that you've returned SUCCESS in execute method. Also try removing / in result page in struts.xml. like just
 
This is my favorite show. And this is my favorite tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic