Hi Michael

Consider the login file is login.jsp and the file with frames is frames.jsp and
frames.jsp displays two frames, frame1.jsp and frame2.jsp.

The flow then is like this:

browser (login.jsp) -> frames.jsp -> webserver -> frame1.jsp -> frame2.jsp ->
browser (frames.jsp)

The file frames.jsp does not "include" frame1 and frame2 as done by
<jsp:include../> command. But the webserver calls frame1 and frame2 after it sees
that the return value of the first call is a frameset. So, the HttpSerlvetRequest
object is destroyed. The solution is to either make your values as part of session
variables or use a servlet as :-

     frame src="/servlet/MyServlet?param=value"

and from your servlet you should do

     request.setAttribute("XX", "yy");
     getServletContext().getRequestDispatcher("frame1.jsp").forward(request,
     response);


Regards.

Michael Maram wrote:

> Hi
>
> I have a html page that calls another page which defines a FRAMESET. The two
> frames display but when I want to get information captured on the first
> screen (login) screen using request.getParameter("XX") I get a null value.
> When I call the jsp page directly from the login page the values display
> correctly. Does anybody know why the values are not being passed when the
> page is defined as a frame ? Is there a workaround ?

--
shiv
[EMAIL PROTECTED]



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://messenger.yahoo.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to