You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ma...@tumbleweed.com on 2001/09/24 07:08:43 UTC

Re: ?

You probably want to use <html:options> instead of <html:option>, and do a
little more setup work in your action class.

--
Martin Cooper


----- Original Message -----
From: "Ken'ichi Unnai" <ke...@yahoo.com>
To: <st...@jakarta.apache.org>
Sent: Sunday, September 23, 2001 9:49 PM
Subject: i18n: <bean:option value="i18n_value">?


>
> Hi All,
>
> I'm building a small select.jsp -> ReceiveServlet -> result.jsp
> webapp as an experiment for struts mvc framework.
>
> As I went further, I found I have one problem for select option
> value for foreign chars.
>
> in select.jsp:
> -----------------------------------------------------
>   <html:form action="/select">
>    <html:select property="color">
>     <html:option value="?jpLangValueForWhite?" key="option1"/>
>     <html:option value="?jpLangValueForBlue?" key="option2"/>
>     <html:option value="?jpLangValueForGray?" key="option3"/>
>    </html:select>
>    <html:submit><bean:message key="submit"/></html:submit>
>   </html:form>
> -----------------------------------------------------
>
> What I want to do is avoid hardcoding the value of each option...
> Could anyone please point me out how to do it?
>
> Really thanks in advance,
> Ken
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger. http://im.yahoo.com