This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JSP and the fly likes pass request variables to frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "pass request variables to frames" Watch "pass request variables to frames" New topic

pass request variables to frames

Kathy Vance

Joined: Mar 02, 2004
Posts: 5
How to pass the request variables to a frame. I have a JSP page which follows a login page and has a frameset. The request variables lost after login screen. Any idea?
Thanks in advance.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

Since each frame is a separate window with its own request, the request parameters would need to be propogated to the URL being submitted to the frame(s).
[ March 03, 2004: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
Kathy Vance

Joined: Mar 02, 2004
Posts: 5
Thanks for the quick response, Bear.
You are right.
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
Another way round is, you may put the parameters inside the JavaScript code, and then use the JavaScript properties: = '';
to perform the variable passing.

SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
I agree. Here's the link:
subject: pass request variables to frames
jQuery in Action, 3rd edition