🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #141736

Re: Ustawianie Welcome page dla aplikacji

#141736
From: pietia
Date: Sat, 18 Oct 2008 14:50
48 lines
2564 bytes
tutaj podajemy rzeczywista nazwe pliku:

>>     <welcome-file-list>
>>         <welcome-file>index.jsp
>>         </welcome-file>
>>     </welcome-file-list>
>> </web-app>

a jego zawartosc moze byc taka :

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:forward page="template-client.jsf"/>


gdzie template-client.jsf odwoluj sie do template-client.xhtml,
ktory moze wygladac tak:
(przyklad z kosmosu)

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:rich="http://richfaces.org/rich"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:c="http://java.sun.com/jstl/core"
       >
   <body>
     This text above will not be displayed.
     <ui:composition template="/templates/template.xhtml">
       This text will not be displayed.
       <ui:define name="title">
         Facelets
       </ui:define>
       This text will also not be displayed.
       <ui:define name="body">
         <rich:gmap ></rich:gmap>
         Hello from the Facelets client template!
       </ui:define>
       This text will not be displayed.
     </ui:composition>
     This text below will also not be displayed.
   </body>
</html>


pamietaj ze ten plik uzywa szablonu faceletow
Technical Details
Message-ID: <gdct46$s6q$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <gd7rh3$psi$1@inews.gazeta.pl> <0b4b9a0b-7d48-4b48-bce5-40806b1e5100@l64g2000hse.googlegroups.com> <gdar99$ob6$1@inews.gazeta.pl> <d93817bc-8ebb-42a5-9bcf-58d8b2d92694@y29g2000hsf.googlegroups.com> <gdb3sq$mjg$1@inews.gazeta.pl> <gdc6pv$7e7$1@inews.gazeta.pl> <gdcqdo$d86$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: pietia <pietia.gr@gmail.com>
Newsgroups: pl.comp.lang.java
Subject: Re: Ustawianie Welcome page dla aplikacji
Date: Sat, 18 Oct 2008 16:50:48 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 48
Message-ID: <gdct46$s6q$1@inews.gazeta.pl>
References: <gd7rh3$psi$1@inews.gazeta.pl> <0b4b9a0b-7d48-4b48-bce5-40806b1e5100@l64g2000hse.googlegroups.com>  <gdar99$ob6$1@inews.gazeta.pl> <d93817bc-8ebb-42a5-9bcf-58d8b2d92694@y29g2000hsf.googlegroups.com> <gdb3sq$mjg$1@inews.gazeta.pl> <gdc6pv$7e7$1@inews.gazeta.pl> <gdcqdo$d86$1@inews.gazeta.pl>
NNTP-Posting-Host: bkj189.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1224341447 28890 83.28.177.189 (18 Oct 2008 14:50:47 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Sat, 18 Oct 2008 14:50:47 +0000 (UTC)
X-User: pietiamoo
In-Reply-To: <gdcqdo$d86$1@inews.gazeta.pl>
User-Agent: Thunderbird 2.0.0.17 (X11/20080914)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit