[EMAIL PROTECTED]
hi,
i am new to jsp, and having a jurky start indeed !,

I have made a bean named Bean_inv_db, and tested it in the bean box, i works
well.
i have put may .jsp file under the examples directory under the
Javawebserver2.0's
root directory.

i use this bean in a jsp page,  i call this page from another
page using form - POST

the code is as shown,

<html>
        <jsp:useBean id="myjdbc" scope="session"
class="sunexamples.beans.Bean_inv_db" />

        <jsp:setProperty name="myjdbc" property="*" />

        Total number of tables present are

        <%
        int t = myjdbc.getTotalTables();
        %>

        <%= t %>
        <br>
        The Tables are as follows

        <ol>
        <%
                for (int i=0; i< t; i++) {
                        myjdbc.setSearch(i);
        %>
        <li> <%= myjdbc.getTableName(); %>
        <%
                }
        %>
        </ol>

        <%@ include file ="inv1.html" %>
</html>

but i get the following error
        Error during compilation :
        sunexamples/beans/Bean_inv_db (wrong name: Bean_inv_db)


No instead of using this bean if i call some other bean (already supplied as
example, present
in the same dir) i don't get this error
(i remove the respective beans method calls)

I then removed all the tags/code from the jsp page , and just kept the
following lines,

        <html>
                <title>JSP page 2</title>
                trying

                Total number of tables present are
                <jsp:useBean id="myjdbc" scope="session"
class="sunexamples.beans.Bean_inv_db" />

        </html>

now i get the following error sometimes and sometimes the same error as the
previous one.

        500 Internal Server Error
        Java Server Page Translation Error
        Error during compilation :
        
C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_examples\_jsp\_inv\_inv__jsp2.java:18:
'}' expected.
            static char[][] _jspx_html_data = null;
                                           ^
        1 error

What could be the problem ?
Can't get it!,

Babita



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to