Вы находитесь на странице: 1из 4
rae WAR Files and Deployment (Javea XSLT) Reds CD hookshe | EeBSD Lis | Caco |e 8 6 ONLY of Java and XSLT “eames ory ., 62. WAR Files and Deployment ° one Inde sent nde Web Applzaon Archive (WAR) Sks are he sit of ephyent WAR Ss emble pvtabity across.a wie rng oer connies reads ofthe vero. The god news tnt WAR fies platform. are very easy to create and require only that you careflly flow the guidelines for fle and diretory names. Ifyou Erdlese ane carci vod speling emo and mpi Bs, ou shoul fa any probln wih WAR tes possibilities. WAR Files ‘Eig 62 shows the standard sacar of WAR fi, Since a WAR fli realy just 2 JAR fle wih ar 1 extension, you can uti the Jar command io ereate your WAR fs reaamtatanaye fimkstnt Si Bommmrnte, | —E]vennr—— SRS bc aia By twee — cases rectory toes Vu oceemees Biremetat CE coon haa gor ee ee Riiptaeerterns rarer cater divectonser Get a FREE A ne ery server today > eiate ac SOFTLAY ER: MEWe 62. WAR file strctare ‘To create a WAR fk, sinplyarange your Bs ito the decctorystuture shown n Ege G2 and isu the ‘owing cormand fom the dectory at cons inde. hamI{23), [23] dex. ums the "home page" or a web apphcation wevtm «./appnaneuar “This command assumes that the WAR ic willbe phced inthe parent of your curent working dectory the Joward ssh ( ) works on Wiows as wellas Una cles. Once the WAR fle bas been created, youcan vw ‘contents hy changhig to ts directory and sung the flown command ‘This shows the table of content for the WAR fie, which mast mich he structure shown in us 6-2. ‘Te topmustdzectory inthe WAR dle is pully access to web browsers and should contain your JSP and ITML fs. You can ako create sectors, which wal ko be vibe to the cit. A eormon practice 10 create an images directory fr storing your wap fs. “The WEB-IVE directory alays iden fiom chens that access your web application. The deployment descriptor, web.cml, located bere a5 ae the classes and ib dzectories. As igus 62 indicates, the clases drctory becomes avaiable to your appcaton’sclasstonses. Any JAR fies conned nthe lip drstoy re ako avaiable to your code, making very easy to deploy thid-partyRbearks along with a web application. The {bk othor directories can beaming you want and wllalo be Hiden rom cos since ese nee the WEB-INF dircetory. Athough chen cannot see any of hese dcctores and fies dicely, you sere ean acess these resources programatically ad then deliver tat conten 6. Deployment Descriptor ‘he deployment descriptors abvays called ebm and mast be paced detynthe WEBLINF dgectry of ipudoostoremikualoralyie pstVehO5. him “

Вам также может понравиться