Seems like we get a lot of these configuration errors in the bug
reports; the error 
is admittedly a bit obscure.

This patch may reduce the confusion somewhat:


public TableTag(){
    public int doStartTag() throws JspException {
        try {  // this class is new in commons-lang 2.0
            Class.forName("org.apache.commons.lang.WordUtils");
        } catch(ClassNotFoundException e){
            try {
                Class.forName("org.apache.commons.lang.enum.Enum");
                throw new JspTagException("\n\nYou appear to have an
INCOMPATIBLE VERSION of the Commons Lang library.  " +
                        "Displaytag requires version 2 of this library,
and you appear to have a prior version in your " +
                        "classpath.  You must remove this prior version
and ensure that only version 2 is in your classpath. " +
                        "Be sure to delete all cached or temporary jar
files from your application server; Tomcat users " +
                        "should be sure to also check the
CATALINA_HOME/shared folder; you may need to restart the server. " +
                        "commons-lang-2.jar is available in the
displaytag distribution, or from the Jakarta website at " +
                        "http://jakarta.apache.org/commons \n\n.");
            } catch (ClassNotFoundException ee ){
                throw new JspTagException("You do not appear to have the
Commons Lang library, version 2.  " +
                    "commons-lang-2.jar is available in the displaytag
distribution, or from the Jakarta website at " +
                    "http://jakarta.apache.org/commons .  ");
            }
        }
        // continue with the method.
    }
}


> -----Original Message-----
> From: SourceForge.net [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 23, 2003 8:17 AM
> To: [EMAIL PROTECTED]
> Subject: [displaytag-devel] [ displaytag-Bugs-828341 ] Struts 
> 1.1 / display Tag
> 
> 
> Bugs item #828341, was opened at 2003-10-22 16:32
> Message generated for change (Comment added) made by 
> abhijit_neogy You can respond by visiting: 
> https://sourceforge.net/tracker/?func=detail&atid=536613&aid=8
> 28341&group_id=73068
> 
> Category: main tag library
> Group: v 1.0-b1
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: abhijit neogy (abhijit_neogy)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: Struts 1.1 / display Tag
> 
> Initial Comment:
> The struts Action servlet forwards a JSP which inturn 
> uses the tag <display:table>
> 
> <display:table> works fine if I call the struts Action 
> servet directly from browser 
> Eg# http://someURL/mytest.do 
> 
> But if I call the same Action servlet from a form
> EG# <html:form action="/mytest.do"> the same JSP
> throws exception after org.display.tags.TagTable= 
> doStartTag().
> 
> The exception is:java.lang.Exception: 
> org/apache/commons/lang/StringEscapeUtils
> 
> Any suggestion ?? The Action servlet, The Data being 
> forwarded in ArrayList and the JSP is the same. Only 
> difference in how the Action servlet is being called.
> 
> Thanks
> Abhijit
> 
> 
> ----------------------------------------------------------------------
> 
> >Comment By: abhijit neogy (abhijit_neogy)
> Date: 2003-10-23 13:16
> 
> Message:
> Logged In: YES 
> user_id=892491
> 
> if the HTML Form calling the Action servlet (which forwards
> a JSP with <display:table>) has struts tag <html:text> then
> the <display:table> in the forwarded JSP throws Exception: 
> org/apache/commons/lang/StringEscapeUtils
> 
> But if in the HTML Form <input type="text"> is used insted of 
> <html:text> then the <display:table> tags works fine
> 
> 
> /**********************************************
> *******
> If this is the Form calling the Action Servlet
> Which inturn returns the JSP containing <display:table>
> tag . Then <display:table> in the returned JSP works
> **********************************************
> ******/
> <html:form action="/view.do">
> <Input type="text" property="caller" />
> <html:submit />
> </html:form>
> 
> 
> /**********************************************
> ********
> if <input type="text" is replaced by <html:text> 
> then the returned JSP containig <display:propert>
> throws Exception
> **********************************************
> *******/
> <html:form action="/view.do">
> <html:text property="caller" />
> <html:submit />
> </html:form>
> 
> 
> ----------------------------------------------------------------------
> 
> You can respond by visiting: 
> https://sourceforge.net/tracker/?func=detail&atid=536613&aid=8
28341&group_id=73068


-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations Here's your
chance to show off your extensive product knowledge We want to know what
you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
displaytag-devel mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel



-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to