Werner Punz wrote:
Come on, has nobody had this problem so far? I am really stuck here.
Not everybody on this list is chained to their desk through the weekend... :-)
the part where the error is added:
ActionMessages errors = new ActionMessages();
errors.add("message", new ActionMessage("type mismatch
failure"+detail));
...
but now I get following error:
Servlet.service() for servlet action threw exception
<javax.servlet.jsp.JspException: Cannot find bean message in any
scope>javax.servlet.jsp.JspException: Cannot find bean message in any
scope
...
which means basically it has the message but the message bean itself
is not reachable thus the entire messaging system fails.
No, it means that it can't find a message resource with the key 'type
mismatch failure...'. The argument to the ActionMessage constructor should
be a resource key to look up in the message bundle. If you really want to
pass a literal string instead of a resource key, you need to tell
ActionMessage that:
errors.add("message", new ActionMessage(
"type mismatch failure"+detail, false));
L.
--
Laurie Harper
Open Source advocate, Java geek: http://www.holoweb.net/laurie
Founder, Zotech Software: http://www.zotechsoftware.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]