Matthew Phillips
Originally posted by Matthew Phillips:
I have an application that forwards to a page with frames. I am forwarding to a relative url in a sub-folder of the web app. It is able to find the relative url, but it does not find the frames. I get a 404 error in each frame telling me that it did not look in the same folder that the main page is in. Does anyone have any ideas on how to resolve this?
www.websiteandsound.com
"If you do what you've always done, you'll get what you've always gotten."
Matthew Phillips
Originally posted by Matthew Phillips:
Can a servlet have multiple url mappings? The servlet could return 1 of three screens based on input data. The framesets are in 3 seperate folders. I also already have a url map so that I do not have to call the servlet by /servlet/servlet-name.
www.websiteandsound.com
"If you do what you've always done, you'll get what you've always gotten."
Originally posted by Yuriy Fuksenko:
For this forward (I mean since it forward), the url for your frames should be relative to your original location.
If user tryed to access folder1\file1.html,
but you forward him to ..\folder2\file2.html, and file2.html contains some frames, request for this frames will be sent by a browser, and for browser you are still at folder1\file1.html. So if you frame url was frame2.html and frame2.html locate at folder2, frame url should be ..\folrder2\frame2.html
Matthew Phillips
Matthew Phillips
www.websiteandsound.com
"If you do what you've always done, you'll get what you've always gotten."
Originally posted by John Fontana:
If you use the second mapping that uses the administratorpages uri, then you do not want to specify that directory in your RequestDispatcher. It would look for a subdirectory in administratorpages called administratorpages.
Just use /framesmain.jsp in your RequestDispatcher, and use the second url-mapping you listed.
Matthew Phillips
www.websiteandsound.com
"If you do what you've always done, you'll get what you've always gotten."
Matthew Phillips
Matthew Phillips
www.websiteandsound.com
"If you do what you've always done, you'll get what you've always gotten."
Originally posted by John Fontana:
I called it using url: http(app-path)/administratorpages/test-me and it took me right to the frameset with no 404 errors.
Hope this helps!
[ May 15, 2002: Message edited by: John Fontana ]
Matthew Phillips
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |