• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error Messages Display in Order

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic