File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes struts2.2.1 combined tutorial with modified changes not able to work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2.2.1 combined tutorial with modified changes not able to work" Watch "struts2.2.1 combined tutorial with modified changes not able to work" New topic
Author

struts2.2.1 combined tutorial with modified changes not able to work

vanlalhmangaiha khiangte
Ranch Hand

Joined: Sep 11, 2006
Posts: 170
Hi all,
I have started learning Struts2 and doing the tutorials from http://struts.apache.org/2.x/docs/getting-started.html
I am using Eclipse Java EE IDE for Web Developers. Version: Helios Release Build id: 20100617-1415 and apache-tomcat-6.0.29 and struts-2.2.1

I decided to combine two things from tutorial http://struts.apache.org/2.x/docs/processing-forms.html and http://struts.apache.org/2.x/docs/wildcard-method-selection.html with the following changes
1. org.example.common
>> CommonData.java (Having all common datas)
2. org.example.student
>> action --> StudentAction.java (create(),update(),delete(),query() methods)
>> model --> Student.java (firstname,lastname,roll,serialno)
>> service --> StudentService.java (business logic here)
3. Instead of putting all jsps in one folder
>> WebContent >> WEB-INF --> createstudent.jsp, success.jsp and failure.jsp (all jsps related to student)
>>WebContent >> index.jsp (starting page)
My struts.xml is


My web.xml is


There is no error during compile time but during run time , following errors exists





Output



Can you please tell me what i am doing wrong ?



Regards ,
Vanlal
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Did you see this in your log file?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
vanlalhmangaiha khiangte
Ranch Hand

Joined: Sep 11, 2006
Posts: 170
Thanks Joe,
I have made it working now ...

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts2.2.1 combined tutorial with modified changes not able to work
 
Similar Threads
Which version of struts 2 is suitable for struts2-jquery-plugin-3.0.2.jar
Getting "Dispatcher initialization failed" error message while running Struts 2 example in Eclipse
Which version of struts 2 is suitable for struts2-jquery-plugin-3.0.2.jar
Struts2
Exception in Struts2