Spring:message

Generic1

Top Contributor
Hi,

ich bin gerade dabei meine Applikation zu internationalisieren und verwende dazu Spring
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>

Ich möchte jetzt auch den Text in select internationalisieren (<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>) das funktioniert aber nicht.


<form:select id="selectInput" name='topic' path="topic" >
<form😱ption value="--- Bitte auswählen ---"/>

Weiß jemand wie ich das machen kann?
Vielen Dank,
Generic1
 
So:
HTML:
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
...
  <form:select id="selectInput" name="topic" path="topic">
    <spring:message var="first_value" code="first_value" />
    <form:option value="${first_value}"/>
  </form>
...
 

Zurück
Oben