*
The moose likes Struts and the fly likes Struts 1.3.10 DispatchAction issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1.3.10 DispatchAction issue" Watch "Struts 1.3.10 DispatchAction issue" New topic
Author

Struts 1.3.10 DispatchAction issue

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

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?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Are you sure the the the class you mapped
is same as the class you post.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

That was a typo. It is the same by the way.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Code looks ok, some RnD
Use Struts tag:


If that doesn't work, pass the hidden input param named "method" with value = "populate"
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts 1.3.10 DispatchAction issue
 
Similar Threads
Action Question
Error for the org.apache.struts.actions.ForwardAction
issue in calling the Action class
Problem running a simple webapplication in struts
Problem with the form.