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?...
User Profile
Collapse
-
change your code like that...
RequestDispatch er dispatcher = request.getRequ estDispatcher("/test.jsp");
dispatcher.forw ard(request,res ponse);
I think it will work...Leave a comment:
-
-
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();Leave a comment:
-
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.... -
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 nnLeave a comment:
-
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.... -
-
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....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... -
What is the flushing the buffer?
What is the flushing the buffer?
could u please explain with example. -
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... -
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... -
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? -
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 -
"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
I m new at eclipse....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."); } } -
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?? -
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... -
Thanks for help
............... ............... ............... ............... ............... .............Leave a comment:
-
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
No activity results to display
Show More
Leave a comment: