jsp - Render html input based on request attributes -
jsp - Render html input based on request attributes -
so have form submits info server. after submit attributes filled in on request. i'd render or not render elements on page based on attributes.
basically i'd want this.
<% string productname = ""; if( request.getparameter("productname") != null ){ productname = (string) request.getparameter("productname"); } %> <input type="text" id="product" name="product" readonly="readonly" value="<%= productname %>" rendered="#{<%= productname %> not empty}"/>
is achievable?
i not know, did understand question, if am, think answered :)
just set input text element condition, if productname not null, show it, otherwise not.
if not right reply questuion, please more specific.
html jsp scriptlet
Comments
Post a Comment