I have a parent JSP that has widgets created using custom JSTL tags. To improve the page loading, I have used Jquery to dynamically load these widgets into Iframes. The source for the iframes is the widget code in separate JSP files.
So I created a JSP for each widget
$(function () {
var widgetSrc = ["frame1.jsp", "frame2.jsp", "frame3.jsp", "frame4.jsp", "frame5.jsp", "frame6.jsp","frame7.jsp"];
$.each(widgetSrc, function (index, element) {
var res = element.split(".");
var container = $("#"+res[0]);
appendNew(container, element);
})
})
Now in one of the widgets I need to access the HttpRequestrequest object to get few parameters.
In the parent jsp
<%= pageContext.findAttribute("sortBy") %>
is giving the parameter value
in the frame1.jsp
<%= pageContext.findAttribute("sortBy") %>
is always giving null
Please suggest how to pass the request object or the pagecontext of the parent.jsp to frame.jsp
Thanks in advance