struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pablo Vázquez Blázquez <pvazq...@denodo.com>
Subject Re: [S2] struts tags
Date Mon, 10 Sep 2007 16:13:08 GMT
I have visited so many pages about Struts 2 I can´t remember where I 
found that. Sorry.

Adam Hardy escribió:
> By the way, Pablo, where did you find that out?
>
> Pablo Vázquez Blázquez on 10/09/07 11:52, wrote:
>> Using JSTL:
>>
>> <s:submit type="button" cssClass="submit">
>>    <s:param name="value">
>>        <fmt:message key="category.edit.cancelButton"/>
>>    </s:param>
>> </s:submit>
>>
>> Adam Hardy escribió:
>>> Man oh man that is going to fry the algorithms in my poor JSP 
>>> editor, even if it could cope with the stuff I force-feed it at the 
>>> moment (which it doesn't).
>>>
>>> Isn't there a non-OGNL way?
>>>
>>>
>>> thanks
>>> Adam
>>>
>>> Zarar Siddiqi on 08/09/07 18:25, wrote:
>>>> <s:submit theme="simple" 
>>>> value="%{getText('category.edit.cancelButton')}"/>
>>>>
>>>> Zarar
>>>>
>>>>
>>>> On 9/6/07, Adam Hardy <ahardy.struts@cyberspaceroad.com> wrote:
>>>>> I am using struts tags for the first time in a JSP with S2 and I 
>>>>> haven't found
>>>>> what I'm looking for so I guess it's not available, but could I 
>>>>> just check for
>>>>> certain?
>>>>>
>>>>> I want to put a string into a button using an i18n bundle. I tried 
>>>>> this:
>>>>>
>>>>> <s:submit key="category.edit.cancelButton" />
>>>>>
>>>>> and I tried this:
>>>>>
>>>>> <s:submit>
>>>>>      <fmt:message key="category.edit.cancelButton"/>
>>>>> </s:submit>
>>>>>
>>>>> I know I could do this:
>>>>>
>>>>> <fmt:message var="label" key="category.edit.cancelButton" />
>>>>> <s:submit key="${label}" />
>>>>>
>>>>> but it's not nice. The docs allude to the mechanism but I haven't 
>>>>> figured it
>>>>> out. I have the constant struts.custom.i18n.resources set in my 
>>>>> struts.xml.
>>>>>
>>>>>
>>>>> Regards
>>>>> Adam
>>>>>
>>>>>
>>>>> PS for the record, I think it's just that I'm not finding the 
>>>>> documentation
>>>>> intuitive. For instance I figured out how to prevent the struts 
>>>>> form tags from
>>>>> outputting HTML table tags but I had to use a search engine. I 
>>>>> tried setting the:
>>>>>
>>>>> struts.ui.theme=""
>>>>>
>>>>> but that was obviously not the solution. My problem was that I 
>>>>> wanted to turn
>>>>> the 'themes' feature off. But you don't turn it 'off' - you just 
>>>>> turn it down. It's:
>>>>>
>>>>> struts.ui.theme="simple"
>>>>>
>>>>> Maybe a line in the taglib docs would make it more obvious?
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>
>
> ---------------------------------------------------------------------
> 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