• Post Reply Bookmark Topic Watch Topic
  • New Topic

Frames in JSP  RSS feed

 
Neha Dharwadkar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to use frames in a JSP page that will be called from a servlet .After the update button is clicked on jsp page , i need to update some fields in the DB.

I needa typical frame layout with 3 frames on the page header , panel and body frame,but am confused as to how to embed that in JSP.
I am aware about using it in HTML.

Please help.
 
Anirvan Majumdar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could divide your screen to have the frame like look by having DIVs for different sections of your page and then using <jsp:include> or the "include" directives to embed content from other files. I suggest you read up a bit on these two ways before putting them to use, and see if they can effectively meet your requirements.
Also, using frames isn't any longer an advised practice. Session management can get to be quite a cause of concern.
 
Neha Dharwadkar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Anirvan for guiding.Any idea about using JSP template instead?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frames are no different using JSP than they would be using HTML.
The output of JSP is HTML (or whatever other text you care to produce).

Frames are individual web pages embedded in other pages, each is the result of a separate request from the client. In other words, the JSPs have no idea that they're being displayed as frames.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!