Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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.
 
Anderson gave himself the promotion. So I gave myself this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!