aspose file tools*
The moose likes JNLP and Web Start and the fly likes Architecture is the same as applet embeded in html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Architecture is the same as applet embeded in html" Watch "Architecture is the same as applet embeded in html" New topic
Author

Architecture is the same as applet embeded in html

Ruilin Yang
Ranch Hand

Joined: Jan 06, 2002
Posts: 150
I read through the document given by Sun site on Web Start. My understanding about the Web Start is that it is based on the same principal as we normally embeded applets into a HTML page to submit to Web application. When using the Web Start, the Web Start generates wrapping HTML automatically which embeded the java application (downloaded first through Web)in it.
Please correct me and elaborate too.
Thanks
Ruilin
Michael Szul
Ranch Hand

Joined: Sep 18, 2001
Posts: 57
When you write a JNLP application, you make a few small changes to it, though nothing as dramatic as converting an application to an applet.
You then create a JNLP file that (assuming JNLP is registered in your browser) is linked to on an HTML page, and when clicked on, passes control to Web Start.
Web Start reads this file and finds out where to download the application and all other variables.
The application is a standalone application. Web Start is just used to distribute it and launch it.
As far as I know, the only striking similarities between an applet and a Web Start program is the sandbox rule when it comes to security.
Ruilin Yang
Ranch Hand

Joined: Jan 06, 2002
Posts: 150
Michael,
Thanks.
So it is different from embedded applet into html.
The application is still standalone Java application after distributed. This means that if I want the application talk to web tier I have to implement API inside the application, such as URLConnection, etc. to explicitly connect to a Web component.
Please elabrate
Thanks
Ruilin
[ January 25, 2002: Message edited by: Rulin Yang ]
Ruilin Yang
Ranch Hand

Joined: Jan 06, 2002
Posts: 150
Michael,
Again a question about what you said that we can deploy an application into Appelets.
My question is whether such applets will need download every time when we run the application or those applets are so called stick applets that we do not need to download it again ?
Would you or anybody please give me some light.
Thanks
Ruilin
Michael Szul
Ranch Hand

Joined: Sep 18, 2001
Posts: 57
The Web Start application would only download anything new if there were something new on the server.
In addition, this would only occur if you specified in the JNLP file to check for newer versions.
The last time I developed an applet, I'm pretty sure it had to be downloaded from the server every time you came to the page. I don't know if the API or technology has changed since then.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Architecture is the same as applet embeded in html