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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -