wood burning stoves 2.0*
The moose likes JSP and the fly likes jsp and frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp and frames" Watch "jsp and frames" New topic
Author

jsp and frames

Shreenivaas Reddy
Greenhorn

Joined: Jul 04, 2006
Posts: 7
The task is to display daily product updated details in two frames.
I have a frameset of 2 frames.In the top frame the url (http://127.0.0.1/product/nokia1100120906.html) is to be dispalyed and
in the bottom frame the updated details of the product is to be displayed(i.e., content of http://127.0.0.1/product/nokia1100120906.html only).

my products table is like this---
prod_name sysdate company url
nokia1100 12-sep-06 nokia http://127.0.0.1/product/nokia1100120906.html
nokia1100 11-sep-06 nokia http://127.0.0.1/product/nokia1100110906.html

I am able to retrieve the url from the database and able to display it in the top frame and when I click the url, its content getting displayed in the bottom frame. That seems fine.
The problem here is�when I forward it to jsp, In top.jsp, I could able to get the url in the top frame, but I am not getting its content in bottom.jsp (ie., bottom frame) by default. Only when I click the click the url, I am getting the content in the bottom frame.
Can any one help me to code bottom.jsp�.





Rusty Smythe
Ranch Hand

Joined: Aug 09, 2006
Posts: 93
Okay. You mention that when you click on the url, it updates the bottom. This has nothing to do with anything (i.e., a red herring), so we'll ignore it.

Try this:
- Get rid of the database code for now (another red herring). Just set your variables to ONE value each and see what happens.

I'm not sure what you're asking - what is that first block of code? Who does it belong to? When does it get invoked? Is it another red herring?

I noticed one thing for later, after you get this all fixed:
- You are using session to store result data. Do not use session. Only use request for storing results of a database query. Did I mention do not use session? Why? Because when you use it to store inappropriate data, it eats memory like candy and never gives it back. Later on when you write Big Apps that are used by Many People, you will crash your servers if you use session to store transient data.
[ September 14, 2006: Message edited by: Rusty Smythe ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: jsp and frames