On Thu, 17 Jan 2002, Matt Raible wrote:
> Date: Thu, 17 Jan 2002 13:11:06 -0700
> From: Matt Raible <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Digester.debug() deprecated - what to replace with?
>
> Cool - thanks!
>
> Also, I'm trying to use the workflow sample from struts-simple and I'm
> getting a deprecation warning on RegistryServlet. I looked in the javadocs
> for 1.1.1 of Digester, but gives no indication of what the new method should
> be.
>
I assume you mean getDebug() and setDebug(), right?
The HEAD branch of Struts (1.1-dev) will need the HEAD branch of BeanUtils
and Digester (which will need to have formal releases before Struts 1.1
goes final, but that should not be a problem). In the current Digester
code, we switched to using the commons-logging package, a wrapper that
hides which underlying logging technology you like. Adapters are provided
for:
* NoOpLogger - (Default) no output at all
* Jdk14Logger - Uses the logging calls in JDK 1.4
* Log4JCategoryLog - Uses Log4J
* LogKitLogger - Uses LogKit (subpackage of Avalon)
* SimpleLog - Logs to System.out
We're now packaging commons-logging.jar with the nightly builds of Struts,
so you would need to configure it appropriately to see the debug output
messages from Digester. A nightly binary (including Javadocs that contain
usage documentation) can be found at:
http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-logging/
It's probably also time to think about migrating some portion of the
existing stuff that Struts logs to use these mechanisms as well.
> Thanks,
>
> Matt
>
Craig
> -----Original Message-----
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 17, 2002 12:07 PM
> To: Struts Developers List; [EMAIL PROTECTED]
> Subject: RE: Exception creating bean of DynaActionForm
>
>
>
>
> On Thu, 17 Jan 2002, Matt Raible wrote:
>
> > Date: Thu, 17 Jan 2002 11:49:20 -0700
> > From: Matt Raible <[EMAIL PROTECTED]>
> > Reply-To: Struts Developers List <[EMAIL PROTECTED]>,
> > [EMAIL PROTECTED]
> > To: Struts Developers List <[EMAIL PROTECTED]>
> > Subject: RE: Exception creating bean of DynaActionForm
> >
> > I'm thinking this might've had to do with the java.lang.String[] - cause
> it
> > works when I simply have "action" defined as a property. Is it possible
> to
> > declare arrays for this?
> >
>
> It's supposed to allow you to declare arrays that way -- it looks like I
> forgot to put in the special handling that is required. Will be patched
> today.
>
> > Thanks,
> >
> > Matt
> >
>
> Craig
>
>
> > -----Original Message-----
> > From: Matt Raible [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 17, 2002 10:30 AM
> > To: Struts Developers List
> > Subject: Exception creating bean of DynaActionForm
> >
> >
> > First of all - thanks for adding this "feature" Craig. I am now trying to
> > use
> > it in my application.
> >
> > I followed the syntax I found in last night's struts-example
> > struts-config.xml
> > - and copied all the jars from it. So I have as follows:
> >
> > <form-bean name="courseForm"
> type="org.apache.struts.action.DynaActionForm">
> > <form-property name="action" type="java.lang.String"/>
> > <form-property name="courseId" type="java.lang.int"/>
> > <form-property name="courseName" type="java.lang.String"/>
> > <form-property name="description" type="java.lang.String"/>
> > <form-property name="topics" type="java.lang.String[]"/>
> > <form-property name="creator" type="java.lang.String"/>
> > </form-bean>
> >
> > In my JSP page I have:
> >
> > <html:form action="/editCourse">
> > <html:submit property="action"/>
> > </html:form>
> >
> > But I'm getting this exception:
> >
> > javax.servlet.ServletException: javax.servlet.ServletException: Exception
> > creating bean of class org.apache.struts.action.DynaActionForm: {1}
> > at
> >
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> > l.java:457)
> > at org.apache.jsp.courseList$jsp._jspService(courseList$jsp.java:180)
> > 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:202)
> > at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Send FREE video emails in Yahoo! Mail!
> > http://promo.yahoo.com/videomail/
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>