html - How do you put value or placeholder in form:input Spring MVC -


hi know how place attribute "value","defaultvalue" or "placeholder" form:input

original code

 <form:input path="ggpath" cssstyle="width:100%"/> 

what want

 <form:input path="ggpath" cssstyle="width:100%" value="example"/> 

but if place value attribute. give me error. appreciated

use following code

<form:input path="ggpath" style="width:100%" placeholder="example"/> 

Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -