File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes doubt in logic:messagesPresent tag implementation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "doubt in logic:messagesPresent tag implementation" Watch "doubt in logic:messagesPresent tag implementation" New topic

doubt in logic:messagesPresent tag implementation

rachana ravali
Ranch Hand

Joined: Jun 20, 2006
Posts: 32
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 .
I agree. Here's the link:
subject: doubt in logic:messagesPresent tag implementation
It's not a secret anymore!