Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:beans

 
rasika
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i insantiate a java class is it necessary to compile that java class befoor execute the jsp file.
i'm using java web server2.0
when i run jsp file without compiling javafile that means without making a class file i get an error attribute (2,51) missing
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you have to compile any auxiliary classes and put the class file(s) in the correct place. The JSP engine only creates and compiles the file representing the page.
Bill
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"rasika",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
srivatsan srinivasan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rasika,
Yes you have to compile the class file and place it in the classes directory of the JWS,so that the jsp file can find it in it's classpath
srivatsan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic