Is your bean:define inside your html:form tags?  If
the userForm doesn't exist, you would get a null
pointer exception trying to call it.  If this doesn't
help, seeing the whole form might.

David

--- Yuriy Zubarev <[EMAIL PROTECTED]> wrote:
> Salutation to everyne!
> 
> I have a form (extends ActionForm) that has a
> property "countriesList"
> which holds a list of beans. In jsp form page I have
> a code:
> 
> <bean:define id="cl" name="userForm"
> property="countriesList"/>
> 
> which is executed without problems when the page is
> shown first time,
> but when I click submit without entering values into
> textboxes,
> "valiate" method of my "UserForm" works out and
> redirects the flaw
> back to "user.jsp" and here I get exception. Looks
> like "countryList"
> property vanishes from "userForm".
> 
> <Jul 14, 2001 5:43:43 PM PDT> <Info> <HTTP>
> <[WebAppServletContext(2485833,haa)] action:  
> Validation error(s), redire
> cting to: /user.jsp>
> <Jul 14, 2001 5:43:43 PM PDT> <Error> <HTTP>
> <[WebAppServletContext(2485833,haa)] Servlet failed
> with Exception
> java.lang.NullPointerException
>         at
>
weblogic.utils.UnsyncHashtable.put(UnsyncHashtable.java:272)
>         at
>
weblogic.servlet.jsp.PageContextImpl.setAttribute(PageContextImpl.java:124)
>         at
>
weblogic.servlet.jsp.PageContextImpl.setAttribute(PageContextImpl.java:149)
>         at
>
org.apache.struts.taglib.bean.DefineTag.doStartTag(DefineTag.java:210)
>         at
> jsp_servlet._user._jspService(_user.java:1899)
>         at
>
weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
>         at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213)
>         at
>
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:157)
>         at
>
org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:2149)
>         at
>
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
>         at
>
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
>         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213)
>         at
>
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265)
>         at
>
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1631)
>         at
>
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
>         at
>
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> 
> Any help will be highly appreciated.
> 
> Thank you for your time.
> 
> Best of luck,
> Yuriy Zubarev
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to