Results in the same as

<s:set name="a" value="'/jsp/'#parameters.file" />

which means that a remains unset.

Same for:

<s:set name="a" value="/jsp/%{#parameters.file}" />
<s:set name="a" value="'/jsp/'%{#parameters.file}" />
<s:set name="a" value="%{/jsp/#parameters.file}" />
<s:set name="a" value="%{'/jsp/'#parameters.file}" />

Best,
Anton

Saul Qunming Yuan wrote:
> Hi
> 
> You may want to try the following to set variable "a":
> 
> <s:set name="a">
>    <s:text name="/jsp/%{#parameters.file}" />
> </s:set>
> 
> just a thought.
> 
> Saul
> 
> Anton Pussep wrote:
>> Hello,
>>
>> I am trying to concatenate strings in tag attributes and get results
>> that I don't understand:
>>
>> <s:text name="/jsp/%{#parameters.file}" />
>>
>> prints out "/jsp/test.jsp", whereas
>>
>> <s:set name="a" value="'/jsp/' + #parameters.file" />
>> <s:text name="#a" />
>>
>> prints out "/jsp/[Ljava.lang.String;@1bd2184", same for
>>
>> <s:set name="a" value="%{'/jsp/' + #parameters.file}" />
>>
>> whereas the following does not work:
>>
>> <s:set name="a" value="'/jsp/'#parameters.file" />
>>
>> What is the way to concatenate strings in the set tag and why doesn't it
>> work the same way as it does in the text tag?
>>
>> Best,
>> Anton
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> --------------------------------
>> Spam/Virus scanning by CanIt Pro
>>
>> For more information see
>> http://www.kgbinternet.com/SpamFilter.htm
>>
>> To control your spam filter, log in at
>> http://filter.kgbinternet.com
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


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

Reply via email to