You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mike Baroukh <mb...@cardiweb.com> on 2007/02/14 14:25:13 UTC
[s2] Problem with resin
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