if you are constructing the url using the s:url tag, there are two different
attributes you may be using.  The "action" attribute assumes that the action
will end in "*.action", so you can't forward to a Struts-1 action using the
action attribute.  Instead use the 'value' attribute, and you can then
forward to 'myaction.do', and it works.  



panpan wrote:
> 
> It was very sad to find out that the redirect URL is like
> http://localhost:8080/restricted/main/Menu.do.action. even though the page
> is correctly displayed.
> 
> When I click 'Submit', there is exception: There is no Action mapped for
> action name Menu.do.
> 
> Anyone knows how to solve this problem, is there a parameter I can set to
> let S2 knows to redirect to S1? So S2 will not add an extra "action"
> string at the end of URL.
> 
> Thanks in advance!
> 
> 
> 
> quote author="panpan">
> Thanks, Dave. I just tried it. It worked.
> 
> ⩽param name="actionName">Menu.do⩽/param>
> ⩽param name="namespace">/restricted/main⩽/param>
> 
> S2 knows to how to redirect to S1 action. That's great.
> 
> 
> 
> Dave Newton-4 wrote:
>> 
>> --- panpan <[EMAIL PROTECTED]> wrote:
>>> In the struts 2 configuration file struts.xml
>>>           
>>>                 /restricted/main/Mene.do
>>>                    
>>> I know I cann't do that but anyone knows the way to
>>> fulfill the same functionality.
>> 
>> http://struts.apache.org/2.x/docs/result-types.html
>> 
>> Noting in particular:
>> 
>> http://struts.apache.org/2.x/docs/redirect-result.html
>> 
>> d.
>> 
>> 
>> 
>>      
>> ____________________________________________________________________________________
>> Luggage? GPS? Comic books? 
>> Check out fitting gifts for grads at Yahoo! Search
>> http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 



-- 
View this message in context: 
http://www.nabble.com/Can-I-Redirect-Action-Result-to-Strut1-action-in-struts.xml-tf3872273.html#a10978742
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to