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 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..
I agree. Here's the link:
subject: How to share a context (Struts and servlet)
Database Connection Pooling initialization with dbcp
Loading two servlets at the startup?
Deploy struts app
Run Servlet on deployment
Can't include other page content with RequestDispatcher.include()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014