aspose file tools*
The moose likes Servlets and the fly likes newbie question: how to have htm page call servlet, but not leave page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "newbie question: how to have htm page call servlet, but not leave page?" Watch "newbie question: how to have htm page call servlet, but not leave page?" New topic
Author

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

Eric Johnson
Ranch Hand

Joined: Apr 30, 2001
Posts: 49
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

Joined: Nov 21, 2000
Posts: 98
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

Joined: Sep 05, 2001
Posts: 139
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.

SCJP2
Eric Johnson
Ranch Hand

Joined: Apr 30, 2001
Posts: 49
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!
 
 
subject: newbie question: how to have htm page call servlet, but not leave page?