Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Eric Johnson
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.
 
manav kher
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
 
Mahesh Rana
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic