Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java_server thread: Re: do reply


Message #1 by "Andreas M. Bonzol" <Andreas@B...> on Sun, 3 Jun 2001 04:05:32
this sounds like the old age problem of thinking the applet is on the 
server
instead of on the client or thinking that you can access local 
resources. if
you are using the applet n the same machine as the server thats serving 
it
but using http, it is probably best not to try and do database 
accessing
code in the applet. Connect to a servlet that will access the database 
for
you instead. Ideally, use a bean in the servlet to access the database
rather than using SQL in the servlet itself. Sub obtimally, use a 
resource
bundle or other properties file to access these SQL calls so that they 
are
not hardcoded into your servlet.

chanoch

-----Original Message-----
From: Andreas M. Bonzol [mailto:Andreas@B...]
Sent: 03 June 2001 05:06
To: Java Server
Subject: [pro_java_server] Re: do reply


> Hi...
>    my prob. is that when i run my applet on the browser...the 
database
fetching throws the following exception:
>
>   com.ms.security.SecurityExceptionEx[]:java.io.IOException:bad
> path:E:\Test\sun\jdbc\odbc\JdbcOdbcDriver.class
> {
>   //description
> }
>
> and;
>
> Exception : 
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver
>
> ..................................
> I have made changes in the java.policy file too......
> but there has been no effect........
>
>
Hi Shruti,
I have seen your Question about connecting a database in an java 
applet,
this April. So there is a long time ago and i hope that you have found 
ana
answer for your problem.
Please let me know how it works , cause i have the same problem and 
cant
complete my work. If it=B4s possible make your answer in easy words 
cause my
english isn=B4t so good ;-) .
Thanks for helping me

Yours sincerely
Andreas ( A new member of the java family)


  Return to Index