File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to call Struts Action class from servlet?
Joined: Apr 24, 2007
Feb 13, 2013 15:12:12
The application is developed in the
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
I agree. Here's the link:
subject: How to call Struts Action class from servlet?
server to server call
Summary of Struts, by Struts newbie
javax.servlet.jsp.JspException: Cannot find bean: "testList" in any scope
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015