• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Sneak in AJAX inside a struts application

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic