Thanks for replying Tim...
 
I have two links I'm trying to get work... see bleow:
 
link 1 - <a href="javascript:readMessage();">test link 1</a>
link 2 - <html:link page="/ReadMessage.do">test link 2</html:link>
 
link 1 makes a call that creates a popup window that will ultimately display the 
results from the action class.
 
both links display a blank page.... the action class has a couple system.out that 
never execute...
 
this is the web.xml file...
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" 
"http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>
  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>2</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>2</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
  <taglib>
    <taglib-uri>/tags/struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>/tags/struts-html</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>/tags/struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
  </taglib>
</web-app>
 

        -----Original Message----- 
        From: Chen, Gin [mailto:[EMAIL PROTECTED] 
        Sent: Fri 10/24/2003 3:31 PM 
        To: 'Struts Users Mailing List' 
        Cc: 
        Subject: RE: Action Class not displaying
        
        

        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]
        
        

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

Reply via email to