This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error Messages Display in Order

 
anand vala
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If I use <html: error/> It throughs bunch of all error messages in order.
If I use <html:errors property="name"> it's giving messsage of that porperty.

I am trying to display error messages dynamically based on preporty
<%
ActionErrors ae = (ActionErrors)pageContext.getAttribute(Action.ERROR_KEY, PageContext.REQUEST_SCOPE);
if(ae!=null) {

Iterator it=ae.properties();

while(it.hasNext())
{
String strProp=(String)it.next();
%>
<html:errors property='<%=strProp%>'>


<%}%>

My Problem is Error Messages not Displaying in order it's following own order defined by prperty, But when use <html: error> all messages displaying in order.
Any once can help me to display error messages dynamically in Order.
Because I need this requirement to Add acnhor tag hyper link to error messages.

Regards,
Andy

[ June 12, 2006: Message edited by: anand vala ]
[ June 13, 2006: Message edited by: anand vala ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic