struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert D. Morse" <>
Subject Null Pointer Exception with Validator
Date Mon, 18 Feb 2002 21:38:08 GMT
I'm integrating the validator into an existing Struts application.  The
validation works properly (i.e., it checks for proper of length, content,
etc., of fields that I specify), however, when it comes to printing the
messages to the user, I get a NPE in MessagesTag.doStartTag:253
(pageContext.setAttribute(id, msg)).

In my jsp file I have:

	<bean:message key="errors.header"/>
	<html:messages id="error">
		<li><bean:write name="error"/></li>

I know that the <logic:messagesPresent> works properly because everthing is
fine when the page first displays.  It's obvious to me that it's with the
'id="error"', but quite frankly, I'm not sure what it should be or how to
fix it.  Thanks.

Robert D. Morse
PGP Key:  D9C4AA6A
PGP Finger Print:  ED56 DEEA 95CF AC99 C2B0  77D4 7D92 ACCA D9C4 AA6A

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message