This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes html:errors and frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:errors and frames" Watch "html:errors and frames" New topic

html:errors and frames

Brian Quinn
Ranch Hand

Joined: Dec 23, 2003
Posts: 32
I have a struts application that uses frames, templates and <html:errors>. The problem is if an error occurs, the forward sends the error to the parent frame, but the parent frame does not get the error to the body frame, which contains the html: form and html:error tags. If I change the forward directly to the body page, the error pops up, but the page is missing the header and footer provided by the template. How do I get the error to the proper page through frames?
Junilu Lacar

Joined: Feb 26, 2001
Posts: 4456

Can't say for sure without seeing some of your frame/html source. I would imagine you'd have to specify a target for each link and button action. I haven't done Frames with Struts though. Have you ever considered using Tiles instead?

Junilu - [How to Ask Questions] [How to Answer Questions]
I agree. Here's the link:
subject: html:errors and frames