messages in jsp
catch (aException de)
{
messages.add(ActionMessages.GLOBAL_MESSAGE,new
ActionMessage("ary"));
}
catch (Exception e)
{
// Report the error using the appropriate name and ID.
messages.add(ActionMessages.GLOBAL_MESSAGE,new
ActionMessage("cry"));
}
if (!messages.isEmpty())
{
saveMessages(request,messages);
}
jsp code in error page
<bean:write key="ary">
<bean:write key="cry">
getting both message at a time while I want one message at a time depending on exception.
also tried logic present but no avail

