Hi
*.faces is mapped to your JSP
A simple explanation:
A request to /foo.faces goes to the FacesServlet.
And through the "infrastructure" of JSF (lifecycle for instance)
Finally the "tags" in foo.jsp got rendered during Phase 6 of the
lifecycle (called "render response") and the *rendered* content will
be shown in your browser.
So, no access to a *.jsp inside of browsers address bar, when trying
to access a Faces application
-Matthias
On 6/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Yes this would work, but I think this is not solution. I think *.jsp should
be mapped to *.faces.
I think this entry in web.xml should do it.
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
>-- Original-Nachricht --
>Reply-To: "MyFaces Discussion" <[email protected]>
>Date: Sun, 04 Jun 2006 21:33:02 +0200
>From: Ondrej Svetlik <[EMAIL PROTECTED]>
>To: MyFaces Discussion <[email protected]>
>Subject: Re: action property
>
>
>[EMAIL PROTECTED] wrote:
>> I like to add an action property to my component. In the call I get this
>> exception.
>> I get the same exception when I use outputLink.
>> Any advices?
>>
>> javax.servlet.ServletException: No faces context?!
>>
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
>>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
>> org.apache.jsp.account_jsp._jspService(org.apache.jsp.account_jsp:95)
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>>
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>>
>>
>
>I get the same exception when pointing to page.jsp instead of
>page.faces. Is that your problem?
>
>Best regards
>
>Ondrej Svetlik
--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com