943,955 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 3218
  • JSP RSS
Apr 19th, 2006
0

java bean

Expand Post »
i am trying to learn java bean . i wanted to know how i have to compile and where. i m little bit confused.weather i need BDK?.PLEASE ANY BODY HELP ME
Similar Threads
Reputation Points: 11
Solved Threads: 0
Junior Poster
aarya is offline Offline
139 posts
since Sep 2005
Apr 20th, 2006
0

Re: java bean

Quote originally posted by aarya ...
i am trying to learn java bean . i wanted to know how i have to compile and where. i m little bit confused.weather i need BDK?.PLEASE ANY BODY HELP ME
hi,

plz visit the site http://java.sun.com/javase/downloads/index.html and there u can download the latest or the version you prefer. Install it in your pc and set the path to the related bin folder where java.exe exist.
If u r working win2000 go to mycomputer--properties--environment variables and set a new variable named PATH and give the value for exc:/j2sdk1.4.1_01/bin).
Now go to the command prompt ,then to the particular dir where, the java file resides and compile the java source code using javac filename.java.

regards,

techkar
Reputation Points: 10
Solved Threads: 1
Newbie Poster
techkar is offline Offline
18 posts
since Feb 2006
Apr 20th, 2006
0

Re: java bean

Quote originally posted by techkar ...
hi,

plz visit the site http://java.sun.com/javase/downloads/index.html and there u can download the latest or the version you prefer. Install it in your pc and set the path to the related bin folder where java.exe exist.
If u r working win2000 go to mycomputer--properties--environment variables and set a new variable named PATH and give the value for exc:/j2sdk1.4.1_01/bin).
Now go to the command prompt ,then to the particular dir where, the java file resides and compile the java source code using javac filename.java.

regards,

techkar

thanks for your reply. i tried as u told but i am getting the exception as
org.apache.jasper.JasperException:classname.class when i used java bean with my jsp page.
Reputation Points: 11
Solved Threads: 0
Junior Poster
aarya is offline Offline
139 posts
since Sep 2005
Apr 22nd, 2006
0

Re: java bean

Quote originally posted by aarya ...
thanks for your reply. i tried as u told but i am getting the exception as
org.apache.jasper.JasperException:classname.class when i used java bean with my jsp page.
I'm not clear about, your bean configuration. place the class file in a package(dir) inside WEB-INF/classes. Be clear with the package name and the class name you are using.Access the bean via jsp using <jsp:useBean id="someid" class=packagename.classname>

post your code sample so that me or anyone will clarify.

regards,

techkar.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
techkar is offline Offline
18 posts
since Feb 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: Autocomplete using javascript and jsp
Next Thread in JSP Forum Timeline: Table Update Problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC