title: generating part of the URL to get access
body: <p>assuming I have the following existing url</p>
  
  <p><a href="http://www.seusite.com.br/index.php?pagina=noticia&amp;id_noticia=12" rel="nofollow">http://www.seusite.com.br/index.php?pagina=noticia&amp;id_noticia=12</a></p>
  
  <p>I am creating a form for not having to send the url to the User, the form will have two fields, id_noticia and pagina, that when it fill the form if it type (noticia, 12) go to the following url
  <a href="http://www.seusite.com.br/index.php?pagina=noticia&amp;id_noticia=12" rel="nofollow">http://www.seusite.com.br/index.php?pagina=noticia&amp;id_noticia=12</a></p>
  
  <p>I'm using java with jsf, below the code which created two variables id and page where and inserted by xhtml, want to know how do I enter these variables: the existing url to be able to access.</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://xmlns.jcp.org/jsf/html"&gt;
  &lt;h:head&gt;
      &lt;title&gt;Facelet Title&lt;/title&gt;
  &lt;/h:head&gt;
  &lt;h:body&gt;
  
      &lt;h:form&gt;
      &lt;h:outputText value="pagina:"&gt;&lt;/h:outputText&gt;
          &lt;h:inputText id="email" value="#{test.pagina}"&gt;&lt;/h:inputText&gt;
  
          &lt;h:outputText value="id_noticia:"&gt;&lt;/h:outputText&gt;
          &lt;h:inputText id="email" value="#{test.id_noticia}"&gt;&lt;/h:inputText&gt;
  
  
          &lt;h:commandLink&gt;Go&lt;/h:commandLink&gt;
          &lt;/h:form&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p></p>