Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a Java Applett

Status
Not open for further replies.

audiopro

Programmer
Apr 1, 2004
3,165
GB
I am setting up an Online Web Shop and have hit a snag.
I need to call a Java Applett (supplied by the Bank).
I do not have a need to learn Java but would like to know how to call the Applett and handle the returning data.
Is here a simple tutorial I could be pointed to?
Thanks


Keith
 
How are you expected to "call the applet" ?

Applets are small Java programmes that run on a client machine inside a web browser (like an ActiveX control).

Do you mean you have to call some URL on a server from an applet ?

--------------------------------------------------
Free Database Connection Pooling Software
 
audiopro, do you mean "How do I embed a Java applet into my web page?".

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Sorry if I wasn't too clear.
The scenario is a shopping cart and the Java code supplied by the bank is used to create a security hash.
I assume the java applet / script resides on the web server and I call it from within the controlling PERL Script. I can't really show the actual code as it is meant to be a security feature but the paperwork associated with it refers to a Java Package.
It starts with:-
Code:
import java.lang.*;
import java.util.*;
If that helps.
Like many of these things, it will be straight forward once I know what I am doing. Once again, sorry if I am asking numb questions but I am new to Java.

Keith
 
Applets run inside a browser on the client, servlets run inside a web server.

It might be a servlet that they supply. You need to be specific. Can you post the relevent snippets of the Bank's documentation?

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Does the class extend Applet/JApplet or HttpServlet/GenericServlet ?

--------------------------------------------------
Free Database Connection Pooling Software
 
Now that's a good question. I wish I'd asked it [smile].

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
OK, place your bets ... I'm going with Servlet ...

--------------------------------------------------
Free Database Connection Pooling Software
 
This may give you a bit of a clue but I'm not confident.
Code:
[i]
The order hash is created with a single library call (which is available in either C or Java)
[/i]
I will get more information from the bank and if necessary post another question.
Thanks for your help.

Keith
 
My money's on Servlet too.

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Code:
Does the class extend Applet/JApplet or HttpServlet/GenericServlet ?
There I was thinking that the preferred language on the forums is English

Keith
 
Nope. the preferred language if this forum is Java [smile]

Look near the top of the java you've got for something like
Code:
public class SomeName extends SomeOtherName {

We want to know what specifically is on this line.

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
No such line is shown.
I will speak to the bank about their 'simple to implement interface' (lol) and get more info.
Thanks for taking the trouble to reply.


Keith
 
You can't use that acronym here [dazed].

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Update:
I have more info from the bank.
A HTML form submits VARS to a .jsp file and returns a hash.
I have tried calling the .jsp file but it just lists the file's contents.

Keith
 
I'd suggest you to talk seriuosly to the bank and ask for the full information, not just piece by piece and if possible, ask them some use cases.

Btw, a JSP (Java Server Page) uses to output some HTML code, not a hash. And I imagina that when you "call the jsp file" you mean against a webserver

Cheers,

Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top