Hi, Raja:
I think one of the approach you might use is in your fetch method, you can
call another servlet which fetches the data from the server(which has the
DSN). The servlet can either return a treeNode or a treeModel( if your are
using JTree here) that you can plug into your applet tree.
It is just a suggestion and good luck on your project.
Molly
-----Original Message-----
From: RAJA [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 03, 2000 3:38 AM
To: [EMAIL PROTECTED]
Subject: Help !.
Hi all,
I am working on a project in servlets . In one of the
options i am having a servlet which calls an applet .In this applet
the user can add components like he is adding files to a windows
explorer.the whole thing is in the form of a windows explorer tree. So
every time the user adds a new node to the tree the applet has to
gets refreshed and the new tree is displayed after fetching from the
database .The problem is once the applet is loaded on the client's
PC all the classes reqd for displaying the tree are loaded on to the
client's PC .So every time the applet gets refreshed the fetch
method which fetchs records from the Database which is residing on the
server fails .This is because the client is unable to find the DSN
.The whole thing works if I set the DSN in the client's PC also and
specify the database name giving the path of the server .But this is not
a good thing to do as settings will be required to be done on every
client PC then. Is there any way to set the DSN of the client's PC by
passing the name of the DSN in the server.
Any help is welcome.
Regards,
S.S.Rajagopal
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html