struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abraham Kang" <>
Subject RE: Scope and re-display with errors problem...
Date Wed, 14 Mar 2001 20:18:55 GMT

   Due to the inherient problems with frames here is a solution for your

   Abstract out the logic to generate the list of items in a different
Action object.

   When you are outputting the the <FRAME> HTML tag,
   map that to the action object that will generate the list items.



   If you are submitting your form from a frame and not building a <FRAMESET

   try this:
      I am guessing that you have to sibling frames and the frame with the
list items is called "menuFrame".

      <Body onLoad="callAFunctionToReloadMenuFrame()">

      this function would reload the menuFrame with the URL above:

Hope This Helps,

> -----Original Message-----
> From: Firmin David []
> Sent: Wednesday, March 14, 2001 3:13 AM
> To: ''
> Subject: Scope and re-display with errors problem...
> Hi all,
> I make a request from a menu frame for a list of items, and they are then
> displayed in the adjacent main frame. Before the page is displayed, the
> "list" object is put in *request* scope in the code. If the user enters
> invalid data and submits the form (of which the list is a part), the page
> cannot be redisplayed with the associated errors as the "list"
> object is no
> longer visible to it. I have no wish (for a multitude of reasons)
> to put the
> "list" object in the session even though it would solve the problem.
> Is there another way around this? I have tried <bean:define> with
> toScope="request" in the original page but clearly cannot call the new
> variable the same thing, meaning that all my references to the bean within
> the page become invalid. (I am unsure whether or not this would've worked
> anyway)
> Any help in finding a way of doing this without using session
> scope would be
> very gratefully received!
> Thanks in advance
> Rgds
> David
> ************************************************************************
> The information in this email is confidential and is intended solely
> for the addressee(s).
> Access to this email by anyone else is unauthorised. If you are not
> an intended recipient, you must not read, use or disseminate the
> information contained in the email.
> Any views expressed in this message are those of the individual sender,
> except where the sender specifically states them to be the views of
> The Capital Markets Company.

View raw message