I downloaded the src from
http://jakarta.apache.org/builds/jakarta-struts/release/v1.0/src/ (the zip
file)

and the BaseTag.java revision I have does not have:

     public void setTarget(String target) {
         this.target = target;
     }
in it:

My revision number is: 

/*
 * $Header:
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/Attic/BaseTag.ja
va,v 1.2 2000/09/12 19:36:17 luis Exp $
 * $Revision: 1.2 $
 * $Date: 2000/09/12 19:36:17 $

what is the revision number you have?

-----Original Message-----
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 7:34 PM
To: [EMAIL PROTECTED]
Cc: '[EMAIL PROTECTED]'
Subject: Re: weblogic 60 sp1 and struts 1_0 and jsp1.1 spec


The Struts 1.0 version of BaseTag.java starts like this:

========== cut here ==========
public class BaseTag extends TagSupport {

   /**
    * The message resources for this package.
    */
   protected static MessageResources messages =
      MessageResources.getMessageResources(Constants.Package + 
".LocalStrings");
     /**
      * The target window for this base reference.
      */
     protected String target = null;
     public String getTarget() {
         return (this.target);
     }
     public void setTarget(String target) {
         this.target = target;
     }

========== cut here ==========

As you can see, there is a getter and a setter for BaseTag. I don't know 
why you're seeing the error, unless there's some older version of 
struts.jat that's being picked up along with the newer taglib.

--
Martin Cooper


At 09:15 AM 8/2/01, Ben Gill wrote:
> > Hi,
> >
> > Has anyone seen this before:
> >
> > 8-01 16:51:50:739 - (E) SMSActionServlet Thread [ExecuteThread: '11' for
> > queue: 'default']; Exception
> > [weblogic.servlet.jsp.JspException: (line 3): Error in using tag library
> > uri='/WEB-INF/struts-html.tld' prefix='struts': The Tag class
> > 'org.apache.struts.taglib.html.BaseTag' has no setter method
> > corresponding to TLD declared attribute 'target', (JSP 1.1 spec, 5.4.1)
> >         at
> >
weblogic.servlet.jsp.StandardTagLib.tld_jspException(StandardTagLib.java:2
> > 57)
> >         at
> > weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:389)
> >         at
> >
weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib.java
> > :267)
> >         at
> > weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:234)
> >
> > 02-08-01 16:51:50:740 - (E) SMSActionServlet Thread [ExecuteThread: '11'
> > for queue: 'default']; Unexpected exception:(line 3): Error in using tag
> > library uri='/WEB-INF/struts-html.tld' prefix='struts': The Tag class
> > 'org.apache.struts.taglib.html.BaseTag' has no setter method
> > corresponding to TLD declared attribute 'target', (JSP 1.1 spec, 5.4.1)
> >
> > It seems like the jsp1.1 spec says you must have get & set method for a
> > jsp Tag class.  The struts classes do not (as in the above example
BaseTag
> > has an attribute of target in its TLD file but no setTarget(String
target)
> > method... So when weblogic tries to resolve the tag library
> > struts-html.tld it falls over!
> >
> > I don't know how to get around this, other than adding set and get
methods
> > in every struts src file and rebuilding which could take quite a while
-:)
> >
> > Does anyone else have any ideas? or has anyone seen this before?
> >
> > Thanks
> >
> >
> >
> >
> >
>NOTICE AND DISCLAIMER:
>This email (including attachments) is confidential.  If you have received
>this email in error please notify the sender immediately and delete this
>email from your system without copying or disseminating it or placing any
>reliance upon its contents.  We cannot accept liability for any breaches of
>confidence arising through use of email.  Any opinions expressed in this
>email (including attachments) are those of the author and do not
necessarily
>reflect our opinions.  We will not accept responsibility for any
commitments
>made by our employees outside the scope of our business.  We do not warrant
>the accuracy or completeness of such information.




NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.

Reply via email to