Forums Register Login

jsp and frames

+Pie Number of slices to send: Send
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�.





+Pie Number of slices to send: Send
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 ]
Would you like to try a free sample? Today we are featuring tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 835 times.
Similar Threads
Servlet redirect & frames
problems in frame and struts!!!!
frames
Jboss 5.1.0 jsp:root not working
Nested resultsets with 1 connection, possible?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 02:04:48.