GeeCON Prague 2014*
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


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "doubt in logic:messagesPresent tag implementation" Watch "doubt in logic:messagesPresent tag implementation" New topic
Author

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 .
 
GeeCON Prague 2014
 
subject: doubt in logic:messagesPresent tag implementation