Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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!
 
    Bookmark Topic Watch Topic
  • New Topic