1) What do you mean by "test the link from the web page"? Does that mean you
have a <a href="blah.do"> somewhere on the page?
If so what does that link look like and how did you create it.
2) What does your web.xml look like?
-Tim

-----Original Message-----
From: David Liles [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 24, 2003 1:31 PM
To: [EMAIL PROTECTED]
Subject: Action Class not displaying


I just downloaded v1.1 and have things working..... some-what.
 
I have two simple action mappings that redirect to a jsp....these are
working.
 
I'm trying to create an action mapping that refers to a action class and
sends the user to the specified jsp.
 
Currently there is no logic in the action class, right now I just want to
map out the flow of the site and then add content later. When I test the
link from the web page all that is returned is a blank page..... the
System.out.println()'s aren't writing anything to the console either.....
 
This is the action class in question and the reference from the
struts-config.xml file
 
public final class MessageAction extends Action implements ActionConstants {
  public ActionForward execute(ActionMapping mapping,
                               HttpServletRequest req,
                               HttpServletResponse res) throws Exception {
    System.out.println("here 1");
    ActionErrors errors = new ActionErrors();
    // do something
    // forward control to the specified success URI
    System.out.println("here 2");
    return(mapping.findForward(READ_MESSAGE));
  }
}
 
 
<action path="/ReadMessage"
type="com.dynamichostings.mailclient.servlet.MessageAction">

<forward name="read_message" path="/message/read_message.jsp" />

</action>

any suggestions?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to