• 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

doubt in logic:messagesPresent tag implementation

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
i am constructing an exception in bussiness layer and using that exception to check validation in the jsp page.
i am using the following type of method to construct a exception to send a exception to the scope of jsp .
BussLayerError blError = new BussLayerError(NULL-STRING, ColumnName,
new String[] { tableindex , row_des,rowindex , errormsg });

in the above method if the error is in the Column one then the using the value one i will check in the jsp page with <logic:messagesPresent> and if it is true then i am displaying it in error style.
using <logic:messagesPresent> i am only able to use the properties ColumnName from the above blError ,But i need to get the rowindex which is present inside the string[].
if i have to check with respect to the ColumnName then i can use
<logic:messagesPresent property="valueof ColumnName" messages="true">

But what should i use if i have to check with respect to rowindex which is inside the string array ???
Please let me know .
 
reply
    Bookmark Topic Watch Topic
  • New Topic