I noticed you're using the el tags so you must be using a Servlet 2.3 container. You don't have to copy tld files for 2.3. If you use the official uri listed in the tld to import the taglibs the container will find the tlds automatically. This isn't causing your NPE but it will save you deployment time.

David

This morning I got rc1 and copied over all the .jar and .tld files, plus
validator-rules.xml into my webapp. I cleaned, recompiled, deleted all the
work files, restarted Tomcat, reinstalled my app, and I repeatedly get a NPE
when trying to access my forms:


[ServletException in:/WEB-INF/jsp/chooseProfileBody.jsp] null'

java.lang.NullPointerException
        at
org.apache.struts.util.RequestUtils.getActionMappingName(RequestUtils.java:5
77)
        at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:726)
        at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:501)
        at
org.apache.strutsel.taglib.html.ELFormTag.doStartTag(ELFormTag.java:325)
        at
org.apache.jsp.chooseProfileBody_jsp._jspx_meth_html$1el_form_0(chooseProfil
eBody_jsp.java:91)
        at
org.apache.jsp.chooseProfileBody_jsp._jspService(chooseProfileBody_jsp.java:
70)

line 70 of chooseProfileBody_jsp.java is:
      if (_jspx_meth_html$1el_form_0(pageContext))

Did I miss some vital part of 1.1-rc1? The only "old" .jar file that's left
is commons-services.jar.


I have debugging info showing at the bottom of my jsp's, and I can see the
Form beans in the appropriate scope.

The struts-example works, but so did this webapp on Friday! I didn't change
any of the code, I only replaced all of the .jar and .tld files in the
project with the ones from 1.1-rc1.


Help!

--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



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



Reply via email to