• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts - Ajax help needed!

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi..


It is better you use JQuery or DWR for Ajax.

It is easy to use and integrate with Any application framwork.

Thanks,
Nishan Patel.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic