• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sneak in AJAX inside a struts application

 
Venkatraman Kandaswamy
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a pilot to use AJAX in our struts application. I make a javascript call to say fetchSSN.do - and it gets mapped to an action servlet - say FetchSSNAction. Now this action servlet has to return the SSN ( as a string ) to the place where I make the javascript call. But the action servlet will only return to the controller servlet.

So how do I do this - action servlet returning value to the javascript call. Even if I could - will the MVC puritans agree to this?

Thanks.
[ July 19, 2005: Message edited by: Venkatraman Kandaswamy ]
 
Venkatraman Kandaswamy
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the solution. Its so simple. Just let the controller servlet forward to a JSP page which has these lines.


Thanks to
Frank W. Zammetti 's tutorial
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic