You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by dh...@lexmark.com on 2001/05/30 21:30:59 UTC

redirect errors back to initial frame


Hi everyone.

I have the same problem that David Firmin posted back on the 8th March, but have
not seen any solution posted.

I have set the target frame in my <html:form> tag to be a different frame.
However, if errors occur with the first filter page, the errors should be
displayed in the original frame.

Does anyone know how to do this?  David, did you find any work around?

Many thanks,

Dave




RE: redirect errors back to initial frame

Posted by Abraham Kang <ab...@infogain.com>.
Hi Dave,

   Can you set the target to be the parent of both frames and reload both
frames every time?

   Another way of doing it would be to forget targeting the other frame and
dynamically building the subframe from the error frame using

DHTML's
parent.targetedFrame.document.open();
parent.targetedFrame.document.write("HMTL for currently targeted window");
parent.targetedFrame.document.close();

in the frame that is supposed to display the errors.

--Abraham

> -----Original Message-----
> From: dhay@lexmark.com [mailto:dhay@lexmark.com]
> Sent: Wednesday, May 30, 2001 12:31 PM
> To: struts-user@jakarta.apache.org
> Subject: redirect errors back to initial frame
>
>
>
>
> Hi everyone.
>
> I have the same problem that David Firmin posted back on the 8th
> March, but have
> not seen any solution posted.
>
> I have set the target frame in my <html:form> tag to be a different frame.
> However, if errors occur with the first filter page, the errors should be
> displayed in the original frame.
>
> Does anyone know how to do this?  David, did you find any work around?
>
> Many thanks,
>
> Dave
>
>
>
>