A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
How to call Struts Action class from servlet?
Joined: Apr 24, 2007
Feb 13, 2013 15:12:12
The application is developed in the STRUTS 1.1 framework. I developed a new
. At the end of my Servlet, I want to call the method in Struts Action Class.
Servlet. RequestDispatcher requestDispatcher = getServletContext().getRequestDispatcher("/abc/sample.do?method=list&chkfolderlist="+folderlist); requestDispatcher.forward(request, response);
It invokes the method in the Struts action class. In the Struts method,it performs all the steps. At the end it stops at return (mapping.findForward("list"));
I don't see any errors in my log file.
I am not sure where I am going wrong.
Any help is appreciated.
Joined: Jun 22, 2005
Feb 14, 2013 02:33:52
Have you configured "list" in your struts-config.xml?
Keep Smiling Always — My life is smoother when running silent. -paul
The Linux Documentation Project
It is sorta covered in the
JavaRanch Style Guide
subject: How to call Struts Action class from servlet?
Summary of Struts, by Struts newbie
javax.servlet.jsp.JspException: Cannot find bean: "testList" in any scope
server to server call
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014