struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vivek mishra <mishravive...@gmail.com>
Subject Re: Call action method from <s:url> tag
Date Mon, 18 Jun 2012 15:47:30 GMT
Thanks so much Dave.. Its working fine after turning on dynamic method
invocation.
You are a life saver.. :)

Thanks!
--
VM

On 6/18/12, Dave Newton <davelnewton@gmail.com> wrote:
> It *does* understand that URL, but you need to have dynamic method
> invocation turned on.
>
> Dave
>
> On Mon, Jun 18, 2012 at 11:35 AM, vivek mishra
> <mishravivek85@gmail.com>wrote:
>
>> Hi Folks,
>>
>> I have different methods in my action class and I like to call
>> specific one from a link.
>> For this I am using <s:url> tag for calling action class method:
>>
>> <s:url id="teamFbId" action="TeamFeedback" method="init" ></s:url>
>>
>> I then pass it to <s:a> tag:
>>
>> <s:a href="%{teamFbId}" cssClass ="idividual" title="Provide Team
>> Feedback"  />
>>
>> While accessing on browser the url is formed like this:
>> localhost:8080/project/TeamFeedback!init.action
>>
>> Struts.xml doesn't understand this url.
>>
>> Please let me know why url changes in this format and is there any
>> other way for calling action class method by not specifying it in
>> struts.xml file?
>>
>> Any help will be much appreciated..
>>
>> Thanks!
>> --
>> VM
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message