This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Creating frames in JSP  RSS feed

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following is the requirement :
I need to create frames using jsp in the same way one creates frames with HTML code. I need to specify JSP pages for each frame, i,e each frame corresponds to a JSP page. At this moment I am aware that the "src" attribute in frame is used to specify only html pages. Any help is appreciated. Thanx in advance.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I am concerned you can do it exactly as you would on HTML-pages and that the SRC-attribute can be used to specify other file-types than HTML as well.
 
Author
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I need to create frames using jsp in the same way one creates frames with HTML code. I need to specify JSP pages for each frame, i,e each frame corresponds to a JSP page. At this moment I am aware that the "src" attribute in frame is used to specify only html pages.


The key point to remember is that JSP runs on the server (thus the name JavaServer Pages). So, the browser sees only the output of the JSP page, and thus you are specifying an HTML page when you supply a .jsp URL (assuming the standard case when the JSP outputs HTML). Same goes for servlets, BTW.
So, just use FRAME in the usual way:

Cheers-
- Marty
 
Sabarish Varma
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx a lot for the suggestion.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!