AnandGattu

Greenhorn
+ Follow
since Jul 05, 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 AnandGattu

hi,
browser requires java1.2 plugin for supportin swing components
24 years ago
hi ben,
if u need an applet to connect to a local database,there is one
mechanism for u.In ur applet u creat a clientsocket and thru I/O
streams u send the applet content to a middle application where
u will create a server socket and get the applet content thru
Object input stream or any other input stream and there itself
u establish the jdbc connection and connect to the database.
u can send ur data to database as well as u can retrieve the
data from database into the middleapplication and from there
thru streams u can send to the applet.
If u are not comfortable with socket programming u can use
middle application as servlet which requires java webserver.
if use servlet as middle application u need not create the sockets.directly u can retrieve the data from database into the
servlet and send that info to the applet thru outputstreams.
if u are not clear let me know it
thanks and regards
Anand
24 years ago
hi sudhakar,
i think there is no other alternative for this.
with regards
from
Anand

Originally posted by sudhakar musuluri:
How can i pass a argument from one applet to another applet?
is there any other way to communicate between two applets except
appletContext.showDocument(),javascript
thanks,
sudhakar


24 years ago
hi,
you can do in another way also.
you send the information from an applet to a normal application
or servlet thru I/O streams.from there you can connect to database.
hope it will also help u while programming Applet to Servlet communications.
from
Anand
24 years ago
hi srinivas,
you cannot display the contents from servlet to the browser directly after receiving the data from an applet .
again you have to sendback the data to an applet using I/O streams.After reading the data in an applet ,show the content
in the browser using getAppletcontext().showdocument() or
redirect the URL.
from
Anand
24 years ago