关于计算机专业网页小程序有关的外文文献翻译成品_Java Web Start和小应用程序Applets(中英文双语对照).docx

上传人:wj 文档编号:108928 上传时间:2022-10-03 格式:DOCX 页数:26 大小:498.72KB
下载 相关 举报
关于计算机专业网页小程序有关的外文文献翻译成品_Java Web Start和小应用程序Applets(中英文双语对照).docx_第1页
第1页 / 共26页
关于计算机专业网页小程序有关的外文文献翻译成品_Java Web Start和小应用程序Applets(中英文双语对照).docx_第2页
第2页 / 共26页
关于计算机专业网页小程序有关的外文文献翻译成品_Java Web Start和小应用程序Applets(中英文双语对照).docx_第3页
第3页 / 共26页
关于计算机专业网页小程序有关的外文文献翻译成品_Java Web Start和小应用程序Applets(中英文双语对照).docx_第4页
第4页 / 共26页
关于计算机专业网页小程序有关的外文文献翻译成品_Java Web Start和小应用程序Applets(中英文双语对照).docx_第5页
第5页 / 共26页
点击查看更多>>
下载资源
资源描述

关于计算机专业网页小程序有关的外文文献翻译成品_Java Web Start和小应用程序Applets(中英文双语对照).docx

《关于计算机专业网页小程序有关的外文文献翻译成品_Java Web Start和小应用程序Applets(中英文双语对照).docx》由会员分享,可在线阅读,更多相关《关于计算机专业网页小程序有关的外文文献翻译成品_Java Web Start和小应用程序Applets(中英文双语对照).docx(26页珍藏版)》请在冰豆网上搜索。

关于计算机专业网页小程序有关的外文文献翻译成品_Java Web Start和小应用程序Applets(中英文双语对照).docx

此文档是毕业设计外文翻译成品(含英文原文+中文翻译),无需调整复杂的格式!

下载之后直接可用,方便快捷!

本文价格不贵,也就几十块钱!

一辈子也就一次的事!

文献出处:

DavidParsons FoundationalJava,2019,pp503-527(如觉得年

份太老,可改为近2年,毕竟很多毕业生都这样做)

英文3584单词,19270字符(字符就是印刷符),中文5622汉字。

(如果字数多了,可自行删减,大多数学校都是要求选取外文的一部分内容进行翻译的。

JavaWebStartandApplets

Initsearlydays,JavacametoprominencebecauseofJavaapplets,runninginwebbrowsers.Appletshavehadsomethingofacheckeredhistorysincethen,andmostJavawebtechnologiesbelongintheenterpriseeditionratherthanthestandardeditionofJava.However,appletsarestillwidelyused,andcanbeausefulcomponentofrichInternetapplications.Alsoassociatedwiththeweb,butlessdirectly,isJavaWebStart,whichallowsdesktopapplicationstobedeployedovertheweb.Inthischapter,wewillbeginbylookingatJavaWebStartandthenlookatapplets,whichcannowusethesamedeploymentmechanismasJavaWebStart,makingitveryeasytoswitchbetweenthetwomodesofdeployment.SincebothJavaWebStartandappletsrequireustocreatewebpageswithappropriatelinkstoJavaapplicationsorapplets,wewillbeginwithbriefoverviewsofwebbrowsers,URLs,andHTML.

20.1 WebBrowsers,URLs,andHTMLPages

Webbrowsersoftware(e.g.,Explorer,Firefbx,Safari,Chrome,etc.)isdesignedtoretrieveinformationfromremotesitesontheWorldWideWeb(WWW)usingUniformResourceLocators(URLs).MuchoftheinformationismadeavailableintheformofHTML(HyperTextMarkupLanguage)webpages.

20.1.1 URLs

AURLisbasicallytheInternetaddressofaresourceonaparticularserver,and

typicallyiswritteninthreeparts:

theprotocol,theserveraddress,andthenameoftheresource(includinganypathinformation).

20.1.1.1TheHTTPProtocol

Theprotocolprefixforwebpagesis“http:

//”.Thisstandsfor“hypertexttransferprotocol”andmostURLsstartthisway.Indeedthispartisoftenomitted,becauseitisusuallythebrowser’sdefaultprotocol(thoughthereareotherwebprotocolsthatyoumaybefamiliarwithsuchasFTP,theFileTransferProtocol).

20.1.1.2TheServerAddress

Theserveraddressusuallybeginswith“www”(WorldWideWeb),followedbythenameofthesiteandits“domain,”whichdefinesitscategoryandmayincludeitscountrycode.Eachoftheseisseparatedbyaperiod(fullstop).Take,forexample,thefollowingURL:

“introjava”isthenameoftheserversiteand“com”meansacompany.Commonalternativesto“com”are“edu”foracademicinstitutionsand“org”fororganizations.ManyURLsarewithinacountrydomain,suchas“.co.uk”or“ac.nz”.Ifyouarerunningatestserveronyourlocalmachine,thedomainnamebecomes“localhost.”

20.1.1.3ThePathandResourceName

ThefinalpartofaURLcanincludethelocation(directory)andnameoftheparticularfileatthesite.Forexample,

http:

//www.apache.org/foundation/getinvolved.html

Thislooksforthefile“getinvolved.html”inthe“foundation”directory.Thefilenamewillgenerallyendin“html”(orsometimesjust“htm”)becauseitwillusuallybeafilewritteninHTML(seebelow).Ifnofilenameisspecified,“index.html”isoftentheserver’sdefaultfilenamethatitwillsendbacktothebrowser.Ifnoindexfileis

present,thenadirectorylistingmaybedisplayedinstead,oranerrorpage,dependingontheserver’sconfiguration.

20.1.2HTML(HyperTextMarkupLanguage)

WebbrowsersdisplayscreensofinformationwrittenusingHTML(HyperTextMarkupLanguage).ThebrowsertakesthebasicinformationstoredintheHTMLfileandformatsitappropriatelyusingtagsembeddedintothetextofthefile.AllHTMLfilesbeginw'ithantagandendw'ith.MostHTMLtagsareterminatedlikethis,usingaforwardslashfollowedbythetagname.ThisisaverysimpleHTMLfile,showingadditionaltagsforthepageheader(,whichcanincludeatitle),themainbodyofthetext(<body>),andsometext.Headertags(suchas<hl>)canbeusedtoformatthesizeoftext.The<p>tagisusedtospecifyparagraphs.The“DOCTYPE”atthetopthefilespecifiestheversionofHTMLthatisbeingused.ThisexampleusesHTML5(differentDOCTYPEShavedifferentexpectationsabouthowthedocumentshouldbestructured).</p><p>Fig.20.1AsimpleHTMLpageloadedintoabrowser</p><p>Figure20.1showswhatthispagelookslikewhenloadedintoabrowserasalocalfile.Simplefilescaneasilybewrittenbyhand,butformorecomplexpagesitisbettertouseoneofthemanyavailableHTMLeditingtools.SomesimpleHTMLpageswillbeneededtolaunchtheapplicationsandappletsdescribedinthischapter.</p><p><!</p><p>DOCTYPEhtml><html></p><p><head></p><p><title>AsimpleHTMLpage

Thisisaheading

HereisthetextofmyHTMLpage

20.2JavaWebStart

JavaWebStartisagenericRichInternetApplication(RIA)launchmechanismthatcanbeusedt

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 党团工作 > 思想汇报心得体会

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1