Hi dear,


go to
G:\docs\Web-inf\classes

and then compile your file  by following command

G:\docs\Web-inf\classes\>javac ./name/NameBean.java

and this will compile your file.

Regards
Deepak Kumar
http://www.geocities.com/deepak_38


--- "Dasti, Hassan" <[EMAIL PROTECTED]> wrote:
> I am using IPlanet web server to do JSP work.
> Individually, my beans work fine when I try to use
> them from JSP pages.
> However, if I try to instantiate a bean class in
> another bean I get an error message,
> message is followed:
>
*******************************************************************
> G:\docs\Web-inf\classes\name\NameBean.java:9: cannot
> resolve symbol
> symbol  : class Databean
> location: package name
>         name.Databean db = new name.Databean();
>             ^
> G:\docs\Web-inf\classes\name\NameBean.java:23:
> cannot resolve symbol
> symbol  : class ResltSet
> location: class name.NameBean
>         public ResltSet getStates(){
>                ^
> G:\docs\Web-inf\classes\name\NameBean.java:9: cannot
> resolve symbol
> symbol  : class Databean
> location: package name
>         name.Databean db = new name.Databean();
>                                    ^
> 3 errors
>
> Tool completed with exit code 1
>
> Both of my java files are in same folder called
> "name" and both are
> in same package called "name"
>
> Below is my NameBean.java File.........   Please
> help  Thanks
>
*****************************************************************************************
> /* This is a NameBean.java file .....   */
>
> package name;
>
> import java.sql.*;
> import java.util.*;
> import java.io.*;
>
> public class NameBean implements Serializable
> {
>         name.Databean db = new name.Databean();
>
>         private String beansName;
>
>         // constructors
>         public NameBean(){}
>
>         public void setName(String str){
>                 beansName = str;
>         }
>         public String getName(){
>                 return beansName;
>         }
>
>         public ResltSet getStates(){
>                 db.Connect();
>                 String sqlStmt = "SELECT state,
> state_name, status "
>                         + "FROM CONTACT.VALID_STATE
> ORDER BY state ASC ";
>
>                 ResultSet stateRS =
> db.DBSelect(sqlStmt);
>                 db.Disconnect();
>
>                 return stateRS;
>         }
>
>
> }
>
>
===========================================================================
> 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


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

===========================================================================
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