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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -