[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-dev
Subject:    [jira] [Updated] (WW-4693) How to handle 404 when using wildcard instead of error 500 when the wildc
From:       "COMBEAU (JIRA)" <jira () apache ! org>
Date:       2016-09-30 13:39:20
Message-ID: JIRA.13007884.1474975042000.708018.1475242760541 () Atlassian ! JIRA
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/WW-4693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

COMBEAU updated WW-4693:
------------------------
    Affects Version/s: 2.5.2
        Fix Version/s: 2.5.x
                       2.5.3

> How to handle 404 when using wildcard instead of error 500 when the wildcard method \
>                 doesn't exist
> -------------------------------------------------------------------------------------------------
>  
> Key: WW-4693
> URL: https://issues.apache.org/jira/browse/WW-4693
> Project: Struts 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.3.30, 2.5.2
> Reporter: COMBEAU
> Fix For: 2.3.31, 2.5.3, 2.5.x
> 
> 
> How is it possible to have the same error like this :
> Etat HTTP 404 - There is no Action mapped for namespace [/] and action name \
> [myActionName] associated with context path [/myapp] when I used wildcard ? \
> Actually if I used wildcards like this : {code:xml}
> <action name="crud_*" class="com.myapp.firstAction" method="{1}"> 
> 	<result name="input">/WEB-INF/jsp/{1}.jsp</result>
> </action>
> {code}
> and if I call this url : http://localhost:8080/myapp/crud_foobar.action and foobar \
> method doesn't exist in firstAction.java I get an error 500 with : \
> {{java.lang.NoSuchMethodException}} Is it possible to have the same like There is \
> no Action mapped  (404) ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic