Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 1.3.10 DispatchAction issue

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I have a DispatchAction class defined as below:



My struts-config.xml entry looks like this:



I call this by clicking a hyperlink which calls an action when clicked:



When I click the hyperlink to call my searchForms.jsp, I get the following error:



Not able to figure out why this happens. Any suggestions?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure the the the class you mapped
is same as the class you post.
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was a typo. It is the same by the way.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Code looks ok, some RnD
Use Struts tag:


If that doesn't work, pass the hidden input param named "method" with value = "populate"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic