【精品文档】433关于计算机专业网页小程序有关的外文文献翻译成品:JavaWebStart和小应用程序Applets中英文双语对照11Word文档下载推荐.docx

上传人:b****9 文档编号:13071066 上传时间:2022-10-04 格式:DOCX 页数:22 大小:998.28KB
下载 相关 举报
【精品文档】433关于计算机专业网页小程序有关的外文文献翻译成品:JavaWebStart和小应用程序Applets中英文双语对照11Word文档下载推荐.docx_第1页
第1页 / 共22页
【精品文档】433关于计算机专业网页小程序有关的外文文献翻译成品:JavaWebStart和小应用程序Applets中英文双语对照11Word文档下载推荐.docx_第2页
第2页 / 共22页
【精品文档】433关于计算机专业网页小程序有关的外文文献翻译成品:JavaWebStart和小应用程序Applets中英文双语对照11Word文档下载推荐.docx_第3页
第3页 / 共22页
【精品文档】433关于计算机专业网页小程序有关的外文文献翻译成品:JavaWebStart和小应用程序Applets中英文双语对照11Word文档下载推荐.docx_第4页
第4页 / 共22页
【精品文档】433关于计算机专业网页小程序有关的外文文献翻译成品:JavaWebStart和小应用程序Applets中英文双语对照11Word文档下载推荐.docx_第5页
第5页 / 共22页
点击查看更多>>
下载资源
资源描述

【精品文档】433关于计算机专业网页小程序有关的外文文献翻译成品:JavaWebStart和小应用程序Applets中英文双语对照11Word文档下载推荐.docx

《【精品文档】433关于计算机专业网页小程序有关的外文文献翻译成品:JavaWebStart和小应用程序Applets中英文双语对照11Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《【精品文档】433关于计算机专业网页小程序有关的外文文献翻译成品:JavaWebStart和小应用程序Applets中英文双语对照11Word文档下载推荐.docx(22页珍藏版)》请在冰豆网上搜索。

【精品文档】433关于计算机专业网页小程序有关的外文文献翻译成品:JavaWebStart和小应用程序Applets中英文双语对照11Word文档下载推荐.docx

外文标题:

JavaWebStartandApplets

外文作者:

DavidParsons

文献出处:

FoundationalJava,2019,pp503-527(如觉得年份太老,可改为近2年,毕竟很多毕业生都这样做)

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

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

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

20.1WebBrowsers,URLs,andHTMLPages

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

20.1.1URLs

AURLisbasicallytheInternetaddressofaresourceonaparticularserver,andtypicallyiswritteninthreeparts:

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,

Thislooksforthefile“getinvolved.html”inthe“foundation”directory.Thefilenamewillgenerallyendin“html”(orsometimesjust“htm”)becauseitwillusuallybeafilewritteninHTML(seebelow).Ifnofilenameisspecified,“index.html”isoftentheserver’sdefaultfilenamethatitwillsendbacktothebrowser.Ifnoindexfileispresent,thenadirectorylistingmaybedisplayedinstead,oranerrorpage,dependingontheserver’sconfiguration.

20.1.2HTML(HyperTextMarkupLanguage)

WebbrowsersdisplayscreensofinformationwrittenusingHTML(HyperTextMarkupLanguage).ThebrowsertakesthebasicinformationstoredintheHTMLfileandformatsitappropriatelyusingtagsembeddedintothetextofthefile.AllHTMLfilesbeginwithan<

html>

tagandendwith<

/html>

.MostHTMLtagsareterminatedlikethis,usingaforwardslashfollowedbythetagname.ThisisaverysimpleHTMLfile,showingadditionaltagsforthepageheader(<

head>

whichcanincludeatitle<

title>

),themainbodyofthetext(<

body>

),andsometext.Headertags(suchas<

h1>

)canbeusedtoformatthesizeoftext.The<

p>

tagisusedtospecifyparagraphs.The“DOCTYPE”atthetopthefilespecifiestheversionofHTMLthatisbeingused.ThisexampleusesHTML5(differentDOCTYPEShavedifferentexpectationsabouthowthedocumentshouldbestructured).

Figure20.1showswhatthispagelookslikewhenloadedintoabrowserasalocalfile.Simplefilescaneasilybewrittenbyhand,butformorecomplexpagesitisbettertouseoneofthemanyavailableHTMLeditingtools.SomesimpleHTMLpageswillbeneededtolaunchtheapplicationsandappletsdescribedinthischapter.

20.2JavaWebStart

JavaWebStartisagenericRichInternetApplication(RIA)launchmechanismthatcanbeusedtodeploybothdesktopapplicationsandapplets.Itprovidesawaytoeasilydeployapplicationsviatheweb,andprovidesanalternativetosomeothertypesofwebdeployment,suchassomeserversidewebapplications,thoughitprimarilyeasesthed

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

当前位置:首页 > 经管营销 > 销售营销

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

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