Hi All,
I want to implement login part in my application using
struts as i need to refresh only the login part in the page. If the login is success it would display a welcome message and links to go to account page and logout option. Also if the login fails I have display that message.
I am new to Ajax and as per my understanding I can either get XML data or HTML as response. If I get XML then probably I have to construct the html in javascript. So I prefer to get HTML.
Which is the best way of achieving this? Also if the bring HTML page by forwarding to a page from Action, I am getting error in IE7 when I render it in a div tag using innerHTML=req.responseText where as it works perfectly on Mozilla.
Any help would be highly appreciated.
Thanks,
Anoop S