RE: Action Class not displaying
Thanks for replying Tim... I have two links I'm trying to get work... see bleow: link 1 - test link 1 link 2 - test link 2 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... http://java.sun.com/dtd/web-app_2_3.dtd";> action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml debug 2 detail 2 2 action *.do /tags/struts-bean /WEB-INF/tld/struts-bean.tld /tags/struts-html /WEB-INF/tld/struts-html.tld /tags/struts-logic /WEB-INF/tld/struts-logic.tld -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 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 jspthese 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)); } } 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]
RE: Action Class not displaying
1) What do you mean by "test the link from the web page"? Does that mean you have a 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 jspthese 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)); } } any suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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 jspthese 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)); } } any suggestions?