Hi -

The string taglib sounded so useful that I just installed it.  Unfortunately
I am getting a 500 error when accessing the page that uses it (see below).
Any ideas why?

My environment is: Java 2 SDK SE, v 1.4.1 and Tomcat 4.1.

Thanks,

Dylan MacDonald


org.apache.jasper.JasperException: org/apache/commons/lang/NumberUtils
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:553)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:392)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
        at java.lang.Thread.run(Thread.java:536)


-----Original Message-----
From: Henri Yandell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 9:33 AM
To: Tag Libraries Users List
Subject: RE: RE: trim string, append '...'



Yep, that's exactly the reason for no releases, it's just not been worth
the messing around to support EL under JSP 1.1, though I did do the code
as a 'why not' in CVS.

By the way, I think you want the truncateNicely tag, or possibly the
wordWrap tag.

Hen

On Wed, 26 Nov 2003, Kris Schneider wrote:

> With JSP 2.0, request-time attribute values can use either the old "<%=
%>" or
> the EL "${}" without any changes by the taglib authors. So, with JSP 2.0,
the
> string taglib will be automagically EL-enabled.
>
> Quoting [EMAIL PROTECTED]:
>
> > Hi Otis
> >
> > Yes, this is another taglib (as there are taglibs in Jakarta that have
part
> > of the functionality of JSTL), but in my opinion it's an ideal companion
to
> > JSTL. We use both (and also other stuff like the mailer taglib), and it
> > works fine. There's nothing in JSTL that offers what the String taglib
> > offers - which is why we installed it :-)
> > No, the EL is not supported, but you can come pretty far by nesting
tags.
> > Perhaps one day, when Tomcat 5 with JSP 2 and EL as standard is
released,
> > the taglib authors will be forced to include EL.
> > But hey... why not ask the author? :-)
> >
> > Best regards,
> > Eric
> >
> > -----Original Message-----
> > From: otisg [mailto:[EMAIL PROTECTED]
> > Sent: Mittwoch, 26. November 2003 16:27
> > To: [EMAIL PROTECTED]
> > Subject: Re: RE: trim string, append '...'
> >
> >
> > Thanks.
> >
> > Please help me understand.  This is just another taglib, written
> > by Jakarta Taglibs developers, but this is not a part of JSTL.
> > Is this correct?
> > If it is...is there nothing in JSTL that offers equivalent
> > functionality?
> >
> > Also, regarding this String taglib, it looks like the last
> > release was about 10 months ago, which may be a good indicator
> > of stability :)  But in the Changes file I see that there is no
> > EL support in this 1.0.1 release, but it exists in CVS HEAD.
> > How come no new release in almost 10 months then?
> >
> > Thanks,
> > Otis
> >
> >
> >
> > ---- On Wed, 26 Nov 2003, [EMAIL PROTECTED]
> > ([EMAIL PROTECTED]) wrote:
> >
> > > Hi
> > >
> > > You should use the String tag library for that:
> > >
> > http://jakarta.apache.org/taglibs/doc/string-doc/string-1.0.1/index.html
> > >
> > > Best regards,
> > > Eric
> > >
> > > -----Original Message-----
> > > From: otisg [mailto:[EMAIL PROTECTED]
> > > Sent: Mittwoch, 26. November 2003 15:58
> > > To: [EMAIL PROTECTED]
> > > Subject: trim string, append '...'
> > >
> > >
> > > Hello,
> > >
> > > I am trying to find out if I can use any of the Jakarta
> > taglibs
> > > to do some string formatting.  In particular, I am trying to
> > > trim strings that exceed a certain length, and append
> > something
> > > like ellipses to it.
> > > e.g.
> > > Wolfgang Amadeus Mozard -> Wolfgang Amadeus M...
> > >
> > > I tried looking at the docs, but this URL gives a 404:
> > >
> > >
> >
http://jakarta.apache.org/taglibs/doc/standard-1.0-doc/standard-1.0/index.ht
> > > ml
> > >
> > > I cannot use a 1.1 version of standard taglibs, only 1.0.
> > > If support for this does not exist in 1.0, but does exist in
> > > 1.1, I would still love to know. :)
> > >
> > > Thank you,
> > > Otis
> > >
> > >
> > > ________________________________________________
> > > Get your own "800" number
> > > Voicemail, fax, email, and a lot more
> > > http://www.ureach.com/reg/tag
>
> --
> Kris Schneider <mailto:[EMAIL PROTECTED]>
> D.O.Tech       <http://www.dotech.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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

Reply via email to