From: Anthony E. <me...@an...> - 2002-06-02 12:45:08
|
> -----Original Message----- > From: for...@li... > [mailto:for...@li...] On > Behalf Of Ken Keller > Sent: Saturday, June 01, 2002 11:01 PM > To: for...@li... > Subject: [FormProc-developer] does anyone use this w/ > Turbine/Velocity? > > > Does anyone use this w/ Turbine/Velocity? > > When I open: > localhost:8080/formproc-example > > I get the index.jsp except the Age fields contains 0. Is this > intentional? It is just a side-effect of the fact that User.age field does not have an initial value. You could probably change it to type Integer and then check for null and display nothing if the value is null. > If I fill in all fields, process.jsp presents the User object > just fine. > > If I leave either password field blank, I get a stack trace: > javax.servlet.ServletException: exception from JPython: > Traceback (innermost > last): > File "", line 5, in ? > TypeError: len() of unsized object > > at > org.apache.jasper.runtime.PageContextImpl.handlePageException( > PageContextImp > l.java:442) > at > org.apache.jsp._0002fprocess_jsp._jspService(_0002fprocess_jsp > .java:166) > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service > (JspServlet.ja > va:200) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet > .java:379) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) This has been fixed in the CVS (it was a problem in PasswordValidator.py). > > If I type the wrong date format, the date field is blanked > when the former is redisplayed. Is this intentional? Right now the converter behavior is to throw an exception if the date is formatted incorrectly. If an exception is thrown then the value is never saved to the object. BTW: Have you tried the FormProcService which is a TurbineService implementation yet? I haven't tested it yet so I would be interested if anyone who does use Turbine on a regular basis would take a look at it. It is in the CVS in the turbine-service module. Sincerely, Anthony Eden |