henley

Greenhorn
+ Follow
since Jul 06, 2000
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 henley

Looking for well qualified Java programmers, engineers and architects to join a growing product company in Austin. Salary range from 75K-100K and UP!! plus benifits, holidays, and a flexible schedule. Relaxed environment, casual dress and beer on Fridays! If you are looking for a place to make an immediate impact, this is it. Agressive business plan for 1&2Q of 2001.
23 years ago
I thought I remembered reading that protected fields/methods were accessible to only one level of subclasses. When I recently tested that, I found that it was not true. Does anyone else remember reading that in some book and if so which book?
23 years ago
Frank seems to be right on. One other note, if you are getting errors about needing protocols, then you may be using the wrong classes to access the file. When accessing local files, all you need to do is give the path information (whether it be absolute or relative). Protocols do not come into play. Good Luck.
23 years ago
A quick suggestion would be to pull out the code that creates or obtains the handle to the file and put it in a separate class as a static method. This way, each servlet can use this code and it can be synchronized to ensure concurrency.
23 years ago
Create an option in the list with the value of "other". Create a text field to the side for "Other" choices. Put logic in your servlet that gets the value of the textfield if the value of the list is "other".
23 years ago
My question to you is why do the "latter servlets" even have to be servlets? Why can't you make them regular Java Classes and have your dispatcher servlet create and call them directly? I have done this exact thing and in fact I am currently using it for internal web applications. The main advantage is that the developers of the "latter" classes don't need to know anything about servlets, but simply the interface with the dispatcher servlet. Also you don't have to worry about forwarding and redirecting.
23 years ago
Are you sure that the form has the "multipart/form-data" enctype?
23 years ago
I don't know of a way to handle the back button specifically, but if you want to handle the generic event of the user leaving your page, you can override the stop() method of the applet. This method will be called whenever the user navigates away from the page that spawned the applet.
23 years ago
String browser = request.getHeader("User-Agent");
23 years ago
Actually, you cannot do this. Since you are using JHTML, the only way to get the value of the request parameter is through JavaScript, and since JavaScript code won't be executed until the page gets to the client, it will be too late for the <SERVLET> tag process it. All <SERVLET> tags must be static, unless the server you are using provides a mechanism for making them dynamic.
23 years ago
There could be several problems. Unfortunately, I can not tell what the problem is with out some code. If you feel comfortable posting a snippet of your code, I would be happy to help you. You may also send it directly to me if you like.
23 years ago
The JSDK 2.1 is the Java Servlet Development Kit. Version 2.1 is the final version of the development kit before it was incorporated into the JSWDK (Java Server Web Development Kit). The JSWDK version 1.0.1 is the first version to incorporate JavaServer Pages and Java Servlets together into one package. Tomcat is the reference implementation of the JSWDK version 1.0.1 as developed by the Apache Foundation. Sun has released this new version as open source to allow for the Java community to improve and enhance it. Hope this helps.
23 years ago