A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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)
Deploy struts app
Run Servlet on deployment
Database Connection Pooling initialization with dbcp
Loading two servlets at the startup?
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