Marco M wrote:
>
> hi all,
>         i wrote a custom tag for generating HTML from an XML file included
> in the JSP page
> the structure is EXACTLY the same as the example provided by Craig
> McClanahan
> as long as i wrote the tag WITHOUT attributes, everything works fine
> however, when i add an attribute to the tag, i always receive the error
>
> 'Cannot find any information on property 'xsl' in a bean of type
> 'MyTagClass'
>
> the tag should be used like this
>
> <mytag:xml  xsl="myfile.xsl">
> <? xml version="1.0"?>
> <document>
>         <content>simple example</content>
> </document>
> </mytag:xml>
>
> in the corresponding java class, i add two methods:
>
> setXsl(String xsl)
>
> getXsl()
> [...]

Assuming the above is not a typo, the problem is that the setter method
is not declared public. It should be like this instead:

  public void setXsl(String file) {
    xslFileName = file;
  }

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to