[Logo]
Forums Register Login
Creating frames in JSP
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.
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.
 

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
Thanx a lot for the suggestion.

This thread has been viewed 8386 times.

All times above are in ranch (not your local) time.
The current ranch time is
Dec 15, 2018 01:39:58.