Article View: pl.comp.lang.java
Article #141729Re: Ustawianie Welcome page dla aplikacji
From: LuQaS
Date: Fri, 17 Oct 2008 13:43
Date: Fri, 17 Oct 2008 13:43
74 lines
3905 bytes
3905 bytes
Dodaj takie coś w web.xml i będzie git ;)
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/index.faces</url-pattern>
</servlet-mapping>
Pozdro
Luq
On 16 Paź, 17:52, Yacho <yacho1984@[googlemail].com> wrote:
> Witam !
>
> Mam problem z podpięciem strony / pod /index.jsp
> Serwer aplikacji to glassfish, JSF 1.2 RI.
>
> moje faces config i web.xml jest nastepujace :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <faces-config
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
> version="1.2">
>
> <navigation-rule>
> <display-name>index</display-name>
> <from-view-id>/index.jsp</from-view-id>
> <navigation-case>
> <from-outcome>foo</from-outcome>
> <to-view-id>/druga.jsp</to-view-id>
> </navigation-case>
> </navigation-rule>
> </faces-config>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
> <display-name>tst1</display-name>
> <welcome-file-list>
> <welcome-file>index.html</welcome-file>
> <welcome-file>index.htm</welcome-file>
> <welcome-file>index.jsp</welcome-file>
> <welcome-file>index.faces</welcome-file>
> <welcome-file>default.html</welcome-file>
> <welcome-file>default.htm</welcome-file>
> <welcome-file>default.jsp</welcome-file>
> </welcome-file-list>
> <servlet>
> <servlet-name>Faces Servlet</servlet-name>
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>Faces Servlet</servlet-name>
> <url-pattern>*.faces</url-pattern>
> </servlet-mapping>
> </web-app>
>
> Z tego co rozumiem zdefiniowanie najpierw :
> <welcome-file>index.faces</welcome-file>
> a następnie mapowania .faces na serwlet JSF powinno działać... a nie
> dziala. Domyślam się że <welcome-file> powinno być rzeczywistm plikiem
> na serwerze a nie scieżka kontekstu - czy tak ?
>
> Jeśli tak to jakie jest rozwiązanie mojego problemu ?
>
> --
> Jacek
Technical Details
Message-ID:
<0b4b9a0b-7d48-4b48-bce5-40806b1e5100@l64g2000hse.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!l64g2000hse.googlegroups.com!not-for-mailReferences:
<gd7rh3$psi$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!l64g2000hse.googlegroups.com!not-for-mail From: LuQaS <lukasz.kasprzak@gmail.com> Newsgroups: pl.comp.lang.java Subject: Re: Ustawianie Welcome page dla aplikacji Date: Fri, 17 Oct 2008 06:43:45 -0700 (PDT) Organization: http://groups.google.com Lines: 80 Message-ID: <0b4b9a0b-7d48-4b48-bce5-40806b1e5100@l64g2000hse.googlegroups.com> References: <gd7rh3$psi$1@inews.gazeta.pl> NNTP-Posting-Host: 83.71.179.97 Mime-Version: 1.0 X-Trace: posting.google.com 1224251025 29953 127.0.0.1 (17 Oct 2008 13:43:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 17 Oct 2008 13:43:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l64g2000hse.googlegroups.com; posting-host=83.71.179.97; posting-account=faKaqAoAAAA22jmrbNgukYOCNAqSk97v User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3,gzip(gfe),gzip(gfe) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit