jsp - How to get username from J_security_check in Ext_js? -
actually using extjs framework , want username farther use.can help me solve problem. extjs code this....
var username= new ext.form.field.text({ width:300, margin:'0 0 10 0', name:'j_username', fieldlabel:'email', allowblank:false, minlength:6, maxlength:100 }); var password= new ext.form.field.text({ width:300, margin:'0 0 10 0', name:'j_password', minlength:6, maxlength:20, inputtype:'password', allowblank:false, fieldlabel:'password' }); var signin = new ext.form.panel({ width:350, renderto:'signinform', url:'j_security_check', method:'post', title:'sign in', bodypadding:20, layout:'anchor', items:[username,password, { xtype:'checkboxfield', fieldname:'accept', margin:'0 0 10 0', boxlabel:'i take <a class="cont" id="tousignin" href="#"><u>terms of use</u></a>', hidelabel:true, checked:true, readonly:true, labelalign:'left' }], standardsubmit:true, buttons:[{ text:'reset password', handler:function(){return false; window.location.href=forgoturl; } },{ text:'sign in', handler:function(){ signin.submit(); } }] }); if(window.location.href.indexof('j_security_check')>-1){ ext.messagebox.alert('error','invalid e-mail or password specified.'); }
and code imported login.jsp page this:
so how can username this?
jsp extjs
No comments:
Post a Comment