Results 1 to 2 of 2

Thread: IFrame and List Object

  1. #1
    Join Date
    Jul 2005
    Location
    Lübeck, Germany
    Posts
    9

    Default IFrame and List Object

    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>

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    I think appending the java.util.List to the session scope could solve this problem, but how to tell spring that?
    handleRequestInternal has the request object available, so you can just get at the session that way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •