Hey there,
i have a problem with an IFRAME and a java.util.List object. I get the list from a database in an Controller and sent it with an url for the home.jsp page back to the DispatcherServlet. The home.jsp page then loaded contains an IFRAME, which loads master.jsp in which i want to iterate over the list. But however the list is only available in home.jsp , not in master.jsp loaded in the IFRAME.
I need an IFRAME, so has anybody an idea how to solve this? I think the java.util.List object is appended to home.jsp page scope, so master.jsp has no access to it. I think appending the java.util.List to the session scope could solve this problem, but how to tell spring that?
Thanks in advance!
Angry Angel
====================================
Here some code snippets and informations
ViewResolver: InternalResourceViewResolver
Controller : HomeController extends AbstractController
UserAgent : Mozilla Firefox 1.0.4
HomeController.java
-------------------------
protected ModelAndView handleRequestInternal(
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) throws Exception
{
List allPersons = _dao.getAllPersons();
return new ModelAndView("home", "allPersons", allPersons);
}
home.jsp
--------------------------
<td bgcolor='#ffffff' width='20%'
style='border-right: #5DB500 1px solid'>
<iframe src='master.jsp' frameborder='0'
name='masterFrame' scrolling='auto'
height='100%' width='100%'>
<p>Ihr Browser unterstützt leider keine IFrames</p>
</iframe>
</td>


Reply With Quote