Tod Checker

Greenhorn
+ Follow
since Feb 19, 2004
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 Tod Checker

You should also put in the port number of your web server next to the local address.
http://127.0.0.1 ortnumber/
20 years ago
Try changing your code attribute to CODE=hmpage.class(if hmpage.class is your class file).
Your CODEBASE points to the location of CODE, so you don't have to repeat http://127.0.0.1/
20 years ago
Its thread safe if the methods that use httpservletresponse, httpservletrequest, and servletcontext are declared and instaniated within a service method of the servlet. Anything outside the service methods are not thread safe.
20 years ago
public string execute (req,res){
call method of another class instance method()// for db access
}
This is thread safe if it is a method in another class that is declared and instaniated within a service method. It is not thread safe if it is another method within a servlet class, or thread class.
20 years ago
I came up with a solution. Its crude but it works. I created an html page in between the https and http page. The html page is called by the https and refreshes after 0 seconds to the http, this avoids the warning message.
20 years ago
ArrRev.charArray[2]={a,b}; This is an illegal declaration.
Try ArrRev.charArray[] = {a,b};
And if charArray is an attribute of ArrRev try using a setter instead of making it public like that.
20 years ago
How do commercial sites do it? I noticed that hotmail does a https to a http redirection without any warning messages.
20 years ago
How do I redirect from a servlet which uses SSL to a servlet which does not and avoid the warning message?
20 years ago
When reading data from a form who's method is POST, is it necessary to secure the doPost method in order to securely transfer the information from the browser to the servlet? Or is it enough that the doGet method which wrote the form was secure?
20 years ago
What is your codebase? Can you cut and paste your code?
20 years ago
I follow the instructions and reconfigured tomcat, everything works perfectly, thanks.
20 years ago
Take the applet's .class file out off the WEB-INF directory. And place it in the same directory as your WEB-INF directory. And use this codebase ".." instead of "." and your code attribute should be the be the applet's name .class file.
Hope that helps
20 years ago
I was wondering if anyone has an example of a servlet which uses ssl?
I got this one from "more servlets and java server pages", but when I execute it my browser hangs for a while then gets redirected to an error page. I am using the last version of IE and Mozilla, and my web server is tomcat. Do I need to make any additional configurations to tomcat? If possible I would like to handle this programmatically.
20 years ago
I did as you mentioned and this is the error I got
sun.net.smtp.SmtpProtocolException:
at sun.net.smtp.SmtpClient.issueCommand(SmtpClient.java:48)
at sun.net.smtp.SmtpClient.closeServer(SmtpClient.java:38)
at sun.net.NetworkClient.openServer(NetworkClient.java:117)
at sun.net.smtp.SmtpClient.openServer(SmtpClient.java:111)
at sun.net.smtp.SmtpClient.<init>(SmtpClient.java:156)
at emailer.email_message.defineMessage(email_message.java:75)
at emailer.email_message.run(email_message.java:48)
line 75 in email_message.java is where I instaniate a new SmtpClient using that fake server name.
I tried looking at the log file generated by the server and it only logs out going errors. Do you have any other suggestions?
20 years ago
Yes the mail server is running locally and I have tried the following addresses for my server and it still won't email from a servlet: 127.0.0.1, localhost, and my computer's name. I even downloaded other mail servers only to get the same results, the code works from a main class but not a servlet. I've tried it with a firewall enabled and disabled, but still it doesn't work from a servlet only main.
20 years ago