Sam Moran

Ranch Hand
+ Follow
since Sep 28, 2002
Merit badge: grant badges
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 Sam Moran

Have you tried using Chami's HTMLkit? It has a tag checker, here is the link:
http://www.chami.com/html-kit
You mightwant to run thru the tag checker.
Scott
Vijay,
There is no way to guarantee that you will not get a duplicate. Random means that you can get any number. I have done a lot of tests for a recent Algorithms class. That said you could increase your range of numbers, but to be on the safe side you should do a lookup in the DB and see if the number already exists and then if it does fetch another random number.
When I say to seed it I mean like this:
randomInt(i, max);
Where i is some small number and max is a large number.
I hope this helps.
SAM
20 years ago
Benny,
You can use the Notes API getEncryptionKeys:
public java.util.Vector getEncryptionKeys()
throws NotesException
I hope this helps.
20 years ago
Depending on which DB you are using, I know that in Oracle when you issue the truncate command you remove all of the table entries. I suppose that you could get a count before issuing the truncate command and then you would know how many have been removed. I hope this helps!!
20 years ago
I spent a little more time and did some cleaning and pruning. I have declared the 2 arrays as global and assign the values in the Main. Now I have two simple functions that work up to 99,999:

[ November 24, 2003: Message edited by: Sam Moran ]
20 years ago
Here is something that I started for you, if you add to it I would appreciate any additional work. I am sure that there are better ways to do this but this is quick:

[ November 21, 2003: Message edited by: Sam Moran ]
[ November 21, 2003: Message edited by: Sam Moran ]
20 years ago
I am assuming you want SYSDATE (minus) a number of days. If so, have you tried the following:
SYSDATE - 6?
I hope this helps.
I have purchased the O'Reilly book on JSP and installed TomCat and have worked through a couple of examples. In addition, I have created a very simple JSP page that calls a Servlet and performs a Search against a Lotus Notes Database and returns the results requested all without a Bean. So, now the question:
Why add this additional layer?
Why not just write a servlet to handle the request?
Am I not seeing a bigger picture?
Thank you all in advance for any and all comments!
20 years ago
JSP

Just straight ASP syntax and methods


Sorry, I meant JSP!! WOW, some sort of slip?!?!
I want to develop my own class files and have JSP communicate with those classes. The examples that I see are all built with JavaBeans. I don't that level of abstraction.
Thank you for the reply Gregg.
20 years ago
JSP
I would like a reference book on JSP without JavaBeans. Just straight ASP syntax and methods. Can anyone recommend a book like this? Does one exist? Is there a weblink to a PDF?
20 years ago
JSP
Thank you all for the feedback & help!!! I did just as you advised and installed TOMCAT!! Very nice and easy.
I was glad that I had gone ahead and worked thru the Java web server. I got that going also. Many THANKS.
20 years ago
Hello to all,
Can someone tell me if they know how to set up a server to point to a given DLL? Say a directory. I am using the Sun Deployment tool along with the j2ee server that came from Sun. In addition, I am trying to get attached to a Lotus Notes Server. I can compile the code but when the server tries to initiate the session with Notes it yacks. I am not sure which file to add the path to the Lotus Notes directory so that the server can establish the session.
Does anyone have any experience with getting this going?
Or, does anyone have any experience with setting paths to other resources?
Thank you very much in advance.
20 years ago
Good day to all,
I am new to Servlets and trying to understand how to get just simple test Servlets to run. I have installed J2EE, and use Java 2 SDK v1.3.1. In addition I downloaded and installed ANT. I am trying to work through the examples. One problem that I believe that is not correct is that I do not have a WEB-INF directory.
Can someone tell me if this directory is created automatically and I missed a step? Or do I have to create it from scratch?
Can someone make a recommendation for a straight forward tutorial. I am trying to follow Sun's and at every turn it seems that I need to download something else. All I really want to do is get a testing environment going on my laptop so that I can work with some Java Classes that I need to create for an application. I copied a simple HelloWorld Class, compiled it, and then tried to copy it to a directory to test, and it won't work.
Can someone please help? Thank you very much in advance!!
20 years ago
Michael, many thanks I do have an object identity problem, but I has have bad code!!! I do not completely understand, but I will look this up while I getting some chi-a-pet hair!!
20 years ago
Michael & anyone else who happens to see this post, I am pulling my hair out!!! I have pared my program down to a simple test and I can not get it to return the correct results?!?!? I initialize an array data and then create 8 array with a class. See below:

What the hell am I doing wrong? Thank you all for any help, and thank you again Michael.
20 years ago