Franco Finstad

Greenhorn
+ Follow
since May 02, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Franco Finstad

I need to use the response.setContentLength() method in my servlet, but I'm not sure how to determine the content length of the actual data I will be sending. I'm working with a basic struts app.

Any ideas?
16 years ago
Could someone explain "|=" and "&=" assignment operations?

I'm not exactly sure what these operations do and where one would use them in practice.

Thanks!
17 years ago
Don't worry about it.

Yesterday I failed the HF mock exam in the back of the book -- 59%. But I took the exam today anyway and got an 84%. The questions on the real exam are more difficult but the crucial point is that they tell how many choices are valid. So I say go for it.
When will JBoss support JSP 2.0?
20 years ago
Websphere 6 will have it -- available 12/04.
20 years ago
JSP
When will Weblogic support JSP 2.0?

Webpshere 6 will have it.
20 years ago
Does anyone have a list of app server vendors and their versions that support JSP 2.0?

Thanks
20 years ago
JSP
Does java support pass by value, pass by reference, or both?

It's both, correct? Aren't objects passed by reference?

Thanks
20 years ago
How many interfaces can a single interface extend?
20 years ago
Does a servlet continue processing my request even if I hit the browser Stop button?

For example, servlet that executes a big database search. I hit Search, and the servlet queries the db and starts iterating through the result set -- then I hit Stop. What happens?
20 years ago
More interview questions I got this week. No answers provided this time:
1. What is a Join?
2. What is an Outer Join?
3. Why are Servlets better than CGI for web apps?
4. What are the problems with JSPs?
5. Why is synchronization important in Servlet programming?
6. What is a Singleton?
7. Why use StringBuffer over String for string concatentation?
8. What is a Transaction in database programming?
9. When should I use a Transaction?
10. What kind of event would cause a Transaction to fail or rollback?
11. What's the difference between POST and GET?
12. On solaris, how do I find the processing that is listening on a give port?
13. How do I find out where apache is installed on a UNIX box?
20 years ago
Went on a few developer interviews recently, looks like tech hiring is picking up. Here are some of the question I got, and my answers.
I'd love to see the *real* answers from all you gurus out there.
QUESTIONS
1. What is the difference between a LinkedList and an ArrayList? Why would I use a LinkedList instead of an ArrayList?
2. Write a method that reverses a string. Don't use StringBuffer reverse() thank you!
3. Write a method that calculates the factorial of a given number.
4. Why should I use the MVC pattern in a web app?
********** ANSWERS *************
1. What is the difference between a LinkedList and an ArrayList? Why would I use a LinkedList instead of an ArrayList?
ANSWER: a) A LinkedList is similar to an ArrayList in that it is ordered by index position, but it differs in that the elements are double-linked to one another. This linkage gives you new mehtods for adding and removing from the beginning or end.
b) If your program frequently provides random access to the data of the list, the ArrayList class offers quick access to individual elements of the list. This quick access comes at a cost of slower operations for adding and removing in the middle of the list. If this latter behavior is what you desire, than the LinkedList class offers a better alternative. It provides quick sequential access, additions, and deletes, at a cost of slower random access.
2. Write a method that reverses a string. Don't use StringBuffer reverse() thank you!
ANSWER:

3. Write a method that calculates the factorial of a given number.
ANSWER:

4. Why should I use the MVC pattern in a web app?
ANSWER:
- You can decouple the view from the model and thereby swap out views easily.
- You can put all security, authorization, session logic in the Controller instead of in each protected page.
20 years ago
I'm trying to precompile my JSPs using the ANT wsjspc task. But I can't seem to locate the jar that contains the JspC class: com.ibm.websphere.ant.tasks.JspC
I get the error:
...build.xml:4: taskdef class com.ibm.websphere.ant.tasks.JspC cannot be found
My build.xml has this line:
<taskdef name="wsjspc" classname="com.ibm.websphere.ant.tasks.JspC" />
Do you have any idea where I can find this jar/class in WSAD5???
Thanks
20 years ago
I'm having a problem using the Administrative Console Advanced Edtition to install an updated database driver on WAS4 for iSeries.
Here's the problem:
To install the updated driver (jt400.jar) I do the following:
Adminstration Console > Resources > JDBC Providers > MY_JDBC_DRIVER > Nodes > Install New...
But, when installing the new driver I get a message saying I need to shut down the Node. But shutting down the node disconnects my Admin Console, because my Admin Console is connected to that Node.
So how do I install the new driver without shutting down the Node? Do I simply shut down all the apps running on the node?
Thanks
20 years ago
Hi everbody,
I have a basic web-database app build with stand-alone servlets. And I need to pull out a bunch of hardcoded paths into properties files so they can be tunable per development/test/production environments.
What is the best way to do this?
Should I use a properties file or put these params in web.xml somehow?
My idea is to put them in a properties file and at server (websphere) startup load them into a constants interface that will then be avaiable to all servlets.
Please advise.
Thanks!!!
21 years ago