Win a copy of Rust Web Development this week in the Other Languages forum!

Patrick Joseph

Greenhorn
+ Follow
since Jan 11, 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 Patrick Joseph

Originally posted by Bear Bibeault:

One of the ways that you can define the classpath is with the CLASSPATH env variable.



Thanks Bear...

I did a little research and was able to successfully compile the tag class now.
[ July 09, 2005: Message edited by: Patrick Joseph ]
16 years ago
JSP
In the common/lib directory, I see a "servlet.jar" file.

Do I just need to copy this over to where my SDK directories are installed?

I have Tomcat installed in my home machine in a seperate directory.
16 years ago
JSP
I'm trying to learn JSP and am working on Custom Tags. I'm creating a tag class and these lines:

import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;

are giving me an errors since I don't have the javax.servlet src code installed.

My question is: How do I get these classes?

I have JSDK 1.5 and I don't have the servlet classes in the src directory. Thanks in advance...
[ July 08, 2005: Message edited by: Bear Bibeault ]
16 years ago
JSP
as mentioned above, you can use the split() method to split the string based on the empty spaces.

16 years ago
i++ is postfix notation.

So i is incremented only after the original value of i is used in the expression i=i++;

Hope that explains it...
16 years ago
Oh no...That's exactly what I meant. The solutions will only be used to check my answers afterwards. I just wanted to know firsthand how the TIJ exercises helped in improving one's understanding of Java's concepts.
16 years ago
Anybody recommend completing the exercises from Thinking in Java?
Is purchasing the solutions guide worth it?

(For someone who eventually will take the SCJP exam as well as use SCJP specific study guides)

Thanks in advance...
[ January 24, 2005: Message edited by: PJ Ch ]
16 years ago
I also would like to see the official answers to compare with.
16 years ago
I'm seeing it as:
arr[i++] = ++i + i++; //7 + 7
//i = 8 now
16 years ago
How about:


This gives you a random index (range of 0 to [array length - 1]) that will then give you the random contents (-5 to 5).
[ January 12, 2005: Message edited by: PJ Chin ]
17 years ago