Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Action method is not getting invoked

 
Greenhorn
Posts: 24
Android MyEclipse IDE Java
  • 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.
 
Hey! You're stepping on my hand! Help me tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic