This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes jsp:beans Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "jsp:beans" Watch "jsp:beans" New topic
Author

jsp:beans

rasika
Greenhorn

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
Rancher

Joined: Mar 22, 2000
Posts: 12265
    
    1
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

Java Resources at www.wbrogden.com
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6913
"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.


A Convergent Visionary ~ Frank's Punchbarrel Blog ~ LinkedIn profile
srivatsan srinivasan
Greenhorn

Joined: Jun 08, 2001
Posts: 26
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: jsp:beans
 
Similar Threads
a jsp beginner question
scripting varibale unavailable in EL expression
javac and compiled class file
Wont Compile
ERROR mesage