Is it possible to access html element value in jelly script ?

rambo1
Tera Guru

Is it possible to access html element value in jelly script ?

<input type="text" value="car" id="1" />

can this element value can be accesed in jelly set tag to set value ?

3 REPLIES 3

Aakash Shah4
Tera Guru

Please go through this link



Displaying HTML with Jelly in a UI page


lSurya 24
Giga Guru

Yes Rohith,



\you can the element value.



below is the example written in UI macro:


Short Description: <input id="short_description" type="text"/>



  <script>


  function setDesc(text){


  $j("#short_description").val(text);


  }



  </script>



You can modify it accordingly.


is it possible to use html element value in value="${}" of jelly set tag


<j:set var="jvar_incident_number" value="${ }"/> ???