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
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
How to share a context (Struts and servlet)
Joined: Jul 08, 2010
Nov 14, 2010 01:50:35
I have a application coded in Struts. I want to install a
on the same app that has
Is there any way to send data from the Servlet to a method called in the Struts portion of the app?
I have tried (in the servlet):
And in the
with no luck.
Thanks in advance
Joined: Sep 21, 2007
Nov 19, 2010 03:13:26
you can share the data between
and struts like below...
in servlets set the data::
in struts 2 action class get the data:::
ActionContext actionContext = ActionContext.getContext();
I hope it should work..
subject: How to share a context (Struts and servlet)
Can't include other page content with RequestDispatcher.include()
Deploy struts app
Database Connection Pooling initialization with dbcp
Run Servlet on deployment
Loading two servlets at the startup?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014