Comment imprimer la valeur d'une vitesse variable dans un caché d'entrée HTML

Au cours de mes recherches, je voudrais avoir un conseil sur ce :

Comment passer de la valeur :

${lyear}-${key}

à la valeur d'entrée type ci-dessous :

<input type="hidden" name="month2" value="" />

Par exemple :

<input type="hidden" name="month2" value=#set(${lyear}-${key}) />

J'ai essayé ceci, mais Ça ne fonctionne pas !

Si vous avez des conseils à me donner.

J'ai donc travaillé et :

<input type="hidden" name="month2" value=${lyear}-${displayMonth} />

Et :

<input type="hidden" name="month2" value="${lyear}-${displayMonth}" />

Pour une requête dans le navigateur comme ça :

localhost:8080/comptes/mon_compte.html?display=affilies_periode&month1=01&year=2013&month2=%24*{lyear}-Décembre*

Mais je voudrais avoir une requête ressemble :

localhost:8080/backoffice/vendeurs/rémunération.le html?mois=2013-08

Merci pour tous les commentaires

P. S. Le code de mon formulaire :

#set ( $listKeys = [ '01' , '02' , '03' , '04' , '05' , '06' , '07' , '08' , '09' , '10' , '11' , '12' ] )
#set ( $listMois = { '01' : "Janvier" , '02' : "Février" , '03' : "Mars" , '04' : "Avril" , '05' : "Mai" , '06' : "Juin" , '07' : "Juillet" , '08' : "Août" , '09' : "Septembre" , '10' : "Octobre" , '11' : "Novembre" , '12' : "Décembreuujikjk" } )
<fieldset class="search">
<form method="get" action="/comptes/mon_compte.html" style="border-top:none;"><p class="alignTop">
<p>
<span>Afficher vos détails de rémunération du mois de </span>
<input type="hidden" name="display" value="affilies_periode" />
<select name="month1" id="month1">
#foreach($key in $listKeys)
#if($listMois.get($key))
#set ($displayMonth = $listMois.get($key))
<option value="$key" #if($month == $key) selected #end >$displayMonth</option>
#end
#end
</select>
<select name="year" id="year">
#foreach($lyear in $util.listYears)
<option value="$lyear" #if($year == $lyear) selected #end >$lyear</option>
#end
</select>
##"${R}-01"
##set($begin = "${R}-01")
##<input type="hidden" name="month2" value=#set(${lyear}-${key}) />
##ih
<input type="hidden" name="month2" value=${lyear}-${displayMonth} />
##set($month = $lyear-$displayMonth)
##<input type="hidden" name="month2" value="${lyear}-${displayMonth}" />
##<input type="hidden" name="month2" value="#set(${lyear}-${key})" />
<input type="submit" value="&nbsp;" class="button27 btnOk hand" style="margin-right:0;"/>               
<br/>
<br/>
<span>ou</span>
<br/>
<br/>                   
<span><td><a href="/comptes/mon_compte.html?display=affilies">Revenir à la page de rémunération globale</a></td>
</span>
</p>
</form> 
</fieldset>
InformationsquelleAutor Ale | 2013-09-10