You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Swaminathan Gurumoorthy <sw...@yahoo.com> on 2003/06/08 00:21:34 UTC

"target" attribute problem

I am using "target" attribute in html:form to display the results of a serachform in an inline frame
 
<html:form method="post" action="/myAction" target="myFrame" ">

In the validate method of the form bean I validate the search form. If the validate method  has no actionerrors the results are displayed correctly in the result frame. That's fine. 
 
But the problem is if my validate method returns actionerrors, it is not displayed back on the parent page. Instead I get a error on the result frame saying "Page not found". I think this is because the "target" of html:form attribute is redirecting the output to the target frame .
 
How will I display any errors on the parent search page instead of getting 404 message on the target result frame?
 
Thanks
Swami



---------------------------------
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).