[ 
https://issues.apache.org/struts/browse/WW-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42185
 ] 

[EMAIL PROTECTED] commented on WW-1706:
----------------------------------------------

Hi Philp,

I am facing the same problem with Restful2ActionMapper which u had faced few 
months before..

i have a struts blog.xml which have the settings for Restful2..

<struts>
        <constant name="struts.objectFactory" value="spring" />
        <constant name="struts.devMode" value="true" />
        <constant name="struts.enable.SlashesInActionNames" value="true"/> 
        <constant name="struts.mapper.class" value="restful2" />
        
        
        <package name="blog" extends="struts-default" namespace="/blog">
        
                <action name="editBlogEntryForm/*" method="view" 
class="editBlogFormAction">
                        <result name="success" 
type="tiles">blog.blogedit</result>
                 </action>
                
                        
        </package>
</struts>

When i try acess the URL 
http://localhost/app/blog/title/BlogTitle/editBlogEntryForm.action
OR http://localhost/app/blog/editBlogEntryForm/title/BlogTitle.action  it is 
throwing an error

Could you please help me in this regards.

how did u fix the problem you had.

Thanks and Regards,
Vijay.C.K

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/message/[email protected]/5981431.html


> Restful2ActionMapper does not set parameters/ActionName correctly
> -----------------------------------------------------------------
>
>                 Key: WW-1706
>                 URL: https://issues.apache.org/struts/browse/WW-1706
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Dispatch
>    Affects Versions: 2.0.6
>            Reporter: Philip Lorenz
>            Assignee: Don Brown
>
> Restful2ActionMapper does not seem to treat REST URLs correctly.
> Replacing
> String params = actionName.substring(0, actionSlashPos);
> at line 146 (Restful2ActionMapper.java) with
> String params = actionName.substring(actionSlashPos + 1);
> and
> mapping.setName(actionName.substring(actionSlashPos+1));
> at line 177 with
> mapping.setName(actionName.substring(0, actionSlashPos));
> will perform the expected behaviour of setting the ActionName to view and 
> setting the parameter uploadId to 5 for the following URL (view/uploadId/5).

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

Reply via email to