hi ,

i have a java bean string which contains html and as well as jstl code ,, html code is rendering to jsp,, butnot the jstl code , how do i render that to jsp

JSTL code is executed on the server, not the client. So having a servlet send it to the client isn't going to work.

in javaBean class

selectText = "<select style='width: 170px' id='ruleName' type='text' name='ruleName'/> "+
" <option>--Select One--</option> <option><#c:out value='${templateBean.selectCriteria}' escapeXml='false'/></option> </select>";

     in jsp:
      <td><c:out value="${templateBean.selectText}" escapeXml="false"/></td>

in browser its displaying Dropdown with select_one option but not the other option value

doesn't matter, he's pushing raw, uncompiled, unexecuted, JSTL code to the browser, which will never yield working HTML, let alone what he expects it will yield.

This question has already been answered. Start a new discussion instead.