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
Node.js in Action
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..
I agree. Here's the link:
subject: How to share a context (Struts and servlet)
Loading two servlets at the startup?
Run Servlet on deployment
Deploy struts app
Database Connection Pooling initialization with dbcp
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