File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Exposing a struts app as a web service? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exposing a struts app as a web service?" Watch "Exposing a struts app as a web service?" New topic

Exposing a struts app as a web service?

Ben Ethridge
Ranch Hand

Joined: Jul 28, 2003
Posts: 108
Assuming that it is a "well-designed" MVC struts app, is it easy to expose that strut app as a web service?

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
A Struts application is Web application that interacts with humans. A web service interacts with programs. Therefore, turning a Struts application into a web service wouldn't really work.

However, a well-designed Struts app will have a model that has no dependencies on Struts or any other view framework. It would therefore be relatively easy to take some of those model classes and methods and give them a web service interface using one of the many tools available for turnig Java classes into web services.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Exposing a struts app as a web service?
Similar Threads
web service that displays jpg files on html
Jsp life cycle
When is a servletcontext destroyed?
How to make JDialog has default microsoft window color and style
Struts and WebServices