html5 - How to add placeholder and require attr to dsp input tag -


i new atg please me below query

i have atg tag

<dsp:input value="${email}" id="email" type="email" bean="profileformhandler.value.login" maxlength="256" onkeypress="javascript:checksubmit(event,loginsubmit);"/>

for tag need add placeholder , require attributes .i tried adding there attribute. after application not working.

please me .

you can use dsp:tagattribute tag add attributes dsp:input tag.

for example:

<dsp:input value="${email}" id="email" type="email" bean="profileformhandler.value.login" maxlength="256" onkeypress="javascript:checksubmit(event,loginsubmit);">     <dsp:tagattribute name="placeholder" value="enter email here..." /> </dsp:input> 

for reference, see https://docs.oracle.com/cd/e35319_01/platform.10-2/atgpagedevguide/html/s1336dsptagattribute01.html


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -