• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Adding AJAX functionality to existing webapp

 
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys! We have an existing webapp made using plain ol Servlets and JSP technology on a Model 2 architecture. Now we need to add some fancy stuff like the table folds and display a loading screen when the user clicks on a link. After that when all the data has been loaded by the Servlet and forwards to a JSP, I need to fill-in the table again with the data sent by the JSP. How is this possible? If you could point me to a good tutorial then that would be great. Thanks!
 
Sheriff
Posts: 67666
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I doubt that there will be tutorial that adresses that issue.

Do you have a specific question? I use Ajax in my Model 2 web apps all the time with no difficulty.
 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, sorry for the late reply. Hmmm... Ok, I'm having doubts about how I would return the output from the JSP. In one tutorial involving PHP and AJAX, PHP sent back to the client a set of string which is comma delimited and Javascript just parse that string to be able to use it. I don't know if this is just one way to make AJAX work, but I don't want to get into all those parsing stuff... To help me enlighten, would it be ok to ask for a simple sample? Like having...


1. A HTML file that has a form and an empty <DIV>
2. A Servlet that would take receive the request from the form
3. A JSP that outputs something from the Servlet
4. Display whatever JSP outputs in the <DIV> instead of loading another page.


Thank you for our reponse.
 
Dinner will be steamed monkey heads with a side of tiny ads.
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic