Hi guys,
i'm new ops user i'm trying to create a simple XForms based web-application. This web application shows a list of activity (activityList.xhtml). In this page there is an XForm, this form is a search form. The submission tag is the following: <xforms:submission id="searchActivities" method="post" action="/xforms-quixBizApp/list/searchActivities" instance="searchParams"/> The page-flow.xml entry: <page path-info="/xforms-quixBizApp/list/searchActivities" model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> The xpl file: <p:processor name="oxf:redirect"> <p:input name="data"> <redirect-url> <path-info>/activityList</path-info> </redirect-url> </p:input> </p:config> This processor (as documentation says) should call my servlet /activityList but this not append. The questions are 1) Can i call a servlet from xpl ? 2) How call the servlet? 3) There is an example in this direction? Best reguards Leonardo -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Leonardo,
> i'm new ops user i'm trying to create a simple XForms based > web-application. > > This web application shows a list of activity > (activityList.xhtml). In this page there is an XForm, this form is a > search form. The submission tag is the following: > > <xforms:submission id="searchActivities" method="post" > action="/xforms-quixBizApp/list/searchActivities" > instance="searchParams"/> > > The page-flow.xml entry: > <page path-info="/xforms-quixBizApp/list/searchActivities" > model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> > > The xpl file: > > <p:processor name="oxf:redirect"> > <p:input name="data"> > <redirect-url> > <path-info>/activityList</path-info> > </redirect-url> > </p:input> > </p:config> > This processor (as documentation says) should call my servlet > /activityList but this not append. I would try to avoid the oxf:redirect processor if possible. > The questions are > > 1) Can i call a servlet from xpl ? > 2) How call the servlet? > 3) There is an example in this direction? "Calling a servlet" is a little vague to me. First, can you describe what you are really trying to achieve? You propose a solution above but it is not clear to me what problem it solves. If you are just trying to go to "/activityList", why don't you directly submit your instance to "/activityList", or do an xforms:load to that same URL? -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
hi, my goal is create new application with a list _page and edit_page.
When i call my link: "/xforms-quixBizApp/list/searchActivities" i want to load my list page using as model "searchActivities.xpl". <page path-info="/xforms-quixBizApp/list/searchActivities" model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> The data loading is a Servlet called ActivityList. The servlet load from database my data and create an xml on the response Stream. The xpl file is: <p:processor name="oxf:redirect"> <p:input name="data"> <redirect-url> <path-info>/activityList</path-info> </redirect-url> </p:input> </p:config> The problem is: the servlet is not called by the processor. Have you any idea to realize my goal? Erik Bruchez ha scritto: > Leonardo, > > > i'm new ops user i'm trying to create a simple XForms based > > web-application. > > > > This web application shows a list of activity > > (activityList.xhtml). In this page there is an XForm, this form is a > > search form. The submission tag is the following: > > > > <xforms:submission id="searchActivities" method="post" > > action="/xforms-quixBizApp/list/searchActivities" > > instance="searchParams"/> > > > > The page-flow.xml entry: > > <page path-info="/xforms-quixBizApp/list/searchActivities" > > model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> > > > > The xpl file: > > > > c > > This processor (as documentation says) should call my servlet > > /activityList but this not append. > > I would try to avoid the oxf:redirect processor if possible. > > > The questions are > > > > 1) Can i call a servlet from xpl ? > > 2) How call the servlet? > > 3) There is an example in this direction? > > "Calling a servlet" is a little vague to me. > > First, can you describe what you are really trying to achieve? You > propose a solution above but it is not clear to me what problem it > solves. > > If you are just trying to go to "/activityList", why don't you > directly submit your instance to "/activityList", or do an xforms:load > to that same URL? > > -Erik > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Leonardo,
By servlet do you mean a URL under your OPS application with the path-info of /activityList or do you mean a URL within another context on the same server? Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Leonardo Reale [mailto:[hidden email]] >Sent: 18 December 2006 08:48 >To: [hidden email] >Subject: Re: [ops-users] New user xpl problems > >hi, my goal is create new application with a list _page and edit_page. > >When i call my link: >"/xforms-quixBizApp/list/searchActivities" i want to load my >list page using as model "searchActivities.xpl". > ><page path-info="/xforms-quixBizApp/list/searchActivities" >model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> > >The data loading is a Servlet called ActivityList. The servlet >load from database my data and create an xml on the response >Stream. The xpl file is: > ><p:processor name="oxf:redirect"> > <p:input name="data"> > <redirect-url> > <path-info>/activityList</path-info> > </redirect-url> > </p:input> > </p:config> > >The problem is: the servlet is not called by the processor. > >Have you any idea to realize my goal? > >Erik Bruchez ha scritto: >> Leonardo, >> >> > i'm new ops user i'm trying to create a simple XForms based >> > web-application. >> > >> > This web application shows a list of activity >(activityList.xhtml). >> > In this page there is an XForm, this form is a search form. The >> > submission tag is the following: >> > >> > <xforms:submission id="searchActivities" method="post" >> > action="/xforms-quixBizApp/list/searchActivities" >> > instance="searchParams"/> >> > >> > The page-flow.xml entry: >> > <page path-info="/xforms-quixBizApp/list/searchActivities" >> > model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >> > >> > The xpl file: >> > >> > c >> > This processor (as documentation says) should call my servlet >> > /activityList but this not append. >> >> I would try to avoid the oxf:redirect processor if possible. >> >> > The questions are >> > >> > 1) Can i call a servlet from xpl ? >> > 2) How call the servlet? >> > 3) There is an example in this direction? >> >> "Calling a servlet" is a little vague to me. >> >> First, can you describe what you are really trying to achieve? You >> propose a solution above but it is not clear to me what problem it >> solves. >> >> If you are just trying to go to "/activityList", why don't you >> directly submit your instance to "/activityList", or do an >xforms:load >> to that same URL? >> >> -Erik >> >> >---------------------------------------------------------------------- >> -- >> >> >> -- >> You receive this message as a subscriber of the >[hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: >> http://www.objectweb.org/wws >> > > >-- >Ing. Leonardo Reale > >QUIX S.r.l. > >Strada Statale 413, 160/162 >41019 - Soliera (MO) >Loc.Appalto - ITALY >Tel. 0039 059 565388 >Fax. 0039 059 565322 > >[hidden email] >[hidden email] > > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
The servlet is under the same context of presentation server.
Ryan Puddephatt ha scritto: > Leonardo, > By servlet do you mean a URL under your OPS application with the > path-info of /activityList or do you mean a URL within another context on > the same server? > > Ryan > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > > >> -----Original Message----- >> From: Leonardo Reale [mailto:[hidden email]] >> Sent: 18 December 2006 08:48 >> To: [hidden email] >> Subject: Re: [ops-users] New user xpl problems >> >> hi, my goal is create new application with a list _page and edit_page. >> >> When i call my link: >> "/xforms-quixBizApp/list/searchActivities" i want to load my >> list page using as model "searchActivities.xpl". >> >> <page path-info="/xforms-quixBizApp/list/searchActivities" >> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >> >> The data loading is a Servlet called ActivityList. The servlet >> load from database my data and create an xml on the response >> Stream. The xpl file is: >> >> <p:processor name="oxf:redirect"> >> <p:input name="data"> >> <redirect-url> >> <path-info>/activityList</path-info> >> </redirect-url> >> </p:input> >> </p:config> >> >> The problem is: the servlet is not called by the processor. >> >> Have you any idea to realize my goal? >> >> Erik Bruchez ha scritto: >> >>> Leonardo, >>> >>> >>>> i'm new ops user i'm trying to create a simple XForms based >>>> web-application. >>>> >>>> This web application shows a list of activity >>>> >> (activityList.xhtml). >> >>>> In this page there is an XForm, this form is a search form. The >>>> submission tag is the following: >>>> >>>> <xforms:submission id="searchActivities" method="post" >>>> action="/xforms-quixBizApp/list/searchActivities" >>>> instance="searchParams"/> >>>> >>>> The page-flow.xml entry: >>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>> >>>> The xpl file: >>>> >>>> c >>>> This processor (as documentation says) should call my servlet >>>> /activityList but this not append. >>>> >>> I would try to avoid the oxf:redirect processor if possible. >>> >>> >>>> The questions are >>>> >>>> 1) Can i call a servlet from xpl ? >>>> 2) How call the servlet? >>>> 3) There is an example in this direction? >>>> >>> "Calling a servlet" is a little vague to me. >>> >>> First, can you describe what you are really trying to achieve? You >>> propose a solution above but it is not clear to me what problem it >>> solves. >>> >>> If you are just trying to go to "/activityList", why don't you >>> directly submit your instance to "/activityList", or do an >>> >> xforms:load >> >>> to that same URL? >>> >>> -Erik >>> >>> >>> >> ---------------------------------------------------------------------- >> >>> -- >>> >>> >>> -- >>> You receive this message as a subscriber of the >>> >> [hidden email] mailing list. >> >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> ObjectWeb mailing lists service home page: >>> http://www.objectweb.org/wws >>> >>> >> -- >> Ing. Leonardo Reale >> >> QUIX S.r.l. >> >> Strada Statale 413, 160/162 >> 41019 - Soliera (MO) >> Loc.Appalto - ITALY >> Tel. 0039 059 565388 >> Fax. 0039 059 565322 >> >> [hidden email] >> [hidden email] >> >> >> >> >> > > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Ok, is it an XPL? Being called through the page-flow, or some custom servler
setup through the web.xml? Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Leonardo Reale [mailto:[hidden email]] >Sent: 18 December 2006 10:12 >To: [hidden email] >Subject: Re: [ops-users] New user xpl problems > >The servlet is under the same context of presentation server. > >Ryan Puddephatt ha scritto: >> Leonardo, >> By servlet do you mean a URL under your OPS application >with the >> path-info of /activityList or do you mean a URL within >another context >> on the same server? >> >> Ryan >> >> Ryan Puddephatt >> Software Engineer >> >> Teleflex Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotland >> EH54 7DP >> >> e> [hidden email] >> t> +44(0)1506 407 110 >> f> +44(0)1506 407 108 >> >> >> >> >>> -----Original Message----- >>> From: Leonardo Reale [mailto:[hidden email]] >>> Sent: 18 December 2006 08:48 >>> To: [hidden email] >>> Subject: Re: [ops-users] New user xpl problems >>> >>> hi, my goal is create new application with a list _page and >edit_page. >>> >>> When i call my link: >>> "/xforms-quixBizApp/list/searchActivities" i want to load my list >>> page using as model "searchActivities.xpl". >>> >>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>> >>> The data loading is a Servlet called ActivityList. The servlet load >>> from database my data and create an xml on the response Stream. The >>> xpl file is: >>> >>> <p:processor name="oxf:redirect"> >>> <p:input name="data"> >>> <redirect-url> >>> <path-info>/activityList</path-info> >>> </redirect-url> >>> </p:input> >>> </p:config> >>> >>> The problem is: the servlet is not called by the processor. >>> >>> Have you any idea to realize my goal? >>> >>> Erik Bruchez ha scritto: >>> >>>> Leonardo, >>>> >>>> >>>>> i'm new ops user i'm trying to create a simple XForms based >>>>> web-application. >>>>> >>>>> This web application shows a list of activity >>>>> >>> (activityList.xhtml). >>> >>>>> In this page there is an XForm, this form is a search form. The >>>>> submission tag is the following: >>>>> >>>>> <xforms:submission id="searchActivities" method="post" >>>>> action="/xforms-quixBizApp/list/searchActivities" >>>>> instance="searchParams"/> >>>>> >>>>> The page-flow.xml entry: >>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>>> >>>>> The xpl file: >>>>> >>>>> c >>>>> This processor (as documentation says) should call my servlet >>>>> /activityList but this not append. >>>>> >>>> I would try to avoid the oxf:redirect processor if possible. >>>> >>>> >>>>> The questions are >>>>> >>>>> 1) Can i call a servlet from xpl ? >>>>> 2) How call the servlet? >>>>> 3) There is an example in this direction? >>>>> >>>> "Calling a servlet" is a little vague to me. >>>> >>>> First, can you describe what you are really trying to achieve? You >>>> propose a solution above but it is not clear to me what problem it >>>> solves. >>>> >>>> If you are just trying to go to "/activityList", why don't you >>>> directly submit your instance to "/activityList", or do an >>>> >>> xforms:load >>> >>>> to that same URL? >>>> >>>> -Erik >>>> >>>> >>>> >>> >--------------------------------------------------------------------- >>> - >>> >>>> -- >>>> >>>> >>>> -- >>>> You receive this message as a subscriber of the >>>> >>> [hidden email] mailing list. >>> >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> ObjectWeb mailing lists service home page: >>>> http://www.objectweb.org/wws >>>> >>>> >>> -- >>> Ing. Leonardo Reale >>> >>> QUIX S.r.l. >>> >>> Strada Statale 413, 160/162 >>> 41019 - Soliera (MO) >>> Loc.Appalto - ITALY >>> Tel. 0039 059 565388 >>> Fax. 0039 059 565322 >>> >>> [hidden email] >>> [hidden email] >>> >>> >>> >>> >>> >> >> >> >> >---------------------------------------------------------------------- >> -- >> >> >> -- >> You receive this message as a subscriber of the >[hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: >> http://www.objectweb.org/wws >> > > >-- >Ing. Leonardo Reale > >QUIX S.r.l. > >Strada Statale 413, 160/162 >41019 - Soliera (MO) >Loc.Appalto - ITALY >Tel. 0039 059 565388 >Fax. 0039 059 565322 > >[hidden email] >[hidden email] > > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
If i call my servlet directly by url i see the produded xml. It works
correctly. I call thi servlet by an xpl. This xpl is the follow: <p:param name="data" type="output" /> <p:processor name="oxf:url-generator"> <p:input name="config"> <config> <url>http://localhost:8080/ops/ActivityList</url> </config> </p:input> <p:output name="data" id="xml" ref="data"/> </p:processor> In the page-flow i configured the navigation in thi s way: <!-- Views --> <page path-info="/xforms-quixBizApp/activity/list-view" view="pages/ActivityList.xhtml"/> <!-- Models --> <page path-info="/xforms-quixBizApp/activity/list-model" model="searchActivities.xpl" /> <epilogue url="oxf:/config/epilogue.xpl"/> My XHTML page load the datamodel through the xpl url-generator processor. THK Ryan Puddephatt ha scritto: > Ok, is it an XPL? Being called through the page-flow, or some custom servler > setup through the web.xml? > > Ryan > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > > >> -----Original Message----- >> From: Leonardo Reale [mailto:[hidden email]] >> Sent: 18 December 2006 10:12 >> To: [hidden email] >> Subject: Re: [ops-users] New user xpl problems >> >> The servlet is under the same context of presentation server. >> >> Ryan Puddephatt ha scritto: >> >>> Leonardo, >>> By servlet do you mean a URL under your OPS application >>> >> with the >> >>> path-info of /activityList or do you mean a URL within >>> >> another context >> >>> on the same server? >>> >>> Ryan >>> >>> Ryan Puddephatt >>> Software Engineer >>> >>> Teleflex Group - IT UK >>> 1 Michaelson Square >>> Livingston >>> West Lothian >>> Scotland >>> EH54 7DP >>> >>> e> [hidden email] >>> t> +44(0)1506 407 110 >>> f> +44(0)1506 407 108 >>> >>> >>> >>> >>> >>>> -----Original Message----- >>>> From: Leonardo Reale [mailto:[hidden email]] >>>> Sent: 18 December 2006 08:48 >>>> To: [hidden email] >>>> Subject: Re: [ops-users] New user xpl problems >>>> >>>> hi, my goal is create new application with a list _page and >>>> >> edit_page. >> >>>> When i call my link: >>>> "/xforms-quixBizApp/list/searchActivities" i want to load my list >>>> page using as model "searchActivities.xpl". >>>> >>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>> >>>> The data loading is a Servlet called ActivityList. The servlet load >>>> from database my data and create an xml on the response Stream. The >>>> xpl file is: >>>> >>>> <p:processor name="oxf:redirect"> >>>> <p:input name="data"> >>>> <redirect-url> >>>> <path-info>/activityList</path-info> >>>> </redirect-url> >>>> </p:input> >>>> </p:config> >>>> >>>> The problem is: the servlet is not called by the processor. >>>> >>>> Have you any idea to realize my goal? >>>> >>>> Erik Bruchez ha scritto: >>>> >>>> >>>>> Leonardo, >>>>> >>>>> >>>>> >>>>>> i'm new ops user i'm trying to create a simple XForms based >>>>>> web-application. >>>>>> >>>>>> This web application shows a list of activity >>>>>> >>>>>> >>>> (activityList.xhtml). >>>> >>>> >>>>>> In this page there is an XForm, this form is a search form. The >>>>>> submission tag is the following: >>>>>> >>>>>> <xforms:submission id="searchActivities" method="post" >>>>>> action="/xforms-quixBizApp/list/searchActivities" >>>>>> instance="searchParams"/> >>>>>> >>>>>> The page-flow.xml entry: >>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>>>> >>>>>> The xpl file: >>>>>> >>>>>> c >>>>>> This processor (as documentation says) should call my servlet >>>>>> /activityList but this not append. >>>>>> >>>>>> >>>>> I would try to avoid the oxf:redirect processor if possible. >>>>> >>>>> >>>>> >>>>>> The questions are >>>>>> >>>>>> 1) Can i call a servlet from xpl ? >>>>>> 2) How call the servlet? >>>>>> 3) There is an example in this direction? >>>>>> >>>>>> >>>>> "Calling a servlet" is a little vague to me. >>>>> >>>>> First, can you describe what you are really trying to achieve? You >>>>> propose a solution above but it is not clear to me what problem it >>>>> solves. >>>>> >>>>> If you are just trying to go to "/activityList", why don't you >>>>> directly submit your instance to "/activityList", or do an >>>>> >>>>> >>>> xforms:load >>>> >>>> >>>>> to that same URL? >>>>> >>>>> -Erik >>>>> >>>>> >>>>> >>>>> >> --------------------------------------------------------------------- >> >>>> - >>>> >>>> >>>>> -- >>>>> >>>>> >>>>> -- >>>>> You receive this message as a subscriber of the >>>>> >>>>> >>>> [hidden email] mailing list. >>>> >>>> >>>>> To unsubscribe: mailto:[hidden email] >>>>> For general help: mailto:[hidden email]?subject=help >>>>> ObjectWeb mailing lists service home page: >>>>> http://www.objectweb.org/wws >>>>> >>>>> >>>>> >>>> -- >>>> Ing. Leonardo Reale >>>> >>>> QUIX S.r.l. >>>> >>>> Strada Statale 413, 160/162 >>>> 41019 - Soliera (MO) >>>> Loc.Appalto - ITALY >>>> Tel. 0039 059 565388 >>>> Fax. 0039 059 565322 >>>> >>>> [hidden email] >>>> [hidden email] >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >> ---------------------------------------------------------------------- >> >>> -- >>> >>> >>> -- >>> You receive this message as a subscriber of the >>> >> [hidden email] mailing list. >> >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> ObjectWeb mailing lists service home page: >>> http://www.objectweb.org/wws >>> >>> >> -- >> Ing. Leonardo Reale >> >> QUIX S.r.l. >> >> Strada Statale 413, 160/162 >> 41019 - Soliera (MO) >> Loc.Appalto - ITALY >> Tel. 0039 059 565388 >> Fax. 0039 059 565322 >> >> [hidden email] >> [hidden email] >> >> >> >> >> > > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
So hitting http://localhost:8080/ops/ActivityList in your browser produces
the XML you expect, but http://localhost:8080/ops/ActivityList in the url-generator does not? Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Leonardo Reale [mailto:[hidden email]] >Sent: 18 December 2006 10:26 >To: [hidden email] >Subject: Re: [ops-users] New user xpl problems > >If i call my servlet directly by url i see the produded xml. >It works correctly. > >I call thi servlet by an xpl. This xpl is the follow: > ><p:param name="data" type="output" /> > ><p:processor name="oxf:url-generator"> > <p:input name="config"> > <config> > <url>http://localhost:8080/ops/ActivityList</url> > </config> > </p:input> > <p:output name="data" id="xml" ref="data"/> </p:processor> > >In the page-flow i configured the navigation in thi s way: > > <!-- Views --> > <page path-info="/xforms-quixBizApp/activity/list-view" >view="pages/ActivityList.xhtml"/> > > <!-- Models --> > <page path-info="/xforms-quixBizApp/activity/list-model" >model="searchActivities.xpl" /> > <epilogue url="oxf:/config/epilogue.xpl"/> > >My XHTML page load the datamodel through the xpl url-generator >processor. > >THK > > >Ryan Puddephatt ha scritto: >> Ok, is it an XPL? Being called through the page-flow, or some custom >> servler setup through the web.xml? >> >> Ryan >> >> Ryan Puddephatt >> Software Engineer >> >> Teleflex Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotland >> EH54 7DP >> >> e> [hidden email] >> t> +44(0)1506 407 110 >> f> +44(0)1506 407 108 >> >> >> >> >>> -----Original Message----- >>> From: Leonardo Reale [mailto:[hidden email]] >>> Sent: 18 December 2006 10:12 >>> To: [hidden email] >>> Subject: Re: [ops-users] New user xpl problems >>> >>> The servlet is under the same context of presentation server. >>> >>> Ryan Puddephatt ha scritto: >>> >>>> Leonardo, >>>> By servlet do you mean a URL under your OPS application >>>> >>> with the >>> >>>> path-info of /activityList or do you mean a URL within >>>> >>> another context >>> >>>> on the same server? >>>> >>>> Ryan >>>> >>>> Ryan Puddephatt >>>> Software Engineer >>>> >>>> Teleflex Group - IT UK >>>> 1 Michaelson Square >>>> Livingston >>>> West Lothian >>>> Scotland >>>> EH54 7DP >>>> >>>> e> [hidden email] >>>> t> +44(0)1506 407 110 >>>> f> +44(0)1506 407 108 >>>> >>>> >>>> >>>> >>>> >>>>> -----Original Message----- >>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>> Sent: 18 December 2006 08:48 >>>>> To: [hidden email] >>>>> Subject: Re: [ops-users] New user xpl problems >>>>> >>>>> hi, my goal is create new application with a list _page and >>>>> >>> edit_page. >>> >>>>> When i call my link: >>>>> "/xforms-quixBizApp/list/searchActivities" i want to load my list >>>>> page using as model "searchActivities.xpl". >>>>> >>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>>> >>>>> The data loading is a Servlet called ActivityList. The >servlet load >>>>> from database my data and create an xml on the response >Stream. The >>>>> xpl file is: >>>>> >>>>> <p:processor name="oxf:redirect"> >>>>> <p:input name="data"> >>>>> <redirect-url> >>>>> <path-info>/activityList</path-info> >>>>> </redirect-url> >>>>> </p:input> >>>>> </p:config> >>>>> >>>>> The problem is: the servlet is not called by the processor. >>>>> >>>>> Have you any idea to realize my goal? >>>>> >>>>> Erik Bruchez ha scritto: >>>>> >>>>> >>>>>> Leonardo, >>>>>> >>>>>> >>>>>> >>>>>>> i'm new ops user i'm trying to create a simple XForms based >>>>>>> web-application. >>>>>>> >>>>>>> This web application shows a list of activity >>>>>>> >>>>>>> >>>>> (activityList.xhtml). >>>>> >>>>> >>>>>>> In this page there is an XForm, this form is a search >form. The >>>>>>> submission tag is the following: >>>>>>> >>>>>>> <xforms:submission id="searchActivities" method="post" >>>>>>> action="/xforms-quixBizApp/list/searchActivities" >>>>>>> instance="searchParams"/> >>>>>>> >>>>>>> The page-flow.xml entry: >>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>>>>> >>>>>>> The xpl file: >>>>>>> >>>>>>> c >>>>>>> This processor (as documentation says) should call my servlet >>>>>>> /activityList but this not append. >>>>>>> >>>>>>> >>>>>> I would try to avoid the oxf:redirect processor if possible. >>>>>> >>>>>> >>>>>> >>>>>>> The questions are >>>>>>> >>>>>>> 1) Can i call a servlet from xpl ? >>>>>>> 2) How call the servlet? >>>>>>> 3) There is an example in this direction? >>>>>>> >>>>>>> >>>>>> "Calling a servlet" is a little vague to me. >>>>>> >>>>>> First, can you describe what you are really trying to >achieve? You >>>>>> propose a solution above but it is not clear to me what >problem it >>>>>> solves. >>>>>> >>>>>> If you are just trying to go to "/activityList", why don't you >>>>>> directly submit your instance to "/activityList", or do an >>>>>> >>>>>> >>>>> xforms:load >>>>> >>>>> >>>>>> to that same URL? >>>>>> >>>>>> -Erik >>>>>> >>>>>> >>>>>> >>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> - >>>>> >>>>> >>>>>> -- >>>>>> >>>>>> >>>>>> -- >>>>>> You receive this message as a subscriber of the >>>>>> >>>>>> >>>>> [hidden email] mailing list. >>>>> >>>>> >>>>>> To unsubscribe: mailto:[hidden email] >>>>>> For general help: mailto:[hidden email]?subject=help >>>>>> ObjectWeb mailing lists service home page: >>>>>> http://www.objectweb.org/wws >>>>>> >>>>>> >>>>>> >>>>> -- >>>>> Ing. Leonardo Reale >>>>> >>>>> QUIX S.r.l. >>>>> >>>>> Strada Statale 413, 160/162 >>>>> 41019 - Soliera (MO) >>>>> Loc.Appalto - ITALY >>>>> Tel. 0039 059 565388 >>>>> Fax. 0039 059 565322 >>>>> >>>>> [hidden email] >>>>> [hidden email] >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >--------------------------------------------------------------------- >>> - >>> >>>> -- >>>> >>>> >>>> -- >>>> You receive this message as a subscriber of the >>>> >>> [hidden email] mailing list. >>> >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> ObjectWeb mailing lists service home page: >>>> http://www.objectweb.org/wws >>>> >>>> >>> -- >>> Ing. Leonardo Reale >>> >>> QUIX S.r.l. >>> >>> Strada Statale 413, 160/162 >>> 41019 - Soliera (MO) >>> Loc.Appalto - ITALY >>> Tel. 0039 059 565388 >>> Fax. 0039 059 565322 >>> >>> [hidden email] >>> [hidden email] >>> >>> >>> >>> >>> >> >> >> >> >---------------------------------------------------------------------- >> -- >> >> >> -- >> You receive this message as a subscriber of the >[hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: >> http://www.objectweb.org/wws >> > > >-- >Ing. Leonardo Reale > >QUIX S.r.l. > >Strada Statale 413, 160/162 >41019 - Soliera (MO) >Loc.Appalto - ITALY >Tel. 0039 059 565388 >Fax. 0039 059 565322 > >[hidden email] >[hidden email] > > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Ryan Puddephatt ha scritto:
> So hitting http://localhost:8080/ops/ActivityList in your browser produces > the XML you expect, but http://localhost:8080/ops/ActivityList in the > url-generator does not? > > Ryan > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > > >> -----Original Message----- >> From: Leonardo Reale [mailto:[hidden email]] >> Sent: 18 December 2006 10:26 >> To: [hidden email] >> Subject: Re: [ops-users] New user xpl problems >> >> If i call my servlet directly by url i see the produded xml. >> It works correctly. >> >> I call thi servlet by an xpl. This xpl is the follow: >> >> <p:param name="data" type="output" /> >> >> <p:processor name="oxf:url-generator"> >> <p:input name="config"> >> <config> >> <url>http://localhost:8080/ops/ActivityList</url> >> </config> >> </p:input> >> <p:output name="data" id="xml" ref="data"/> </p:processor> >> >> In the page-flow i configured the navigation in thi s way: >> >> <!-- Views --> >> <page path-info="/xforms-quixBizApp/activity/list-view" >> view="pages/ActivityList.xhtml"/> >> >> <!-- Models --> >> <page path-info="/xforms-quixBizApp/activity/list-model" >> model="searchActivities.xpl" /> >> <epilogue url="oxf:/config/epilogue.xpl"/> >> >> My XHTML page load the datamodel through the xpl url-generator >> processor. >> >> THK >> >> >> Ryan Puddephatt ha scritto: >> >>> Ok, is it an XPL? Being called through the page-flow, or some custom >>> servler setup through the web.xml? >>> >>> Ryan >>> >>> Ryan Puddephatt >>> Software Engineer >>> >>> Teleflex Group - IT UK >>> 1 Michaelson Square >>> Livingston >>> West Lothian >>> Scotland >>> EH54 7DP >>> >>> e> [hidden email] >>> t> +44(0)1506 407 110 >>> f> +44(0)1506 407 108 >>> >>> >>> >>> >>> >>>> -----Original Message----- >>>> From: Leonardo Reale [mailto:[hidden email]] >>>> Sent: 18 December 2006 10:12 >>>> To: [hidden email] >>>> Subject: Re: [ops-users] New user xpl problems >>>> >>>> The servlet is under the same context of presentation server. >>>> >>>> Ryan Puddephatt ha scritto: >>>> >>>> >>>>> Leonardo, >>>>> By servlet do you mean a URL under your OPS application >>>>> >>>>> >>>> with the >>>> >>>> >>>>> path-info of /activityList or do you mean a URL within >>>>> >>>>> >>>> another context >>>> >>>> >>>>> on the same server? >>>>> >>>>> Ryan >>>>> >>>>> Ryan Puddephatt >>>>> Software Engineer >>>>> >>>>> Teleflex Group - IT UK >>>>> 1 Michaelson Square >>>>> Livingston >>>>> West Lothian >>>>> Scotland >>>>> EH54 7DP >>>>> >>>>> e> [hidden email] >>>>> t> +44(0)1506 407 110 >>>>> f> +44(0)1506 407 108 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>> Sent: 18 December 2006 08:48 >>>>>> To: [hidden email] >>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>> >>>>>> hi, my goal is create new application with a list _page and >>>>>> >>>>>> >>>> edit_page. >>>> >>>> >>>>>> When i call my link: >>>>>> "/xforms-quixBizApp/list/searchActivities" i want to load my list >>>>>> page using as model "searchActivities.xpl". >>>>>> >>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>>>> >>>>>> The data loading is a Servlet called ActivityList. The >>>>>> >> servlet load >> >>>>>> from database my data and create an xml on the response >>>>>> >> Stream. The >> >>>>>> xpl file is: >>>>>> >>>>>> <p:processor name="oxf:redirect"> >>>>>> <p:input name="data"> >>>>>> <redirect-url> >>>>>> <path-info>/activityList</path-info> >>>>>> </redirect-url> >>>>>> </p:input> >>>>>> </p:config> >>>>>> >>>>>> The problem is: the servlet is not called by the processor. >>>>>> >>>>>> Have you any idea to realize my goal? >>>>>> >>>>>> Erik Bruchez ha scritto: >>>>>> >>>>>> >>>>>> >>>>>>> Leonardo, >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> i'm new ops user i'm trying to create a simple XForms based >>>>>>>> web-application. >>>>>>>> >>>>>>>> This web application shows a list of activity >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> (activityList.xhtml). >>>>>> >>>>>> >>>>>> >>>>>>>> In this page there is an XForm, this form is a search >>>>>>>> >> form. The >> >>>>>>>> submission tag is the following: >>>>>>>> >>>>>>>> <xforms:submission id="searchActivities" method="post" >>>>>>>> action="/xforms-quixBizApp/list/searchActivities" >>>>>>>> instance="searchParams"/> >>>>>>>> >>>>>>>> The page-flow.xml entry: >>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>>>>>> >>>>>>>> The xpl file: >>>>>>>> >>>>>>>> c >>>>>>>> This processor (as documentation says) should call my servlet >>>>>>>> /activityList but this not append. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> I would try to avoid the oxf:redirect processor if possible. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> The questions are >>>>>>>> >>>>>>>> 1) Can i call a servlet from xpl ? >>>>>>>> 2) How call the servlet? >>>>>>>> 3) There is an example in this direction? >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> "Calling a servlet" is a little vague to me. >>>>>>> >>>>>>> First, can you describe what you are really trying to >>>>>>> >> achieve? You >> >>>>>>> propose a solution above but it is not clear to me what >>>>>>> >> problem it >> >>>>>>> solves. >>>>>>> >>>>>>> If you are just trying to go to "/activityList", why don't you >>>>>>> directly submit your instance to "/activityList", or do an >>>>>>> >>>>>>> >>>>>>> >>>>>> xforms:load >>>>>> >>>>>> >>>>>> >>>>>>> to that same URL? >>>>>>> >>>>>>> -Erik >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> - >>>>>> >>>>>> >>>>>> >>>>>>> -- >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> You receive this message as a subscriber of the >>>>>>> >>>>>>> >>>>>>> >>>>>> [hidden email] mailing list. >>>>>> >>>>>> >>>>>> >>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>> ObjectWeb mailing lists service home page: >>>>>>> http://www.objectweb.org/wws >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> -- >>>>>> Ing. Leonardo Reale >>>>>> >>>>>> QUIX S.r.l. >>>>>> >>>>>> Strada Statale 413, 160/162 >>>>>> 41019 - Soliera (MO) >>>>>> Loc.Appalto - ITALY >>>>>> Tel. 0039 059 565388 >>>>>> Fax. 0039 059 565322 >>>>>> >>>>>> [hidden email] >>>>>> [hidden email] >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >> --------------------------------------------------------------------- >> >>>> - >>>> >>>> >>>>> -- >>>>> >>>>> >>>>> -- >>>>> You receive this message as a subscriber of the >>>>> >>>>> >>>> [hidden email] mailing list. >>>> >>>> >>>>> To unsubscribe: mailto:[hidden email] >>>>> For general help: mailto:[hidden email]?subject=help >>>>> ObjectWeb mailing lists service home page: >>>>> http://www.objectweb.org/wws >>>>> >>>>> >>>>> >>>> -- >>>> Ing. Leonardo Reale >>>> >>>> QUIX S.r.l. >>>> >>>> Strada Statale 413, 160/162 >>>> 41019 - Soliera (MO) >>>> Loc.Appalto - ITALY >>>> Tel. 0039 059 565388 >>>> Fax. 0039 059 565322 >>>> >>>> [hidden email] >>>> [hidden email] >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >> ---------------------------------------------------------------------- >> >>> -- >>> >>> >>> -- >>> You receive this message as a subscriber of the >>> >> [hidden email] mailing list. >> >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> ObjectWeb mailing lists service home page: >>> http://www.objectweb.org/wws >>> >>> >> -- >> Ing. Leonardo Reale >> >> QUIX S.r.l. >> >> Strada Statale 413, 160/162 >> 41019 - Soliera (MO) >> Loc.Appalto - ITALY >> Tel. 0039 059 565388 >> Fax. 0039 059 565322 >> >> [hidden email] >> [hidden email] >> >> >> >> >> > > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Yes..., the error is "premature-end of file".
Leonardo Reale ha scritto: > Ryan Puddephatt ha scritto: >> So hitting http://localhost:8080/ops/ActivityList in your browser >> produces >> the XML you expect, but http://localhost:8080/ops/ActivityList in the >> url-generator does not? >> >> Ryan >> >> Ryan Puddephatt >> Software Engineer >> >> Teleflex Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotland >> EH54 7DP >> >> e> [hidden email] >> t> +44(0)1506 407 110 >> f> +44(0)1506 407 108 >> >> >> >> >>> -----Original Message----- >>> From: Leonardo Reale [mailto:[hidden email]] Sent: 18 >>> December 2006 10:26 >>> To: [hidden email] >>> Subject: Re: [ops-users] New user xpl problems >>> >>> If i call my servlet directly by url i see the produded xml. It >>> works correctly. >>> >>> I call thi servlet by an xpl. This xpl is the follow: >>> >>> <p:param name="data" type="output" /> >>> >>> <p:processor name="oxf:url-generator"> >>> <p:input name="config"> >>> <config> >>> <url>http://localhost:8080/ops/ActivityList</url> >>> </config> </p:input> >>> <p:output name="data" id="xml" ref="data"/> </p:processor> >>> >>> In the page-flow i configured the navigation in thi s way: >>> >>> <!-- Views --> >>> <page path-info="/xforms-quixBizApp/activity/list-view" >>> view="pages/ActivityList.xhtml"/> >>> <!-- Models --> <page >>> path-info="/xforms-quixBizApp/activity/list-model" >>> model="searchActivities.xpl" /> >>> <epilogue url="oxf:/config/epilogue.xpl"/> >>> >>> My XHTML page load the datamodel through the xpl url-generator >>> processor. >>> >>> THK >>> >>> >>> Ryan Puddephatt ha scritto: >>> >>>> Ok, is it an XPL? Being called through the page-flow, or some >>>> custom servler setup through the web.xml? >>>> >>>> Ryan >>>> >>>> Ryan Puddephatt >>>> Software Engineer >>>> >>>> Teleflex Group - IT UK >>>> 1 Michaelson Square >>>> Livingston >>>> West Lothian >>>> Scotland >>>> EH54 7DP >>>> >>>> e> [hidden email] >>>> t> +44(0)1506 407 110 >>>> f> +44(0)1506 407 108 >>>> >>>> >>>> >>>> >>>>> -----Original Message----- >>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>> Sent: 18 December 2006 10:12 >>>>> To: [hidden email] >>>>> Subject: Re: [ops-users] New user xpl problems >>>>> >>>>> The servlet is under the same context of presentation server. >>>>> >>>>> Ryan Puddephatt ha scritto: >>>>> >>>>>> Leonardo, >>>>>> By servlet do you mean a URL under your OPS application >>>>>> >>>>> with the >>>>> >>>>>> path-info of /activityList or do you mean a URL within >>>>>> >>>>> another context >>>>> >>>>>> on the same server? >>>>>> >>>>>> Ryan >>>>>> >>>>>> Ryan Puddephatt >>>>>> Software Engineer >>>>>> >>>>>> Teleflex Group - IT UK >>>>>> 1 Michaelson Square >>>>>> Livingston >>>>>> West Lothian >>>>>> Scotland >>>>>> EH54 7DP >>>>>> >>>>>> e> [hidden email] >>>>>> t> +44(0)1506 407 110 >>>>>> f> +44(0)1506 407 108 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> -----Original Message----- >>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>> Sent: 18 December 2006 08:48 >>>>>>> To: [hidden email] >>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>> >>>>>>> hi, my goal is create new application with a list _page and >>>>>>> >>>>> edit_page. >>>>> >>>>>>> When i call my link: "/xforms-quixBizApp/list/searchActivities" >>>>>>> i want to load my list page using as model "searchActivities.xpl". >>>>>>> >>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>>>>> >>>>>>> The data loading is a Servlet called ActivityList. The >>> servlet load >>>>>>> from database my data and create an xml on the response >>> Stream. The >>>>>>> xpl file is: >>>>>>> >>>>>>> <p:processor name="oxf:redirect"> >>>>>>> <p:input name="data"> >>>>>>> <redirect-url> >>>>>>> <path-info>/activityList</path-info> >>>>>>> </redirect-url> >>>>>>> </p:input> >>>>>>> </p:config> >>>>>>> >>>>>>> The problem is: the servlet is not called by the processor. >>>>>>> >>>>>>> Have you any idea to realize my goal? >>>>>>> >>>>>>> Erik Bruchez ha scritto: >>>>>>> >>>>>>>> Leonardo, >>>>>>>> >>>>>>>> >>>>>>>>> i'm new ops user i'm trying to create a simple XForms based >>>>>>>>> web-application. >>>>>>>>> >>>>>>>>> This web application shows a list of activity >>>>>>>>> >>>>>>> (activityList.xhtml). >>>>>>>>> In this page there is an XForm, this form is a search >>>>>>>>> >>> form. The >>>>>>>>> submission tag is the following: >>>>>>>>> >>>>>>>>> <xforms:submission id="searchActivities" method="post" >>>>>>>>> action="/xforms-quixBizApp/list/searchActivities" >>>>>>>>> instance="searchParams"/> >>>>>>>>> >>>>>>>>> The page-flow.xml entry: >>>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>>>>>>> >>>>>>>>> The xpl file: >>>>>>>>> >>>>>>>>> c >>>>>>>>> This processor (as documentation says) should call my servlet >>>>>>>>> /activityList but this not append. >>>>>>>>> >>>>>>>> I would try to avoid the oxf:redirect processor if possible. >>>>>>>> >>>>>>>> >>>>>>>>> The questions are >>>>>>>>> >>>>>>>>> 1) Can i call a servlet from xpl ? >>>>>>>>> 2) How call the servlet? >>>>>>>>> 3) There is an example in this direction? >>>>>>>>> >>>>>>>> "Calling a servlet" is a little vague to me. >>>>>>>> >>>>>>>> First, can you describe what you are really trying to >>>>>>>> >>> achieve? You >>>>>>>> propose a solution above but it is not clear to me what >>>>>>>> >>> problem it >>>>>>>> solves. >>>>>>>> >>>>>>>> If you are just trying to go to "/activityList", why don't you >>>>>>>> directly submit your instance to "/activityList", or do an >>>>>>>> >>>>>>> xforms:load >>>>>>> >>>>>>>> to that same URL? >>>>>>>> >>>>>>>> -Erik >>>>>>>> >>>>>>>> >>>>>>>> >>> --------------------------------------------------------------------- >>> >>>>> >>>>>>> - >>>>>>> >>>>>>>> -- >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> You receive this message as a subscriber of the >>>>>>>> >>>>>>> [hidden email] mailing list. >>>>>>> >>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>> http://www.objectweb.org/wws >>>>>>>> >>>>>>> -- >>>>>>> Ing. Leonardo Reale >>>>>>> >>>>>>> QUIX S.r.l. >>>>>>> >>>>>>> Strada Statale 413, 160/162 >>>>>>> 41019 - Soliera (MO) >>>>>>> Loc.Appalto - ITALY >>>>>>> Tel. 0039 059 565388 >>>>>>> Fax. 0039 059 565322 >>>>>>> >>>>>>> [hidden email] >>>>>>> [hidden email] >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>> --------------------------------------------------------------------- >>> >>>>> - >>>>> >>>>>> -- >>>>>> >>>>>> >>>>>> -- >>>>>> You receive this message as a subscriber of the >>>>>> >>>>> [hidden email] mailing list. >>>>> >>>>>> To unsubscribe: mailto:[hidden email] >>>>>> For general help: mailto:[hidden email]?subject=help >>>>>> ObjectWeb mailing lists service home page: >>>>>> http://www.objectweb.org/wws >>>>>> >>>>> -- >>>>> Ing. Leonardo Reale >>>>> >>>>> QUIX S.r.l. >>>>> >>>>> Strada Statale 413, 160/162 >>>>> 41019 - Soliera (MO) >>>>> Loc.Appalto - ITALY >>>>> Tel. 0039 059 565388 >>>>> Fax. 0039 059 565322 >>>>> >>>>> [hidden email] >>>>> [hidden email] >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> ---------------------------------------------------------------------- >>> >>>> -- >>>> >>>> >>>> -- >>>> You receive this message as a subscriber of the >>> [hidden email] mailing list. >>> >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> ObjectWeb mailing lists service home page: >>>> http://www.objectweb.org/wws >>>> >>> -- >>> Ing. Leonardo Reale >>> >>> QUIX S.r.l. >>> >>> Strada Statale 413, 160/162 >>> 41019 - Soliera (MO) >>> Loc.Appalto - ITALY >>> Tel. 0039 059 565388 >>> Fax. 0039 059 565322 >>> >>> [hidden email] >>> [hidden email] >>> >>> >>> >>> >>> >> >> >> >> ------------------------------------------------------------------------ >> >> >> -- >> You receive this message as a subscriber of the >> [hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> > Yes..., the error is "premature-end of file". > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Leonardo-6
Then either the result of activitylist, or either of the XPLs are not well
formed! Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Leonardo Reale [mailto:[hidden email]] >Sent: 18 December 2006 15:29 >To: [hidden email] >Subject: Re: [ops-users] New user xpl problems > >Ryan Puddephatt ha scritto: >> So hitting http://localhost:8080/ops/ActivityList in your browser >> produces the XML you expect, but >> http://localhost:8080/ops/ActivityList in the url-generator does not? >> >> Ryan >> >> Ryan Puddephatt >> Software Engineer >> >> Teleflex Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotland >> EH54 7DP >> >> e> [hidden email] >> t> +44(0)1506 407 110 >> f> +44(0)1506 407 108 >> >> >> >> >>> -----Original Message----- >>> From: Leonardo Reale [mailto:[hidden email]] >>> Sent: 18 December 2006 10:26 >>> To: [hidden email] >>> Subject: Re: [ops-users] New user xpl problems >>> >>> If i call my servlet directly by url i see the produded xml. >>> It works correctly. >>> >>> I call thi servlet by an xpl. This xpl is the follow: >>> >>> <p:param name="data" type="output" /> >>> >>> <p:processor name="oxf:url-generator"> >>> <p:input name="config"> >>> <config> >>> <url>http://localhost:8080/ops/ActivityList</url> >>> </config> >>> </p:input> >>> <p:output name="data" id="xml" ref="data"/> </p:processor> >>> >>> In the page-flow i configured the navigation in thi s way: >>> >>> <!-- Views --> >>> <page path-info="/xforms-quixBizApp/activity/list-view" >>> view="pages/ActivityList.xhtml"/> >>> >>> <!-- Models --> >>> <page path-info="/xforms-quixBizApp/activity/list-model" >>> model="searchActivities.xpl" /> >>> <epilogue url="oxf:/config/epilogue.xpl"/> >>> >>> My XHTML page load the datamodel through the xpl url-generator >>> processor. >>> >>> THK >>> >>> >>> Ryan Puddephatt ha scritto: >>> >>>> Ok, is it an XPL? Being called through the page-flow, or >some custom >>>> servler setup through the web.xml? >>>> >>>> Ryan >>>> >>>> Ryan Puddephatt >>>> Software Engineer >>>> >>>> Teleflex Group - IT UK >>>> 1 Michaelson Square >>>> Livingston >>>> West Lothian >>>> Scotland >>>> EH54 7DP >>>> >>>> e> [hidden email] >>>> t> +44(0)1506 407 110 >>>> f> +44(0)1506 407 108 >>>> >>>> >>>> >>>> >>>> >>>>> -----Original Message----- >>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>> Sent: 18 December 2006 10:12 >>>>> To: [hidden email] >>>>> Subject: Re: [ops-users] New user xpl problems >>>>> >>>>> The servlet is under the same context of presentation server. >>>>> >>>>> Ryan Puddephatt ha scritto: >>>>> >>>>> >>>>>> Leonardo, >>>>>> By servlet do you mean a URL under your OPS application >>>>>> >>>>>> >>>>> with the >>>>> >>>>> >>>>>> path-info of /activityList or do you mean a URL within >>>>>> >>>>>> >>>>> another context >>>>> >>>>> >>>>>> on the same server? >>>>>> >>>>>> Ryan >>>>>> >>>>>> Ryan Puddephatt >>>>>> Software Engineer >>>>>> >>>>>> Teleflex Group - IT UK >>>>>> 1 Michaelson Square >>>>>> Livingston >>>>>> West Lothian >>>>>> Scotland >>>>>> EH54 7DP >>>>>> >>>>>> e> [hidden email] >>>>>> t> +44(0)1506 407 110 >>>>>> f> +44(0)1506 407 108 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> -----Original Message----- >>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>> Sent: 18 December 2006 08:48 >>>>>>> To: [hidden email] >>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>> >>>>>>> hi, my goal is create new application with a list _page and >>>>>>> >>>>>>> >>>>> edit_page. >>>>> >>>>> >>>>>>> When i call my link: >>>>>>> "/xforms-quixBizApp/list/searchActivities" i want to >load my list >>>>>>> page using as model "searchActivities.xpl". >>>>>>> >>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>>>>> >>>>>>> The data loading is a Servlet called ActivityList. The >>>>>>> >>> servlet load >>> >>>>>>> from database my data and create an xml on the response >>>>>>> >>> Stream. The >>> >>>>>>> xpl file is: >>>>>>> >>>>>>> <p:processor name="oxf:redirect"> >>>>>>> <p:input name="data"> >>>>>>> <redirect-url> >>>>>>> <path-info>/activityList</path-info> >>>>>>> </redirect-url> >>>>>>> </p:input> >>>>>>> </p:config> >>>>>>> >>>>>>> The problem is: the servlet is not called by the processor. >>>>>>> >>>>>>> Have you any idea to realize my goal? >>>>>>> >>>>>>> Erik Bruchez ha scritto: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Leonardo, >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> i'm new ops user i'm trying to create a simple XForms based >>>>>>>>> web-application. >>>>>>>>> >>>>>>>>> This web application shows a list of activity >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>> (activityList.xhtml). >>>>>>> >>>>>>> >>>>>>> >>>>>>>>> In this page there is an XForm, this form is a search >>>>>>>>> >>> form. The >>> >>>>>>>>> submission tag is the following: >>>>>>>>> >>>>>>>>> <xforms:submission id="searchActivities" method="post" >>>>>>>>> >action="/xforms-quixBizApp/list/searchActivities" >>>>>>>>> instance="searchParams"/> >>>>>>>>> >>>>>>>>> The page-flow.xml entry: >>>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>>>>>>> >>>>>>>>> The xpl file: >>>>>>>>> >>>>>>>>> c >>>>>>>>> This processor (as documentation says) should call my servlet >>>>>>>>> /activityList but this not append. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> I would try to avoid the oxf:redirect processor if possible. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> The questions are >>>>>>>>> >>>>>>>>> 1) Can i call a servlet from xpl ? >>>>>>>>> 2) How call the servlet? >>>>>>>>> 3) There is an example in this direction? >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> "Calling a servlet" is a little vague to me. >>>>>>>> >>>>>>>> First, can you describe what you are really trying to >>>>>>>> >>> achieve? You >>> >>>>>>>> propose a solution above but it is not clear to me what >>>>>>>> >>> problem it >>> >>>>>>>> solves. >>>>>>>> >>>>>>>> If you are just trying to go to "/activityList", why don't you >>>>>>>> directly submit your instance to "/activityList", or do an >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> xforms:load >>>>>>> >>>>>>> >>>>>>> >>>>>>>> to that same URL? >>>>>>>> >>>>>>>> -Erik >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> >>>>> >>>>>>> - >>>>>>> >>>>>>> >>>>>>> >>>>>>>> -- >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> You receive this message as a subscriber of the >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> [hidden email] mailing list. >>>>>>> >>>>>>> >>>>>>> >>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>> http://www.objectweb.org/wws >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> -- >>>>>>> Ing. Leonardo Reale >>>>>>> >>>>>>> QUIX S.r.l. >>>>>>> >>>>>>> Strada Statale 413, 160/162 >>>>>>> 41019 - Soliera (MO) >>>>>>> Loc.Appalto - ITALY >>>>>>> Tel. 0039 059 565388 >>>>>>> Fax. 0039 059 565322 >>>>>>> >>>>>>> [hidden email] >>>>>>> [hidden email] >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> - >>>>> >>>>> >>>>>> -- >>>>>> >>>>>> >>>>>> -- >>>>>> You receive this message as a subscriber of the >>>>>> >>>>>> >>>>> [hidden email] mailing list. >>>>> >>>>> >>>>>> To unsubscribe: mailto:[hidden email] >>>>>> For general help: mailto:[hidden email]?subject=help >>>>>> ObjectWeb mailing lists service home page: >>>>>> http://www.objectweb.org/wws >>>>>> >>>>>> >>>>>> >>>>> -- >>>>> Ing. Leonardo Reale >>>>> >>>>> QUIX S.r.l. >>>>> >>>>> Strada Statale 413, 160/162 >>>>> 41019 - Soliera (MO) >>>>> Loc.Appalto - ITALY >>>>> Tel. 0039 059 565388 >>>>> Fax. 0039 059 565322 >>>>> >>>>> [hidden email] >>>>> [hidden email] >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >--------------------------------------------------------------------- >>> - >>> >>>> -- >>>> >>>> >>>> -- >>>> You receive this message as a subscriber of the >>>> >>> [hidden email] mailing list. >>> >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> ObjectWeb mailing lists service home page: >>>> http://www.objectweb.org/wws >>>> >>>> >>> -- >>> Ing. Leonardo Reale >>> >>> QUIX S.r.l. >>> >>> Strada Statale 413, 160/162 >>> 41019 - Soliera (MO) >>> Loc.Appalto - ITALY >>> Tel. 0039 059 565388 >>> Fax. 0039 059 565322 >>> >>> [hidden email] >>> [hidden email] >>> >>> >>> >>> >>> >> >> >> >> >---------------------------------------------------------------------- >> -- >> >> >> -- >> You receive this message as a subscriber of the >[hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: >> http://www.objectweb.org/wws >> >Yes..., the error is "premature-end of file". > >-- >Ing. Leonardo Reale > >QUIX S.r.l. > >Strada Statale 413, 160/162 >41019 - Soliera (MO) >Loc.Appalto - ITALY >Tel. 0039 059 565388 >Fax. 0039 059 565322 > >[hidden email] >[hidden email] > > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
This is the xml produced by my servlet:
<activities> <activity> <id>1</id> <projectName>Integrazione xform</projectName> <date>2006-11-15</date> <description>Integrazione xform</description> <location>HQ</location> <length>8</length> <activityType>Leo</activityType> <companyCode>Leo</companyCode> </activity> </activities> it's well formed, I'm sure, in fact if I load the instance directly by servlet it works fine <xforms:instance id="activitiesList" src="http://localhost:8080/ActivityList" /> Ryan Puddephatt ha scritto: > Then either the result of activitylist, or either of the XPLs are not well > formed! > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > > >> -----Original Message----- >> From: Leonardo Reale [mailto:[hidden email]] >> Sent: 18 December 2006 15:29 >> To: [hidden email] >> Subject: Re: [ops-users] New user xpl problems >> >> Ryan Puddephatt ha scritto: >> >>> So hitting http://localhost:8080/ops/ActivityList in your browser >>> produces the XML you expect, but >>> http://localhost:8080/ops/ActivityList in the url-generator does not? >>> >>> Ryan >>> >>> Ryan Puddephatt >>> Software Engineer >>> >>> Teleflex Group - IT UK >>> 1 Michaelson Square >>> Livingston >>> West Lothian >>> Scotland >>> EH54 7DP >>> >>> e> [hidden email] >>> t> +44(0)1506 407 110 >>> f> +44(0)1506 407 108 >>> >>> >>> >>> >>> >>>> -----Original Message----- >>>> From: Leonardo Reale [mailto:[hidden email]] >>>> Sent: 18 December 2006 10:26 >>>> To: [hidden email] >>>> Subject: Re: [ops-users] New user xpl problems >>>> >>>> If i call my servlet directly by url i see the produded xml. >>>> It works correctly. >>>> >>>> I call thi servlet by an xpl. This xpl is the follow: >>>> >>>> <p:param name="data" type="output" /> >>>> >>>> <p:processor name="oxf:url-generator"> >>>> <p:input name="config"> >>>> <config> >>>> <url>http://localhost:8080/ops/ActivityList</url> >>>> </config> >>>> </p:input> >>>> <p:output name="data" id="xml" ref="data"/> </p:processor> >>>> >>>> In the page-flow i configured the navigation in thi s way: >>>> >>>> <!-- Views --> >>>> <page path-info="/xforms-quixBizApp/activity/list-view" >>>> view="pages/ActivityList.xhtml"/> >>>> >>>> <!-- Models --> >>>> <page path-info="/xforms-quixBizApp/activity/list-model" >>>> model="searchActivities.xpl" /> >>>> <epilogue url="oxf:/config/epilogue.xpl"/> >>>> >>>> My XHTML page load the datamodel through the xpl url-generator >>>> processor. >>>> >>>> THK >>>> >>>> >>>> Ryan Puddephatt ha scritto: >>>> >>>> >>>>> Ok, is it an XPL? Being called through the page-flow, or >>>>> >> some custom >> >>>>> servler setup through the web.xml? >>>>> >>>>> Ryan >>>>> >>>>> Ryan Puddephatt >>>>> Software Engineer >>>>> >>>>> Teleflex Group - IT UK >>>>> 1 Michaelson Square >>>>> Livingston >>>>> West Lothian >>>>> Scotland >>>>> EH54 7DP >>>>> >>>>> e> [hidden email] >>>>> t> +44(0)1506 407 110 >>>>> f> +44(0)1506 407 108 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>> Sent: 18 December 2006 10:12 >>>>>> To: [hidden email] >>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>> >>>>>> The servlet is under the same context of presentation server. >>>>>> >>>>>> Ryan Puddephatt ha scritto: >>>>>> >>>>>> >>>>>> >>>>>>> Leonardo, >>>>>>> By servlet do you mean a URL under your OPS application >>>>>>> >>>>>>> >>>>>>> >>>>>> with the >>>>>> >>>>>> >>>>>> >>>>>>> path-info of /activityList or do you mean a URL within >>>>>>> >>>>>>> >>>>>>> >>>>>> another context >>>>>> >>>>>> >>>>>> >>>>>>> on the same server? >>>>>>> >>>>>>> Ryan >>>>>>> >>>>>>> Ryan Puddephatt >>>>>>> Software Engineer >>>>>>> >>>>>>> Teleflex Group - IT UK >>>>>>> 1 Michaelson Square >>>>>>> Livingston >>>>>>> West Lothian >>>>>>> Scotland >>>>>>> EH54 7DP >>>>>>> >>>>>>> e> [hidden email] >>>>>>> t> +44(0)1506 407 110 >>>>>>> f> +44(0)1506 407 108 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>> Sent: 18 December 2006 08:48 >>>>>>>> To: [hidden email] >>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>> >>>>>>>> hi, my goal is create new application with a list _page and >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> edit_page. >>>>>> >>>>>> >>>>>> >>>>>>>> When i call my link: >>>>>>>> "/xforms-quixBizApp/list/searchActivities" i want to >>>>>>>> >> load my list >> >>>>>>>> page using as model "searchActivities.xpl". >>>>>>>> >>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>>>>>> >>>>>>>> The data loading is a Servlet called ActivityList. The >>>>>>>> >>>>>>>> >>>> servlet load >>>> >>>> >>>>>>>> from database my data and create an xml on the response >>>>>>>> >>>>>>>> >>>> Stream. The >>>> >>>> >>>>>>>> xpl file is: >>>>>>>> >>>>>>>> <p:processor name="oxf:redirect"> >>>>>>>> <p:input name="data"> >>>>>>>> <redirect-url> >>>>>>>> <path-info>/activityList</path-info> >>>>>>>> </redirect-url> >>>>>>>> </p:input> >>>>>>>> </p:config> >>>>>>>> >>>>>>>> The problem is: the servlet is not called by the processor. >>>>>>>> >>>>>>>> Have you any idea to realize my goal? >>>>>>>> >>>>>>>> Erik Bruchez ha scritto: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> Leonardo, >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> i'm new ops user i'm trying to create a simple XForms based >>>>>>>>>> web-application. >>>>>>>>>> >>>>>>>>>> This web application shows a list of activity >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>> (activityList.xhtml). >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> In this page there is an XForm, this form is a search >>>>>>>>>> >>>>>>>>>> >>>> form. The >>>> >>>> >>>>>>>>>> submission tag is the following: >>>>>>>>>> >>>>>>>>>> <xforms:submission id="searchActivities" method="post" >>>>>>>>>> >>>>>>>>>> >> action="/xforms-quixBizApp/list/searchActivities" >> >>>>>>>>>> instance="searchParams"/> >>>>>>>>>> >>>>>>>>>> The page-flow.xml entry: >>>>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>>>>>>>> >>>>>>>>>> The xpl file: >>>>>>>>>> >>>>>>>>>> c >>>>>>>>>> This processor (as documentation says) should call my servlet >>>>>>>>>> /activityList but this not append. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> I would try to avoid the oxf:redirect processor if possible. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> The questions are >>>>>>>>>> >>>>>>>>>> 1) Can i call a servlet from xpl ? >>>>>>>>>> 2) How call the servlet? >>>>>>>>>> 3) There is an example in this direction? >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> "Calling a servlet" is a little vague to me. >>>>>>>>> >>>>>>>>> First, can you describe what you are really trying to >>>>>>>>> >>>>>>>>> >>>> achieve? You >>>> >>>> >>>>>>>>> propose a solution above but it is not clear to me what >>>>>>>>> >>>>>>>>> >>>> problem it >>>> >>>> >>>>>>>>> solves. >>>>>>>>> >>>>>>>>> If you are just trying to go to "/activityList", why don't you >>>>>>>>> directly submit your instance to "/activityList", or do an >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> xforms:load >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> to that same URL? >>>>>>>>> >>>>>>>>> -Erik >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> >>>>>> >>>>>> >>>>>>>> - >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> -- >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> You receive this message as a subscriber of the >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> [hidden email] mailing list. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>> http://www.objectweb.org/wws >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> -- >>>>>>>> Ing. Leonardo Reale >>>>>>>> >>>>>>>> QUIX S.r.l. >>>>>>>> >>>>>>>> Strada Statale 413, 160/162 >>>>>>>> 41019 - Soliera (MO) >>>>>>>> Loc.Appalto - ITALY >>>>>>>> Tel. 0039 059 565388 >>>>>>>> Fax. 0039 059 565322 >>>>>>>> >>>>>>>> [hidden email] >>>>>>>> [hidden email] >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> - >>>>>> >>>>>> >>>>>> >>>>>>> -- >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> You receive this message as a subscriber of the >>>>>>> >>>>>>> >>>>>>> >>>>>> [hidden email] mailing list. >>>>>> >>>>>> >>>>>> >>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>> ObjectWeb mailing lists service home page: >>>>>>> http://www.objectweb.org/wws >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> -- >>>>>> Ing. Leonardo Reale >>>>>> >>>>>> QUIX S.r.l. >>>>>> >>>>>> Strada Statale 413, 160/162 >>>>>> 41019 - Soliera (MO) >>>>>> Loc.Appalto - ITALY >>>>>> Tel. 0039 059 565388 >>>>>> Fax. 0039 059 565322 >>>>>> >>>>>> [hidden email] >>>>>> [hidden email] >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >> --------------------------------------------------------------------- >> >>>> - >>>> >>>> >>>>> -- >>>>> >>>>> >>>>> -- >>>>> You receive this message as a subscriber of the >>>>> >>>>> >>>> [hidden email] mailing list. >>>> >>>> >>>>> To unsubscribe: mailto:[hidden email] >>>>> For general help: mailto:[hidden email]?subject=help >>>>> ObjectWeb mailing lists service home page: >>>>> http://www.objectweb.org/wws >>>>> >>>>> >>>>> >>>> -- >>>> Ing. Leonardo Reale >>>> >>>> QUIX S.r.l. >>>> >>>> Strada Statale 413, 160/162 >>>> 41019 - Soliera (MO) >>>> Loc.Appalto - ITALY >>>> Tel. 0039 059 565388 >>>> Fax. 0039 059 565322 >>>> >>>> [hidden email] >>>> [hidden email] >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >> ---------------------------------------------------------------------- >> >>> -- >>> >>> >>> -- >>> You receive this message as a subscriber of the >>> >> [hidden email] mailing list. >> >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> ObjectWeb mailing lists service home page: >>> http://www.objectweb.org/wws >>> >>> >> Yes..., the error is "premature-end of file". >> >> -- >> Ing. Leonardo Reale >> >> QUIX S.r.l. >> >> Strada Statale 413, 160/162 >> 41019 - Soliera (MO) >> Loc.Appalto - ITALY >> Tel. 0039 059 565388 >> Fax. 0039 059 565322 >> >> [hidden email] >> [hidden email] >> >> >> >> >> > > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
So why is it your not doing that way? Why are you using another XPL to get
this? Does you servlet use SAX stream to produce the XML? Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Leonardo Reale [mailto:[hidden email]] >Sent: 18 December 2006 15:42 >To: [hidden email] >Subject: Re: [ops-users] New user xpl problems > >This is the xml produced by my servlet: > ><activities> > <activity> > <id>1</id> > <projectName>Integrazione xform</projectName> > <date>2006-11-15</date> > <description>Integrazione xform</description> > <location>HQ</location> > <length>8</length> > <activityType>Leo</activityType> > <companyCode>Leo</companyCode> > </activity> ></activities> > >it's well formed, I'm sure, in fact if I load the instance >directly by servlet it works fine > ><xforms:instance id="activitiesList" >src="http://localhost:8080/ActivityList" /> > > > > > > > > > > > > > > > > > > > > >Ryan Puddephatt ha scritto: >> Then either the result of activitylist, or either of the >XPLs are not >> well formed! >> >> Ryan Puddephatt >> Software Engineer >> >> Teleflex Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotland >> EH54 7DP >> >> e> [hidden email] >> t> +44(0)1506 407 110 >> f> +44(0)1506 407 108 >> >> >> >> >>> -----Original Message----- >>> From: Leonardo Reale [mailto:[hidden email]] >>> Sent: 18 December 2006 15:29 >>> To: [hidden email] >>> Subject: Re: [ops-users] New user xpl problems >>> >>> Ryan Puddephatt ha scritto: >>> >>>> So hitting http://localhost:8080/ops/ActivityList in your browser >>>> produces the XML you expect, but >>>> http://localhost:8080/ops/ActivityList in the >url-generator does not? >>>> >>>> Ryan >>>> >>>> Ryan Puddephatt >>>> Software Engineer >>>> >>>> Teleflex Group - IT UK >>>> 1 Michaelson Square >>>> Livingston >>>> West Lothian >>>> Scotland >>>> EH54 7DP >>>> >>>> e> [hidden email] >>>> t> +44(0)1506 407 110 >>>> f> +44(0)1506 407 108 >>>> >>>> >>>> >>>> >>>> >>>>> -----Original Message----- >>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>> Sent: 18 December 2006 10:26 >>>>> To: [hidden email] >>>>> Subject: Re: [ops-users] New user xpl problems >>>>> >>>>> If i call my servlet directly by url i see the produded xml. >>>>> It works correctly. >>>>> >>>>> I call thi servlet by an xpl. This xpl is the follow: >>>>> >>>>> <p:param name="data" type="output" /> >>>>> >>>>> <p:processor name="oxf:url-generator"> >>>>> <p:input name="config"> >>>>> <config> >>>>> <url>http://localhost:8080/ops/ActivityList</url> >>>>> </config> >>>>> </p:input> >>>>> <p:output name="data" id="xml" ref="data"/> </p:processor> >>>>> >>>>> In the page-flow i configured the navigation in thi s way: >>>>> >>>>> <!-- Views --> >>>>> <page path-info="/xforms-quixBizApp/activity/list-view" >>>>> view="pages/ActivityList.xhtml"/> >>>>> >>>>> <!-- Models --> >>>>> <page path-info="/xforms-quixBizApp/activity/list-model" >>>>> model="searchActivities.xpl" /> >>>>> <epilogue url="oxf:/config/epilogue.xpl"/> >>>>> >>>>> My XHTML page load the datamodel through the xpl url-generator >>>>> processor. >>>>> >>>>> THK >>>>> >>>>> >>>>> Ryan Puddephatt ha scritto: >>>>> >>>>> >>>>>> Ok, is it an XPL? Being called through the page-flow, or >>>>>> >>> some custom >>> >>>>>> servler setup through the web.xml? >>>>>> >>>>>> Ryan >>>>>> >>>>>> Ryan Puddephatt >>>>>> Software Engineer >>>>>> >>>>>> Teleflex Group - IT UK >>>>>> 1 Michaelson Square >>>>>> Livingston >>>>>> West Lothian >>>>>> Scotland >>>>>> EH54 7DP >>>>>> >>>>>> e> [hidden email] >>>>>> t> +44(0)1506 407 110 >>>>>> f> +44(0)1506 407 108 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> -----Original Message----- >>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>> Sent: 18 December 2006 10:12 >>>>>>> To: [hidden email] >>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>> >>>>>>> The servlet is under the same context of presentation server. >>>>>>> >>>>>>> Ryan Puddephatt ha scritto: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Leonardo, >>>>>>>> By servlet do you mean a URL under your OPS application >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> with the >>>>>>> >>>>>>> >>>>>>> >>>>>>>> path-info of /activityList or do you mean a URL within >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> another context >>>>>>> >>>>>>> >>>>>>> >>>>>>>> on the same server? >>>>>>>> >>>>>>>> Ryan >>>>>>>> >>>>>>>> Ryan Puddephatt >>>>>>>> Software Engineer >>>>>>>> >>>>>>>> Teleflex Group - IT UK >>>>>>>> 1 Michaelson Square >>>>>>>> Livingston >>>>>>>> West Lothian >>>>>>>> Scotland >>>>>>>> EH54 7DP >>>>>>>> >>>>>>>> e> [hidden email] >>>>>>>> t> +44(0)1506 407 110 >>>>>>>> f> +44(0)1506 407 108 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> -----Original Message----- >>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>> Sent: 18 December 2006 08:48 >>>>>>>>> To: [hidden email] >>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>> >>>>>>>>> hi, my goal is create new application with a list _page and >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>> edit_page. >>>>>>> >>>>>>> >>>>>>> >>>>>>>>> When i call my link: >>>>>>>>> "/xforms-quixBizApp/list/searchActivities" i want to >>>>>>>>> >>> load my list >>> >>>>>>>>> page using as model "searchActivities.xpl". >>>>>>>>> >>>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>>>>>>> >>>>>>>>> The data loading is a Servlet called ActivityList. The >>>>>>>>> >>>>>>>>> >>>>> servlet load >>>>> >>>>> >>>>>>>>> from database my data and create an xml on the response >>>>>>>>> >>>>>>>>> >>>>> Stream. The >>>>> >>>>> >>>>>>>>> xpl file is: >>>>>>>>> >>>>>>>>> <p:processor name="oxf:redirect"> >>>>>>>>> <p:input name="data"> >>>>>>>>> <redirect-url> >>>>>>>>> <path-info>/activityList</path-info> >>>>>>>>> </redirect-url> >>>>>>>>> </p:input> >>>>>>>>> </p:config> >>>>>>>>> >>>>>>>>> The problem is: the servlet is not called by the processor. >>>>>>>>> >>>>>>>>> Have you any idea to realize my goal? >>>>>>>>> >>>>>>>>> Erik Bruchez ha scritto: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> Leonardo, >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> i'm new ops user i'm trying to create a simple XForms based >>>>>>>>>>> web-application. >>>>>>>>>>> >>>>>>>>>>> This web application shows a list of activity >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>> (activityList.xhtml). >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>> In this page there is an XForm, this form is a search >>>>>>>>>>> >>>>>>>>>>> >>>>> form. The >>>>> >>>>> >>>>>>>>>>> submission tag is the following: >>>>>>>>>>> >>>>>>>>>>> <xforms:submission id="searchActivities" method="post" >>>>>>>>>>> >>>>>>>>>>> >>> action="/xforms-quixBizApp/list/searchActivities" >>> >>>>>>>>>>> instance="searchParams"/> >>>>>>>>>>> >>>>>>>>>>> The page-flow.xml entry: >>>>>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>> >>>>>>>>>>> The xpl file: >>>>>>>>>>> >>>>>>>>>>> c >>>>>>>>>>> This processor (as documentation says) should call >my servlet >>>>>>>>>>> /activityList but this not append. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> I would try to avoid the oxf:redirect processor if possible. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> The questions are >>>>>>>>>>> >>>>>>>>>>> 1) Can i call a servlet from xpl ? >>>>>>>>>>> 2) How call the servlet? >>>>>>>>>>> 3) There is an example in this direction? >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> "Calling a servlet" is a little vague to me. >>>>>>>>>> >>>>>>>>>> First, can you describe what you are really trying to >>>>>>>>>> >>>>>>>>>> >>>>> achieve? You >>>>> >>>>> >>>>>>>>>> propose a solution above but it is not clear to me what >>>>>>>>>> >>>>>>>>>> >>>>> problem it >>>>> >>>>> >>>>>>>>>> solves. >>>>>>>>>> >>>>>>>>>> If you are just trying to go to "/activityList", why >don't you >>>>>>>>>> directly submit your instance to "/activityList", or do an >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> xforms:load >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> to that same URL? >>>>>>>>>> >>>>>>>>>> -Erik >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> >>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>> - >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> [hidden email] mailing list. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> -- >>>>>>>>> Ing. Leonardo Reale >>>>>>>>> >>>>>>>>> QUIX S.r.l. >>>>>>>>> >>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>> 41019 - Soliera (MO) >>>>>>>>> Loc.Appalto - ITALY >>>>>>>>> Tel. 0039 059 565388 >>>>>>>>> Fax. 0039 059 565322 >>>>>>>>> >>>>>>>>> [hidden email] >>>>>>>>> [hidden email] >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> >>>>> >>>>>>> - >>>>>>> >>>>>>> >>>>>>> >>>>>>>> -- >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> You receive this message as a subscriber of the >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> [hidden email] mailing list. >>>>>>> >>>>>>> >>>>>>> >>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>> http://www.objectweb.org/wws >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> -- >>>>>>> Ing. Leonardo Reale >>>>>>> >>>>>>> QUIX S.r.l. >>>>>>> >>>>>>> Strada Statale 413, 160/162 >>>>>>> 41019 - Soliera (MO) >>>>>>> Loc.Appalto - ITALY >>>>>>> Tel. 0039 059 565388 >>>>>>> Fax. 0039 059 565322 >>>>>>> >>>>>>> [hidden email] >>>>>>> [hidden email] >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> - >>>>> >>>>> >>>>>> -- >>>>>> >>>>>> >>>>>> -- >>>>>> You receive this message as a subscriber of the >>>>>> >>>>>> >>>>> [hidden email] mailing list. >>>>> >>>>> >>>>>> To unsubscribe: mailto:[hidden email] >>>>>> For general help: mailto:[hidden email]?subject=help >>>>>> ObjectWeb mailing lists service home page: >>>>>> http://www.objectweb.org/wws >>>>>> >>>>>> >>>>>> >>>>> -- >>>>> Ing. Leonardo Reale >>>>> >>>>> QUIX S.r.l. >>>>> >>>>> Strada Statale 413, 160/162 >>>>> 41019 - Soliera (MO) >>>>> Loc.Appalto - ITALY >>>>> Tel. 0039 059 565388 >>>>> Fax. 0039 059 565322 >>>>> >>>>> [hidden email] >>>>> [hidden email] >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >--------------------------------------------------------------------- >>> - >>> >>>> -- >>>> >>>> >>>> -- >>>> You receive this message as a subscriber of the >>>> >>> [hidden email] mailing list. >>> >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> ObjectWeb mailing lists service home page: >>>> http://www.objectweb.org/wws >>>> >>>> >>> Yes..., the error is "premature-end of file". >>> >>> -- >>> Ing. Leonardo Reale >>> >>> QUIX S.r.l. >>> >>> Strada Statale 413, 160/162 >>> 41019 - Soliera (MO) >>> Loc.Appalto - ITALY >>> Tel. 0039 059 565388 >>> Fax. 0039 059 565322 >>> >>> [hidden email] >>> [hidden email] >>> >>> >>> >>> >>> >> >> >> >> >---------------------------------------------------------------------- >> -- >> >> >> -- >> You receive this message as a subscriber of the >[hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: >> http://www.objectweb.org/wws >> > > >-- >Ing. Leonardo Reale > >QUIX S.r.l. > >Strada Statale 413, 160/162 >41019 - Soliera (MO) >Loc.Appalto - ITALY >Tel. 0039 059 565388 >Fax. 0039 059 565322 > >[hidden email] >[hidden email] > > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
No, i produce an xml as String and write this on stream of the response.
If use a SAX stream to produce the XML how can i return this stream from my servlet? Ryan Puddephatt ha scritto: > So why is it your not doing that way? Why are you using another XPL to get > this? > > Does you servlet use SAX stream to produce the XML? > > Ryan > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > > >> -----Original Message----- >> From: Leonardo Reale [mailto:[hidden email]] >> Sent: 18 December 2006 15:42 >> To: [hidden email] >> Subject: Re: [ops-users] New user xpl problems >> >> This is the xml produced by my servlet: >> >> <activities> >> <activity> >> <id>1</id> >> <projectName>Integrazione xform</projectName> >> <date>2006-11-15</date> >> <description>Integrazione xform</description> >> <location>HQ</location> >> <length>8</length> >> <activityType>Leo</activityType> >> <companyCode>Leo</companyCode> >> </activity> >> </activities> >> >> it's well formed, I'm sure, in fact if I load the instance >> directly by servlet it works fine >> >> <xforms:instance id="activitiesList" >> src="http://localhost:8080/ActivityList" /> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Ryan Puddephatt ha scritto: >> >>> Then either the result of activitylist, or either of the >>> >> XPLs are not >> >>> well formed! >>> >>> Ryan Puddephatt >>> Software Engineer >>> >>> Teleflex Group - IT UK >>> 1 Michaelson Square >>> Livingston >>> West Lothian >>> Scotland >>> EH54 7DP >>> >>> e> [hidden email] >>> t> +44(0)1506 407 110 >>> f> +44(0)1506 407 108 >>> >>> >>> >>> >>> >>>> -----Original Message----- >>>> From: Leonardo Reale [mailto:[hidden email]] >>>> Sent: 18 December 2006 15:29 >>>> To: [hidden email] >>>> Subject: Re: [ops-users] New user xpl problems >>>> >>>> Ryan Puddephatt ha scritto: >>>> >>>> >>>>> So hitting http://localhost:8080/ops/ActivityList in your browser >>>>> produces the XML you expect, but >>>>> http://localhost:8080/ops/ActivityList in the >>>>> >> url-generator does not? >> >>>>> Ryan >>>>> >>>>> Ryan Puddephatt >>>>> Software Engineer >>>>> >>>>> Teleflex Group - IT UK >>>>> 1 Michaelson Square >>>>> Livingston >>>>> West Lothian >>>>> Scotland >>>>> EH54 7DP >>>>> >>>>> e> [hidden email] >>>>> t> +44(0)1506 407 110 >>>>> f> +44(0)1506 407 108 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>> Sent: 18 December 2006 10:26 >>>>>> To: [hidden email] >>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>> >>>>>> If i call my servlet directly by url i see the produded xml. >>>>>> It works correctly. >>>>>> >>>>>> I call thi servlet by an xpl. This xpl is the follow: >>>>>> >>>>>> <p:param name="data" type="output" /> >>>>>> >>>>>> <p:processor name="oxf:url-generator"> >>>>>> <p:input name="config"> >>>>>> <config> >>>>>> <url>http://localhost:8080/ops/ActivityList</url> >>>>>> </config> >>>>>> </p:input> >>>>>> <p:output name="data" id="xml" ref="data"/> </p:processor> >>>>>> >>>>>> In the page-flow i configured the navigation in thi s way: >>>>>> >>>>>> <!-- Views --> >>>>>> <page path-info="/xforms-quixBizApp/activity/list-view" >>>>>> view="pages/ActivityList.xhtml"/> >>>>>> >>>>>> <!-- Models --> >>>>>> <page path-info="/xforms-quixBizApp/activity/list-model" >>>>>> model="searchActivities.xpl" /> >>>>>> <epilogue url="oxf:/config/epilogue.xpl"/> >>>>>> >>>>>> My XHTML page load the datamodel through the xpl url-generator >>>>>> processor. >>>>>> >>>>>> THK >>>>>> >>>>>> >>>>>> Ryan Puddephatt ha scritto: >>>>>> >>>>>> >>>>>> >>>>>>> Ok, is it an XPL? Being called through the page-flow, or >>>>>>> >>>>>>> >>>> some custom >>>> >>>> >>>>>>> servler setup through the web.xml? >>>>>>> >>>>>>> Ryan >>>>>>> >>>>>>> Ryan Puddephatt >>>>>>> Software Engineer >>>>>>> >>>>>>> Teleflex Group - IT UK >>>>>>> 1 Michaelson Square >>>>>>> Livingston >>>>>>> West Lothian >>>>>>> Scotland >>>>>>> EH54 7DP >>>>>>> >>>>>>> e> [hidden email] >>>>>>> t> +44(0)1506 407 110 >>>>>>> f> +44(0)1506 407 108 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>> Sent: 18 December 2006 10:12 >>>>>>>> To: [hidden email] >>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>> >>>>>>>> The servlet is under the same context of presentation server. >>>>>>>> >>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> Leonardo, >>>>>>>>> By servlet do you mean a URL under your OPS application >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> with the >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> path-info of /activityList or do you mean a URL within >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> another context >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> on the same server? >>>>>>>>> >>>>>>>>> Ryan >>>>>>>>> >>>>>>>>> Ryan Puddephatt >>>>>>>>> Software Engineer >>>>>>>>> >>>>>>>>> Teleflex Group - IT UK >>>>>>>>> 1 Michaelson Square >>>>>>>>> Livingston >>>>>>>>> West Lothian >>>>>>>>> Scotland >>>>>>>>> EH54 7DP >>>>>>>>> >>>>>>>>> e> [hidden email] >>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> -----Original Message----- >>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>> Sent: 18 December 2006 08:48 >>>>>>>>>> To: [hidden email] >>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>> >>>>>>>>>> hi, my goal is create new application with a list _page and >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>> edit_page. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> When i call my link: >>>>>>>>>> "/xforms-quixBizApp/list/searchActivities" i want to >>>>>>>>>> >>>>>>>>>> >>>> load my list >>>> >>>> >>>>>>>>>> page using as model "searchActivities.xpl". >>>>>>>>>> >>>>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>> model="searchActivities.xpl" view="pages/ActivityList.xhtml"/> >>>>>>>>>> >>>>>>>>>> The data loading is a Servlet called ActivityList. The >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>> servlet load >>>>>> >>>>>> >>>>>> >>>>>>>>>> from database my data and create an xml on the response >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>> Stream. The >>>>>> >>>>>> >>>>>> >>>>>>>>>> xpl file is: >>>>>>>>>> >>>>>>>>>> <p:processor name="oxf:redirect"> >>>>>>>>>> <p:input name="data"> >>>>>>>>>> <redirect-url> >>>>>>>>>> <path-info>/activityList</path-info> >>>>>>>>>> </redirect-url> >>>>>>>>>> </p:input> >>>>>>>>>> </p:config> >>>>>>>>>> >>>>>>>>>> The problem is: the servlet is not called by the processor. >>>>>>>>>> >>>>>>>>>> Have you any idea to realize my goal? >>>>>>>>>> >>>>>>>>>> Erik Bruchez ha scritto: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> Leonardo, >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> i'm new ops user i'm trying to create a simple XForms based >>>>>>>>>>>> web-application. >>>>>>>>>>>> >>>>>>>>>>>> This web application shows a list of activity >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>> (activityList.xhtml). >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>> In this page there is an XForm, this form is a search >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>> form. The >>>>>> >>>>>> >>>>>> >>>>>>>>>>>> submission tag is the following: >>>>>>>>>>>> >>>>>>>>>>>> <xforms:submission id="searchActivities" method="post" >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>> action="/xforms-quixBizApp/list/searchActivities" >>>> >>>> >>>>>>>>>>>> instance="searchParams"/> >>>>>>>>>>>> >>>>>>>>>>>> The page-flow.xml entry: >>>>>>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>> >>>>>>>>>>>> The xpl file: >>>>>>>>>>>> >>>>>>>>>>>> c >>>>>>>>>>>> This processor (as documentation says) should call >>>>>>>>>>>> >> my servlet >> >>>>>>>>>>>> /activityList but this not append. >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> I would try to avoid the oxf:redirect processor if possible. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> The questions are >>>>>>>>>>>> >>>>>>>>>>>> 1) Can i call a servlet from xpl ? >>>>>>>>>>>> 2) How call the servlet? >>>>>>>>>>>> 3) There is an example in this direction? >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> "Calling a servlet" is a little vague to me. >>>>>>>>>>> >>>>>>>>>>> First, can you describe what you are really trying to >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>> achieve? You >>>>>> >>>>>> >>>>>> >>>>>>>>>>> propose a solution above but it is not clear to me what >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>> problem it >>>>>> >>>>>> >>>>>> >>>>>>>>>>> solves. >>>>>>>>>>> >>>>>>>>>>> If you are just trying to go to "/activityList", why >>>>>>>>>>> >> don't you >> >>>>>>>>>>> directly submit your instance to "/activityList", or do an >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> xforms:load >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> to that same URL? >>>>>>>>>>> >>>>>>>>>>> -Erik >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> >>>>>> >>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> - >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> [hidden email] mailing list. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>> >>>>>>>>>> QUIX S.r.l. >>>>>>>>>> >>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>> >>>>>>>>>> [hidden email] >>>>>>>>>> [hidden email] >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> >>>>>> >>>>>> >>>>>>>> - >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> -- >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> You receive this message as a subscriber of the >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> [hidden email] mailing list. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>> http://www.objectweb.org/wws >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> -- >>>>>>>> Ing. Leonardo Reale >>>>>>>> >>>>>>>> QUIX S.r.l. >>>>>>>> >>>>>>>> Strada Statale 413, 160/162 >>>>>>>> 41019 - Soliera (MO) >>>>>>>> Loc.Appalto - ITALY >>>>>>>> Tel. 0039 059 565388 >>>>>>>> Fax. 0039 059 565322 >>>>>>>> >>>>>>>> [hidden email] >>>>>>>> [hidden email] >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> - >>>>>> >>>>>> >>>>>> >>>>>>> -- >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> You receive this message as a subscriber of the >>>>>>> >>>>>>> >>>>>>> >>>>>> [hidden email] mailing list. >>>>>> >>>>>> >>>>>> >>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>> ObjectWeb mailing lists service home page: >>>>>>> http://www.objectweb.org/wws >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> -- >>>>>> Ing. Leonardo Reale >>>>>> >>>>>> QUIX S.r.l. >>>>>> >>>>>> Strada Statale 413, 160/162 >>>>>> 41019 - Soliera (MO) >>>>>> Loc.Appalto - ITALY >>>>>> Tel. 0039 059 565388 >>>>>> Fax. 0039 059 565322 >>>>>> >>>>>> [hidden email] >>>>>> [hidden email] >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >> --------------------------------------------------------------------- >> >>>> - >>>> >>>> >>>>> -- >>>>> >>>>> >>>>> -- >>>>> You receive this message as a subscriber of the >>>>> >>>>> >>>> [hidden email] mailing list. >>>> >>>> >>>>> To unsubscribe: mailto:[hidden email] >>>>> For general help: mailto:[hidden email]?subject=help >>>>> ObjectWeb mailing lists service home page: >>>>> http://www.objectweb.org/wws >>>>> >>>>> >>>>> >>>> Yes..., the error is "premature-end of file". >>>> >>>> -- >>>> Ing. Leonardo Reale >>>> >>>> QUIX S.r.l. >>>> >>>> Strada Statale 413, 160/162 >>>> 41019 - Soliera (MO) >>>> Loc.Appalto - ITALY >>>> Tel. 0039 059 565388 >>>> Fax. 0039 059 565322 >>>> >>>> [hidden email] >>>> [hidden email] >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >> ---------------------------------------------------------------------- >> >>> -- >>> >>> >>> -- >>> You receive this message as a subscriber of the >>> >> [hidden email] mailing list. >> >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> ObjectWeb mailing lists service home page: >>> http://www.objectweb.org/wws >>> >>> >> -- >> Ing. Leonardo Reale >> >> QUIX S.r.l. >> >> Strada Statale 413, 160/162 >> 41019 - Soliera (MO) >> Loc.Appalto - ITALY >> Tel. 0039 059 565388 >> Fax. 0039 059 565322 >> >> [hidden email] >> [hidden email] >> >> >> >> >> > > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Leonardo,
The way you are doing it is fine, I seem to remember there being a problem with caching of a SAX stream response. Try putting <use-local-cache>false</use-local-cache> in your url-generator config And putting a null-serializer on the output of the url-generator something like <p:processor name="oxf:null-serializer"> <p:input name="data" href="#url-gen-out"/> </p:processor> <p:processor name="oxf:identity"> <p:input name="data" href="#url-gen-out"/> <p:output name="data" ref="data"/> <!-- this is the output of your XPL </p:processor> Hope this helps Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Leonardo Reale [mailto:[hidden email]] >Sent: 18 December 2006 15:54 >To: [hidden email] >Subject: Re: [ops-users] New user xpl problems > >No, i produce an xml as String and write this on stream of the >response. > >If use a SAX stream to produce the XML how can i return this >stream from my servlet? > > >Ryan Puddephatt ha scritto: >> So why is it your not doing that way? Why are you using >another XPL to >> get this? >> >> Does you servlet use SAX stream to produce the XML? >> >> Ryan >> >> Ryan Puddephatt >> Software Engineer >> >> Teleflex Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotland >> EH54 7DP >> >> e> [hidden email] >> t> +44(0)1506 407 110 >> f> +44(0)1506 407 108 >> >> >> >> >>> -----Original Message----- >>> From: Leonardo Reale [mailto:[hidden email]] >>> Sent: 18 December 2006 15:42 >>> To: [hidden email] >>> Subject: Re: [ops-users] New user xpl problems >>> >>> This is the xml produced by my servlet: >>> >>> <activities> >>> <activity> >>> <id>1</id> >>> <projectName>Integrazione xform</projectName> >>> <date>2006-11-15</date> <description>Integrazione >>> xform</description> <location>HQ</location> <length>8</length> >>> <activityType>Leo</activityType> <companyCode>Leo</companyCode> >>> </activity> </activities> >>> >>> it's well formed, I'm sure, in fact if I load the instance directly >>> by servlet it works fine >>> >>> <xforms:instance id="activitiesList" >>> src="http://localhost:8080/ActivityList" /> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> Ryan Puddephatt ha scritto: >>> >>>> Then either the result of activitylist, or either of the >>>> >>> XPLs are not >>> >>>> well formed! >>>> >>>> Ryan Puddephatt >>>> Software Engineer >>>> >>>> Teleflex Group - IT UK >>>> 1 Michaelson Square >>>> Livingston >>>> West Lothian >>>> Scotland >>>> EH54 7DP >>>> >>>> e> [hidden email] >>>> t> +44(0)1506 407 110 >>>> f> +44(0)1506 407 108 >>>> >>>> >>>> >>>> >>>> >>>>> -----Original Message----- >>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>> Sent: 18 December 2006 15:29 >>>>> To: [hidden email] >>>>> Subject: Re: [ops-users] New user xpl problems >>>>> >>>>> Ryan Puddephatt ha scritto: >>>>> >>>>> >>>>>> So hitting http://localhost:8080/ops/ActivityList in >your browser >>>>>> produces the XML you expect, but >>>>>> http://localhost:8080/ops/ActivityList in the >>>>>> >>> url-generator does not? >>> >>>>>> Ryan >>>>>> >>>>>> Ryan Puddephatt >>>>>> Software Engineer >>>>>> >>>>>> Teleflex Group - IT UK >>>>>> 1 Michaelson Square >>>>>> Livingston >>>>>> West Lothian >>>>>> Scotland >>>>>> EH54 7DP >>>>>> >>>>>> e> [hidden email] >>>>>> t> +44(0)1506 407 110 >>>>>> f> +44(0)1506 407 108 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> -----Original Message----- >>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>> Sent: 18 December 2006 10:26 >>>>>>> To: [hidden email] >>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>> >>>>>>> If i call my servlet directly by url i see the produded xml. >>>>>>> It works correctly. >>>>>>> >>>>>>> I call thi servlet by an xpl. This xpl is the follow: >>>>>>> >>>>>>> <p:param name="data" type="output" /> >>>>>>> >>>>>>> <p:processor name="oxf:url-generator"> >>>>>>> <p:input name="config"> >>>>>>> <config> >>>>>>> <url>http://localhost:8080/ops/ActivityList</url> >>>>>>> </config> >>>>>>> </p:input> >>>>>>> <p:output name="data" id="xml" ref="data"/> </p:processor> >>>>>>> >>>>>>> In the page-flow i configured the navigation in thi s way: >>>>>>> >>>>>>> <!-- Views --> >>>>>>> <page path-info="/xforms-quixBizApp/activity/list-view" >>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>> >>>>>>> <!-- Models --> >>>>>>> <page path-info="/xforms-quixBizApp/activity/list-model" >>>>>>> model="searchActivities.xpl" /> >>>>>>> <epilogue url="oxf:/config/epilogue.xpl"/> >>>>>>> >>>>>>> My XHTML page load the datamodel through the xpl url-generator >>>>>>> processor. >>>>>>> >>>>>>> THK >>>>>>> >>>>>>> >>>>>>> Ryan Puddephatt ha scritto: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Ok, is it an XPL? Being called through the page-flow, or >>>>>>>> >>>>>>>> >>>>> some custom >>>>> >>>>> >>>>>>>> servler setup through the web.xml? >>>>>>>> >>>>>>>> Ryan >>>>>>>> >>>>>>>> Ryan Puddephatt >>>>>>>> Software Engineer >>>>>>>> >>>>>>>> Teleflex Group - IT UK >>>>>>>> 1 Michaelson Square >>>>>>>> Livingston >>>>>>>> West Lothian >>>>>>>> Scotland >>>>>>>> EH54 7DP >>>>>>>> >>>>>>>> e> [hidden email] >>>>>>>> t> +44(0)1506 407 110 >>>>>>>> f> +44(0)1506 407 108 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> -----Original Message----- >>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>> Sent: 18 December 2006 10:12 >>>>>>>>> To: [hidden email] >>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>> >>>>>>>>> The servlet is under the same context of presentation server. >>>>>>>>> >>>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> Leonardo, >>>>>>>>>> By servlet do you mean a URL under your OPS application >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> with the >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> path-info of /activityList or do you mean a URL within >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> another context >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> on the same server? >>>>>>>>>> >>>>>>>>>> Ryan >>>>>>>>>> >>>>>>>>>> Ryan Puddephatt >>>>>>>>>> Software Engineer >>>>>>>>>> >>>>>>>>>> Teleflex Group - IT UK >>>>>>>>>> 1 Michaelson Square >>>>>>>>>> Livingston >>>>>>>>>> West Lothian >>>>>>>>>> Scotland >>>>>>>>>> EH54 7DP >>>>>>>>>> >>>>>>>>>> e> [hidden email] >>>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> -----Original Message----- >>>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>>> Sent: 18 December 2006 08:48 >>>>>>>>>>> To: [hidden email] >>>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>>> >>>>>>>>>>> hi, my goal is create new application with a list _page and >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>> edit_page. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>> When i call my link: >>>>>>>>>>> "/xforms-quixBizApp/list/searchActivities" i want to >>>>>>>>>>> >>>>>>>>>>> >>>>> load my list >>>>> >>>>> >>>>>>>>>>> page using as model "searchActivities.xpl". >>>>>>>>>>> >>>>>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>> >>>>>>>>>>> The data loading is a Servlet called ActivityList. The >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>> servlet load >>>>>>> >>>>>>> >>>>>>> >>>>>>>>>>> from database my data and create an xml on the response >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>> Stream. The >>>>>>> >>>>>>> >>>>>>> >>>>>>>>>>> xpl file is: >>>>>>>>>>> >>>>>>>>>>> <p:processor name="oxf:redirect"> >>>>>>>>>>> <p:input name="data"> >>>>>>>>>>> <redirect-url> >>>>>>>>>>> <path-info>/activityList</path-info> >>>>>>>>>>> </redirect-url> >>>>>>>>>>> </p:input> >>>>>>>>>>> </p:config> >>>>>>>>>>> >>>>>>>>>>> The problem is: the servlet is not called by the processor. >>>>>>>>>>> >>>>>>>>>>> Have you any idea to realize my goal? >>>>>>>>>>> >>>>>>>>>>> Erik Bruchez ha scritto: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> Leonardo, >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> i'm new ops user i'm trying to create a simple >XForms based >>>>>>>>>>>>> web-application. >>>>>>>>>>>>> >>>>>>>>>>>>> This web application shows a list of activity >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>> (activityList.xhtml). >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>>> In this page there is an XForm, this form is a search >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>> form. The >>>>>>> >>>>>>> >>>>>>> >>>>>>>>>>>>> submission tag is the following: >>>>>>>>>>>>> >>>>>>>>>>>>> <xforms:submission id="searchActivities" method="post" >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>> action="/xforms-quixBizApp/list/searchActivities" >>>>> >>>>> >>>>>>>>>>>>> instance="searchParams"/> >>>>>>>>>>>>> >>>>>>>>>>>>> The page-flow.xml entry: >>>>>>>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>>> >>>>>>>>>>>>> The xpl file: >>>>>>>>>>>>> >>>>>>>>>>>>> c >>>>>>>>>>>>> This processor (as documentation says) should call >>>>>>>>>>>>> >>> my servlet >>> >>>>>>>>>>>>> /activityList but this not append. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> I would try to avoid the oxf:redirect processor if >possible. >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> The questions are >>>>>>>>>>>>> >>>>>>>>>>>>> 1) Can i call a servlet from xpl ? >>>>>>>>>>>>> 2) How call the servlet? >>>>>>>>>>>>> 3) There is an example in this direction? >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> "Calling a servlet" is a little vague to me. >>>>>>>>>>>> >>>>>>>>>>>> First, can you describe what you are really trying to >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>> achieve? You >>>>>>> >>>>>>> >>>>>>> >>>>>>>>>>>> propose a solution above but it is not clear to me what >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>> problem it >>>>>>> >>>>>>> >>>>>>> >>>>>>>>>>>> solves. >>>>>>>>>>>> >>>>>>>>>>>> If you are just trying to go to "/activityList", why >>>>>>>>>>>> >>> don't you >>> >>>>>>>>>>>> directly submit your instance to "/activityList", or do an >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> xforms:load >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> to that same URL? >>>>>>>>>>>> >>>>>>>>>>>> -Erik >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> >>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>> - >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> [hidden email] mailing list. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>>> >>>>>>>>>>> QUIX S.r.l. >>>>>>>>>>> >>>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>>> >>>>>>>>>>> [hidden email] >>>>>>>>>>> [hidden email] >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> >>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>> - >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> [hidden email] mailing list. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> -- >>>>>>>>> Ing. Leonardo Reale >>>>>>>>> >>>>>>>>> QUIX S.r.l. >>>>>>>>> >>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>> 41019 - Soliera (MO) >>>>>>>>> Loc.Appalto - ITALY >>>>>>>>> Tel. 0039 059 565388 >>>>>>>>> Fax. 0039 059 565322 >>>>>>>>> >>>>>>>>> [hidden email] >>>>>>>>> [hidden email] >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> >>>>> >>>>>>> - >>>>>>> >>>>>>> >>>>>>> >>>>>>>> -- >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> You receive this message as a subscriber of the >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> [hidden email] mailing list. >>>>>>> >>>>>>> >>>>>>> >>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>> http://www.objectweb.org/wws >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> -- >>>>>>> Ing. Leonardo Reale >>>>>>> >>>>>>> QUIX S.r.l. >>>>>>> >>>>>>> Strada Statale 413, 160/162 >>>>>>> 41019 - Soliera (MO) >>>>>>> Loc.Appalto - ITALY >>>>>>> Tel. 0039 059 565388 >>>>>>> Fax. 0039 059 565322 >>>>>>> >>>>>>> [hidden email] >>>>>>> [hidden email] >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> - >>>>> >>>>> >>>>>> -- >>>>>> >>>>>> >>>>>> -- >>>>>> You receive this message as a subscriber of the >>>>>> >>>>>> >>>>> [hidden email] mailing list. >>>>> >>>>> >>>>>> To unsubscribe: mailto:[hidden email] >>>>>> For general help: mailto:[hidden email]?subject=help >>>>>> ObjectWeb mailing lists service home page: >>>>>> http://www.objectweb.org/wws >>>>>> >>>>>> >>>>>> >>>>> Yes..., the error is "premature-end of file". >>>>> >>>>> -- >>>>> Ing. Leonardo Reale >>>>> >>>>> QUIX S.r.l. >>>>> >>>>> Strada Statale 413, 160/162 >>>>> 41019 - Soliera (MO) >>>>> Loc.Appalto - ITALY >>>>> Tel. 0039 059 565388 >>>>> Fax. 0039 059 565322 >>>>> >>>>> [hidden email] >>>>> [hidden email] >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >--------------------------------------------------------------------- >>> - >>> >>>> -- >>>> >>>> >>>> -- >>>> You receive this message as a subscriber of the >>>> >>> [hidden email] mailing list. >>> >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> ObjectWeb mailing lists service home page: >>>> http://www.objectweb.org/wws >>>> >>>> >>> -- >>> Ing. Leonardo Reale >>> >>> QUIX S.r.l. >>> >>> Strada Statale 413, 160/162 >>> 41019 - Soliera (MO) >>> Loc.Appalto - ITALY >>> Tel. 0039 059 565388 >>> Fax. 0039 059 565322 >>> >>> [hidden email] >>> [hidden email] >>> >>> >>> >>> >>> >> >> >> >> >---------------------------------------------------------------------- >> -- >> >> >> -- >> You receive this message as a subscriber of the >[hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: >> http://www.objectweb.org/wws >> > > >-- >Ing. Leonardo Reale > >QUIX S.r.l. > >Strada Statale 413, 160/162 >41019 - Soliera (MO) >Loc.Appalto - ITALY >Tel. 0039 059 565388 >Fax. 0039 059 565322 > >[hidden email] >[hidden email] > > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi, i want to produce the XML in my servlet as Sax stream, anyone have
an example that works in this way? My problem is: in which way i return this stream from my servlet? Best reguards Leonardo Ryan Puddephatt ha scritto: > Leonardo, > The way you are doing it is fine, I seem to remember there being a > problem with caching of a SAX stream response. > > Try putting <use-local-cache>false</use-local-cache> in your url-generator > config > > And putting a null-serializer on the output of the url-generator something > like > > <p:processor name="oxf:null-serializer"> > <p:input name="data" href="#url-gen-out"/> > </p:processor> > > <p:processor name="oxf:identity"> > <p:input name="data" href="#url-gen-out"/> > <p:output name="data" ref="data"/> <!-- this is the output of your XPL > </p:processor> > > Hope this helps > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > > >> -----Original Message----- >> From: Leonardo Reale [mailto:[hidden email]] >> Sent: 18 December 2006 15:54 >> To: [hidden email] >> Subject: Re: [ops-users] New user xpl problems >> >> No, i produce an xml as String and write this on stream of the >> response. >> >> If use a SAX stream to produce the XML how can i return this >> stream from my servlet? >> >> >> Ryan Puddephatt ha scritto: >> >>> So why is it your not doing that way? Why are you using >>> >> another XPL to >> >>> get this? >>> >>> Does you servlet use SAX stream to produce the XML? >>> >>> Ryan >>> >>> Ryan Puddephatt >>> Software Engineer >>> >>> Teleflex Group - IT UK >>> 1 Michaelson Square >>> Livingston >>> West Lothian >>> Scotland >>> EH54 7DP >>> >>> e> [hidden email] >>> t> +44(0)1506 407 110 >>> f> +44(0)1506 407 108 >>> >>> >>> >>> >>> >>>> -----Original Message----- >>>> From: Leonardo Reale [mailto:[hidden email]] >>>> Sent: 18 December 2006 15:42 >>>> To: [hidden email] >>>> Subject: Re: [ops-users] New user xpl problems >>>> >>>> This is the xml produced by my servlet: >>>> >>>> <activities> >>>> <activity> >>>> <id>1</id> >>>> <projectName>Integrazione xform</projectName> >>>> <date>2006-11-15</date> <description>Integrazione >>>> xform</description> <location>HQ</location> <length>8</length> >>>> <activityType>Leo</activityType> <companyCode>Leo</companyCode> >>>> </activity> </activities> >>>> >>>> it's well formed, I'm sure, in fact if I load the instance directly >>>> by servlet it works fine >>>> >>>> <xforms:instance id="activitiesList" >>>> src="http://localhost:8080/ActivityList" /> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Ryan Puddephatt ha scritto: >>>> >>>> >>>>> Then either the result of activitylist, or either of the >>>>> >>>>> >>>> XPLs are not >>>> >>>> >>>>> well formed! >>>>> >>>>> Ryan Puddephatt >>>>> Software Engineer >>>>> >>>>> Teleflex Group - IT UK >>>>> 1 Michaelson Square >>>>> Livingston >>>>> West Lothian >>>>> Scotland >>>>> EH54 7DP >>>>> >>>>> e> [hidden email] >>>>> t> +44(0)1506 407 110 >>>>> f> +44(0)1506 407 108 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>> Sent: 18 December 2006 15:29 >>>>>> To: [hidden email] >>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>> >>>>>> Ryan Puddephatt ha scritto: >>>>>> >>>>>> >>>>>> >>>>>>> So hitting http://localhost:8080/ops/ActivityList in >>>>>>> >> your browser >> >>>>>>> produces the XML you expect, but >>>>>>> http://localhost:8080/ops/ActivityList in the >>>>>>> >>>>>>> >>>> url-generator does not? >>>> >>>> >>>>>>> Ryan >>>>>>> >>>>>>> Ryan Puddephatt >>>>>>> Software Engineer >>>>>>> >>>>>>> Teleflex Group - IT UK >>>>>>> 1 Michaelson Square >>>>>>> Livingston >>>>>>> West Lothian >>>>>>> Scotland >>>>>>> EH54 7DP >>>>>>> >>>>>>> e> [hidden email] >>>>>>> t> +44(0)1506 407 110 >>>>>>> f> +44(0)1506 407 108 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>> Sent: 18 December 2006 10:26 >>>>>>>> To: [hidden email] >>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>> >>>>>>>> If i call my servlet directly by url i see the produded xml. >>>>>>>> It works correctly. >>>>>>>> >>>>>>>> I call thi servlet by an xpl. This xpl is the follow: >>>>>>>> >>>>>>>> <p:param name="data" type="output" /> >>>>>>>> >>>>>>>> <p:processor name="oxf:url-generator"> >>>>>>>> <p:input name="config"> >>>>>>>> <config> >>>>>>>> <url>http://localhost:8080/ops/ActivityList</url> >>>>>>>> </config> >>>>>>>> </p:input> >>>>>>>> <p:output name="data" id="xml" ref="data"/> </p:processor> >>>>>>>> >>>>>>>> In the page-flow i configured the navigation in thi s way: >>>>>>>> >>>>>>>> <!-- Views --> >>>>>>>> <page path-info="/xforms-quixBizApp/activity/list-view" >>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>> >>>>>>>> <!-- Models --> >>>>>>>> <page path-info="/xforms-quixBizApp/activity/list-model" >>>>>>>> model="searchActivities.xpl" /> >>>>>>>> <epilogue url="oxf:/config/epilogue.xpl"/> >>>>>>>> >>>>>>>> My XHTML page load the datamodel through the xpl url-generator >>>>>>>> processor. >>>>>>>> >>>>>>>> THK >>>>>>>> >>>>>>>> >>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> Ok, is it an XPL? Being called through the page-flow, or >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>> some custom >>>>>> >>>>>> >>>>>> >>>>>>>>> servler setup through the web.xml? >>>>>>>>> >>>>>>>>> Ryan >>>>>>>>> >>>>>>>>> Ryan Puddephatt >>>>>>>>> Software Engineer >>>>>>>>> >>>>>>>>> Teleflex Group - IT UK >>>>>>>>> 1 Michaelson Square >>>>>>>>> Livingston >>>>>>>>> West Lothian >>>>>>>>> Scotland >>>>>>>>> EH54 7DP >>>>>>>>> >>>>>>>>> e> [hidden email] >>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> -----Original Message----- >>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>> Sent: 18 December 2006 10:12 >>>>>>>>>> To: [hidden email] >>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>> >>>>>>>>>> The servlet is under the same context of presentation server. >>>>>>>>>> >>>>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> Leonardo, >>>>>>>>>>> By servlet do you mean a URL under your OPS application >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> with the >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> path-info of /activityList or do you mean a URL within >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> another context >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> on the same server? >>>>>>>>>>> >>>>>>>>>>> Ryan >>>>>>>>>>> >>>>>>>>>>> Ryan Puddephatt >>>>>>>>>>> Software Engineer >>>>>>>>>>> >>>>>>>>>>> Teleflex Group - IT UK >>>>>>>>>>> 1 Michaelson Square >>>>>>>>>>> Livingston >>>>>>>>>>> West Lothian >>>>>>>>>>> Scotland >>>>>>>>>>> EH54 7DP >>>>>>>>>>> >>>>>>>>>>> e> [hidden email] >>>>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> -----Original Message----- >>>>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>>>> Sent: 18 December 2006 08:48 >>>>>>>>>>>> To: [hidden email] >>>>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>>>> >>>>>>>>>>>> hi, my goal is create new application with a list _page and >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>> edit_page. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>> When i call my link: >>>>>>>>>>>> "/xforms-quixBizApp/list/searchActivities" i want to >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>> load my list >>>>>> >>>>>> >>>>>> >>>>>>>>>>>> page using as model "searchActivities.xpl". >>>>>>>>>>>> >>>>>>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>> >>>>>>>>>>>> The data loading is a Servlet called ActivityList. The >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>> servlet load >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>>> from database my data and create an xml on the response >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>> Stream. The >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>>> xpl file is: >>>>>>>>>>>> >>>>>>>>>>>> <p:processor name="oxf:redirect"> >>>>>>>>>>>> <p:input name="data"> >>>>>>>>>>>> <redirect-url> >>>>>>>>>>>> <path-info>/activityList</path-info> >>>>>>>>>>>> </redirect-url> >>>>>>>>>>>> </p:input> >>>>>>>>>>>> </p:config> >>>>>>>>>>>> >>>>>>>>>>>> The problem is: the servlet is not called by the processor. >>>>>>>>>>>> >>>>>>>>>>>> Have you any idea to realize my goal? >>>>>>>>>>>> >>>>>>>>>>>> Erik Bruchez ha scritto: >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> Leonardo, >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> i'm new ops user i'm trying to create a simple >>>>>>>>>>>>>> >> XForms based >> >>>>>>>>>>>>>> web-application. >>>>>>>>>>>>>> >>>>>>>>>>>>>> This web application shows a list of activity >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>> (activityList.xhtml). >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>>> In this page there is an XForm, this form is a search >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>> form. The >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>>>>> submission tag is the following: >>>>>>>>>>>>>> >>>>>>>>>>>>>> <xforms:submission id="searchActivities" method="post" >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>> action="/xforms-quixBizApp/list/searchActivities" >>>>>> >>>>>> >>>>>> >>>>>>>>>>>>>> instance="searchParams"/> >>>>>>>>>>>>>> >>>>>>>>>>>>>> The page-flow.xml entry: >>>>>>>>>>>>>> <page path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>>>> >>>>>>>>>>>>>> The xpl file: >>>>>>>>>>>>>> >>>>>>>>>>>>>> c >>>>>>>>>>>>>> This processor (as documentation says) should call >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>> my servlet >>>> >>>> >>>>>>>>>>>>>> /activityList but this not append. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> I would try to avoid the oxf:redirect processor if >>>>>>>>>>>>> >> possible. >> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> The questions are >>>>>>>>>>>>>> >>>>>>>>>>>>>> 1) Can i call a servlet from xpl ? >>>>>>>>>>>>>> 2) How call the servlet? >>>>>>>>>>>>>> 3) There is an example in this direction? >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> "Calling a servlet" is a little vague to me. >>>>>>>>>>>>> >>>>>>>>>>>>> First, can you describe what you are really trying to >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>> achieve? You >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>>>> propose a solution above but it is not clear to me what >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>> problem it >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>>>> solves. >>>>>>>>>>>>> >>>>>>>>>>>>> If you are just trying to go to "/activityList", why >>>>>>>>>>>>> >>>>>>>>>>>>> >>>> don't you >>>> >>>> >>>>>>>>>>>>> directly submit your instance to "/activityList", or do an >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> xforms:load >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> to that same URL? >>>>>>>>>>>>> >>>>>>>>>>>>> -Erik >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> >>>>>> >>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>> - >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> [hidden email] mailing list. >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>>>> >>>>>>>>>>>> QUIX S.r.l. >>>>>>>>>>>> >>>>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>>>> >>>>>>>>>>>> [hidden email] >>>>>>>>>>>> [hidden email] >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> >>>>>> >>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> - >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> [hidden email] mailing list. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>> >>>>>>>>>> QUIX S.r.l. >>>>>>>>>> >>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>> >>>>>>>>>> [hidden email] >>>>>>>>>> [hidden email] >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> >>>>>> >>>>>> >>>>>>>> - >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> -- >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> You receive this message as a subscriber of the >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> [hidden email] mailing list. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>> http://www.objectweb.org/wws >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> -- >>>>>>>> Ing. Leonardo Reale >>>>>>>> >>>>>>>> QUIX S.r.l. >>>>>>>> >>>>>>>> Strada Statale 413, 160/162 >>>>>>>> 41019 - Soliera (MO) >>>>>>>> Loc.Appalto - ITALY >>>>>>>> Tel. 0039 059 565388 >>>>>>>> Fax. 0039 059 565322 >>>>>>>> >>>>>>>> [hidden email] >>>>>>>> [hidden email] >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> - >>>>>> >>>>>> >>>>>> >>>>>>> -- >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> You receive this message as a subscriber of the >>>>>>> >>>>>>> >>>>>>> >>>>>> [hidden email] mailing list. >>>>>> >>>>>> >>>>>> >>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>> ObjectWeb mailing lists service home page: >>>>>>> http://www.objectweb.org/wws >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> Yes..., the error is "premature-end of file". >>>>>> >>>>>> -- >>>>>> Ing. Leonardo Reale >>>>>> >>>>>> QUIX S.r.l. >>>>>> >>>>>> Strada Statale 413, 160/162 >>>>>> 41019 - Soliera (MO) >>>>>> Loc.Appalto - ITALY >>>>>> Tel. 0039 059 565388 >>>>>> Fax. 0039 059 565322 >>>>>> >>>>>> [hidden email] >>>>>> [hidden email] >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >> --------------------------------------------------------------------- >> >>>> - >>>> >>>> >>>>> -- >>>>> >>>>> >>>>> -- >>>>> You receive this message as a subscriber of the >>>>> >>>>> >>>> [hidden email] mailing list. >>>> >>>> >>>>> To unsubscribe: mailto:[hidden email] >>>>> For general help: mailto:[hidden email]?subject=help >>>>> ObjectWeb mailing lists service home page: >>>>> http://www.objectweb.org/wws >>>>> >>>>> >>>>> >>>> -- >>>> Ing. Leonardo Reale >>>> >>>> QUIX S.r.l. >>>> >>>> Strada Statale 413, 160/162 >>>> 41019 - Soliera (MO) >>>> Loc.Appalto - ITALY >>>> Tel. 0039 059 565388 >>>> Fax. 0039 059 565322 >>>> >>>> [hidden email] >>>> [hidden email] >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >> ---------------------------------------------------------------------- >> >>> -- >>> >>> >>> -- >>> You receive this message as a subscriber of the >>> >> [hidden email] mailing list. >> >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> ObjectWeb mailing lists service home page: >>> http://www.objectweb.org/wws >>> >>> >> -- >> Ing. Leonardo Reale >> >> QUIX S.r.l. >> >> Strada Statale 413, 160/162 >> 41019 - Soliera (MO) >> Loc.Appalto - ITALY >> Tel. 0039 059 565388 >> Fax. 0039 059 565322 >> >> [hidden email] >> [hidden email] >> >> >> >> >> > > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Here is a quickstart in sax, http://www.saxproject.org/quickstart.html or
try looking at the OPS source code Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Leonardo Reale [mailto:[hidden email]] >Sent: 18 December 2006 16:17 >To: [hidden email] >Subject: Re: [ops-users] New user xpl problems > >Hi, i want to produce the XML in my servlet as Sax stream, >anyone have an example that works in this way? > >My problem is: in which way i return this stream from my servlet? > >Best reguards >Leonardo > >Ryan Puddephatt ha scritto: >> Leonardo, >> The way you are doing it is fine, I seem to remember >there being a >> problem with caching of a SAX stream response. >> >> Try putting <use-local-cache>false</use-local-cache> in your >> url-generator config >> >> And putting a null-serializer on the output of the url-generator >> something like >> >> <p:processor name="oxf:null-serializer"> >> <p:input name="data" href="#url-gen-out"/> </p:processor> >> >> <p:processor name="oxf:identity"> >> <p:input name="data" href="#url-gen-out"/> >> <p:output name="data" ref="data"/> <!-- this is the >output of your XPL >> </p:processor> >> >> Hope this helps >> >> Ryan Puddephatt >> Software Engineer >> >> Teleflex Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotland >> EH54 7DP >> >> e> [hidden email] >> t> +44(0)1506 407 110 >> f> +44(0)1506 407 108 >> >> >> >> >>> -----Original Message----- >>> From: Leonardo Reale [mailto:[hidden email]] >>> Sent: 18 December 2006 15:54 >>> To: [hidden email] >>> Subject: Re: [ops-users] New user xpl problems >>> >>> No, i produce an xml as String and write this on stream of the >>> response. >>> >>> If use a SAX stream to produce the XML how can i return this stream >>> from my servlet? >>> >>> >>> Ryan Puddephatt ha scritto: >>> >>>> So why is it your not doing that way? Why are you using >>>> >>> another XPL to >>> >>>> get this? >>>> >>>> Does you servlet use SAX stream to produce the XML? >>>> >>>> Ryan >>>> >>>> Ryan Puddephatt >>>> Software Engineer >>>> >>>> Teleflex Group - IT UK >>>> 1 Michaelson Square >>>> Livingston >>>> West Lothian >>>> Scotland >>>> EH54 7DP >>>> >>>> e> [hidden email] >>>> t> +44(0)1506 407 110 >>>> f> +44(0)1506 407 108 >>>> >>>> >>>> >>>> >>>> >>>>> -----Original Message----- >>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>> Sent: 18 December 2006 15:42 >>>>> To: [hidden email] >>>>> Subject: Re: [ops-users] New user xpl problems >>>>> >>>>> This is the xml produced by my servlet: >>>>> >>>>> <activities> >>>>> <activity> >>>>> <id>1</id> >>>>> <projectName>Integrazione xform</projectName> >>>>> <date>2006-11-15</date> <description>Integrazione >>>>> xform</description> <location>HQ</location> <length>8</length> >>>>> <activityType>Leo</activityType> <companyCode>Leo</companyCode> >>>>> </activity> </activities> >>>>> >>>>> it's well formed, I'm sure, in fact if I load the >instance directly >>>>> by servlet it works fine >>>>> >>>>> <xforms:instance id="activitiesList" >>>>> src="http://localhost:8080/ActivityList" /> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Ryan Puddephatt ha scritto: >>>>> >>>>> >>>>>> Then either the result of activitylist, or either of the >>>>>> >>>>>> >>>>> XPLs are not >>>>> >>>>> >>>>>> well formed! >>>>>> >>>>>> Ryan Puddephatt >>>>>> Software Engineer >>>>>> >>>>>> Teleflex Group - IT UK >>>>>> 1 Michaelson Square >>>>>> Livingston >>>>>> West Lothian >>>>>> Scotland >>>>>> EH54 7DP >>>>>> >>>>>> e> [hidden email] >>>>>> t> +44(0)1506 407 110 >>>>>> f> +44(0)1506 407 108 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> -----Original Message----- >>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>> Sent: 18 December 2006 15:29 >>>>>>> To: [hidden email] >>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>> >>>>>>> Ryan Puddephatt ha scritto: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> So hitting http://localhost:8080/ops/ActivityList in >>>>>>>> >>> your browser >>> >>>>>>>> produces the XML you expect, but >>>>>>>> http://localhost:8080/ops/ActivityList in the >>>>>>>> >>>>>>>> >>>>> url-generator does not? >>>>> >>>>> >>>>>>>> Ryan >>>>>>>> >>>>>>>> Ryan Puddephatt >>>>>>>> Software Engineer >>>>>>>> >>>>>>>> Teleflex Group - IT UK >>>>>>>> 1 Michaelson Square >>>>>>>> Livingston >>>>>>>> West Lothian >>>>>>>> Scotland >>>>>>>> EH54 7DP >>>>>>>> >>>>>>>> e> [hidden email] >>>>>>>> t> +44(0)1506 407 110 >>>>>>>> f> +44(0)1506 407 108 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> -----Original Message----- >>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>> Sent: 18 December 2006 10:26 >>>>>>>>> To: [hidden email] >>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>> >>>>>>>>> If i call my servlet directly by url i see the produded xml. >>>>>>>>> It works correctly. >>>>>>>>> >>>>>>>>> I call thi servlet by an xpl. This xpl is the follow: >>>>>>>>> >>>>>>>>> <p:param name="data" type="output" /> >>>>>>>>> >>>>>>>>> <p:processor name="oxf:url-generator"> >>>>>>>>> <p:input name="config"> >>>>>>>>> <config> >>>>>>>>> <url>http://localhost:8080/ops/ActivityList</url> >>>>>>>>> </config> >>>>>>>>> </p:input> >>>>>>>>> <p:output name="data" id="xml" ref="data"/> </p:processor> >>>>>>>>> >>>>>>>>> In the page-flow i configured the navigation in thi s way: >>>>>>>>> >>>>>>>>> <!-- Views --> >>>>>>>>> <page path-info="/xforms-quixBizApp/activity/list-view" >>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>> >>>>>>>>> <!-- Models --> >>>>>>>>> <page path-info="/xforms-quixBizApp/activity/list-model" >>>>>>>>> model="searchActivities.xpl" /> >>>>>>>>> <epilogue url="oxf:/config/epilogue.xpl"/> >>>>>>>>> >>>>>>>>> My XHTML page load the datamodel through the xpl >url-generator >>>>>>>>> processor. >>>>>>>>> >>>>>>>>> THK >>>>>>>>> >>>>>>>>> >>>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> Ok, is it an XPL? Being called through the page-flow, or >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>> some custom >>>>>>> >>>>>>> >>>>>>> >>>>>>>>>> servler setup through the web.xml? >>>>>>>>>> >>>>>>>>>> Ryan >>>>>>>>>> >>>>>>>>>> Ryan Puddephatt >>>>>>>>>> Software Engineer >>>>>>>>>> >>>>>>>>>> Teleflex Group - IT UK >>>>>>>>>> 1 Michaelson Square >>>>>>>>>> Livingston >>>>>>>>>> West Lothian >>>>>>>>>> Scotland >>>>>>>>>> EH54 7DP >>>>>>>>>> >>>>>>>>>> e> [hidden email] >>>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> -----Original Message----- >>>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>>> Sent: 18 December 2006 10:12 >>>>>>>>>>> To: [hidden email] >>>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>>> >>>>>>>>>>> The servlet is under the same context of >presentation server. >>>>>>>>>>> >>>>>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> Leonardo, >>>>>>>>>>>> By servlet do you mean a URL under your OPS application >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> with the >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> path-info of /activityList or do you mean a URL within >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> another context >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> on the same server? >>>>>>>>>>>> >>>>>>>>>>>> Ryan >>>>>>>>>>>> >>>>>>>>>>>> Ryan Puddephatt >>>>>>>>>>>> Software Engineer >>>>>>>>>>>> >>>>>>>>>>>> Teleflex Group - IT UK >>>>>>>>>>>> 1 Michaelson Square >>>>>>>>>>>> Livingston >>>>>>>>>>>> West Lothian >>>>>>>>>>>> Scotland >>>>>>>>>>>> EH54 7DP >>>>>>>>>>>> >>>>>>>>>>>> e> [hidden email] >>>>>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> -----Original Message----- >>>>>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>>>>> Sent: 18 December 2006 08:48 >>>>>>>>>>>>> To: [hidden email] >>>>>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>>>>> >>>>>>>>>>>>> hi, my goal is create new application with a list >_page and >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>> edit_page. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>>> When i call my link: >>>>>>>>>>>>> "/xforms-quixBizApp/list/searchActivities" i want to >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>> load my list >>>>>>> >>>>>>> >>>>>>> >>>>>>>>>>>>> page using as model "searchActivities.xpl". >>>>>>>>>>>>> >>>>>>>>>>>>> <page >path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>>> >>>>>>>>>>>>> The data loading is a Servlet called ActivityList. The >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>> servlet load >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>>>> from database my data and create an xml on the response >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>> Stream. The >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>>>> xpl file is: >>>>>>>>>>>>> >>>>>>>>>>>>> <p:processor name="oxf:redirect"> >>>>>>>>>>>>> <p:input name="data"> >>>>>>>>>>>>> <redirect-url> >>>>>>>>>>>>> <path-info>/activityList</path-info> >>>>>>>>>>>>> </redirect-url> >>>>>>>>>>>>> </p:input> >>>>>>>>>>>>> </p:config> >>>>>>>>>>>>> >>>>>>>>>>>>> The problem is: the servlet is not called by the >processor. >>>>>>>>>>>>> >>>>>>>>>>>>> Have you any idea to realize my goal? >>>>>>>>>>>>> >>>>>>>>>>>>> Erik Bruchez ha scritto: >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> Leonardo, >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>> i'm new ops user i'm trying to create a simple >>>>>>>>>>>>>>> >>> XForms based >>> >>>>>>>>>>>>>>> web-application. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> This web application shows a list of activity >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>> (activityList.xhtml). >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>>> In this page there is an XForm, this form is a search >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>> form. The >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>>>>>> submission tag is the following: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> <xforms:submission id="searchActivities" method="post" >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>> action="/xforms-quixBizApp/list/searchActivities" >>>>>>> >>>>>>> >>>>>>> >>>>>>>>>>>>>>> instance="searchParams"/> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> The page-flow.xml entry: >>>>>>>>>>>>>>> <page >path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> The xpl file: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> c >>>>>>>>>>>>>>> This processor (as documentation says) should call >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>> my servlet >>>>> >>>>> >>>>>>>>>>>>>>> /activityList but this not append. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> I would try to avoid the oxf:redirect processor if >>>>>>>>>>>>>> >>> possible. >>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>> The questions are >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> 1) Can i call a servlet from xpl ? >>>>>>>>>>>>>>> 2) How call the servlet? >>>>>>>>>>>>>>> 3) There is an example in this direction? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> "Calling a servlet" is a little vague to me. >>>>>>>>>>>>>> >>>>>>>>>>>>>> First, can you describe what you are really trying to >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>> achieve? You >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>>>>> propose a solution above but it is not clear to me what >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>> problem it >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>>>>> solves. >>>>>>>>>>>>>> >>>>>>>>>>>>>> If you are just trying to go to "/activityList", why >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>> don't you >>>>> >>>>> >>>>>>>>>>>>>> directly submit your instance to >"/activityList", or do an >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> xforms:load >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> to that same URL? >>>>>>>>>>>>>> >>>>>>>>>>>>>> -Erik >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> >>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>>> - >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> [hidden email] mailing list. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> To unsubscribe: >mailto:[hidden email] >>>>>>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>>>>> >>>>>>>>>>>>> QUIX S.r.l. >>>>>>>>>>>>> >>>>>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>>>>> >>>>>>>>>>>>> [hidden email] >>>>>>>>>>>>> [hidden email] >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> >>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>> - >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> [hidden email] mailing list. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>>> >>>>>>>>>>> QUIX S.r.l. >>>>>>>>>>> >>>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>>> >>>>>>>>>>> [hidden email] >>>>>>>>>>> [hidden email] >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> >>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>> - >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> [hidden email] mailing list. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> -- >>>>>>>>> Ing. Leonardo Reale >>>>>>>>> >>>>>>>>> QUIX S.r.l. >>>>>>>>> >>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>> 41019 - Soliera (MO) >>>>>>>>> Loc.Appalto - ITALY >>>>>>>>> Tel. 0039 059 565388 >>>>>>>>> Fax. 0039 059 565322 >>>>>>>>> >>>>>>>>> [hidden email] >>>>>>>>> [hidden email] >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> >>>>> >>>>>>> - >>>>>>> >>>>>>> >>>>>>> >>>>>>>> -- >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> You receive this message as a subscriber of the >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> [hidden email] mailing list. >>>>>>> >>>>>>> >>>>>>> >>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>> http://www.objectweb.org/wws >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> Yes..., the error is "premature-end of file". >>>>>>> >>>>>>> -- >>>>>>> Ing. Leonardo Reale >>>>>>> >>>>>>> QUIX S.r.l. >>>>>>> >>>>>>> Strada Statale 413, 160/162 >>>>>>> 41019 - Soliera (MO) >>>>>>> Loc.Appalto - ITALY >>>>>>> Tel. 0039 059 565388 >>>>>>> Fax. 0039 059 565322 >>>>>>> >>>>>>> [hidden email] >>>>>>> [hidden email] >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>> >--------------------------------------------------------------------- >>> >>>>> - >>>>> >>>>> >>>>>> -- >>>>>> >>>>>> >>>>>> -- >>>>>> You receive this message as a subscriber of the >>>>>> >>>>>> >>>>> [hidden email] mailing list. >>>>> >>>>> >>>>>> To unsubscribe: mailto:[hidden email] >>>>>> For general help: mailto:[hidden email]?subject=help >>>>>> ObjectWeb mailing lists service home page: >>>>>> http://www.objectweb.org/wws >>>>>> >>>>>> >>>>>> >>>>> -- >>>>> Ing. Leonardo Reale >>>>> >>>>> QUIX S.r.l. >>>>> >>>>> Strada Statale 413, 160/162 >>>>> 41019 - Soliera (MO) >>>>> Loc.Appalto - ITALY >>>>> Tel. 0039 059 565388 >>>>> Fax. 0039 059 565322 >>>>> >>>>> [hidden email] >>>>> [hidden email] >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >--------------------------------------------------------------------- >>> - >>> >>>> -- >>>> >>>> >>>> -- >>>> You receive this message as a subscriber of the >>>> >>> [hidden email] mailing list. >>> >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> ObjectWeb mailing lists service home page: >>>> http://www.objectweb.org/wws >>>> >>>> >>> -- >>> Ing. Leonardo Reale >>> >>> QUIX S.r.l. >>> >>> Strada Statale 413, 160/162 >>> 41019 - Soliera (MO) >>> Loc.Appalto - ITALY >>> Tel. 0039 059 565388 >>> Fax. 0039 059 565322 >>> >>> [hidden email] >>> [hidden email] >>> >>> >>> >>> >>> >> >> >> >> >---------------------------------------------------------------------- >> -- >> >> >> -- >> You receive this message as a subscriber of the >[hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: >> http://www.objectweb.org/wws >> > > >-- >Ing. Leonardo Reale > >QUIX S.r.l. > >Strada Statale 413, 160/162 >41019 - Soliera (MO) >Loc.Appalto - ITALY >Tel. 0039 059 565388 >Fax. 0039 059 565322 > >[hidden email] >[hidden email] > > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi, now my servlet is called by my searchActivities.xpl, the ops stack
trace return this error: The servlet create the xml by a StringBuffer.toString(); ... in the response thre is an XML String with the contentType document/xml. The error is the follow... Fatal error: Premature end of file. My xml is well formed... and i don't undesrtand which is the problem. AnyOne have any idea about this? Ryan Puddephatt ha scritto: > Here is a quickstart in sax, http://www.saxproject.org/quickstart.html or > try looking at the OPS source code > > Ryan > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > > >> -----Original Message----- >> From: Leonardo Reale [mailto:[hidden email]] >> Sent: 18 December 2006 16:17 >> To: [hidden email] >> Subject: Re: [ops-users] New user xpl problems >> >> Hi, i want to produce the XML in my servlet as Sax stream, >> anyone have an example that works in this way? >> >> My problem is: in which way i return this stream from my servlet? >> >> Best reguards >> Leonardo >> >> Ryan Puddephatt ha scritto: >> >>> Leonardo, >>> The way you are doing it is fine, I seem to remember >>> >> there being a >> >>> problem with caching of a SAX stream response. >>> >>> Try putting <use-local-cache>false</use-local-cache> in your >>> url-generator config >>> >>> And putting a null-serializer on the output of the url-generator >>> something like >>> >>> <p:processor name="oxf:null-serializer"> >>> <p:input name="data" href="#url-gen-out"/> </p:processor> >>> >>> <p:processor name="oxf:identity"> >>> <p:input name="data" href="#url-gen-out"/> >>> <p:output name="data" ref="data"/> <!-- this is the >>> >> output of your XPL >> >>> </p:processor> >>> >>> Hope this helps >>> >>> Ryan Puddephatt >>> Software Engineer >>> >>> Teleflex Group - IT UK >>> 1 Michaelson Square >>> Livingston >>> West Lothian >>> Scotland >>> EH54 7DP >>> >>> e> [hidden email] >>> t> +44(0)1506 407 110 >>> f> +44(0)1506 407 108 >>> >>> >>> >>> >>> >>>> -----Original Message----- >>>> From: Leonardo Reale [mailto:[hidden email]] >>>> Sent: 18 December 2006 15:54 >>>> To: [hidden email] >>>> Subject: Re: [ops-users] New user xpl problems >>>> >>>> No, i produce an xml as String and write this on stream of the >>>> response. >>>> >>>> If use a SAX stream to produce the XML how can i return this stream >>>> from my servlet? >>>> >>>> >>>> Ryan Puddephatt ha scritto: >>>> >>>> >>>>> So why is it your not doing that way? Why are you using >>>>> >>>>> >>>> another XPL to >>>> >>>> >>>>> get this? >>>>> >>>>> Does you servlet use SAX stream to produce the XML? >>>>> >>>>> Ryan >>>>> >>>>> Ryan Puddephatt >>>>> Software Engineer >>>>> >>>>> Teleflex Group - IT UK >>>>> 1 Michaelson Square >>>>> Livingston >>>>> West Lothian >>>>> Scotland >>>>> EH54 7DP >>>>> >>>>> e> [hidden email] >>>>> t> +44(0)1506 407 110 >>>>> f> +44(0)1506 407 108 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>> Sent: 18 December 2006 15:42 >>>>>> To: [hidden email] >>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>> >>>>>> This is the xml produced by my servlet: >>>>>> >>>>>> <activities> >>>>>> <activity> >>>>>> <id>1</id> >>>>>> <projectName>Integrazione xform</projectName> >>>>>> <date>2006-11-15</date> <description>Integrazione >>>>>> xform</description> <location>HQ</location> <length>8</length> >>>>>> <activityType>Leo</activityType> <companyCode>Leo</companyCode> >>>>>> </activity> </activities> >>>>>> >>>>>> it's well formed, I'm sure, in fact if I load the >>>>>> >> instance directly >> >>>>>> by servlet it works fine >>>>>> >>>>>> <xforms:instance id="activitiesList" >>>>>> src="http://localhost:8080/ActivityList" /> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Ryan Puddephatt ha scritto: >>>>>> >>>>>> >>>>>> >>>>>>> Then either the result of activitylist, or either of the >>>>>>> >>>>>>> >>>>>>> >>>>>> XPLs are not >>>>>> >>>>>> >>>>>> >>>>>>> well formed! >>>>>>> >>>>>>> Ryan Puddephatt >>>>>>> Software Engineer >>>>>>> >>>>>>> Teleflex Group - IT UK >>>>>>> 1 Michaelson Square >>>>>>> Livingston >>>>>>> West Lothian >>>>>>> Scotland >>>>>>> EH54 7DP >>>>>>> >>>>>>> e> [hidden email] >>>>>>> t> +44(0)1506 407 110 >>>>>>> f> +44(0)1506 407 108 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>> Sent: 18 December 2006 15:29 >>>>>>>> To: [hidden email] >>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>> >>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> So hitting http://localhost:8080/ops/ActivityList in >>>>>>>>> >>>>>>>>> >>>> your browser >>>> >>>> >>>>>>>>> produces the XML you expect, but >>>>>>>>> http://localhost:8080/ops/ActivityList in the >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>> url-generator does not? >>>>>> >>>>>> >>>>>> >>>>>>>>> Ryan >>>>>>>>> >>>>>>>>> Ryan Puddephatt >>>>>>>>> Software Engineer >>>>>>>>> >>>>>>>>> Teleflex Group - IT UK >>>>>>>>> 1 Michaelson Square >>>>>>>>> Livingston >>>>>>>>> West Lothian >>>>>>>>> Scotland >>>>>>>>> EH54 7DP >>>>>>>>> >>>>>>>>> e> [hidden email] >>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> -----Original Message----- >>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>> Sent: 18 December 2006 10:26 >>>>>>>>>> To: [hidden email] >>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>> >>>>>>>>>> If i call my servlet directly by url i see the produded xml. >>>>>>>>>> It works correctly. >>>>>>>>>> >>>>>>>>>> I call thi servlet by an xpl. This xpl is the follow: >>>>>>>>>> >>>>>>>>>> <p:param name="data" type="output" /> >>>>>>>>>> >>>>>>>>>> <p:processor name="oxf:url-generator"> >>>>>>>>>> <p:input name="config"> >>>>>>>>>> <config> >>>>>>>>>> <url>http://localhost:8080/ops/ActivityList</url> >>>>>>>>>> </config> >>>>>>>>>> </p:input> >>>>>>>>>> <p:output name="data" id="xml" ref="data"/> </p:processor> >>>>>>>>>> >>>>>>>>>> In the page-flow i configured the navigation in thi s way: >>>>>>>>>> >>>>>>>>>> <!-- Views --> >>>>>>>>>> <page path-info="/xforms-quixBizApp/activity/list-view" >>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>> >>>>>>>>>> <!-- Models --> >>>>>>>>>> <page path-info="/xforms-quixBizApp/activity/list-model" >>>>>>>>>> model="searchActivities.xpl" /> >>>>>>>>>> <epilogue url="oxf:/config/epilogue.xpl"/> >>>>>>>>>> >>>>>>>>>> My XHTML page load the datamodel through the xpl >>>>>>>>>> >> url-generator >> >>>>>>>>>> processor. >>>>>>>>>> >>>>>>>>>> THK >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> Ok, is it an XPL? Being called through the page-flow, or >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>> some custom >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>> servler setup through the web.xml? >>>>>>>>>>> >>>>>>>>>>> Ryan >>>>>>>>>>> >>>>>>>>>>> Ryan Puddephatt >>>>>>>>>>> Software Engineer >>>>>>>>>>> >>>>>>>>>>> Teleflex Group - IT UK >>>>>>>>>>> 1 Michaelson Square >>>>>>>>>>> Livingston >>>>>>>>>>> West Lothian >>>>>>>>>>> Scotland >>>>>>>>>>> EH54 7DP >>>>>>>>>>> >>>>>>>>>>> e> [hidden email] >>>>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> -----Original Message----- >>>>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>>>> Sent: 18 December 2006 10:12 >>>>>>>>>>>> To: [hidden email] >>>>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>>>> >>>>>>>>>>>> The servlet is under the same context of >>>>>>>>>>>> >> presentation server. >> >>>>>>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> Leonardo, >>>>>>>>>>>>> By servlet do you mean a URL under your OPS application >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> with the >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> path-info of /activityList or do you mean a URL within >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> another context >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> on the same server? >>>>>>>>>>>>> >>>>>>>>>>>>> Ryan >>>>>>>>>>>>> >>>>>>>>>>>>> Ryan Puddephatt >>>>>>>>>>>>> Software Engineer >>>>>>>>>>>>> >>>>>>>>>>>>> Teleflex Group - IT UK >>>>>>>>>>>>> 1 Michaelson Square >>>>>>>>>>>>> Livingston >>>>>>>>>>>>> West Lothian >>>>>>>>>>>>> Scotland >>>>>>>>>>>>> EH54 7DP >>>>>>>>>>>>> >>>>>>>>>>>>> e> [hidden email] >>>>>>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> -----Original Message----- >>>>>>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>>>>>> Sent: 18 December 2006 08:48 >>>>>>>>>>>>>> To: [hidden email] >>>>>>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>>>>>> >>>>>>>>>>>>>> hi, my goal is create new application with a list >>>>>>>>>>>>>> >> _page and >> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>> edit_page. >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>>> When i call my link: >>>>>>>>>>>>>> "/xforms-quixBizApp/list/searchActivities" i want to >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>> load my list >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>>>>> page using as model "searchActivities.xpl". >>>>>>>>>>>>>> >>>>>>>>>>>>>> <page >>>>>>>>>>>>>> >> path-info="/xforms-quixBizApp/list/searchActivities" >> >>>>>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>>>> >>>>>>>>>>>>>> The data loading is a Servlet called ActivityList. The >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>> servlet load >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>>>> from database my data and create an xml on the response >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>> Stream. The >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>>>> xpl file is: >>>>>>>>>>>>>> >>>>>>>>>>>>>> <p:processor name="oxf:redirect"> >>>>>>>>>>>>>> <p:input name="data"> >>>>>>>>>>>>>> <redirect-url> >>>>>>>>>>>>>> <path-info>/activityList</path-info> >>>>>>>>>>>>>> </redirect-url> >>>>>>>>>>>>>> </p:input> >>>>>>>>>>>>>> </p:config> >>>>>>>>>>>>>> >>>>>>>>>>>>>> The problem is: the servlet is not called by the >>>>>>>>>>>>>> >> processor. >> >>>>>>>>>>>>>> Have you any idea to realize my goal? >>>>>>>>>>>>>> >>>>>>>>>>>>>> Erik Bruchez ha scritto: >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Leonardo, >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> i'm new ops user i'm trying to create a simple >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>> XForms based >>>> >>>> >>>>>>>>>>>>>>>> web-application. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> This web application shows a list of activity >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>> (activityList.xhtml). >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>>> In this page there is an XForm, this form is a search >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>> form. The >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>>>>>> submission tag is the following: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> <xforms:submission id="searchActivities" method="post" >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>> action="/xforms-quixBizApp/list/searchActivities" >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>>>>>>> instance="searchParams"/> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> The page-flow.xml entry: >>>>>>>>>>>>>>>> <page >>>>>>>>>>>>>>>> >> path-info="/xforms-quixBizApp/list/searchActivities" >> >>>>>>>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> The xpl file: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> c >>>>>>>>>>>>>>>> This processor (as documentation says) should call >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>> my servlet >>>>>> >>>>>> >>>>>> >>>>>>>>>>>>>>>> /activityList but this not append. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> I would try to avoid the oxf:redirect processor if >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>> possible. >>>> >>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> The questions are >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> 1) Can i call a servlet from xpl ? >>>>>>>>>>>>>>>> 2) How call the servlet? >>>>>>>>>>>>>>>> 3) There is an example in this direction? >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> "Calling a servlet" is a little vague to me. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> First, can you describe what you are really trying to >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>> achieve? You >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>>>>> propose a solution above but it is not clear to me what >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>> problem it >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>>>>> solves. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> If you are just trying to go to "/activityList", why >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>> don't you >>>>>> >>>>>> >>>>>> >>>>>>>>>>>>>>> directly submit your instance to >>>>>>>>>>>>>>> >> "/activityList", or do an >> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> xforms:load >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>> to that same URL? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> -Erik >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> >>>>>> >>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>>> - >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> [hidden email] mailing list. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>> To unsubscribe: >>>>>>>>>>>>>>> >> mailto:[hidden email] >> >>>>>>>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>>>>>> >>>>>>>>>>>>>> QUIX S.r.l. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>>>>>> >>>>>>>>>>>>>> [hidden email] >>>>>>>>>>>>>> [hidden email] >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> >>>>>> >>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>> - >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> [hidden email] mailing list. >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>>>> >>>>>>>>>>>> QUIX S.r.l. >>>>>>>>>>>> >>>>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>>>> >>>>>>>>>>>> [hidden email] >>>>>>>>>>>> [hidden email] >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> >>>>>> >>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> - >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> [hidden email] mailing list. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>> >>>>>>>>>> QUIX S.r.l. >>>>>>>>>> >>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>> >>>>>>>>>> [hidden email] >>>>>>>>>> [hidden email] >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> >>>>>> >>>>>> >>>>>>>> - >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> -- >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> You receive this message as a subscriber of the >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> [hidden email] mailing list. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>> http://www.objectweb.org/wws >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> Yes..., the error is "premature-end of file". >>>>>>>> >>>>>>>> -- >>>>>>>> Ing. Leonardo Reale >>>>>>>> >>>>>>>> QUIX S.r.l. >>>>>>>> >>>>>>>> Strada Statale 413, 160/162 >>>>>>>> 41019 - Soliera (MO) >>>>>>>> Loc.Appalto - ITALY >>>>>>>> Tel. 0039 059 565388 >>>>>>>> Fax. 0039 059 565322 >>>>>>>> >>>>>>>> [hidden email] >>>>>>>> [hidden email] >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >> --------------------------------------------------------------------- >> >>>> >>>> >>>>>> - >>>>>> >>>>>> >>>>>> >>>>>>> -- >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> You receive this message as a subscriber of the >>>>>>> >>>>>>> >>>>>>> >>>>>> [hidden email] mailing list. >>>>>> >>>>>> >>>>>> >>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>> ObjectWeb mailing lists service home page: >>>>>>> http://www.objectweb.org/wws >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> -- >>>>>> Ing. Leonardo Reale >>>>>> >>>>>> QUIX S.r.l. >>>>>> >>>>>> Strada Statale 413, 160/162 >>>>>> 41019 - Soliera (MO) >>>>>> Loc.Appalto - ITALY >>>>>> Tel. 0039 059 565388 >>>>>> Fax. 0039 059 565322 >>>>>> >>>>>> [hidden email] >>>>>> [hidden email] >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >> --------------------------------------------------------------------- >> >>>> - >>>> >>>> >>>>> -- >>>>> >>>>> >>>>> -- >>>>> You receive this message as a subscriber of the >>>>> >>>>> >>>> [hidden email] mailing list. >>>> >>>> >>>>> To unsubscribe: mailto:[hidden email] >>>>> For general help: mailto:[hidden email]?subject=help >>>>> ObjectWeb mailing lists service home page: >>>>> http://www.objectweb.org/wws >>>>> >>>>> >>>>> >>>> -- >>>> Ing. Leonardo Reale >>>> >>>> QUIX S.r.l. >>>> >>>> Strada Statale 413, 160/162 >>>> 41019 - Soliera (MO) >>>> Loc.Appalto - ITALY >>>> Tel. 0039 059 565388 >>>> Fax. 0039 059 565322 >>>> >>>> [hidden email] >>>> [hidden email] >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >> ---------------------------------------------------------------------- >> >>> -- >>> >>> >>> -- >>> You receive this message as a subscriber of the >>> >> [hidden email] mailing list. >> >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> ObjectWeb mailing lists service home page: >>> http://www.objectweb.org/wws >>> >>> >> -- >> Ing. Leonardo Reale >> >> QUIX S.r.l. >> >> Strada Statale 413, 160/162 >> 41019 - Soliera (MO) >> Loc.Appalto - ITALY >> Tel. 0039 059 565388 >> Fax. 0039 059 565322 >> >> [hidden email] >> [hidden email] >> >> >> >> >> > > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Leonardo,
I think that if you want to maximize the chances to solve your problem, you will have to send us (or upload somewhere) a WAR file that reproduces the problem and that we can run locally. -Erik Leonardo Reale wrote: > Hi, now my servlet is called by my searchActivities.xpl, the ops stack > trace return this error: > > The servlet create the xml by a StringBuffer.toString(); ... in the > response thre is an XML String with the contentType document/xml. > The error is the follow... > > Fatal error: Premature end of file. > > My xml is well formed... and i don't undesrtand which is the problem. > > AnyOne have any idea about this? > > > > > Ryan Puddephatt ha scritto: >> Here is a quickstart in sax, http://www.saxproject.org/quickstart.html or >> try looking at the OPS source code >> >> Ryan >> >> Ryan Puddephatt >> Software Engineer >> >> Teleflex Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotland >> EH54 7DP >> >> e> [hidden email] >> t> +44(0)1506 407 110 >> f> +44(0)1506 407 108 >> >> >> >> >>> -----Original Message----- >>> From: Leonardo Reale [mailto:[hidden email]] Sent: 18 >>> December 2006 16:17 >>> To: [hidden email] >>> Subject: Re: [ops-users] New user xpl problems >>> >>> Hi, i want to produce the XML in my servlet as Sax stream, anyone >>> have an example that works in this way? >>> >>> My problem is: in which way i return this stream from my servlet? >>> >>> Best reguards >>> Leonardo >>> >>> Ryan Puddephatt ha scritto: >>> >>>> Leonardo, >>>> The way you are doing it is fine, I seem to remember >>> there being a >>>> problem with caching of a SAX stream response. >>>> >>>> Try putting <use-local-cache>false</use-local-cache> in your >>>> url-generator config >>>> >>>> And putting a null-serializer on the output of the url-generator >>>> something like >>>> >>>> <p:processor name="oxf:null-serializer"> >>>> <p:input name="data" href="#url-gen-out"/> </p:processor> >>>> >>>> <p:processor name="oxf:identity"> >>>> <p:input name="data" href="#url-gen-out"/> >>>> <p:output name="data" ref="data"/> <!-- this is the >>> output of your XPL >>> >>>> </p:processor> >>>> >>>> Hope this helps >>>> >>>> Ryan Puddephatt >>>> Software Engineer >>>> >>>> Teleflex Group - IT UK >>>> 1 Michaelson Square >>>> Livingston >>>> West Lothian >>>> Scotland >>>> EH54 7DP >>>> >>>> e> [hidden email] >>>> t> +44(0)1506 407 110 >>>> f> +44(0)1506 407 108 >>>> >>>> >>>> >>>> >>>>> -----Original Message----- >>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>> Sent: 18 December 2006 15:54 >>>>> To: [hidden email] >>>>> Subject: Re: [ops-users] New user xpl problems >>>>> >>>>> No, i produce an xml as String and write this on stream of the >>>>> response. >>>>> >>>>> If use a SAX stream to produce the XML how can i return this stream >>>>> from my servlet? >>>>> >>>>> >>>>> Ryan Puddephatt ha scritto: >>>>> >>>>>> So why is it your not doing that way? Why are you using >>>>>> >>>>> another XPL to >>>>> >>>>>> get this? >>>>>> >>>>>> Does you servlet use SAX stream to produce the XML? >>>>>> >>>>>> Ryan >>>>>> >>>>>> Ryan Puddephatt >>>>>> Software Engineer >>>>>> >>>>>> Teleflex Group - IT UK >>>>>> 1 Michaelson Square >>>>>> Livingston >>>>>> West Lothian >>>>>> Scotland >>>>>> EH54 7DP >>>>>> >>>>>> e> [hidden email] >>>>>> t> +44(0)1506 407 110 >>>>>> f> +44(0)1506 407 108 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> -----Original Message----- >>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>> Sent: 18 December 2006 15:42 >>>>>>> To: [hidden email] >>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>> >>>>>>> This is the xml produced by my servlet: >>>>>>> >>>>>>> <activities> >>>>>>> <activity> >>>>>>> <id>1</id> >>>>>>> <projectName>Integrazione xform</projectName> >>>>>>> <date>2006-11-15</date> <description>Integrazione >>>>>>> xform</description> <location>HQ</location> <length>8</length> >>>>>>> <activityType>Leo</activityType> <companyCode>Leo</companyCode> >>>>>>> </activity> </activities> >>>>>>> >>>>>>> it's well formed, I'm sure, in fact if I load the >>> instance directly >>>>>>> by servlet it works fine >>>>>>> >>>>>>> <xforms:instance id="activitiesList" >>>>>>> src="http://localhost:8080/ActivityList" /> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Ryan Puddephatt ha scritto: >>>>>>> >>>>>>>> Then either the result of activitylist, or either of the >>>>>>>> >>>>>>> XPLs are not >>>>>>> >>>>>>>> well formed! >>>>>>>> >>>>>>>> Ryan Puddephatt >>>>>>>> Software Engineer >>>>>>>> >>>>>>>> Teleflex Group - IT UK >>>>>>>> 1 Michaelson Square >>>>>>>> Livingston >>>>>>>> West Lothian >>>>>>>> Scotland >>>>>>>> EH54 7DP >>>>>>>> >>>>>>>> e> [hidden email] >>>>>>>> t> +44(0)1506 407 110 >>>>>>>> f> +44(0)1506 407 108 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> -----Original Message----- >>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>> Sent: 18 December 2006 15:29 >>>>>>>>> To: [hidden email] >>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>> >>>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>>> >>>>>>>>>> So hitting http://localhost:8080/ops/ActivityList in >>>>>>>>>> >>>>> your browser >>>>> >>>>>>>>>> produces the XML you expect, but >>>>>>>>>> http://localhost:8080/ops/ActivityList in the >>>>>>>>>> >>>>>>> url-generator does not? >>>>>>> >>>>>>>>>> Ryan >>>>>>>>>> >>>>>>>>>> Ryan Puddephatt >>>>>>>>>> Software Engineer >>>>>>>>>> >>>>>>>>>> Teleflex Group - IT UK >>>>>>>>>> 1 Michaelson Square >>>>>>>>>> Livingston >>>>>>>>>> West Lothian >>>>>>>>>> Scotland >>>>>>>>>> EH54 7DP >>>>>>>>>> >>>>>>>>>> e> [hidden email] >>>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> -----Original Message----- >>>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>>> Sent: 18 December 2006 10:26 >>>>>>>>>>> To: [hidden email] >>>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>>> >>>>>>>>>>> If i call my servlet directly by url i see the produded xml. >>>>>>>>>>> It works correctly. >>>>>>>>>>> >>>>>>>>>>> I call thi servlet by an xpl. This xpl is the follow: >>>>>>>>>>> >>>>>>>>>>> <p:param name="data" type="output" /> >>>>>>>>>>> >>>>>>>>>>> <p:processor name="oxf:url-generator"> >>>>>>>>>>> <p:input name="config"> >>>>>>>>>>> <config> >>>>>>>>>>> <url>http://localhost:8080/ops/ActivityList</url> >>>>>>>>>>> </config> </p:input> >>>>>>>>>>> <p:output name="data" id="xml" ref="data"/> </p:processor> >>>>>>>>>>> >>>>>>>>>>> In the page-flow i configured the navigation in thi s way: >>>>>>>>>>> >>>>>>>>>>> <!-- Views --> >>>>>>>>>>> <page path-info="/xforms-quixBizApp/activity/list-view" >>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>> <!-- Models --> <page >>>>>>>>>>> path-info="/xforms-quixBizApp/activity/list-model" >>>>>>>>>>> model="searchActivities.xpl" /> >>>>>>>>>>> <epilogue url="oxf:/config/epilogue.xpl"/> >>>>>>>>>>> >>>>>>>>>>> My XHTML page load the datamodel through the xpl >>>>>>>>>>> >>> url-generator >>>>>>>>>>> processor. >>>>>>>>>>> >>>>>>>>>>> THK >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>>>>> >>>>>>>>>>>> Ok, is it an XPL? Being called through the page-flow, or >>>>>>>>>>>> >>>>>>>>> some custom >>>>>>>>> >>>>>>>>>>>> servler setup through the web.xml? >>>>>>>>>>>> >>>>>>>>>>>> Ryan >>>>>>>>>>>> >>>>>>>>>>>> Ryan Puddephatt >>>>>>>>>>>> Software Engineer >>>>>>>>>>>> >>>>>>>>>>>> Teleflex Group - IT UK >>>>>>>>>>>> 1 Michaelson Square >>>>>>>>>>>> Livingston >>>>>>>>>>>> West Lothian >>>>>>>>>>>> Scotland >>>>>>>>>>>> EH54 7DP >>>>>>>>>>>> >>>>>>>>>>>> e> [hidden email] >>>>>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> -----Original Message----- >>>>>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>>>>> Sent: 18 December 2006 10:12 >>>>>>>>>>>>> To: [hidden email] >>>>>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>>>>> >>>>>>>>>>>>> The servlet is under the same context of >>>>>>>>>>>>> >>> presentation server. >>> >>>>>>>>>>>>> Ryan Puddephatt ha scritto: >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> Leonardo, >>>>>>>>>>>>>> By servlet do you mean a URL under your OPS application >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> with the >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> path-info of /activityList or do you mean a URL within >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> another context >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> on the same server? >>>>>>>>>>>>>> >>>>>>>>>>>>>> Ryan >>>>>>>>>>>>>> >>>>>>>>>>>>>> Ryan Puddephatt >>>>>>>>>>>>>> Software Engineer >>>>>>>>>>>>>> >>>>>>>>>>>>>> Teleflex Group - IT UK >>>>>>>>>>>>>> 1 Michaelson Square >>>>>>>>>>>>>> Livingston >>>>>>>>>>>>>> West Lothian >>>>>>>>>>>>>> Scotland >>>>>>>>>>>>>> EH54 7DP >>>>>>>>>>>>>> >>>>>>>>>>>>>> e> [hidden email] >>>>>>>>>>>>>> t> +44(0)1506 407 110 >>>>>>>>>>>>>> f> +44(0)1506 407 108 >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>> -----Original Message----- >>>>>>>>>>>>>>> From: Leonardo Reale [mailto:[hidden email]] >>>>>>>>>>>>>>> Sent: 18 December 2006 08:48 >>>>>>>>>>>>>>> To: [hidden email] >>>>>>>>>>>>>>> Subject: Re: [ops-users] New user xpl problems >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> hi, my goal is create new application with a list >>>>>>>>>>>>>>> >>> _page and >>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>> edit_page. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>>> When i call my link: >>>>>>>>>>>>>>> "/xforms-quixBizApp/list/searchActivities" i want to >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>> load my list >>>>>>>>> >>>>>>>>>>>>>>> page using as model "searchActivities.xpl". >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> <page >>> path-info="/xforms-quixBizApp/list/searchActivities" >>>>>>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> The data loading is a Servlet called ActivityList. The >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>> servlet load >>>>>>>>>>> >>>>>>>>>>>>>>> from database my data and create an xml on the response >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>> Stream. The >>>>>>>>>>> >>>>>>>>>>>>>>> xpl file is: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> <p:processor name="oxf:redirect"> >>>>>>>>>>>>>>> <p:input name="data"> >>>>>>>>>>>>>>> <redirect-url> >>>>>>>>>>>>>>> <path-info>/activityList</path-info> >>>>>>>>>>>>>>> </redirect-url> >>>>>>>>>>>>>>> </p:input> >>>>>>>>>>>>>>> </p:config> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> The problem is: the servlet is not called by the >>>>>>>>>>>>>>> >>> processor. >>> >>>>>>>>>>>>>>> Have you any idea to realize my goal? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Erik Bruchez ha scritto: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Leonardo, >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> i'm new ops user i'm trying to create a simple >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>> XForms based >>>>> >>>>>>>>>>>>>>>>> web-application. >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> This web application shows a list of activity >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> (activityList.xhtml). >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> In this page there is an XForm, this form is a search >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>> form. The >>>>>>>>>>> >>>>>>>>>>>>>>>>> submission tag is the following: >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> <xforms:submission id="searchActivities" method="post" >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>> action="/xforms-quixBizApp/list/searchActivities" >>>>>>>>> >>>>>>>>>>>>>>>>> instance="searchParams"/> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> The page-flow.xml entry: >>>>>>>>>>>>>>>>> <page >>> path-info="/xforms-quixBizApp/list/searchActivities" >>> >>>>>>>>>>>>>>>>> model="searchActivities.xpl" >>>>>>>>>>>>>>>>> view="pages/ActivityList.xhtml"/> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> The xpl file: >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> c >>>>>>>>>>>>>>>>> This processor (as documentation says) should call >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>> my servlet >>>>>>> >>>>>>>>>>>>>>>>> /activityList but this not append. >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> I would try to avoid the oxf:redirect processor if >>>>>>>>>>>>>>>> >>>>> possible. >>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> The questions are >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> 1) Can i call a servlet from xpl ? >>>>>>>>>>>>>>>>> 2) How call the servlet? >>>>>>>>>>>>>>>>> 3) There is an example in this direction? >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> "Calling a servlet" is a little vague to me. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> First, can you describe what you are really trying to >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>> achieve? You >>>>>>>>>>> >>>>>>>>>>>>>>>> propose a solution above but it is not clear to me what >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>> problem it >>>>>>>>>>> >>>>>>>>>>>>>>>> solves. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> If you are just trying to go to "/activityList", why >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>> don't you >>>>>>> >>>>>>>>>>>>>>>> directly submit your instance to >>>>>>>>>>>>>>>> >>> "/activityList", or do an >>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> xforms:load >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> to that same URL? >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> -Erik >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>> --------------------------------------------------------------------- >>> >>>>> >>>>>>> >>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>>> - >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> [hidden email] mailing list. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> To unsubscribe: >>> mailto:[hidden email] >>> >>>>>>>>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> QUIX S.r.l. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> [hidden email] >>>>>>>>>>>>>>> [hidden email] >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>> --------------------------------------------------------------------- >>> >>>>> >>>>>>> >>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>>> - >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> [hidden email] mailing list. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>>>>> >>>>>>>>>>>>> QUIX S.r.l. >>>>>>>>>>>>> >>>>>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>>>>> >>>>>>>>>>>>> [hidden email] >>>>>>>>>>>>> [hidden email] >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>> --------------------------------------------------------------------- >>> >>>>> >>>>>>> >>>>>>>>> >>>>>>>>>>> - >>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> [hidden email] mailing list. >>>>>>>>>>> >>>>>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Ing. Leonardo Reale >>>>>>>>>>> >>>>>>>>>>> QUIX S.r.l. >>>>>>>>>>> >>>>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>>>> 41019 - Soliera (MO) >>>>>>>>>>> Loc.Appalto - ITALY >>>>>>>>>>> Tel. 0039 059 565388 >>>>>>>>>>> Fax. 0039 059 565322 >>>>>>>>>>> >>>>>>>>>>> [hidden email] >>>>>>>>>>> [hidden email] >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>> --------------------------------------------------------------------- >>> >>>>> >>>>>>> >>>>>>>>> - >>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> You receive this message as a subscriber of the >>>>>>>>>> >>>>>>>>> [hidden email] mailing list. >>>>>>>>> >>>>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>>>> http://www.objectweb.org/wws >>>>>>>>>> >>>>>>>>> Yes..., the error is "premature-end of file". >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Ing. Leonardo Reale >>>>>>>>> >>>>>>>>> QUIX S.r.l. >>>>>>>>> >>>>>>>>> Strada Statale 413, 160/162 >>>>>>>>> 41019 - Soliera (MO) >>>>>>>>> Loc.Appalto - ITALY >>>>>>>>> Tel. 0039 059 565388 >>>>>>>>> Fax. 0039 059 565322 >>>>>>>>> >>>>>>>>> [hidden email] >>>>>>>>> [hidden email] >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>> --------------------------------------------------------------------- >>> >>>>> >>>>>>> - >>>>>>> >>>>>>>> -- >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> You receive this message as a subscriber of the >>>>>>>> >>>>>>> [hidden email] mailing list. >>>>>>> >>>>>>>> To unsubscribe: mailto:[hidden email] >>>>>>>> For general help: mailto:[hidden email]?subject=help >>>>>>>> ObjectWeb mailing lists service home page: >>>>>>>> http://www.objectweb.org/wws >>>>>>>> >>>>>>> -- >>>>>>> Ing. Leonardo Reale >>>>>>> >>>>>>> QUIX S.r.l. >>>>>>> >>>>>>> Strada Statale 413, 160/162 >>>>>>> 41019 - Soliera (MO) >>>>>>> Loc.Appalto - ITALY >>>>>>> Tel. 0039 059 565388 >>>>>>> Fax. 0039 059 565322 >>>>>>> >>>>>>> [hidden email] >>>>>>> [hidden email] >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>> --------------------------------------------------------------------- >>> >>>>> - >>>>> >>>>>> -- >>>>>> >>>>>> >>>>>> -- >>>>>> You receive this message as a subscriber of the >>>>>> >>>>> [hidden email] mailing list. >>>>> >>>>>> To unsubscribe: mailto:[hidden email] >>>>>> For general help: mailto:[hidden email]?subject=help >>>>>> ObjectWeb mailing lists service home page: >>>>>> http://www.objectweb.org/wws >>>>>> >>>>> -- >>>>> Ing. Leonardo Reale >>>>> >>>>> QUIX S.r.l. >>>>> >>>>> Strada Statale 413, 160/162 >>>>> 41019 - Soliera (MO) >>>>> Loc.Appalto - ITALY >>>>> Tel. 0039 059 565388 >>>>> Fax. 0039 059 565322 >>>>> >>>>> [hidden email] >>>>> [hidden email] >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> ---------------------------------------------------------------------- >>> >>>> -- >>>> >>>> >>>> -- >>>> You receive this message as a subscriber of the >>> [hidden email] mailing list. >>> >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >>>> >>> -- >>> Ing. Leonardo Reale >>> >>> QUIX S.r.l. >>> >>> Strada Statale 413, 160/162 >>> 41019 - Soliera (MO) >>> Loc.Appalto - ITALY >>> Tel. 0039 059 565388 >>> Fax. 0039 059 565322 >>> >>> [hidden email] >>> [hidden email] >>> >>> >>> >>> >>> >> >> >> >> ------------------------------------------------------------------------ >> >> >> -- >> You receive this message as a subscriber of the >> [hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> > > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Leonardo-6
Leonardo Reale wrote:
> Hi, i want to produce the XML in my servlet as Sax stream, anyone have > an example that works in this way? > My problem is: in which way i return this stream from my servlet? In fact we have an example of this in our Web 2.0 book: http://www.amazon.com/Professional-2-0-Programming-Eric-Vlist/dp/0470087889/ ;-) The idea is that you call methods on a SAX ContentHandler, which is in fact an identity TransformerHandler with a stream output. The Servlet in the end will produce a stream of bytes or characters, as that is the only thing a Servlet can produce. So you have something like: Your app -> ContentHandler -> identity transformer -> stream output -> servlet output The benefit of using SAX is that you increase your chances of having a well-formed XML output (but you can still mess-up). -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |