I am trying to find a way to call a Spring MVC controller from within a
service-layer manager (accessed by the client via DWR) and to take the HTML
output of the result and send it back to the client to dynamically update an
html component on the client side. Admittedly, this is a hack, and i'm
considering instead using ajaxanywhere.sourceforge.net to solve my problem.
But at the moment the SpringMVCGateway, a Service-level bean called from
DWR, gets the webApplicationContext and creates a mock request and response
to the desired MVC bean, and sends the response back to the client.
Nat
On 1/16/07, Matt Raible <[EMAIL PROTECTED]> wrote:
Why do you need mock (testing) classes in your production code? These
classes should only be used for testing, not for production. It's
likely there's a way to solve your problem without using any classes
from this JAR.
Matt
On 1/16/07, Nathaniel Rahav <[EMAIL PROTECTED]> wrote:
>
> Hello,
> Can anybody elucidate why this line in <package-web> task of Appfuse 1.*
> excluds spring-mock.jar from the final war ?
> I'm wondering because I need it in my project to be called from a
service
> level class.
>
> <lib dir="${spring.dir}" includes="*.jar" excludes="*mock.jar"/>
>
>
> Thanks
> Nat
>
>
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]