struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <>
Subject Re: call a struts action from an axis service
Date Thu, 28 Sep 2006 15:58:19 GMT
Patrice Le Cozler ha scritto:
> Hi,
> Here is my (axis newbie) problem: I developed a struts webapp that insert
> data to a database using ibatis.
> Now I want to add some kind of webservice connector that does the same 
> job.
> I think the best way to do that would be to find a way of calling the 
> struts
> action from within the axis service class but I don't know how to do that
> since my service class don't know about ActionMapping, ActionForm,
> HttpServletRequest and HttpServletResponse parameters.
> Did anybody faced a similar problem (and found a solution) ?

Sure, simply don't call an action :-) you have to call the same Model 
(in the MVC model) part that the Struts action calls.
If you put all your business logic inside your action then probably you 
should refactor it to be Struts-agnostic.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message