Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

doubt in logic:messagesPresent tag implementation

rachana ravali
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • 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 .
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!