User Profile

Collapse

Profile Sidebar

Collapse
devgupta01
devgupta01
Last Activity: May 6 '09, 10:14 AM
Joined: Jan 12 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • devgupta01
    replied to Can I use formbean in place of javabean?
    in Java
    this example is only used java bean.
    I think the uses of java bean and form bean are different.
    I think Form bean is part of view layer and Java-Bean is the part of model layer.
    But I am little bit confuse How to use these two and How to decide Where I use?...
    See more | Go to post

    Leave a comment:


  • devgupta01
    replied to JSP/Servlet - Request Dispatcher
    in Java
    change your code like that...
    RequestDispatch er dispatcher = request.getRequ estDispatcher("/test.jsp");
    dispatcher.forw ard(request,res ponse);

    I think it will work...
    See more | Go to post

    Leave a comment:


  • devgupta01
    replied to java.lang.NoClassDefFoundError
    in Java
    if you cange the file name as class name then it will run..
    See more | Go to post

    Leave a comment:


  • devgupta01
    replied to Null pointer Exception
    in Java
    Please correct your code and write code according to java recomendations



    Correct code for class a and claas z as follows -

    Code:
    public class Z {
    	public static void main(String a[]){
            A az = new A();
    System.out.println(az.ax.getY()); //null Pointer exeption
      }
    }
    
    class A
    {
        X ax;
        A(){
    	ax = new X();
    ...
    See more | Go to post

    Leave a comment:


  • devgupta01
    started a topic Can I use formbean in place of javabean?
    in Java

    Can I use formbean in place of javabean?

    Can I use formbean in place of javabean in struts framework..?
    Can you please explain difference between JavaBean and FormBean?

    Thanks in advance....
    See more | Go to post

  • devgupta01
    replied to error page in jsp
    in Java
    Yes I get error "ArrayIndexOutO fBound:3" only if I first change a[3] to a[2] in file test.jsp and enter the url for test.jsp(this gives output on browser) and then I change back a[2] to a[3] and enter url for test.jsp in same browser.

    Thanks for ur reply...chaarma nn
    See more | Go to post

    Leave a comment:


  • devgupta01
    started a topic error page in jsp
    in Java

    error page in jsp

    I have two files - test.jsp and error.jsp
    <<test.jsp>>


    <<error.jsp>>


    when i send the request to page test.jsp then it gives HTTP 500 Internal Server Error.

    I get error only if I first change a[3] to a[2] in file test.jsp and enter the url for test.jsp(this gives output on browser) and then I change back a[2] to a[3] and enter url for test.jsp in same browser....
    See more | Go to post

  • Hiiiiiiiiiiiii i want know how to post a query
    See more | Go to post

    Leave a comment:


  • I think that obj1 has memory of object of OneX. therefore it should has methods and fields of object of OneX.

    Thanks for answer, Please clerify me more. this is very helpful me....
    See more | Go to post

    Leave a comment:


  • Is it the right way to pass the object in reference of parent class??

    One.java
    ------------

    public class One{
    int x;
    char y;
    One(){x=0;y='a' ;}
    public void disp(){System.o ut.println("x ="+x+", y ="+y);}
    }


    OneX.java
    ---------------
    public class OneX extends One{
    double z;
    OneX(){z=1.05;}
    public void dispX(){System. out.println("z ="+z);}
    public static void...
    See more | Go to post

  • devgupta01
    started a topic What is the flushing the buffer?
    in Java

    What is the flushing the buffer?

    What is the flushing the buffer?
    could u please explain with example.
    See more | Go to post

  • devgupta01
    started a topic diffrence in set classpath
    in Java

    diffrence in set classpath

    i have a java program and needed class file is in jar file.
    i can compile that java program in three ways but i dont know what is difference between them. plz tell what is the difference between them.
    #1. javac Abc.java -classpath="need edJarFile.jar"

    #2. set classpath="need edJarFile.jar"
    javac Abc.java

    #3. set classpath="need edJarFile.jar"; .
    javac...
    See more | Go to post

  • devgupta01
    started a topic unable to connect java program with postgresql
    in Java

    unable to connect java program with postgresql

    prerequisite:
    1. OS as XP
    2. postgresql should be installed
    3. postgresql-8.2-506.jdbc3.jar

    I followed these steps:
    1. create java pragram
    2. open command promt and change directory where i have java program and jar file
    3. set classpath="post gresql-8.2-506.jdbc3.jar"
    4. javac ABC.java
    5. java ABC
    6. get the exception java.lang.Class NotFound: org.postgresql. Driver...
    See more | Go to post

  • devgupta01
    started a topic Class Modifiers and Member Modifiers
    in Java

    Class Modifiers and Member Modifiers

    I have seen the class with public and without modifiers and method with public, protected or private modifiers. I am confused how to decide modifiers for a class?
    See more | Go to post

  • devgupta01
    started a topic Native method
    in Java

    Native method

    I confused with native method.
    what is native method and its use??
    How to create and run with java program??
    please give simple example if u have.
    thanks
    See more | Go to post

  • devgupta01
    started a topic "HelloWorld.java" to run at eclipse
    in Java

    "HelloWorld.java" to run at eclipse

    Hi all,
    I have simple program- "HelloWorld.jav a" to run at eclipse.
    Java Version 1.4.2
    Eclipse Version 3.2

    Code:
    class HelloWorld
    {
      public static void main(String[] aa)
     {
       System.out.println("Hello World!!");
       System.out.println("Please Help me, How to run this prog at eclipse.");
     }
    }
    I m new at eclipse....
    See more | Go to post

  • devgupta01
    started a topic What is the MVC architecture??
    in Java

    What is the MVC architecture??

    Hi all,
    I m new in java.
    I want to know which concept of java is needed to understand J2EE.
    I know little about servlet.
    What is the MVC architecture??
    See more | Go to post

  • devgupta01
    started a topic How to understand this query??

    How to understand this query??

    [CODE=oracle]SELECT NVL(ManagerID,' Other') ManagerID, NVL(Manager,'Ot her') Manager, MAX(ManagerOpen ACount) ManagerOpenACou nt, MAX(ManagerOpen UACount) ManagerOpenUACo unt, MAX(ManagerClos eCount) ManagerCloseCou nt, MAX(ManagerCoun t) ManagerCount, MAX(ManagerReje ctCount) ManagerRejectCo unt, MAX(ManagerPend ingCount) ManagerPendingC ount, MAX(ManagerReop enCount) ManagerReopenCo unt, MAX(ManagerCPRC ount) ManagerCPRCount , CONCAT('',ROUND (MAX(Pct),2)) Pct FROM...
    See more | Go to post
    Last edited by debasisdas; Jan 16 '08, 04:48 AM. Reason: formatted using code=oracle tags

  • Thanks for help
    ............... ............... ............... ............... ............... .............
    See more | Go to post

    Leave a comment:


  • devgupta01
    started a topic can i see methods of class/inteface of library??
    in Java

    can i see methods of class/inteface of library??

    How to see methods of class/inteface of library if i m using console.
    Please give an example.

    thnx
    See more | Go to post
No activity results to display
Show More
Working...