• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp+beans

 
sejal joshi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
bye
 
nirmal baba
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
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
Nirmal
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic