Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Frames in JSP  RSS feed

 
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.
 
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?
 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!