my dog learned polymorphism*
The moose likes Servlets and the fly likes Servlet in a frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet in a frame" Watch "Servlet in a frame" New topic
Author

Servlet in a frame

Amod Deshpande
Greenhorn

Joined: Sep 04, 2003
Posts: 8
Can any one tell me how to display a servlet in one of the frame of existing servlet???
I have 3 frames. when i click the search button, i want to display a reasult servlet in one of the frame.
Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
I dont know what sort of architecture you are using but if the link itself is incharge of pulling the servelet, here is what you can do (this is straight HTML, so not sure if its useful for you):
1. Name the three frames in the frameset
2. in your href link, in addition to the servlet name place target="frame_name"
This will load the specified servlet into the given frame, but if you are using a controller which handles all the requests then you will need to do a bit more work
HTH


The secret to creativity is knowing how to hide your sources.
Sanjeev Kaushik
Ranch Hand

Joined: Aug 01, 2002
Posts: 105
Suppose there are two frames, Frame a and Frame b
html contents for frame a
input type=button value="Search" onclik="parent.frames.b.document.location='ServletPath'"
(plz correct spellings of click)
When you click on this button(Search), it will load the contents generated by the servlet mentioned in the servletpath.
Hope this helps.
Sanjeev Kaushik


Sanjeev Kaushik
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet in a frame
 
Similar Threads
how to interact between two internalframe
Frame question
Struts, Spring, JSF.....?
directing output to a frame
Servlet sending request object to 2 jsp's