• 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

newbie question: how to have htm page call servlet, but not leave page?

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i want to have a form send info to the servlet so it can create a file on the server, but don't want to load a new page. i admit i've only been working the problem since yesterday, but i figure with all the knowledge here why break my brains if it is something ya can't do anyway. so, is it possible? if so, how would one go about it? thanx in advance.
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
don't think thats possible the way you want it to work, but what you could do is forward yourself to the same page so that it "appears" that you never left.
-manav
 
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another way to do this is
have a hidden Applet or hidden HTML frame
on your HTML page and let that Applet/Frame
communicate to the servlet.
I dont see any problem with this approach.
 
Eric Johnson
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanx for the replies. yeah, i use 1px high frames to "hide" javascript stuff alot, and that's the approach i'm headin for with this too, just wondered if there was a more direct route. thanx again!
 
reply
    Bookmark Topic Watch Topic
  • New Topic