This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes jsp+beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp+beans" Watch "jsp+beans" New topic


sejal joshi

Joined: Dec 19, 2000
Posts: 5
hello friends
i am doing a prj using jsp and oracle
i have created one jsp file where user enters name and roll no. and i want this data to be transfered to another page. i have written one java file containing functions to get these values. i have stored class file in server_root/class directory. when i am running it is giving the compilation error that class file not found.
pls help me.

nirmal baba

Joined: Apr 06, 2001
Posts: 10
I think u r not explicitly giving the page directive for importing the java bean class in ur jsp file that is using the bean!!!The required syntax is
<%@ page import="FullyQualifiedClassNameOFyourJavaBeanClass" %>
This is required for the JSPEngine to compile ur jspfile...Just putting the class file in the classpath of the web container wont help!!!
Kindly check with this change and respond
All The Best
It is sorta covered in the JavaRanch Style Guide.
subject: jsp+beans
Similar Threads
struts 2 validation
testing the model class
error while compiling
Access database from a class file