Skip to main content

JSP bean

4 replies [Last post]
rodica_l
Offline
Joined: 2005-04-11
Points: 0

I'm just learning how to use JSP's to invoke simple Java Beans. The
concepts are clear but I can't get my example to work. The problem is
that my JSP can't find my Bean class.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
saifuddin
Offline
Joined: 2007-02-27
Points: 0

there is some what i like to know about you directory structure or where you getting i mean compile time or run time..

or its better to paste you Exception or Error with your Query.. it will be more convenient for others to find out the error cause.

pmjain
Offline
Joined: 2004-06-05
Points: 0

In case your running jdk1.4 or later then have your
java beans classes in a package and place the package
in the classes folder under the WEB-INF folder.

regards
Pravin

mohsinsiddiqui
Offline
Joined: 2006-06-23
Points: 0

What u r saying is really good. But still me also facing some problem concerning to jsp and bean. wat u said i did but i cant find the answer. So plz will u send me the complte code with where i have to save the bean file or etc..

saifuddin
Offline
Joined: 2007-02-27
Points: 0

mohsin siddiqui,

place you compile beans file inside your WEB-INF/classes folder then try.

MyApp/WEB-INF/classes.

make sure your already import your package inside you jsp if you created your bean inside package..