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
Joined: Dec 15, 2001
Posts: 7
posted
0
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
Joined: Jan 02, 2003
Posts: 111
posted
0
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
Java training and consulting<br /><a href="http://www.coreservlets.com/" target="_blank" rel="nofollow">http://www.coreservlets.com/</a>