You can't have a tag as the value of another tag's attribute.  Maybe this is
what you want.

<c:set var="items">
  <fmt:message key="org.type" bundle="${lang}"/>
</c:set>

<c:forEach var="item" items="${items}">
...



> -----Original Message-----
> From: Philippe Petit [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 21, 2003 4:33 AM
> To: Tag Libraries Users List; [EMAIL PROTECTED]
> Subject: Re: simple question
>
>
> Thanks to Hans I got my button working as well, but I have no idea for the
> upload button...
> I'm facing another issue with tag encapsulation, I'm not able to have a
> forEach tag use a fmt tag for its items value :
> <select name="foo">
>
> <c:forEach var="item" items="<fmt:message key=\"org.type\"
> bundle=\"${lang}\"/>">
>
> <option value="<c:out value="${item}"/>" ><c:out
> value="${item}"/></option>
>
> </c:forEach>
>
> </select>
>
> I tried with and without quotes, etc and its not working... Any help is
> welcome
>
> Regards
> Cordialement
>
> ----- Original Message -----
> From: "Vernon Wu" <[EMAIL PROTECTED]>
> To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, February 20, 2003 5:54 PM
> Subject: Re: simple question
>
>
> >
> > I have internationalized all buttons in my project successfully using
> JSTL, except the file up load button. Any
> > suggestions on having a internationalization label on a file upload
> button?
> >
> >
> > Thanks,
> >
> > Vernon
> >
> > 17/02/2003 10:30:07 AM, Hans Bergsten <[EMAIL PROTECTED]> wrote:
> >
> > >Philippe Petit wrote:
> > >> Howto internationalize the labels of buttons
> > >> is it possible or not to nest tags this way : <input type="submit"
> > >> name="ListOrg" Value="<fmt:message
> > >> key=\"org.menu.btn.list\" bundle=\"${nav}\"/>" >
> > >> and if not, what are the interests of JSTL if we have to go
> back to JSP
> > >> expressions, or scriptlets so often, and if the use of tags needs
> > >> development skills?
> > >> is it "really" a decoupling between logic and presentation ?
> I doubt...
> > >
> > >What you're trying to do works fine, except that there's no need to
> > >escape the quotes around the <fmt:message> attributes (that actually
> > >causes the problem you most likely experience).
> > >
> > >The key is to realize that the <input> element is not seen as an
> > >element at all by the JSP container; it's just "template text", since
> > >the JSP container doesn't know anything about HTML. So your example
> > >should look like this:
> > >
> > >   <input type="submit" name="ListOrg"
> > >     value="<fmt:message key="org.menu.btn.list" bundle="${nav}"/>" >
> > >
> > >Again, since the container regards the HTML <input> element as any ol'
> > >template text, this is no different than this as far as it's concerned:
> > >
> > >   foo <fmt:message key="org.menu.btn.list" bundle="${nav}"/> bar
> > >
> > >It's just to us poor humans it looks confusing ;-)
> > >
> > >Hans
> > >--
> > >Hans Bergsten                                <[EMAIL PROTECTED]>
> > >Gefion Software                       <http://www.gefionsoftware.com/>
> > >Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0
> > >Details at                                    <http://TheJSPBook.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]
> >
>
>
> ---------------------------------------------------------------------
> 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