• 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
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Action method is not getting invoked

 
Greenhorn
Posts: 24
Android MyEclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I wrote a test program to start learning Struts. Please see the code below.

Action Class:

Form Class:


web.xml:



struts-config.xml


index.jsp:



When I try the URL http://localhost:8080/StrutsExample1/index.jsp, my success page is not getting invoked.

I am using Tomcat 6 with MyEclipse 6.6 . The JDK version is 1.5.

Could somebody show me what went wrong with my configuration?

Thanks,
Arun
 
Ranch Hand
Posts: 84
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you getting index page?

If so, please share what kind of response that you receive on click of submit button. Moreover, please check the path of /success.jsp in application folder structure.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Make sure that you do not have the oracle driver in your pc because port number of oracle driver and tamcat server both are same i .e 8080 change the port no. Of your tamcat..to any other no.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic