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

Reply via email to