log_deepak
08-27-2004, 09:43 PM
Hello,
My name is Deepak. I have a jsp page. I'm including this as part of a screen. I need to show this page both as part of the screen as sand alone.
The problem is:
a)
If I need to show the page as part of the screen(For ex: url: http:\\contextroot\mypagescreen.screen), I have to give the images in the jsp file as <img src=contextroot\Images\image.gif>....
b)
If I need to show the page as standalone(For ex: url: http:\\contextroot\mypage.jsp), I have to give the images in the jsp file as <img src=\Images\image.gif>....
Since my requirement is to show the jsp page as both part of a screen as well as standalone, I'm thinking of having two jsp pages(with same content), one which i will use as part of the screen and another for standalone purposes. The only difference between these two will be that in one I will have the images as <img src=contextroot\Images\image.gif>.... and in the other as <img src=\Images\image.gif>....
However since its the same content, I feel this is not optimized. Can some body help me identify a mechanism in such a way that I can use the same jsp page both as part of a screen as well as stand-alone?
Thanks in advance.
Deepak
My name is Deepak. I have a jsp page. I'm including this as part of a screen. I need to show this page both as part of the screen as sand alone.
The problem is:
a)
If I need to show the page as part of the screen(For ex: url: http:\\contextroot\mypagescreen.screen), I have to give the images in the jsp file as <img src=contextroot\Images\image.gif>....
b)
If I need to show the page as standalone(For ex: url: http:\\contextroot\mypage.jsp), I have to give the images in the jsp file as <img src=\Images\image.gif>....
Since my requirement is to show the jsp page as both part of a screen as well as standalone, I'm thinking of having two jsp pages(with same content), one which i will use as part of the screen and another for standalone purposes. The only difference between these two will be that in one I will have the images as <img src=contextroot\Images\image.gif>.... and in the other as <img src=\Images\image.gif>....
However since its the same content, I feel this is not optimized. Can some body help me identify a mechanism in such a way that I can use the same jsp page both as part of a screen as well as stand-alone?
Thanks in advance.
Deepak