File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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 .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: doubt in logic:messagesPresent tag implementation
 
Similar Threads
How to iterate over one List and get a nested property defined in a different List
Issues with <html:messages >
Handling Messages (v1.2.9)
ActionErrors
Struts Validator not validating on the server-side