Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

[s2] Problem with resin

Mike Baroukh

2007-02-14



Hi.

I was using struts1 before.
Now, with struts2, there is no more servlet but only a filter.
This seems to be a problem with (at least) resin :

1/ When using apache with resin, the apache plugin do not automatically
handle /*.do.
I have to include in my httpd.conf
<LocationMatch /.*.do>
  SetHandler caucho-request
</LocationMatch>

May be because resin do not consider there is someting to serve : there
is no servlet, just a filter.

2/ in a jsp, when I do
<jsp:include page="whatever.do"/>
I obtain a FileNotFoundException.

I tried to declare a servlet to handle *.do and now, there is no more
error but, of course, the action is not called : it's the servlet that
is called.

Am I doing something wrong ?
Is there a workaround ?
Ca someone tell explain what is the advantage of a filter instead an
action ?

Thanks for any help.

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.