Re: Struts2+json question

2010-08-06 Thread Steven Yang
this is the matter with how you handle your result in your javascript and how you communicate with your javascript in you case, you should always return a json because your doing your validation by AJAX right? its in your javascript that you need to tell whether the login was successful or not, i

Struts2+json question

2010-08-05 Thread red phoenix
I use struts2.1.8 and extjs3.2, I make a login page, if login failed,it will alert a message and it will still stay this login page; if it login success,it will go to another new page,such as main.jsp page My login page is follows: var win=new Ext.Window({ el:'hello-win', items: logi