I've tried every single combination of message file names, struts, tiles
and the like to get iPlanet to see the messages and nothing worked.  I've
come to the conclusion that iPlanet is just a big pile of heisse Schiesse.
 It is odd because I use property files to config my own objects and they
can be found, though sometimes I have to name one with en_US.

To display error messages, I created a JSP that is included.  The code for
it is given below.  It is sad that I had to do it with this way.

Bryon
-----------------------------------------------------------------------------

<%@ page import="org.apache.struts.action.ActionMessages"%>
<%@ page import="org.apache.struts.Globals"%>
<%@ page import="org.apache.struts.action.ActionMessage"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="org.apache.struts.taglib.TagUtils"%>
<%
        ActionMessages errors =
TagUtils.getInstance().getActionMessages(pageContext, Globals.ERROR_KEY);

        if (errors != null)
        {
                Iterator messages = errors.get();
                if (messages.hasNext())
                {
%>
<ul>
<%
                        while (messages.hasNext())
                        {
                                ActionMessage message = 
(ActionMessage)messages.next();
%>
        <li><%=message.getKey()%></li>
<%
                        }
%>
</ul>
<%
                }
        }
%>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to