• Post Reply Bookmark Topic Watch Topic
  • New Topic

Request and Frames

 
Srinivas Mallela
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gurus,

I have just started working on the servlets and run into some problems and have a question on request object.

1) On the page1 User selects a couple of objects and select launch browser
2) Selecting the button will launch a new window or jsp -- this jsp consists of a frameset consisting of three frames each pointing to a jsp.
On the frameset jsp i can access the selected objects in the request object.
3) When i go to the jsp of one of the frame. I am not able to access the selected objects. so is this a new request object?

I can solve this problem by putting the selected objects in the session object. But is there any other better way of handling this problem

Regards,
Srinivas
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are quite right, the outer frame page and the page in each frame are retrieved as separate requests, hence you would need to pass the parameters in each request to make it available in each servlet request.

One easy solution is to not use frames CSS can provide rich presentation without requiring frames.
 
Srinivas Mallela
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks David.

If possible can you please provide some examples or pointer for developing this with out frames by using CSS.

Is that in place of frames i use DIVs?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The subject of page layout using CSS is an HTML/Javascript issue, not a Servlets issue. For that part of your question I suggest you begin asking questions in the HTML forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!