File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp:beans" Watch "jsp:beans" New topic



Joined: Jun 11, 2001
Posts: 8
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

Joined: Mar 22, 2000
Posts: 13037
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.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at . 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.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
srivatsan srinivasan

Joined: Jun 08, 2001
Posts: 26
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
I agree. Here's the link:
subject: jsp:beans
It's not a secret anymore!