ted oniger

Greenhorn
+ Follow
since Aug 05, 2001
Merit badge: grant badges
For More
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 ted oniger

Hello Neha,
Your question has been asked more than a hundred times and the most common answer is:
"SCWCD Exam Study Kit" by Deshmukh & Malavia (Manning Publication)
I personally have a copy of this book. I guarantee that if you read and understand its contents, you will get a good score. Of course, you still need to read JSP and Servlets APIs.
Goodluck and happy reading.
--Ted
Hello Dharmin,
The most common answer to your question is "SCWCD Exam Study Kit." If it's not available in your area, it's worth getting one from Amazon.com as it's really a good book to pass the exam.
Good Luck!
--Ted
Hi Ramki,
If your aim is just to pass SCWCD, just read the book "SCWCD Exam Study Kit." That's all you need (plus Servlet and JSP APIs) to get a good score.
Now if you want to pass the exam and be a good developer, add the book of Marty Hall (More Servlets and JSP) in your armory.
Happy Reading.
--Ted
Hi Ken,
Rick is right. Just buy the book "SCWCD Exam Study Kit". That's all you need (plus JSP and Servlet APIs) to pass the exam. Good luck.
--Ted
Hello Rishi,
The Include Directive (static inclusion) has only one attribute (i.e. file) while Include Action (dynamic inclusion) has two attributes: page and flush. It appears that you've used the attribute page in both, that's why you're getting a translation error. Try this:
<jsp:include page='login.html'/>
<%@include file='login.html' %>
Let me know how it goes.
--Ted
pageflush
Axel,
Can you please post again the "long post." I am sure it's gonna help aspirants like me.
Thanks,
Ted
I've taken the IBM mock exam many times.
I think the answer of Changen Li is correct
30. a,d
26. c,d
9. c,d
Hope this helps.
TED
Hi Sharma,
Since array (even array of primitive) is a special type of object and is a subclass of Object, therefore you can put in a vector.
You shouldn't have a problem adding the array of int in your vector. I have tried adding two arrays of int in a vector and it was OK.

int[] a = {1,2,3};
int[] b = {1,2,3};

Vector v = new Vector();
v.addElement(a);
v.addElement(b);
The code above compiled with no problem.
Hope this helps
Ted



21 years ago
JSP
Hi Prad,
I am not really sure if this is a direct answer to your question. A servlet engine may maintain a pool of tag instances, so if there's an avaialable instance of your tag (even if its attributes change) the engine will use that instance. However we (as programmers) have no control over the pooling that takes place.
Regarding your question if you can use a single instance of your tag to handle the same tag ten times with different values of its attribute, I think the engine uses just one instance. This also answers the threading issues, because an instance cannot be used until it's free. I got all these ideas from the book "Java Server Programming, J2EE Edition"
Hope this helps.
21 years ago
JSP
Hi, there's nothing wrong with Tomcat. It's just that it is not that user friendly when displaying an exception or error in your servlet.
It's better to have two runners installed in your system. I use Tomcat and Resin. Between the two, Resin is faster and friendlier in telling where in your code causes the error.
22 years ago
Thanks Marcos for replying. I already found the parse error. Apparently, there was a mispelled word inside my < !DOCTYPE tag taht caused the error. I never realized this error until I ran my files in Resin-1.2.5. When I ran my files there, it also gave me an parse error but it identified the specific word that was causing the error. Well, I guess Tomcat is not that user-friendly--but I'm still using it though. It pays to have several runners on your PC.
I appreciate your giving some thoughts to my problem.
Thanks Carl for the tip. I already found the parse error. Apparently I had a typo error inside my <!DOCTYPE tag. I never realized this error until I ran my files in Resin-1.2.5. When I ran my files there, it gave a parse error and it identified the specific word (which was mispelled) that caused the error.
I guess Tomcat is not that user-friendly. Anyway thanks to all who gave some thoughts to my problem.
22 years ago
Hi Ambrose. Try to place your hello.jsp in the example folder i.e. c:\tomcat\webapps\examples and type in your URL
http://localhost:8080/examples/hello.jsp
to check whether your tomcat is configured corectly is type in your URL http://localhost:8080/
then the Tomcat default home page (index.html) should display. If this page displays, there is no reason that your jsp file will not be displayed unless there is a compilation error. Good Luck, TED
22 years ago
Hello, perhaps you can help me figure out why I got error that says: "INTERNAL SERVLET ERROR, Parse error in tag library descriptor, next character must be '>' terminating declaration. I checked every opening and closing tags but still got the same error.
I'm using tomcat3.1 and I have my own directory (ted directory) under webapps directory so the path is c:\tomcat\webapps\ted
I placed my tag handler class in classes folder in ...ted\web-inf\classes and my tag library descriptor in ...ted\web-inf\tlds I placed the jsp file that imports the tag library in ted directory. Actually, I am just copied the example given in the book (Professional Java Server Programming) but it does not work.
I did not package the files into .war or .jar files. Is there someone our there who also had the same experience? Howcome it did not work--I just copied the codes (word for word) from the book.
Also, if I am deploying it without packaging the files, what should I write in "uri=" in my jsp file if I placed my descriptor in ...ted\web-inf\tlds?
<%@ taglib uri="?" prefix="examples" %>
In the book, it is written as <%@ taglib uri="./hello.tld" prefix="examples" %> but still, it did not work. I hope someone can help me run this simple tag.

22 years ago
Hello, perhaps you can help me figure out why I got error that says: "INTERNAL SERVLET ERROR, Parse error in tag library descriptor, next character must be '>' terminating declaration. I checked every opening and closing tags but still got the same error.
I'm using tomcat3.1 and I have my own directory (ted directory) under webapps directory so the path is c:\tomcat\webapps\ted
I placed my tag handler class in classes folder in ...ted\web-inf\classes and my tag library descriptor in ...ted\web-inf\tlds I placed the jsp file that imports the tag library in ted directory. Actually, I am just copied the example given in the book (Professional Java Server Programming) but it does not work.
I did not package the files into .war or .jar files. Is there someone our there who also had the same experience? Howcome it did not work--I just copied the codes (word for word) from the book.
Also, if I am deploying it without packaging the files, what should I write in "uri=" in my jsp file if I placed my descriptor in ...ted\web-inf\tlds?
<%@ taglib uri="?" prefix="examples" %>
In the book, it is written as <%@ taglib uri="./hello.tld" prefix="examples" %> but still, it did not work. I hope someone can help me run this simple tag.