Where did you place the bean's class file (what directory)?
By the way, the Java naming convention states that class names should start with an upper case letter "MyBean" and object variables pointing to an instance of that class start with a lower case letter "myBean". Not following that convention makes your code difficult and cumbersome for others to read.
Do focus on suggestions given earlier related to code conventions
There is nothing wrong with the way he was using the jsp:getProperty tag. He wasn't trying to assign a value to a Java varible, he was using it to print the value into an HTML input tag.
This thread has become very confusing with all the changes to your code. Please re-post your JSP code, bean code, and web.xml file. Also, please re-post your directory structures so we can see where your files are.
Joined: Nov 28, 2005
thanks all,i got the solution ,now it is working.the problem is i am using jdk1.5.0_01 version for to compile the bean.so the class file version is 49.0.but jre doesn't recognise the 49.0 version classfile which delivered by jdk1.5.0 compiler,so it is giving message is should use 48.0 version.
so i compiled the .java files with jdk1.4 ,because jdk1.4 compiler will deliver 48.0 version class file.again i deployed it is working fine.
again thanks for all of my friends those who gave the replies with patience.
Joined: Jan 10, 2006
Originally posted by Bear Bibeault:
This is not something that I'd consider doing or consider a best practice. Only class files need be placed in the WEB-INF/classes hierarchy.
Sorry modified it from .
put your files in /WEB-INF/src and compile from there with command
javac [-classpath <chlasspath if any required>] <filename>.java -d ../classes
Now i think you can consider it as a best practice
(but i want to point out one more thing that it may be complicated for a biggener to understand what exactly (s)he is doing...isn't it?? )
but thanks for your point.
Joined: Nov 28, 2005
hi friends, please continue the thread.
upto now i am using the bean as to store the data temporarily.now i want to store the data in the database how it is.please tell me where i need to put connection code ,where i need to develop the connection code.please tell me i am waiting for reply.