You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Richard Sladek (JIRA)" <ji...@apache.org> on 2008/12/11 15:46:37 UTC

[jira] Commented: (WW-2794) Dispatcher should allow bypass of URI patterns

    [ https://issues.apache.org/struts/browse/WW-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45231#action_45231 ] 

Richard Sladek commented on WW-2794:
------------------------------------

I have a servlet mapped in web.xml as follows:
 <servlet-mapping>
   <servlet-name>MyServlet</servlet-name>
   <url-pattern>/servlet/MyServket</url-pattern>
 </servlet-mapping>

Struts2 filter is mapped to /*

An atempt to call the servlet results in the following exception then:
There is no Action mapped for action name MyServlet. - [unknown location]
	at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:178)

This makes it really impossible to call any servlet in a Struts2 application. Please fix this soon!!!

> Dispatcher should allow bypass of URI patterns
> ----------------------------------------------
>
>                 Key: WW-2794
>                 URL: https://issues.apache.org/struts/browse/WW-2794
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>            Reporter: Paul Benedict
>            Assignee: Paul Benedict
>            Priority: Critical
>             Fix For: Future
>
>
> It is not possible to execute a servlet if Struts is mapped to /*
> Struts should either know how to match if a URI is a servlet (if such JEE API is available), or be given a list of simple patterns to match against. After all, Struts is just a filter :-) Not every request going through Struts should be handled by Struts... well, at least if configured as such.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.