Two Laptop Bag
The moose likes JSP and the fly likes Passing a request object from a jsp to a frame within the same jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Passing a request object from a jsp to a frame within the same jsp" Watch "Passing a request object from a jsp to a frame within the same jsp" New topic
Author

Passing a request object from a jsp to a frame within the same jsp

Yagnesh Chawda
Greenhorn

Joined: May 30, 2006
Posts: 3
Hey All,
This is kinda urgent....hope to get bac replies as alwys ASAP

I have a jsp wherein there is an embedded frame. My problem is that i need the same request object in the frame as the jsp. I tried using sessions....but all i got was null null null.

okie here is wht i did
my jsp code is as follows

First.jsp

<% session.setAttribute("requestObject",request); %>
<iframe src="FirstFrame.jsp" name="tempFrm" frameborder="0" height="100" width="800"></iframe>

the frame code is as follows

<%
HttpServletRequest req = (HttpServletRequest)session.getAttribute("requestObject");
System.out.println("req : "
+req);
%>

the SOP tht i alwys get is null.


please help me guys.......i m stuck since mrng on this
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
a hint: your embedded JSP will be called in a separate request so won't have access to the request parameters from the primary request.


42
Yagnesh Chawda
Greenhorn

Joined: May 30, 2006
Posts: 3
Thanks a lot fr the reply. I knw tht the embedded jsp is also having its own request object. but i want the primary request object to be available in the frame 2. Is this possible....and if it is then could u throw some light on how can it be done.
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1004
No it is not possible.
What is it you are trying to accomplish?

Putting the info you are after in the session, and retrieving it in the iframe should work. Just not for objects like "request"
[ May 30, 2006: Message edited by: Stefan Evans ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing a request object from a jsp to a frame within the same jsp
 
Similar Threads
jsp scope problem
org.springframework.ws.client.WebServiceTransportException: Method Not Allowed [405]
Getting request object outside of DispatchServlet.
Get Request
If anybody can answer these two questions?