aspose file tools*
The moose likes Servlets and the fly likes Servlet sending request object to 2 jsp's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet sending request object to 2 jsp Watch "Servlet sending request object to 2 jsp New topic

Servlet sending request object to 2 jsp's

kiran nori

Joined: May 28, 2001
Posts: 12
I have a page with 2 frames. Both the frames display 2 jsp files. when I submit the jsp in frame one to the servlet , the servlet returns back the jsp in frame one. Now I need to populate the results of the submit action on JSP 1 in JSP 2. can any one tell me how to do this.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
This a fairly standard frames problem. The trick is to set the "target" attribute of the link or form which causes the change to be the enclosing frameset rather than either of the two frames. The frameset can then refresh both the frames.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Servlet sending request object to 2 jsp's
Similar Threads
How to get the contents of a frame form another frame in javascript
Struts and Frames
Using Frames in JSPs
Selective frame refresh
Frameset and Servlet problem