This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling Struts Action outside the web application context

 
Brian Nguyen
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 6531
21
Java Linux Mac Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic