Avatar billede fredand Forsker
07. januar 2003 - 16:20 Der er 1 kommentar og
1 løsning

Problems with request and frames!

Hello!

I got a problem with passing a request through a frameset.

OBS!OBS!OBS!OBS!OBS!OBS!OBS!OBS!OBS!
If you would like to test run this your self, I have put a zip-file that you can download with a test app at:
http://www.it-gymnasiet.info/programmering_c/test.zip

I run this at a orion so I have to put these lines of code in two files:

server.xml:
<application name="test" path="../applications/test.ear" />

default-web-site.xml:
<web-app application="test" name="test" root="/test" />

In the zip-file there is a image that illustrates the hole test site that I hope explanie this a bit better.
OBS!OBS!OBS!OBS!OBS!OBS!OBS!OBS!OBS!

Now to the problem!

I got a form in a frame of a frameset.
That form is posted to a servlet that should update the frameset, both the form-frame and the frame next to that frame. Look at the jpg-picture.
So I have to send the form first to the servlet that prints out the frameset for these two frames. and after that try to send it further down to AreaControllerServlet

But the form only reach as below when I trace it.

ActionControllerServlet SOME TEXT
action.jsp         SOME TEXT
NextServletTagSupport     SOME TEXT
AreaControllerServlet     null

It seems that I lose it when I try to hand it over to the frames.

I have also tried to use the session but it is gone there as well.

So if any one can test run the app and give me some advice.

PS
I do not wish to add it with get in the url in the frameset since it might be to big.


Best regards

Fredrik
Avatar billede arne_v Ekspert
07. januar 2003 - 20:40 #1
I think what you are trying to do is why too complex.

JSP #1 -> frameset
JSP #2 -> frame with new state and form
submit -> Servlet #1
Servlet #1 redirect/forward to JSP #2
JSP #2 -> frame with new state and form

I think that is the intended way.
Avatar billede fredand Forsker
10. januar 2003 - 11:27 #2
Hello Arne_v!

I had to store it in the session and pick it upp form there on the other side of the frameset.

Thanks for your help!
Fredrik
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester