File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » JSP
Bookmark "pass request variables to frames" Watch "pass request variables to frames" New topic
Author

pass request variables to frames

Kathy Vance
Greenhorn

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.
Kathy
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61202
    
  66

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Kathy Vance
Greenhorn

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: document.xxx.value = '';
to perform the variable passing.
Nick.


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: http://aspose.com/file-tools
 
subject: pass request variables to frames