Here goes the code:
<s:url id="urlId" action="anyAction!method">
<s:param name="total" value="${total}" />
</s:url>
<s:a href="%{urlId}" targets="div1" theme="ajax" >Link</s:a>
<div id="div1"></div>
I debugged and the value in session for total is 1200. When debuggin I found
the <s:url> object
(I don't remember the name now) and I saw its parameter map. The value was
1200. But it is at render time.
I didn't look at the rendered html. Tomorrow may be a good day to do that.
After that I debugged my click at this link, I put a breakpoint at
setTotal(String total) method of my Action class.
The value that got there was 1200" . Weird, hum?
I'd go deep in my debugg, but I couldn't find the place where Struts send
the value to the action.
Any idea?
Regards,
Felipe
Dave Newton-4 wrote:
>
> --- Felipe Rodrigues <[EMAIL PROTECTED]>
> wrote:
>> Sounds like a bug? Did anybody lived this problem?
>
> I use the <s:url...><s:param.../></s:url> pattern
> fairly extensively and have never seen it.
>
> Perhaps if you posted the suspicious fragments someone
> could help shed some light.
>
> d.
>
>> Felipe Rodrigues wrote:
>> >
>> > Hi,
>> >
>> > I'm sending a param using a <s:param> inside a
>> <s:url>. It is working, but
>> > the problem is, when the action gets the value,
>> > it has a " after the value. I've debbuged and the
>> parameter is being
>> > setted in the right value, so I think it is a bug
>> when the action gets the
>> > value.
>> >
>> > the value send it 1200 and the value that action
>> gets is 1200". Does
>> > anyone know about this issue?
>> >
>> > Thanks
>> >
>> > Felipe
>> >
>>
>> --
>> View this message in context:
>>
> http://www.nabble.com/Param-tag-inside-a-URL-does-not-work-properly.-tf3486798.html#a9743920
>> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>>
>>
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>>
>>
>
>
>
>
> ____________________________________________________________________________________
> The fish are biting.
> Get more visitors on your site using Yahoo! Search Marketing.
> http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Param-tag-inside-a-URL-does-not-work-properly.-tf3486798.html#a9745865
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]