Wolfgang, Can you post some of your validation file's form definition for "TAform"? Any change your validation file's form isn't exactly spelled "TAform" (small "F"?)?
Regards, David -----Original Message----- From: Rinnert, Wolfgang [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 11:43 AM To: 'Struts Users Mailing List' Subject: AW: nullpointer in struts-tag On my previous posting I missed the fact that the error happens in JavascriptValidatorTag, which was my issue all along. It made me upgrade from Struts 1.1 to 1.2.4 in the first place. java.lang.NullPointerException at org.apache.struts.taglib.html.JavascriptValidatorTag.renderJavascript(Javasc riptValidatorTag.java:358) at org.apache.struts.taglib.html.JavascriptValidatorTag.doStartTag(JavascriptVa lidatorTag.java:333) at org.apache.jsp.TA_jsp._jspx_meth_html_javascript_0(TA_jsp.java:212) at org.apache.jsp.TA_jsp._jspx_meth_html_html_0(TA_jsp.java:135) at org.apache.jsp.TA_jsp._jspService(TA_jsp.java:99) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) Again, any hints where or what I should look at? Mit freundlichen Grüßen Wolfgang Rinnert -----Ursprüngliche Nachricht----- Von: Juan Salazar [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 23. November 2004 16:08 An: Struts Users Mailing List Betreff: Re: nullpointer in struts-tag i think this bug was fixed on release 1.2.6 (release date 22/nov). Check it out. El mar, 23-11-2004 a las 15:55 +0100, Rinnert, Wolfgang escribió: > Hi All, > I have difficulties to get my webapp running. > This is my first attempt to do more than training apps. > I use Struts 1.2.4, Tomcat 4.1.30, Linux. > The following exception occurs when calling TA.jsp directly, > before anything is visible on the screen: > > ----------------- > java.lang.NullPointerException > at > org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java:121 > 9) > at org.apache.struts.taglib.TagUtils.message(TagUtils.java:1082) > at > org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:226) > at org.apache.jsp.TA_jsp._jspx_meth_bean_message_0(TA_jsp.java:195) > ----------------- > > Here is TA.jsp (abbreviated). > I have tried the commented-out versions of html:html and html:javascript, > too. > > ----------------- > <%@ page language="java" %> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > <%@ page import="oa.cts.*" %> > > <% java.util.logging.Logger logger = LoggerInitiator.getLogger(); > logger.info( "TA.jsp" ); %> > <html:html> > <%-- html:html locale="true" --%> > <%-- html:html lang="true" --%> > <head> > <html:base/> > <title> > <bean:message key="index.title"/> > </title> > </head> > <body bgcolor="#aaaaff"> > > <html:javascript formName="TAform" dynamicJavascript="true" > staticJavascript="false" /> > <%-- html:javascript formName="TAform"/ --%> > <script type="text/javascript" src="staticJavascript.jsp"></script> > > <table border="1" cellpadding="5" align="center"> > <tr> > <td><font color="#ff5522"><h2><bean:message > key="prompt.tajsp.transportauftrag"/></h2></font></td> > <td><img border="0" src="images/Enjoy.gif" width="100" > height="70" /></td> > </tr> > </table> > <br /> <br /> > <html:form method="POST" action="/createTA" focus="anforderer" > onsubmit="return validateTAform(this);"> > > <table border="0" cellpadding="5"> > <colgroup> > <col /> > <col /> > <col /> > </colgroup> > <tr> > <td><bean:message > key="prompt.tajsp.anforderer"/></td> > <td><html:text property="anforderer" size="20" > /></td> > <td><font color="#ff5522"><strong><html:errors > property="anforderer" /></strong></font></td> > </tr> > <!-- ..... Further fields left out ..... --> > > </table> > <br /> > <html:submit property="submit" /> > <html:reset /> > <br /> > <img border="0" src="images/struts-power.gif" align="right" > alt="Struts-Logo" /> > </html:form> > </body> > </html:html> > ----------------- > > Of course, the jsp contains a DynaValidatorForm, defined as follows. > > ----------------- > <form-bean name="TAform" > type="org.apache.struts.validator.DynaValidatorForm"> > <form-property name="transportnr" type="java.lang.String" > size="10" /> > <form-property name="anforderer" type="java.lang.String" > size="12" /> > <form-property name="orgdvnr" type="java.lang.Integer" > initial="0" /> > <form-property name="hinweisnr" type="java.lang.Integer" > initial="0" /> > <form-property name="bemerkung" type="java.lang.String" > size="1000" /> > <form-property name="wann" type="java.lang.String" > initial="heute" /> > <form-property name="eilt" type="java.lang.Boolean" > initial="false" /> > <form-property name="transportweg" type="java.lang.String" > initial="D11 -> K11" /> > <form-property name="sonderfall" type="java.lang.String" > initial="Standard" /> > </form-bean> > ----------------- > > This is the action defined: > > ----------------- > <action path="/createTA" > type="oa.cts.TAAction" > name="TAform" > scope="request" > validate="true" > input="/TA.jsp"> > </action> > ----------------- > > Reading the source of the javascript tag and the list archives, I guess > something is wrong with the session. > But I am clueless where this error is originated or how to correct the > problem. > > Mit freundlichen Grüßen > > Wolfgang Rinnert --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]