Some basic Servlet question

Hi all,

I need help really so the one who could answer my questions will receive all the 10 Duke Dollars!

Well, this is my problem!

1. I made an Applet with an JFrame. Now i want to open this Frame with a Servlet because I have to use local files. Could anyone give me an example to do this?

2. What is the best way to use Servlets on a server?

Ty!

Greeting,

Jasper Kouwenberg

[425 byte] By [Jasper91a] at [2007-11-26 15:24:14]
# 1

[nobr]well Just a suggestion Alwys use servlet as a Controller however

> 1. I made an Applet with an JFrame. Now i want to

> open this Frame with a Servlet because I have to use

> local files. Could anyone give me an example to do

> this?

Well this could be tried the other way around all have to do is create an applet and on a specific action of an applet you very well create a Frame...

Just as an example

try outputing a similar thing through servelet

<APPLET codeBase="http://194.230.33.5/vcclient" code=COM.volano.VolanoChat.class width=250 height=60 archive="vcclient/COM/volano/VolanoChat.jar">

<PARAM NAME="cabbase" VALUE="COM/volano/VolanoChat.cab">

<param name="scriptable" value="false">

<PARAM NAME="color" VALUE="#A5A5CE">

<PARAM NAME="text" VALUE="english.txt">

<PARAM NAME="code" VALUE="COM.volano.VolanoChat.class">

<PARAM NAME="width" VALUE="250">

<PARAM NAME="height" VALUE="60">

<PARAM NAME="archive" VALUE="COM/volano/VolanoChat.jar">

Sorry, but you are not running a Java Compatible Web browser. To take advantage of the latest Web software, <a

href="http://cgi.netscape.com/cgi-bin/upgrade.cgi">download Netscape now</a>.<br><a href="http://cgi.netscape.com/cgi-bin/upgrade.cgi"><img

src="netscape.gif" width=90 height=30 border=0 alt="Download Netscape Now!"></a></APPLET>

just as a reference you can watch the implementation of the website (http://lovemailchat.com) which was comepletely built of Applets & Frames

REGARDS,

RaHuL[/nobr]

RahulSharnaa at 2007-7-8 21:39:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...