• 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:

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

 
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you see this in your log file?
 
vanlalhmangaiha khiangte
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Joe,
I have made it working now ...

 
Space pants. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic