This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes jsp frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jsp frames" Watch "jsp frames" New topic
Author

jsp frames

Aparna Ram
Ranch Hand

Joined: Jan 27, 2006
Posts: 59
Hello,

I have a jsp page with 4 frames.
On frame1 is a submit button, clicking on which should allow me to forward the current page on frame2 to another jsp page.

How can I go about doing this?
Kindly guide.

Thanks in advance
Aparna
[ March 20, 2006: Message edited by: Bear Bibeault ]
Satish SN
Ranch Hand

Joined: Apr 19, 2005
Posts: 70
Hi Aparna

u can achieve what u r trying do with Javascript

for that u need to try to search in the net for following examples it would help u to do

u need to write a javascript function on the submit of third frame to submit the form in the second frame to call the jsp

this is if u r using forms to submit the jsp
document.frames['framename'].formname.submit

this is if u want to simply call the jsp directly
document.frames['framename'].location.href = "xyz.jsp"

u can search the same in net for suitable examples



Satish SN


Satish SN<br />SCJP 1.4 & SCWCD 1.4
Aparna Ram
Ranch Hand

Joined: Jan 27, 2006
Posts: 59
Hi Satish,
Thank you for the reply.
I havent completely understood what you have suggested me. I am quite new to this area.

To make it more clear,
I have 4 frames on one jsp page. frame1, frame2, frame3, frame4.

frame1 is a picture.
frame2 contains the Header.
frame3 is a jsp page that contains a 'SEARCH' Submit button. It uses the servlet named search_results.java
frame4 is a jsp page that already contains an 'ADDUSER' submit button. It uses the servlet named sip_servlet.java


Now when I click on SEARCH button on frame3, I would like the jsp page on frame4 to forward to another jsp page[newjsp.jsp].

According to your suggestion, I am not able to follow where I should create the Javascript function.

Kindly guide me further.
Thanks for your help.

Aparna
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

kumar satish, JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

Please read this for more information.

thanks,
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

Moved to the HTML forum.
Aparna Ram
Ranch Hand

Joined: Jan 27, 2006
Posts: 59
Can somebody kindly guide me further?

TIA
Aparna
Niki Nono
Ranch Hand

Joined: Mar 20, 2005
Posts: 256
in action attribute of FORM of frame 4 mention the page you want it to go to. then from frame3 call
top.FRAME4NAME.document.submit().
I am not sure about the syntax but i hope you get the idea.


Life called,so here I am.<br />Cheers<br />Niki.:-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp frames
 
Similar Threads
Frame Refresh code in HTML or Java Script
frames help
problem with forward tag
how can i include a JSP in an HTML page?
Frames with Tiles