B. Dugas

Greenhorn
+ Follow
since May 14, 2011
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 B. Dugas

Wow, sounds like I may be in over my head on this one. The web page I have access to post my hyperlink is an internal server running Front Page extensions (inside our work domain). I'm not sure it will support JSP pages and servlets. I was hoping I could somehow let an HTML page make use of this Java class I have on my hands. I would have no problem going dig and learning the processes to make your suggestions work, however if this requires me to start manipulating the web server or changing/installing things, then our IT department will shoot this whole thing down.
12 years ago
Thanks Campbell!
Because I’m really a fish out of water, I didn’t explain myself all that well. You are correct, I am looking to use the URL in real life. The output from the code generates a URL when I run it using javac.exe from the command line. However, I need to be able to use this on a web page. I imagine I’m going to “call” (if that’s even the right terminology) this Java class, and send it the user name. After calling this class, it should return a URL that should log the user right in to this website.

So, up to now, I’ve compiled the code to a .class file and verified the code works using javac.exe at the command prompt. How do I implement this on my website? Can an html page call/use this .class file to generate the URL like I need? Please let me know if I need to clarify any more details. Thanks.
12 years ago
I'm very new to Java, so please excuse my obvious ignorance. I'm trying to make a silent login work to a particular website. The company has given me sample Java code, and the encryption key. I hard coded the encryption key into the code, along with my username, for testing. I compiled the code with javac from the command line. When I run the Java class from the command line, it outputs a long url string. If I copy that to my browser address bar, it works. What I need help with, is placing a link somewhere on a web page that will call this Java class and make it work. The code finishes out with a "System.out.println" and that works from a command line. But I can't make sense of this. Any help or assistance would be greatly appreciated. Below is the .java code that works.

12 years ago