This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Calling Struts Action outside the web application context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Calling Struts Action outside the web application context" Watch "Calling Struts Action outside the web application context" New topic
Author

Calling Struts Action outside the web application context

Brian Nguyen
Greenhorn

Joined: Mar 19, 2002
Posts: 22
Hi,
We are currently having a system that using Struts and we would like have another interface (command line etc...) which is not web. So I am wondering if we have any way to call the Struts actions in the existing system but not in web context?
Thanks for your help in advance.
Brian
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4446
    
    5

Sounds like feature envy to me. You should probably refactor the code currently in the Action and extract it to a plain old Java object. The Action can collaborate with the new class to perform whatever it was doing before and you can also use the new class in a non-web context.


Junilu - [How to Ask Questions] [How to Answer Questions]
 
wood burning stoves
 
subject: Calling Struts Action outside the web application context
 
Similar Threads
Changing <context-root>
Common Share folder in Web or Application Server
MVC without struts
DTD seach path for Xerxes parser
XML parser search for DTD