hi all,
i have a problem related with custom tag libraries
i wrote a java bean which makes a database connection and gets some data. In
my jsp page i want to use  <jsp:usebean> tag and set an attribute as below :
<%@ page import="dbconn"%>
....
<jsp:useBean id="conn" class="dbconn"  scope="page" property="user"
type="java.lang.String">
<jsp:setProperty name="conn" property="user" value="<%=user%>" />
</jsp:useBean>

i changed the value as a constant like value="yilmaz" but still didn't help.
i am getting a stack errors
org.apache.jasper.compiler.ParseException: /focus/login.jsp(14,45) useBean:
Invalid attribute, property
        at org.apache.jasper.compiler.JspUtil.checkAttributes(JspUtil.java:342)
        at org.apache.jasper.compiler.Parser$Bean.accept(Parser.java:643)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1126)
.....
What does invalid attribute means?
i don't think  that there is a syntax error.
One possibility is that i must declare the tag library including the
<jsp:useBean> tag .
i must confess i am new to TAGLIBs .
No matter which tutorial or article or document i read , i couldn't find a
related solution
AfAIK <jsp:useBean> tag  is already supported by JSP and doesn't need to be
declared in web.xml file.
If i am wrong , can someone please tell me which tag lib  and tld file i
must put in its proper place
Thanks a lot for taking time
cheers :)

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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