Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Action method is not getting invoked  RSS feed

 
Greenhorn
Posts: 24
Android Java MyEclipse IDE
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!