Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp and frames  RSS feed

Shreenivaas Reddy
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ( is to be dispalyed and
in the bottom frame the updated details of the product is to be displayed(i.e., content of only).

my products table is like this---
prod_name sysdate company url
nokia1100 12-sep-06 nokia
nokia1100 11-sep-06 nokia

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
Posts: 93
Mac Objective C Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!