You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by deepaksawdekar <de...@infosys.com> on 2003/11/06 19:50:55 UTC
ActionErrors are not displayed after page is refreshed.
Hi,
I have a jsp in which i have written the following code to display the errors,
<logic:messagesPresent>
<p CLASS="errorsHeader">
<bean:message key="errors.validation.header"/>
</p>
<html:messages id="error">
<li><c:out value="${error}"/></li>
</html:messages>
<hr SIZE="1" NOSHADE WIDTH="620" ALIGN="left">
</logic:messagesPresent>
Along with that i have a code to at the bottom of page to go to top of the pages as follows,
<TD ALIGN="center" COLSPAN="10"><A HREF="#top"><html:img page="/images/IcoGoTop.gif" width="17" height="17" border="0" alt="Top of Page"></html:img></A>
</TD>
Now the problem i am facing is that when i click on top image the page gets refreshed and errors messages goes off.
Is there any way i can provide a code to goto top along with keeping the error messages.
Thanks and Regards
Deepak.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: ActionErrors are not displayed after page is refreshed.
Posted by Christine Gerstenmayer <ch...@chello.at>.
Hi,
I think the problem is that you define a new Event when going to top of your
page. Try this: make a simple javascript, that sets the focus to an element
at the top of the page (that leads the browser to go to the "focused"
element and therefore to the top of the page), then your Error-Messages
should remain.
Regards
Christine
-----Ursprüngliche Nachricht-----
Von: deepaksawdekar [mailto:deepaksawdekar@infosys.com]
Gesendet: Donnerstag, 06. November 2003 19:51
An: Struts Users Mailing List
Betreff: ActionErrors are not displayed after page is refreshed.
Hi,
I have a jsp in which i have written the following code to display the
errors,
<logic:messagesPresent>
<p CLASS="errorsHeader">
<bean:message key="errors.validation.header"/>
</p>
<html:messages id="error">
<li><c:out value="${error}"/></li>
</html:messages>
<hr SIZE="1" NOSHADE WIDTH="620" ALIGN="left">
</logic:messagesPresent>
Along with that i have a code to at the bottom of page to go to top of the
pages as follows,
<TD ALIGN="center" COLSPAN="10"><A HREF="#top"><html:img
page="/images/IcoGoTop.gif" width="17" height="17" border="0" alt="Top of
Page"></html:img></A>
</TD>
Now the problem i am facing is that when i click on top image the page gets
refreshed and errors messages goes off.
Is there any way i can provide a code to goto top along with keeping the
error messages.
Thanks and Regards
Deepak.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org