Chris Weathers

Greenhorn
+ Follow
since May 06, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Chris Weathers

I have a users table with a primary key "id" that is set to auto-increment for new insertions. So a new user gets automatically assigned the number of users + 1 for their id.

How does my query from my jsp change in this situation? Do I just leave off the "id" field in the Insert query?
Another question from me...this really is a great place to learn!

Anyway, my questions this round:

1. What exactly is a container in context of JSPs/Servlets/EJBs? I'm reading through the TomCat documents and wondering what "container" actually means.

2. What does it mean to _deploy_ something in this same context?
14 years ago
Ahhhh, I get it now, thanks!!!
14 years ago
Ok, thanks...say I want to have MyObject in a separate file in the same directory. I compile MyObject.java and then "import MyObject.*;" inside MyProgam.java, correct?
[ May 10, 2005: Message edited by: Chris Weathers ]
14 years ago
Thanks all...

I changed it to below and it works...but I have another question...if I leave off "public" before the class, what is the class permission default? Is it defaulting to private?

14 years ago
I want to define a class seperate from the main program. Do I put the class in the same file or what? Compiler doesn't like it in the same file and I can't get it to import on its own either.



[ May 10, 2005: Message edited by: Chris Weathers ]
[ May 10, 2005: Message edited by: Chris Weathers ]
14 years ago
Does SomeClass have to be compiled first?
14 years ago
Doh! Thanks... so import "somefile.java"?
14 years ago
In c++ we would #include "somefile.h" to get the classes in somefile.h included in the current program.

What is the Java equivalent? I couldn't find the answer in a tutorial I have been working through.
[ May 06, 2005: Message edited by: Chris Weathers ]
14 years ago
Thanks all, that makes perfect sense!
14 years ago
Thanks...so can it be viewed as the servlets sit in between the JSPs and the EJBs?
14 years ago
What is the difference between a servlet and a JSP exactly? And how do EJBs fit into this equation?
14 years ago