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

WSAD implementation doubt

 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could someone tell me how to call a servlet from a JSP's JAVA SCRIPT functions(i.e the script tags)

I am breaking my head on this but could not find the solution.

Thanks in advance.
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you want to call your servlet to retrieve a value or retrieve a page (replace a <div> or redirect entirely to that page?
Anyhow, check out AJAX. You can use it to retrieve a value, or even replace a <div> where the div is the content of your servlet.
I guess that to redirect your entire page to the servlet should not be a problem as you can use the javascript window.location=<servlet page>
 
reply
    Bookmark Topic Watch Topic
  • New Topic