You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by No Galz <an...@yahoo.com> on 2004/11/30 14:39:58 UTC

MyFaces+Struts+StrutsFaves -- again giving it a try!!

Hii All,

I have setup the MyFaces+Struts+StrutsFaces in the
following way

--> myfaces jars, struts-faces.jar, jstl.jar, 
standard.jar added to lib

--> add facesrequest processor to the
struts-config.xml (without tiles impl.)

   <controller nocache="true" >
	  <set-property property="inputForward" value="true"
/> 
	  <set-property property="processorClass"
value="org.apache.struts.faces.application.FacesRequestProcessor"
/> 
  </controller>

--> add MyFaces' ContextListener to web.xml with reqd.
context 
--> parameters

	<context-param>
	
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>

	  	<param-value>client</param-value> 
	</context-param>

<!-- Myfaces implementation listener initialisation
-->  
 <listener>
	 
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>

 </listener>

--> added JSF Servlet configuration and change the
load-on-startup attribute to load JSF at the start
-->then struts and -->then the application servlet

  <!--  JavaServer Faces Servlet Configuration --> 
  <servlet>
  <servlet-name>faces</servlet-name> 
 
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

  <load-on-startup>1</load-on-startup> 
  </servlet>

--> adding the servlet mapping too

 <!--  JavaServer Faces Servlet Mapping --> 
 <servlet-mapping>
  <servlet-name>faces</servlet-name> 
  <url-pattern>*.faces</url-pattern> 
</servlet-mapping>

I have a SevletFilter which is configured with a
pattern of *.do (same as my Struts Action Servlet
mappings)
ServletFilter is used as a mode of authentication, for
each page request.

I expect my Struts based application to work as it is,
b'coz i m not using any struts-faces tags or faces tag
at the moment.

But with the first click...i got the following error
from myfaces 

could not find pathMapping for servletPath =
/loginCheck.do requestPathInfo = null

at 
org.apache.myfaces.application.jsp.JspViewHandlerImpl

Moreover, i m used the latest of everything..myfaces,
struts-faces.

I m trying it hard, b'coz i want to leverage the
benefits of JSF with my existing (quite BIG) struts
based application.

Any feedback will be a big help for me.

Thanks,
fargo





		
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page � Try My Yahoo!
http://my.yahoo.com 

Re: MyFaces+Struts+StrutsFaces -- again giving it a try!!

Posted by Craig McClanahan <cr...@gmail.com>.
Note that the patched HttpServletRequestWrapper in the Struts-Faces
library (proposed by the MyFaces folks) breaks the requirements of the
servlet specification, because it doesn't extend
javax.servlet.http.HttpServletRequestWrapper, so that's going to have
to be changed or thrown away anyway.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32014

There are definitely some MyFaces issues, and probably some
Struts-Faces issues, in the way of making this combination work
seemlessly.

Craig



On Tue, 30 Nov 2004 07:32:29 -0800 (PST), No Galz <an...@yahoo.com> wrote:
> Hii Matthias,
> 
> Thank you very much. Atleast it crosses my first
> hurdle. Now i will work upon using the myfaces along
> with struts.
> 
> Moreover, How come the struts-faces didn't use the
> HttpServletRequestWrapper???
> 
> i will shoot other questions, as it comes.
> 
> Regards
> fargo
> 
> --- Matthias Wessendorf
> 
> 
> <ma...@matthias-wessendorf.de> wrote:
> 
> > Hi fargo,
> >
> > I just looked at subversion and saw
> > that the RequestWrapper is not in use.
> >
> >
> http://svn.apache.org/viewcvs.cgi/struts/faces/trunk/core-library/src/ja
> >
> va/org/apache/struts/faces/application/FacesRequestProcessor.java?rev=65
> > 520&view=auto
> >
> >
> > please try to build struts-faces on your own
> > and use inside of ***RequestProcessor the
> > Wrapper.
> >
> > Could you tell us the results on that?
> >
> > Keep in mind, that I didn't patch
> > the JspViewHandlerImpl. I *patched*
> > Struts-Faces.
> >
> > I don't know if it is a bug of MyFaces.
> > But that *patched* Struts-Faces worked
> > with MyFaces.
> >
> > Regards,
> > Matthias
> >
> > > -----Original Message-----
> > > From: No Galz [mailto:anshulpatni@yahoo.com]
> > > Sent: Tuesday, November 30, 2004 3:23 PM
> > > To: MyFaces Discussion; Sean Schofield
> > > Subject: Re: MyFaces+Struts+StrutsFaces -- again
> > giving it a try!!
> > >
> > >
> > > Hii Sean,
> > >
> > > Thanks for your feedback. But just to let u know,
> > the
> > > error is occuring at
> > >
> >
> org.apache.myfaces.application.jsp.JspViewHandlerImpl
> > >
> > > which is not able to find the mapping for
> > >
> > > could not find pathMapping for servletPath =
> > >  /loginCheck.do requestPathInfo = null
> > >
> > > As mentioned in the mailing list at
> > >
> >
> http://www.mail-archive.com/dev@struts.apache.org/msg01926.html
> > >
> > > JspViewHandlerImpl seems to work only for *.faces
> > > mappings and not for *.do mappings. As mentioned
> > in
> > > the mailing list, Matthias has already fix this
> > and
> > > should be available with the latest myfaces.
> > >
> > > I agree that the Servlet Filter could be the
> > reason,
> > > but afterall why?? When it works fine with Struts
> > > based apps and just by using the integration
> > library
> > > and initialising the FacesServlet..should not
> > effect
> > > the situation.
> > >
> > > Thanks,
> > > fargo
> > >
> > >
> > >
> > >
> > > --- Sean Schofield <se...@gmail.com>
> > wrote:
> > >
> > > > This doesn't sound like it has anything to do
> > with
> > > > MyFaces (although I
> > > > am not an expert, I just follow this mailing
> > list.)
> > > >
> > > > It seems like your ActionServlet failed to setup
> > > > properly (the
> > > > inability to find a mapping for loginCheck.do
> > seems
> > > > to point to this.)
> > > >  I noticed you said you have a ServletFilter
> > that is
> > > > also configured
> > > > to *.do.  What is the URL you are trying to
> > bring up
> > > > and what do you
> > > > expect to happen when you enter that URL?
> > > >
> > > > I am assuming your filter is doing some kind of
> > > authentication check.
> > > > What happens next?  If you are forwarding to
> > another
> > > > location with a
> > > > *.do pattern, there might be a problem with
> > looping.
> > > >
> > > > Try commenting out your filter to verify that
> > there
> > > > is something wrong.
> > > >
> > > > HTH,
> > > > sean
> > > >
> > > >
> > > > On Tue, 30 Nov 2004 05:39:58 -0800 (PST), No
> > Galz
> > > > <an...@yahoo.com> wrote:
> > > > > Hii All,
> > > > >
> > > > > I have setup the MyFaces+Struts+StrutsFaces in
> > the following way
> > > > >
> > > > > --> myfaces jars, struts-faces.jar, jstl.jar,
> > > > > standard.jar added to lib
> > > > >
> > > > > --> add facesrequest processor to the
> > > > > struts-config.xml (without tiles impl.)
> > > > >
> > > > >   <controller nocache="true" >
> > > > >          <set-property property="inputForward"
> > > > value="true"
> > > > > />
> > > > >          <set-property
> > property="processorClass"
> > > > >
> > > >
> > >
> >
> value="org.apache.struts.faces.application.FacesRequestProcessor"
> > > > > />
> > > > >  </controller>
> > > > >
> > > > > --> add MyFaces' ContextListener to web.xml
> > with
> > > > reqd.
> > > > > context
> > > > > --> parameters
> > > > >
> > > > >        <context-param>
> > > > >
> > > > >
> > > >
> > >
> >
> <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> > > > >
> > > > >
> > <param-value>client</param-value>
> > > > >        </context-param>
> > > > >
> > > > > <!-- Myfaces implementation listener
> > > > initialisation
> > > > > -->
> > > > > <listener>
> > > > >
> > > > >
> > > >
> > >
> >
> <listener-class>org.apache.myfaces.webapp.StartupServletContex
> > > tListener</listener-class>
> > > > >
> > > > > </listener>
> > > > >
> > > > > --> added JSF Servlet configuration and change
> > the
> > > > > load-on-startup attribute to load JSF at the
> > start
> > > > > -->then struts and -->then the application
> > servlet
> > > > >
> > > > >  <!--  JavaServer Faces Servlet Configuration
> > -->
> > > > >  <servlet>
> > > > >  <servlet-name>faces</servlet-name>
> > > > >
> > > > >
> > > >
> > >
> >
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> > > > >
> > > > >  <load-on-startup>1</load-on-startup>
> > > > >  </servlet>
> > > > >
> > > > > --> adding the servlet mapping too
> > > > >
> > > > > <!--  JavaServer Faces Servlet Mapping -->
> > <servlet-mapping>
> > > > >  <servlet-name>faces</servlet-name>
> > > > >  <url-pattern>*.faces</url-pattern>
> > > > > </servlet-mapping>
> > > > >
> > > > > I have a SevletFilter which is configured with
> > a
> > > > > pattern of *.do (same as my Struts Action
> > Servlet
> > 
> === message truncated ===
> 
> 
> __________________________________
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
> http://mobile.yahoo.com/maildemo
>

RE: MyFaces+Struts+StrutsFaces -- again giving it a try!!

Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
As far as I can see,
you are using *wrapper*(struts-faces) and MyFaces
that works for you, isn't it?

Well MyFaces-106-beta works also with the wrapper :-)

There was a discussion on that before inside of MyFaces-dev
(at SF_NET) subject was "MyFaces - Struts"

Did you read the mails on sf_mail_archive?

Regards,
Matthias


> -----Original Message-----
> From: No Galz [mailto:anshulpatni@yahoo.com] 
> Sent: Tuesday, November 30, 2004 4:53 PM
> To: MyFaces Discussion
> Subject: RE: MyFaces+Struts+StrutsFaces -- again giving it a try!!
> 
> 
> Hii Matthias,
> 
> I read the logs now ..If i would have read it
> before...-:) well, but now the POINTER is on myFaces implementation.
> 
> But log also says that it worked with myfaces-1.0.6..
> 
> May be Manfred can throw some lights on it!!
> 
> Regards,
> fargo
> 
> --- Matthias Wessendorf
> <ma...@matthias-wessendorf.de> wrote:
> 
> > Hi Fargo,
> > 
> > see this:
> >
> http://cvs.apache.org/viewcvs.cgi/jakarta-struts/contrib/strut
> s-faces/sr
> >
> c/java/org/apache/struts/faces/application/FacesRequestProcess
> or.java?re
> > v=1.11&view=log
> > 
> > it is working with RI from Sun, even without
> > this Wrapper.
> > 
> > HTH,
> > Matthias
> > 
> > 
> > > -----Original Message-----
> > > From: No Galz [mailto:anshulpatni@yahoo.com]
> > > Sent: Tuesday, November 30, 2004 4:32 PM
> > > To: MyFaces Discussion
> > > Subject: RE: MyFaces+Struts+StrutsFaces -- again
> > giving it a try!!
> > > 
> > > 
> > > Hii Matthias,
> > > 
> > > Thank you very much. Atleast it crosses my first
> > > hurdle. Now i will work upon using the myfaces
> > along
> > > with struts.
> > > 
> > > Moreover, How come the struts-faces didn't use the
> > 
> > > HttpServletRequestWrapper???
> > > 
> > > i will shoot other questions, as it comes.
> > > 
> > > Regards
> > > fargo
> > > 
> > > 
> > > 
> > > --- Matthias Wessendorf
> > > <ma...@matthias-wessendorf.de> wrote:
> > > 
> > > > Hi fargo,
> > > > 
> > > > I just looked at subversion and saw
> > > > that the RequestWrapper is not in use.
> > > > 
> > > >
> > >
> >
> http://svn.apache.org/viewcvs.cgi/struts/faces/trunk/core-libr
> > > ary/src/ja
> > > >
> > >
> >
> va/org/apache/struts/faces/application/FacesRequestProcessor.j
> > > ava?rev=65
> > > > 520&view=auto
> > > > 
> > > > 
> > > > please try to build struts-faces on your own
> > > > and use inside of ***RequestProcessor the
> > > > Wrapper.
> > > > 
> > > > Could you tell us the results on that?
> > > > 
> > > > Keep in mind, that I didn't patch
> > > > the JspViewHandlerImpl. I *patched*
> > > > Struts-Faces.
> > > > 
> > > > I don't know if it is a bug of MyFaces.
> > > > But that *patched* Struts-Faces worked
> > > > with MyFaces.
> > > > 
> > > > Regards,
> > > > Matthias
> > > > 
> > > > > -----Original Message-----
> > > > > From: No Galz [mailto:anshulpatni@yahoo.com]
> > > > > Sent: Tuesday, November 30, 2004 3:23 PM
> > > > > To: MyFaces Discussion; Sean Schofield
> > > > > Subject: Re: MyFaces+Struts+StrutsFaces --
> > again
> > > > giving it a try!!
> > > > > 
> > > > > 
> > > > > Hii Sean,
> > > > > 
> > > > > Thanks for your feedback. But just to let u
> > know,
> > > > the
> > > > > error is occuring at
> > > > >
> > > >
> > >
> >
> org.apache.myfaces.application.jsp.JspViewHandlerImpl
> > > > > 
> > > > > which is not able to find the mapping for
> > > > > 
> > > > > could not find pathMapping for servletPath =  /loginCheck.do 
> > > > > requestPathInfo = null
> > > > > 
> > > > > As mentioned in the mailing list at
> > > > >
> > > >
> > >
> >
> http://www.mail-archive.com/dev@struts.apache.org/msg01926.html
> > > > > 
> > > > > JspViewHandlerImpl seems to work only for
> > *.faces
> > > > > mappings and not for *.do mappings. As
> > mentioned
> > > > in
> > > > > the mailing list, Matthias has already fix
> > this
> > > > and
> > > > > should be available with the latest myfaces.
> > > > > 
> > > > > I agree that the Servlet Filter could be the
> > > > reason,
> > > > > but afterall why?? When it works fine with
> > Struts
> > > > > based apps and just by using the integration
> > > > library
> > > > > and initialising the FacesServlet..should not
> > > > effect
> > > > > the situation.
> > > > > 
> > > > > Thanks,
> > > > > fargo
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > --- Sean Schofield <se...@gmail.com>
> > > > wrote:
> > > > > 
> > > > > > This doesn't sound like it has anything to
> > do
> > > > with
> > > > > > MyFaces (although I
> > > > > > am not an expert, I just follow this mailing
> > > > list.)
> > > > > > 
> > > > > > It seems like your ActionServlet failed to
> > setup
> > > > > > properly (the
> > > > > > inability to find a mapping for
> > loginCheck.do
> > > > seems
> > > > > > to point to this.)
> > > > > >  I noticed you said you have a ServletFilter
> > > > that is
> > > > > > also configured
> > > > > > to *.do.  What is the URL you are trying to
> > > > bring up
> > > > > > and what do you
> > > > > > expect to happen when you enter that URL?
> > > > > > 
> > > > > > I am assuming your filter is doing some kind
> > of
> > > > > authentication check.
> > > > > > What happens next?  If you are forwarding to
> > > > another
> > > > > > location with a
> > > > > > *.do pattern, there might be a problem with
> > > > looping.
> > > > > > 
> > > > > > Try commenting out your filter to verify
> > that
> > > > there
> > > > > > is something wrong.
> > > > > > 
> > > > > > HTH,
> > > > > > sean
> > > > > > 
> > > > > > 
> > > > > > On Tue, 30 Nov 2004 05:39:58 -0800 (PST), No
> > > > Galz
> > > > > > <an...@yahoo.com> wrote:
> > > > > > > Hii All,
> > > > > > > 
> > > > > > > I have setup the
> > MyFaces+Struts+StrutsFaces in
> > > > the following way
> > > > > > > 
> > > > > > > --> myfaces jars, struts-faces.jar,
> > jstl.jar,
> > > > > > > standard.jar added to lib
> > > > > > > 
> > > > > > > --> add facesrequest processor to the
> > > > > > > struts-config.xml (without tiles impl.)
> > > > > > > 
> > > > > > >   <controller nocache="true" >
> > > > > > >          <set-property
> > property="inputForward"
> > > > > > value="true"
> > > > > > > />
> > > > > > >          <set-property
> > > > property="processorClass"
> > > > > > >
> > > > > >
> > 
> === message truncated ===
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 


RE: MyFaces+Struts+StrutsFaces -- again giving it a try!!

Posted by No Galz <an...@yahoo.com>.
Hii Matthias,

I read the logs now ..If i would have read it
before...-:) well, but now the POINTER is on myFaces
implementation.

But log also says that it worked with myfaces-1.0.6..

May be Manfred can throw some lights on it!!

Regards,
fargo

--- Matthias Wessendorf
<ma...@matthias-wessendorf.de> wrote:

> Hi Fargo,
> 
> see this:
>
http://cvs.apache.org/viewcvs.cgi/jakarta-struts/contrib/struts-faces/sr
>
c/java/org/apache/struts/faces/application/FacesRequestProcessor.java?re
> v=1.11&view=log
> 
> it is working with RI from Sun, even without
> this Wrapper.
> 
> HTH,
> Matthias
> 
> 
> > -----Original Message-----
> > From: No Galz [mailto:anshulpatni@yahoo.com] 
> > Sent: Tuesday, November 30, 2004 4:32 PM
> > To: MyFaces Discussion
> > Subject: RE: MyFaces+Struts+StrutsFaces -- again
> giving it a try!!
> > 
> > 
> > Hii Matthias,
> > 
> > Thank you very much. Atleast it crosses my first
> > hurdle. Now i will work upon using the myfaces
> along
> > with struts. 
> > 
> > Moreover, How come the struts-faces didn't use the
> 
> > HttpServletRequestWrapper??? 
> > 
> > i will shoot other questions, as it comes.
> > 
> > Regards
> > fargo
> > 
> > 
> > 
> > --- Matthias Wessendorf
> > <ma...@matthias-wessendorf.de> wrote:
> > 
> > > Hi fargo,
> > > 
> > > I just looked at subversion and saw
> > > that the RequestWrapper is not in use.
> > > 
> > >
> >
>
http://svn.apache.org/viewcvs.cgi/struts/faces/trunk/core-libr
> > ary/src/ja
> > >
> >
>
va/org/apache/struts/faces/application/FacesRequestProcessor.j
> > ava?rev=65
> > > 520&view=auto
> > > 
> > > 
> > > please try to build struts-faces on your own
> > > and use inside of ***RequestProcessor the
> > > Wrapper.
> > > 
> > > Could you tell us the results on that?
> > > 
> > > Keep in mind, that I didn't patch
> > > the JspViewHandlerImpl. I *patched*
> > > Struts-Faces.
> > > 
> > > I don't know if it is a bug of MyFaces.
> > > But that *patched* Struts-Faces worked
> > > with MyFaces.
> > > 
> > > Regards,
> > > Matthias
> > > 
> > > > -----Original Message-----
> > > > From: No Galz [mailto:anshulpatni@yahoo.com]
> > > > Sent: Tuesday, November 30, 2004 3:23 PM
> > > > To: MyFaces Discussion; Sean Schofield
> > > > Subject: Re: MyFaces+Struts+StrutsFaces --
> again
> > > giving it a try!!
> > > > 
> > > > 
> > > > Hii Sean,
> > > > 
> > > > Thanks for your feedback. But just to let u
> know,
> > > the
> > > > error is occuring at
> > > >
> > >
> >
>
org.apache.myfaces.application.jsp.JspViewHandlerImpl
> > > > 
> > > > which is not able to find the mapping for
> > > > 
> > > > could not find pathMapping for servletPath =
> > > >  /loginCheck.do requestPathInfo = null
> > > > 
> > > > As mentioned in the mailing list at
> > > >
> > >
> >
>
http://www.mail-archive.com/dev@struts.apache.org/msg01926.html
> > > > 
> > > > JspViewHandlerImpl seems to work only for
> *.faces
> > > > mappings and not for *.do mappings. As
> mentioned
> > > in
> > > > the mailing list, Matthias has already fix
> this
> > > and
> > > > should be available with the latest myfaces.
> > > > 
> > > > I agree that the Servlet Filter could be the
> > > reason,
> > > > but afterall why?? When it works fine with
> Struts
> > > > based apps and just by using the integration
> > > library
> > > > and initialising the FacesServlet..should not
> > > effect
> > > > the situation.
> > > > 
> > > > Thanks,
> > > > fargo
> > > > 
> > > > 
> > > > 
> > > > 
> > > > --- Sean Schofield <se...@gmail.com>
> > > wrote:
> > > > 
> > > > > This doesn't sound like it has anything to
> do
> > > with
> > > > > MyFaces (although I
> > > > > am not an expert, I just follow this mailing
> > > list.)
> > > > > 
> > > > > It seems like your ActionServlet failed to
> setup
> > > > > properly (the
> > > > > inability to find a mapping for
> loginCheck.do
> > > seems
> > > > > to point to this.)
> > > > >  I noticed you said you have a ServletFilter
> > > that is
> > > > > also configured
> > > > > to *.do.  What is the URL you are trying to
> > > bring up
> > > > > and what do you
> > > > > expect to happen when you enter that URL?
> > > > > 
> > > > > I am assuming your filter is doing some kind
> of
> > > > authentication check.
> > > > > What happens next?  If you are forwarding to
> > > another
> > > > > location with a
> > > > > *.do pattern, there might be a problem with
> > > looping.
> > > > > 
> > > > > Try commenting out your filter to verify
> that
> > > there
> > > > > is something wrong.
> > > > > 
> > > > > HTH,
> > > > > sean
> > > > > 
> > > > > 
> > > > > On Tue, 30 Nov 2004 05:39:58 -0800 (PST), No
> > > Galz
> > > > > <an...@yahoo.com> wrote:
> > > > > > Hii All,
> > > > > > 
> > > > > > I have setup the
> MyFaces+Struts+StrutsFaces in
> > > the following way
> > > > > > 
> > > > > > --> myfaces jars, struts-faces.jar,
> jstl.jar,
> > > > > > standard.jar added to lib
> > > > > > 
> > > > > > --> add facesrequest processor to the
> > > > > > struts-config.xml (without tiles impl.)
> > > > > > 
> > > > > >   <controller nocache="true" >
> > > > > >          <set-property
> property="inputForward"
> > > > > value="true"
> > > > > > />
> > > > > >          <set-property
> > > property="processorClass"
> > > > > >
> > > > >
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: MyFaces+Struts+StrutsFaces -- again giving it a try!!

Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
Hi Fargo,

see this:
http://cvs.apache.org/viewcvs.cgi/jakarta-struts/contrib/struts-faces/sr
c/java/org/apache/struts/faces/application/FacesRequestProcessor.java?re
v=1.11&view=log

it is working with RI from Sun, even without
this Wrapper.

HTH,
Matthias


> -----Original Message-----
> From: No Galz [mailto:anshulpatni@yahoo.com] 
> Sent: Tuesday, November 30, 2004 4:32 PM
> To: MyFaces Discussion
> Subject: RE: MyFaces+Struts+StrutsFaces -- again giving it a try!!
> 
> 
> Hii Matthias,
> 
> Thank you very much. Atleast it crosses my first
> hurdle. Now i will work upon using the myfaces along
> with struts. 
> 
> Moreover, How come the struts-faces didn't use the 
> HttpServletRequestWrapper??? 
> 
> i will shoot other questions, as it comes.
> 
> Regards
> fargo
> 
> 
> 
> --- Matthias Wessendorf
> <ma...@matthias-wessendorf.de> wrote:
> 
> > Hi fargo,
> > 
> > I just looked at subversion and saw
> > that the RequestWrapper is not in use.
> > 
> >
> http://svn.apache.org/viewcvs.cgi/struts/faces/trunk/core-libr
> ary/src/ja
> >
> va/org/apache/struts/faces/application/FacesRequestProcessor.j
> ava?rev=65
> > 520&view=auto
> > 
> > 
> > please try to build struts-faces on your own
> > and use inside of ***RequestProcessor the
> > Wrapper.
> > 
> > Could you tell us the results on that?
> > 
> > Keep in mind, that I didn't patch
> > the JspViewHandlerImpl. I *patched*
> > Struts-Faces.
> > 
> > I don't know if it is a bug of MyFaces.
> > But that *patched* Struts-Faces worked
> > with MyFaces.
> > 
> > Regards,
> > Matthias
> > 
> > > -----Original Message-----
> > > From: No Galz [mailto:anshulpatni@yahoo.com]
> > > Sent: Tuesday, November 30, 2004 3:23 PM
> > > To: MyFaces Discussion; Sean Schofield
> > > Subject: Re: MyFaces+Struts+StrutsFaces -- again
> > giving it a try!!
> > > 
> > > 
> > > Hii Sean,
> > > 
> > > Thanks for your feedback. But just to let u know,
> > the
> > > error is occuring at
> > >
> >
> org.apache.myfaces.application.jsp.JspViewHandlerImpl
> > > 
> > > which is not able to find the mapping for
> > > 
> > > could not find pathMapping for servletPath =
> > >  /loginCheck.do requestPathInfo = null
> > > 
> > > As mentioned in the mailing list at
> > >
> >
> http://www.mail-archive.com/dev@struts.apache.org/msg01926.html
> > > 
> > > JspViewHandlerImpl seems to work only for *.faces
> > > mappings and not for *.do mappings. As mentioned
> > in
> > > the mailing list, Matthias has already fix this
> > and
> > > should be available with the latest myfaces.
> > > 
> > > I agree that the Servlet Filter could be the
> > reason,
> > > but afterall why?? When it works fine with Struts
> > > based apps and just by using the integration
> > library
> > > and initialising the FacesServlet..should not
> > effect
> > > the situation.
> > > 
> > > Thanks,
> > > fargo
> > > 
> > > 
> > > 
> > > 
> > > --- Sean Schofield <se...@gmail.com>
> > wrote:
> > > 
> > > > This doesn't sound like it has anything to do
> > with
> > > > MyFaces (although I
> > > > am not an expert, I just follow this mailing
> > list.)
> > > > 
> > > > It seems like your ActionServlet failed to setup
> > > > properly (the
> > > > inability to find a mapping for loginCheck.do
> > seems
> > > > to point to this.)
> > > >  I noticed you said you have a ServletFilter
> > that is
> > > > also configured
> > > > to *.do.  What is the URL you are trying to
> > bring up
> > > > and what do you
> > > > expect to happen when you enter that URL?
> > > > 
> > > > I am assuming your filter is doing some kind of
> > > authentication check.
> > > > What happens next?  If you are forwarding to
> > another
> > > > location with a
> > > > *.do pattern, there might be a problem with
> > looping.
> > > > 
> > > > Try commenting out your filter to verify that
> > there
> > > > is something wrong.
> > > > 
> > > > HTH,
> > > > sean
> > > > 
> > > > 
> > > > On Tue, 30 Nov 2004 05:39:58 -0800 (PST), No
> > Galz
> > > > <an...@yahoo.com> wrote:
> > > > > Hii All,
> > > > > 
> > > > > I have setup the MyFaces+Struts+StrutsFaces in
> > the following way
> > > > > 
> > > > > --> myfaces jars, struts-faces.jar, jstl.jar,
> > > > > standard.jar added to lib
> > > > > 
> > > > > --> add facesrequest processor to the
> > > > > struts-config.xml (without tiles impl.)
> > > > > 
> > > > >   <controller nocache="true" >
> > > > >          <set-property property="inputForward"
> > > > value="true"
> > > > > />
> > > > >          <set-property
> > property="processorClass"
> > > > >
> > > >
> > >
> >
> value="org.apache.struts.faces.application.FacesRequestProcessor"
> > > > > />
> > > > >  </controller>
> > > > > 
> > > > > --> add MyFaces' ContextListener to web.xml
> > with
> > > > reqd.
> > > > > context
> > > > > --> parameters
> > > > > 
> > > > >        <context-param>
> > > > > 
> > > > >
> > > >
> > >
> >
> <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> > > > > 
> > > > >               
> > <param-value>client</param-value>
> > > > >        </context-param>
> > > > > 
> > > > > <!-- Myfaces implementation listener
> > > > initialisation
> > > > > -->
> > > > > <listener>
> > > > > 
> > > > >
> > > >
> > >
> >
> <listener-class>org.apache.myfaces.webapp.StartupServletContex
> > > tListener</listener-class>
> > > > > 
> > > > > </listener>
> > > > > 
> > > > > --> added JSF Servlet configuration and change
> > the
> > > > > load-on-startup attribute to load JSF at the
> > start
> > > > > -->then struts and -->then the application
> > servlet
> > > > > 
> > > > >  <!--  JavaServer Faces Servlet Configuration
> > -->
> > > > >  <servlet>
> > > > >  <servlet-name>faces</servlet-name>
> > > > > 
> > > > >
> > > >
> > >
> >
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> > > > > 
> > > > >  <load-on-startup>1</load-on-startup>
> > > > >  </servlet>
> > > > > 
> > > > > --> adding the servlet mapping too
> > > > > 
> > > > > <!--  JavaServer Faces Servlet Mapping -->
> > <servlet-mapping>
> > > > >  <servlet-name>faces</servlet-name>
> > > > >  <url-pattern>*.faces</url-pattern>
> > > > > </servlet-mapping>
> > > > > 
> > > > > I have a SevletFilter which is configured with
> > a
> > > > > pattern of *.do (same as my Struts Action
> > Servlet
> > 
> === message truncated ===
> 
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Take Yahoo! Mail with you! Get it on your mobile phone. 
> http://mobile.yahoo.com/maildemo 
> 


RE: MyFaces+Struts+StrutsFaces -- again giving it a try!!

Posted by No Galz <an...@yahoo.com>.
Hii Matthias,

Thank you very much. Atleast it crosses my first
hurdle. Now i will work upon using the myfaces along
with struts. 

Moreover, How come the struts-faces didn't use the
HttpServletRequestWrapper??? 

i will shoot other questions, as it comes.

Regards
fargo



--- Matthias Wessendorf
<ma...@matthias-wessendorf.de> wrote:

> Hi fargo,
> 
> I just looked at subversion and saw
> that the RequestWrapper is not in use.
> 
>
http://svn.apache.org/viewcvs.cgi/struts/faces/trunk/core-library/src/ja
>
va/org/apache/struts/faces/application/FacesRequestProcessor.java?rev=65
> 520&view=auto
> 
> 
> please try to build struts-faces on your own
> and use inside of ***RequestProcessor the
> Wrapper.
> 
> Could you tell us the results on that?
> 
> Keep in mind, that I didn't patch
> the JspViewHandlerImpl. I *patched*
> Struts-Faces.
> 
> I don't know if it is a bug of MyFaces.
> But that *patched* Struts-Faces worked
> with MyFaces.
> 
> Regards,
> Matthias
> 
> > -----Original Message-----
> > From: No Galz [mailto:anshulpatni@yahoo.com] 
> > Sent: Tuesday, November 30, 2004 3:23 PM
> > To: MyFaces Discussion; Sean Schofield
> > Subject: Re: MyFaces+Struts+StrutsFaces -- again
> giving it a try!!
> > 
> > 
> > Hii Sean,
> > 
> > Thanks for your feedback. But just to let u know,
> the
> > error is occuring at 
> >
>
org.apache.myfaces.application.jsp.JspViewHandlerImpl
> > 
> > which is not able to find the mapping for 
> > 
> > could not find pathMapping for servletPath =
> >  /loginCheck.do requestPathInfo = null
> > 
> > As mentioned in the mailing list at 
> >
>
http://www.mail-archive.com/dev@struts.apache.org/msg01926.html
> > 
> > JspViewHandlerImpl seems to work only for *.faces
> > mappings and not for *.do mappings. As mentioned
> in
> > the mailing list, Matthias has already fix this
> and
> > should be available with the latest myfaces.
> > 
> > I agree that the Servlet Filter could be the
> reason,
> > but afterall why?? When it works fine with Struts
> > based apps and just by using the integration
> library
> > and initialising the FacesServlet..should not
> effect
> > the situation.
> > 
> > Thanks,
> > fargo
> > 
> > 
> > 
> > 
> > --- Sean Schofield <se...@gmail.com>
> wrote:
> > 
> > > This doesn't sound like it has anything to do
> with
> > > MyFaces (although I
> > > am not an expert, I just follow this mailing
> list.)
> > > 
> > > It seems like your ActionServlet failed to setup
> > > properly (the
> > > inability to find a mapping for loginCheck.do
> seems
> > > to point to this.)
> > >  I noticed you said you have a ServletFilter
> that is
> > > also configured
> > > to *.do.  What is the URL you are trying to
> bring up
> > > and what do you
> > > expect to happen when you enter that URL?
> > > 
> > > I am assuming your filter is doing some kind of 
> > authentication check.
> > > What happens next?  If you are forwarding to
> another
> > > location with a
> > > *.do pattern, there might be a problem with
> looping.
> > > 
> > > Try commenting out your filter to verify that
> there
> > > is something wrong.
> > > 
> > > HTH,
> > > sean
> > > 
> > > 
> > > On Tue, 30 Nov 2004 05:39:58 -0800 (PST), No
> Galz 
> > > <an...@yahoo.com> wrote:
> > > > Hii All,
> > > > 
> > > > I have setup the MyFaces+Struts+StrutsFaces in
> the following way
> > > > 
> > > > --> myfaces jars, struts-faces.jar, jstl.jar,
> > > > standard.jar added to lib
> > > > 
> > > > --> add facesrequest processor to the
> > > > struts-config.xml (without tiles impl.)
> > > > 
> > > >   <controller nocache="true" >
> > > >          <set-property property="inputForward"
> > > value="true"
> > > > />
> > > >          <set-property
> property="processorClass"
> > > >
> > >
> >
>
value="org.apache.struts.faces.application.FacesRequestProcessor"
> > > > />
> > > >  </controller>
> > > > 
> > > > --> add MyFaces' ContextListener to web.xml
> with
> > > reqd.
> > > > context
> > > > --> parameters
> > > > 
> > > >        <context-param>
> > > > 
> > > >
> > >
> >
>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> > > > 
> > > >               
> <param-value>client</param-value>
> > > >        </context-param>
> > > > 
> > > > <!-- Myfaces implementation listener
> > > initialisation
> > > > -->
> > > > <listener>
> > > > 
> > > >
> > >
> >
>
<listener-class>org.apache.myfaces.webapp.StartupServletContex
> > tListener</listener-class>
> > > > 
> > > > </listener>
> > > > 
> > > > --> added JSF Servlet configuration and change
> the
> > > > load-on-startup attribute to load JSF at the
> start
> > > > -->then struts and -->then the application
> servlet
> > > > 
> > > >  <!--  JavaServer Faces Servlet Configuration
> -->
> > > >  <servlet>
> > > >  <servlet-name>faces</servlet-name>
> > > > 
> > > >
> > >
> >
>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> > > > 
> > > >  <load-on-startup>1</load-on-startup>
> > > >  </servlet>
> > > > 
> > > > --> adding the servlet mapping too
> > > > 
> > > > <!--  JavaServer Faces Servlet Mapping -->
> <servlet-mapping>
> > > >  <servlet-name>faces</servlet-name>
> > > >  <url-pattern>*.faces</url-pattern>
> > > > </servlet-mapping>
> > > > 
> > > > I have a SevletFilter which is configured with
> a
> > > > pattern of *.do (same as my Struts Action
> Servlet
> 
=== message truncated ===



		
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

RE: MyFaces+Struts+StrutsFaces -- again giving it a try!!

Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
Hi fargo,

I just looked at subversion and saw
that the RequestWrapper is not in use.

http://svn.apache.org/viewcvs.cgi/struts/faces/trunk/core-library/src/ja
va/org/apache/struts/faces/application/FacesRequestProcessor.java?rev=65
520&view=auto


please try to build struts-faces on your own
and use inside of ***RequestProcessor the
Wrapper.

Could you tell us the results on that?

Keep in mind, that I didn't patch
the JspViewHandlerImpl. I *patched*
Struts-Faces.

I don't know if it is a bug of MyFaces.
But that *patched* Struts-Faces worked
with MyFaces.

Regards,
Matthias

> -----Original Message-----
> From: No Galz [mailto:anshulpatni@yahoo.com] 
> Sent: Tuesday, November 30, 2004 3:23 PM
> To: MyFaces Discussion; Sean Schofield
> Subject: Re: MyFaces+Struts+StrutsFaces -- again giving it a try!!
> 
> 
> Hii Sean,
> 
> Thanks for your feedback. But just to let u know, the
> error is occuring at 
> org.apache.myfaces.application.jsp.JspViewHandlerImpl
> 
> which is not able to find the mapping for 
> 
> could not find pathMapping for servletPath =
>  /loginCheck.do requestPathInfo = null
> 
> As mentioned in the mailing list at 
> http://www.mail-archive.com/dev@struts.apache.org/msg01926.html
> 
> JspViewHandlerImpl seems to work only for *.faces
> mappings and not for *.do mappings. As mentioned in
> the mailing list, Matthias has already fix this and
> should be available with the latest myfaces.
> 
> I agree that the Servlet Filter could be the reason,
> but afterall why?? When it works fine with Struts
> based apps and just by using the integration library
> and initialising the FacesServlet..should not effect
> the situation.
> 
> Thanks,
> fargo
> 
> 
> 
> 
> --- Sean Schofield <se...@gmail.com> wrote:
> 
> > This doesn't sound like it has anything to do with
> > MyFaces (although I
> > am not an expert, I just follow this mailing list.)
> > 
> > It seems like your ActionServlet failed to setup
> > properly (the
> > inability to find a mapping for loginCheck.do seems
> > to point to this.)
> >  I noticed you said you have a ServletFilter that is
> > also configured
> > to *.do.  What is the URL you are trying to bring up
> > and what do you
> > expect to happen when you enter that URL?
> > 
> > I am assuming your filter is doing some kind of 
> authentication check.
> > What happens next?  If you are forwarding to another
> > location with a
> > *.do pattern, there might be a problem with looping.
> > 
> > Try commenting out your filter to verify that there
> > is something wrong.
> > 
> > HTH,
> > sean
> > 
> > 
> > On Tue, 30 Nov 2004 05:39:58 -0800 (PST), No Galz 
> > <an...@yahoo.com> wrote:
> > > Hii All,
> > > 
> > > I have setup the MyFaces+Struts+StrutsFaces in the following way
> > > 
> > > --> myfaces jars, struts-faces.jar, jstl.jar,
> > > standard.jar added to lib
> > > 
> > > --> add facesrequest processor to the
> > > struts-config.xml (without tiles impl.)
> > > 
> > >   <controller nocache="true" >
> > >          <set-property property="inputForward"
> > value="true"
> > > />
> > >          <set-property property="processorClass"
> > >
> >
> value="org.apache.struts.faces.application.FacesRequestProcessor"
> > > />
> > >  </controller>
> > > 
> > > --> add MyFaces' ContextListener to web.xml with
> > reqd.
> > > context
> > > --> parameters
> > > 
> > >        <context-param>
> > > 
> > >
> >
> <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> > > 
> > >                <param-value>client</param-value>
> > >        </context-param>
> > > 
> > > <!-- Myfaces implementation listener
> > initialisation
> > > -->
> > > <listener>
> > > 
> > >
> >
> <listener-class>org.apache.myfaces.webapp.StartupServletContex
> tListener</listener-class>
> > > 
> > > </listener>
> > > 
> > > --> added JSF Servlet configuration and change the
> > > load-on-startup attribute to load JSF at the start
> > > -->then struts and -->then the application servlet
> > > 
> > >  <!--  JavaServer Faces Servlet Configuration -->
> > >  <servlet>
> > >  <servlet-name>faces</servlet-name>
> > > 
> > >
> >
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> > > 
> > >  <load-on-startup>1</load-on-startup>
> > >  </servlet>
> > > 
> > > --> adding the servlet mapping too
> > > 
> > > <!--  JavaServer Faces Servlet Mapping --> <servlet-mapping>
> > >  <servlet-name>faces</servlet-name>
> > >  <url-pattern>*.faces</url-pattern>
> > > </servlet-mapping>
> > > 
> > > I have a SevletFilter which is configured with a
> > > pattern of *.do (same as my Struts Action Servlet
> > > mappings)
> > > ServletFilter is used as a mode of authentication,
> > for
> > > each page request.
> > > 
> > > I expect my Struts based application to work as it
> > is,
> > > b'coz i m not using any struts-faces tags or faces
> > tag
> > > at the moment.
> > > 
> > > But with the first click...i got the following
> > error
> > > from myfaces
> > > 
> > > could not find pathMapping for servletPath =
> > > /loginCheck.do requestPathInfo = null
> > > 
> > > at
> > >
> >
> org.apache.myfaces.application.jsp.JspViewHandlerImpl
> > > 
> > > Moreover, i m used the latest of
> > everything..myfaces,
> > > struts-faces.
> > > 
> > > I m trying it hard, b'coz i want to leverage the
> > > benefits of JSF with my existing (quite BIG)
> > struts
> > > based application.
> > > 
> > > Any feedback will be a big help for me.
> > > 
> > > Thanks,
> > > fargo
> > > 
> > > 
> > > __________________________________
> > > Do you Yahoo!?
> > > All your favorites on one personal page – Try My
> > Yahoo!
> > > http://my.yahoo.com
> > >
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 


Re: MyFaces+Struts+StrutsFaces -- again giving it a try!!

Posted by No Galz <an...@yahoo.com>.
Hii Sean,

Thanks for your feedback. But just to let u know, the
error is occuring at 
org.apache.myfaces.application.jsp.JspViewHandlerImpl

which is not able to find the mapping for 

could not find pathMapping for servletPath =
 /loginCheck.do requestPathInfo = null

As mentioned in the mailing list at 
http://www.mail-archive.com/dev@struts.apache.org/msg01926.html

JspViewHandlerImpl seems to work only for *.faces
mappings and not for *.do mappings. As mentioned in
the mailing list, Matthias has already fix this and
should be available with the latest myfaces.

I agree that the Servlet Filter could be the reason,
but afterall why?? When it works fine with Struts
based apps and just by using the integration library
and initialising the FacesServlet..should not effect
the situation.

Thanks,
fargo




--- Sean Schofield <se...@gmail.com> wrote:

> This doesn't sound like it has anything to do with
> MyFaces (although I
> am not an expert, I just follow this mailing list.)
> 
> It seems like your ActionServlet failed to setup
> properly (the
> inability to find a mapping for loginCheck.do seems
> to point to this.)
>  I noticed you said you have a ServletFilter that is
> also configured
> to *.do.  What is the URL you are trying to bring up
> and what do you
> expect to happen when you enter that URL?
> 
> I am assuming your filter is doing some kind of
> authentication check. 
> What happens next?  If you are forwarding to another
> location with a
> *.do pattern, there might be a problem with looping.
> 
> Try commenting out your filter to verify that there
> is something wrong.
> 
> HTH,
> sean
> 
> 
> On Tue, 30 Nov 2004 05:39:58 -0800 (PST), No Galz
> <an...@yahoo.com> wrote:
> > Hii All,
> > 
> > I have setup the MyFaces+Struts+StrutsFaces in the
> > following way
> > 
> > --> myfaces jars, struts-faces.jar, jstl.jar,
> > standard.jar added to lib
> > 
> > --> add facesrequest processor to the
> > struts-config.xml (without tiles impl.)
> > 
> >   <controller nocache="true" >
> >          <set-property property="inputForward"
> value="true"
> > />
> >          <set-property property="processorClass"
> >
>
value="org.apache.struts.faces.application.FacesRequestProcessor"
> > />
> >  </controller>
> > 
> > --> add MyFaces' ContextListener to web.xml with
> reqd.
> > context
> > --> parameters
> > 
> >        <context-param>
> > 
> >
>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> > 
> >                <param-value>client</param-value>
> >        </context-param>
> > 
> > <!-- Myfaces implementation listener
> initialisation
> > -->
> > <listener>
> > 
> >
>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> > 
> > </listener>
> > 
> > --> added JSF Servlet configuration and change the
> > load-on-startup attribute to load JSF at the start
> > -->then struts and -->then the application servlet
> > 
> >  <!--  JavaServer Faces Servlet Configuration -->
> >  <servlet>
> >  <servlet-name>faces</servlet-name>
> > 
> >
>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> > 
> >  <load-on-startup>1</load-on-startup>
> >  </servlet>
> > 
> > --> adding the servlet mapping too
> > 
> > <!--  JavaServer Faces Servlet Mapping -->
> > <servlet-mapping>
> >  <servlet-name>faces</servlet-name>
> >  <url-pattern>*.faces</url-pattern>
> > </servlet-mapping>
> > 
> > I have a SevletFilter which is configured with a
> > pattern of *.do (same as my Struts Action Servlet
> > mappings)
> > ServletFilter is used as a mode of authentication,
> for
> > each page request.
> > 
> > I expect my Struts based application to work as it
> is,
> > b'coz i m not using any struts-faces tags or faces
> tag
> > at the moment.
> > 
> > But with the first click...i got the following
> error
> > from myfaces
> > 
> > could not find pathMapping for servletPath =
> > /loginCheck.do requestPathInfo = null
> > 
> > at
> >
>
org.apache.myfaces.application.jsp.JspViewHandlerImpl
> > 
> > Moreover, i m used the latest of
> everything..myfaces,
> > struts-faces.
> > 
> > I m trying it hard, b'coz i want to leverage the
> > benefits of JSF with my existing (quite BIG)
> struts
> > based application.
> > 
> > Any feedback will be a big help for me.
> > 
> > Thanks,
> > fargo
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > All your favorites on one personal page – Try My
> Yahoo!
> > http://my.yahoo.com
> >
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: MyFaces+Struts+StrutsFaves -- again giving it a try!!

Posted by Sean Schofield <se...@gmail.com>.
This doesn't sound like it has anything to do with MyFaces (although I
am not an expert, I just follow this mailing list.)

It seems like your ActionServlet failed to setup properly (the
inability to find a mapping for loginCheck.do seems to point to this.)
 I noticed you said you have a ServletFilter that is also configured
to *.do.  What is the URL you are trying to bring up and what do you
expect to happen when you enter that URL?

I am assuming your filter is doing some kind of authentication check. 
What happens next?  If you are forwarding to another location with a
*.do pattern, there might be a problem with looping.

Try commenting out your filter to verify that there is something wrong.

HTH,
sean


On Tue, 30 Nov 2004 05:39:58 -0800 (PST), No Galz <an...@yahoo.com> wrote:
> Hii All,
> 
> I have setup the MyFaces+Struts+StrutsFaces in the
> following way
> 
> --> myfaces jars, struts-faces.jar, jstl.jar,
> standard.jar added to lib
> 
> --> add facesrequest processor to the
> struts-config.xml (without tiles impl.)
> 
>   <controller nocache="true" >
>          <set-property property="inputForward" value="true"
> />
>          <set-property property="processorClass"
> value="org.apache.struts.faces.application.FacesRequestProcessor"
> />
>  </controller>
> 
> --> add MyFaces' ContextListener to web.xml with reqd.
> context
> --> parameters
> 
>        <context-param>
> 
> <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> 
>                <param-value>client</param-value>
>        </context-param>
> 
> <!-- Myfaces implementation listener initialisation
> -->
> <listener>
> 
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> 
> </listener>
> 
> --> added JSF Servlet configuration and change the
> load-on-startup attribute to load JSF at the start
> -->then struts and -->then the application servlet
> 
>  <!--  JavaServer Faces Servlet Configuration -->
>  <servlet>
>  <servlet-name>faces</servlet-name>
> 
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> 
>  <load-on-startup>1</load-on-startup>
>  </servlet>
> 
> --> adding the servlet mapping too
> 
> <!--  JavaServer Faces Servlet Mapping -->
> <servlet-mapping>
>  <servlet-name>faces</servlet-name>
>  <url-pattern>*.faces</url-pattern>
> </servlet-mapping>
> 
> I have a SevletFilter which is configured with a
> pattern of *.do (same as my Struts Action Servlet
> mappings)
> ServletFilter is used as a mode of authentication, for
> each page request.
> 
> I expect my Struts based application to work as it is,
> b'coz i m not using any struts-faces tags or faces tag
> at the moment.
> 
> But with the first click...i got the following error
> from myfaces
> 
> could not find pathMapping for servletPath =
> /loginCheck.do requestPathInfo = null
> 
> at
> org.apache.myfaces.application.jsp.JspViewHandlerImpl
> 
> Moreover, i m used the latest of everything..myfaces,
> struts-faces.
> 
> I m trying it hard, b'coz i want to leverage the
> benefits of JSF with my existing (quite BIG) struts
> based application.
> 
> Any feedback will be a big help for me.
> 
> Thanks,
> fargo
> 
> 
> __________________________________
> Do you Yahoo!?
> All your favorites on one personal page – Try My Yahoo!
> http://my.yahoo.com
>

Re: MyFaces+Struts+StrutsFaves -- again giving it a try!!

Posted by Craig McClanahan <cr...@gmail.com>.
On Tue, 30 Nov 2004 09:38:17 -0800 (PST), No Galz <an...@yahoo.com> wrote:
> Hii Craig,
> 
> Thanks for your response and clarification.
> 
> I agree that the Struts-Faces library uses JSF URLs
> and for make them into use in my application, i need
> to change the handling.

Yep.

> 
> But, I have a very dull feeling about using
> Struts+Faces together. Moreover things are not going
> fine together with different implementations.

That's mostly a matter of ironing out bugs, not architectural
incompatibility.  I just wanted to set expectations correctly.

> Just for
> curiosity, How Shale is going to make use of JSF in
> View?? Isn't it be the same way?

Background on "Shale" for those not familiar with the term:

  http://wiki.apache.org/struts/StrutsShale

The use of JSF in Shale, versus the Struts-Faces library approach, is
very similar in the view tier (i.e. JSP pages or whatever) -- its the
rest of your code that is different.

Struts-Faces allows an existing Struts-based app, that has been using
the Struts HTML tags, to migrate (one JSP page at a time if desired),
to using the more capable and sophisticated JSF components that are
becoming available.  It accomplishes this task by putting the JSF
front controller "in front of" the Struts front controller.  That way,
JSF handles user interface events (like a tree control node being
opened or closed), but passes form submit events on to Struts, to be
handled by the traditional Struts request processor.  So, all your
back end stuff (form beans, actions, and so on) can continue to be
used unchanged.

Shale, on the other hand, adopts JSF's front controller as its basic
architecture, and encourages a "view helper" design pattern for your
server side Java code.  For application wide things that Struts 1.x
would do in the request processing pipeline, you can use servlet
filters (which we couldn't in Struts 1.0-1.2, because we wanted to
maintain the availability on a servlet 2.2 platform).

A JSP page with JSF components in it, then, will look almost the same
when using either Struts 1.x + Struts-Faces, or when using Shale. 
Where Shale helps improve usability, though, is that it reduces the
amount of configuration data you need to supply, and combines the form
bean, a setup action, and a processing action (the typical Struts
pattern for pretty much any transaction) into a single class with very
simple method signatures -- so simple, in fact, that it's very easy to
unit test them.

You can actually see how this all looks in code, because the canonical
Struts "mail reader" application has been implemented in each of the
two ways.  Nightly builds are available at:

  http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/

  http://cvs.apache.org/builds/jakarta-struts/nightly/struts-shale/

> 
> Regards
> fargo
> 

Craig

Re: MyFaces+Struts+StrutsFaves -- again giving it a try!!

Posted by No Galz <an...@yahoo.com>.
Hii Craig,

Thanks for your response and clarification. 

I agree that the Struts-Faces library uses JSF URLs
and for make them into use in my application, i need
to change the handling.

But, I have a very dull feeling about using
Struts+Faces together. Moreover things are not going
fine together with different implementations. Just for
curiosity, How Shale is going to make use of JSF in
View?? Isn't it be the same way?

Regards
fargo



--- Craig McClanahan <cr...@gmail.com> wrote:

> One issue you'll have is that the Struts-Faces
> library uses JSF URLs
> (*.faces in your case) for all form submits, so your
> filter on *.do
> patterns will never execute.  You'll likely need an
> alternative
> approach to do that kind of processing.
> 
> In addition, as of MyFaces 1.0.7 (when it was at
> SourceForge) there
> were still some fatal bugs in MyFaces that prevented
> it from working
> with the Struts-Faces library.  I don't believe all
> of them have been
> fixed yet, but will be doing some review of that as
> the Struts-Faces
> library approaches being released.
> 
> Craig McClanahan
> 
> 
> On Tue, 30 Nov 2004 05:39:58 -0800 (PST), No Galz
> <an...@yahoo.com> wrote:
> > Hii All,
> > 
> > I have setup the MyFaces+Struts+StrutsFaces in the
> > following way
> > 
> > --> myfaces jars, struts-faces.jar, jstl.jar,
> > standard.jar added to lib
> > 
> > --> add facesrequest processor to the
> > struts-config.xml (without tiles impl.)
> > 
> >    <controller nocache="true" >
> >           <set-property property="inputForward"
> value="true"
> > />
> >           <set-property property="processorClass"
> >
>
value="org.apache.struts.faces.application.FacesRequestProcessor"
> > />
> >   </controller>
> > 
> > --> add MyFaces' ContextListener to web.xml with
> reqd.
> > context
> > --> parameters
> > 
> >         <context-param>
> > 
> >
>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> > 
> >                 <param-value>client</param-value>
> >         </context-param>
> > 
> > <!-- Myfaces implementation listener
> initialisation
> > -->
> >  <listener>
> > 
> >
>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> > 
> >  </listener>
> > 
> > --> added JSF Servlet configuration and change the
> > load-on-startup attribute to load JSF at the start
> > -->then struts and -->then the application servlet
> > 
> >   <!--  JavaServer Faces Servlet Configuration -->
> >   <servlet>
> >   <servlet-name>faces</servlet-name>
> > 
> >
>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> > 
> >   <load-on-startup>1</load-on-startup>
> >   </servlet>
> > 
> > --> adding the servlet mapping too
> > 
> >  <!--  JavaServer Faces Servlet Mapping -->
> >  <servlet-mapping>
> >   <servlet-name>faces</servlet-name>
> >   <url-pattern>*.faces</url-pattern>
> > </servlet-mapping>
> > 
> > I have a SevletFilter which is configured with a
> > pattern of *.do (same as my Struts Action Servlet
> > mappings)
> > ServletFilter is used as a mode of authentication,
> for
> > each page request.
> > 
> > I expect my Struts based application to work as it
> is,
> > b'coz i m not using any struts-faces tags or faces
> tag
> > at the moment.
> > 
> > But with the first click...i got the following
> error
> > from myfaces
> > 
> > could not find pathMapping for servletPath =
> > /loginCheck.do requestPathInfo = null
> > 
> > at
> >
>
org.apache.myfaces.application.jsp.JspViewHandlerImpl
> > 
> > Moreover, i m used the latest of
> everything..myfaces,
> > struts-faces.
> > 
> > I m trying it hard, b'coz i want to leverage the
> > benefits of JSF with my existing (quite BIG)
> struts
> > based application.
> > 
> > Any feedback will be a big help for me.
> > 
> > Thanks,
> > fargo
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > All your favorites on one personal page – Try My
> Yahoo!
> > http://my.yahoo.com
> >
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: MyFaces+Struts+StrutsFaves -- again giving it a try!!

Posted by Craig McClanahan <cr...@gmail.com>.
One issue you'll have is that the Struts-Faces library uses JSF URLs
(*.faces in your case) for all form submits, so your filter on *.do
patterns will never execute.  You'll likely need an alternative
approach to do that kind of processing.

In addition, as of MyFaces 1.0.7 (when it was at SourceForge) there
were still some fatal bugs in MyFaces that prevented it from working
with the Struts-Faces library.  I don't believe all of them have been
fixed yet, but will be doing some review of that as the Struts-Faces
library approaches being released.

Craig McClanahan


On Tue, 30 Nov 2004 05:39:58 -0800 (PST), No Galz <an...@yahoo.com> wrote:
> Hii All,
> 
> I have setup the MyFaces+Struts+StrutsFaces in the
> following way
> 
> --> myfaces jars, struts-faces.jar, jstl.jar,
> standard.jar added to lib
> 
> --> add facesrequest processor to the
> struts-config.xml (without tiles impl.)
> 
>    <controller nocache="true" >
>           <set-property property="inputForward" value="true"
> />
>           <set-property property="processorClass"
> value="org.apache.struts.faces.application.FacesRequestProcessor"
> />
>   </controller>
> 
> --> add MyFaces' ContextListener to web.xml with reqd.
> context
> --> parameters
> 
>         <context-param>
> 
> <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> 
>                 <param-value>client</param-value>
>         </context-param>
> 
> <!-- Myfaces implementation listener initialisation
> -->
>  <listener>
> 
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> 
>  </listener>
> 
> --> added JSF Servlet configuration and change the
> load-on-startup attribute to load JSF at the start
> -->then struts and -->then the application servlet
> 
>   <!--  JavaServer Faces Servlet Configuration -->
>   <servlet>
>   <servlet-name>faces</servlet-name>
> 
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> 
>   <load-on-startup>1</load-on-startup>
>   </servlet>
> 
> --> adding the servlet mapping too
> 
>  <!--  JavaServer Faces Servlet Mapping -->
>  <servlet-mapping>
>   <servlet-name>faces</servlet-name>
>   <url-pattern>*.faces</url-pattern>
> </servlet-mapping>
> 
> I have a SevletFilter which is configured with a
> pattern of *.do (same as my Struts Action Servlet
> mappings)
> ServletFilter is used as a mode of authentication, for
> each page request.
> 
> I expect my Struts based application to work as it is,
> b'coz i m not using any struts-faces tags or faces tag
> at the moment.
> 
> But with the first click...i got the following error
> from myfaces
> 
> could not find pathMapping for servletPath =
> /loginCheck.do requestPathInfo = null
> 
> at
> org.apache.myfaces.application.jsp.JspViewHandlerImpl
> 
> Moreover, i m used the latest of everything..myfaces,
> struts-faces.
> 
> I m trying it hard, b'coz i want to leverage the
> benefits of JSF with my existing (quite BIG) struts
> based application.
> 
> Any feedback will be a big help for me.
> 
> Thanks,
> fargo
> 
> 
> __________________________________
> Do you Yahoo!?
> All your favorites on one personal page – Try My Yahoo!
> http://my.yahoo.com
>