title: How to print the value of a velocity variable into a hidden HTML input
body: <p>During my searching, I would like to have a tip on this :</p>
  
  <p>How to pass the value :</p>
  
  <pre><code>${lyear}-${key}
  </code></pre>
  
  <p>to the value input type below :</p>
  
  <pre><code>&lt;input type="hidden" name="month2" value="" /&gt;
  </code></pre>
  
  <p>For instance :</p>
  
  <pre><code>&lt;input type="hidden" name="month2" value=#set(${lyear}-${key}) /&gt;
  </code></pre>
  
  <p>I tried this, but It doesn't work !</p>
  
  <p>If you have a advice to give me.</p>
  
  <p>So I worked and :</p>
  
  <pre><code>&lt;input type="hidden" name="month2" value=${lyear}-${displayMonth} /&gt;
  </code></pre>
  
  <p>And :</p>
  
  <pre><code>&lt;input type="hidden" name="month2" value="${lyear}-${displayMonth}" /&gt;
  </code></pre>
  
  <p>To have a query in a the navigator like that :</p>
  
  <blockquote>
    <p>localhost:8080/comptes/mon_compte.html?display=affilies_periode&amp;month1=01&amp;year=2013&amp;month2=%24*<strong>{lyear}<em></strong>-</em><strong>Décembre*</strong></p>
  </blockquote>
  
  <p>But I would like to have a query looks like :</p>
  
  <blockquote>
    <p>localhost:8080/backoffice/vendeurs/remuneration.html?month=2013-08</p>
  </blockquote>
  
  <p>Thanks for any comments</p>
  
  <p>P.S. The code of my form :</p>
  
  <pre><code>#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" } )
  
  
                  &lt;fieldset class="search"&gt;
  
  
                     &lt;form method="get" action="/comptes/mon_compte.html" style="border-top:none;"&gt;&lt;p class="alignTop"&gt;
  
                     &lt;p&gt;
  
                          &lt;span&gt;Afficher vos détails de rémunération du mois de &lt;/span&gt;
  
                          &lt;input type="hidden" name="display" value="affilies_periode" /&gt;
  
                          &lt;select name="month1" id="month1"&gt;
                              #foreach($key in $listKeys)
                                  #if($listMois.get($key))
                                      #set ($displayMonth = $listMois.get($key))
                                      &lt;option value="$key" #if($month == $key) selected #end &gt;$displayMonth&lt;/option&gt;
                                  #end
                              #end
                          &lt;/select&gt;
  
                          &lt;select name="year" id="year"&gt;
                              #foreach($lyear in $util.listYears)
                                  &lt;option value="$lyear" #if($year == $lyear) selected #end &gt;$lyear&lt;/option&gt;
                              #end
                          &lt;/select&gt;
  
                          ##"${R}-01"
                          ##set($begin = "${R}-01")
  
                          ##&lt;input type="hidden" name="month2" value=#set(${lyear}-${key}) /&gt;
  
  
                          ##ih
                          &lt;input type="hidden" name="month2" value=${lyear}-${displayMonth} /&gt;
  
                          ##set($month = $lyear-$displayMonth)
  
                          ##&lt;input type="hidden" name="month2" value="${lyear}-${displayMonth}" /&gt;
  
                          ##&lt;input type="hidden" name="month2" value="#set(${lyear}-${key})" /&gt;
  
                          &lt;input type="submit" value="&amp;nbsp;" class="button27 btnOk hand" style="margin-right:0;"/&gt;               
  
                          &lt;br/&gt;
                          &lt;br/&gt;
                          &lt;span&gt;ou&lt;/span&gt;
                          &lt;br/&gt;
                          &lt;br/&gt;                   
                          &lt;span&gt;&lt;td&gt;&lt;a href="/comptes/mon_compte.html?display=affilies"&gt;Revenir à la page de rémunération globale&lt;/a&gt;&lt;/td&gt;
  
  
  
  &lt;/span&gt;
                    &lt;/p&gt;
                 &lt;/form&gt; 
  &lt;/fieldset&gt;
  </code></pre>