tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Brogden <>
Subject Re: FRAMESET and request
Date Wed, 31 May 2000 11:38:47 GMT

Luc Margaron wrote:
> Hello,
> I have a file index.html which is a FRAMESET containg two frames
> f1.jsp and f2.jsp
> Then I have a servlet which forward the response to index.html and
> put a parameter in the request
>    req.setAttribute ("lang", "english");
>   RequestDispatcher dispatcher =
>         getServletContext().getRequestDispatcher("/index.html");
>           dispatcher.forward(req, res);
> The problem is that only  index1.html can access the request.
> If I do request.getAttribute ("lang") in f1.jsp or f2.jsp I get
> null.
> How can I forward the request object to many frames without using a
> session ?

Since each frame is a separate request from the browser you will
somehow have to put those attributes into the URL that goes
into the frameset. Probably by taking over output of index.html
instead of forwarding to it.


View raw message