Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating frames in JSP  RSS feed

 
Sabarish Varma
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.
 
Mika Hirvasoja
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.
 
Marty Hall
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!