Administrator
|
I see at least one issue. You write:
<setvalue ref="/parameters/id" .../> but your parameter document is: <submission> </id> </submission> This is not well-formed XML. I assume you meant: <submission> <id/> </submission> But then you should replace "/parameters/id" with "/submission/id". Other than that, things look fine. -Erik On Nov 24, 2007, at 8:08 AM, xmlguy wrote: > > Hello gurus, > Please provide some direction to this question : > If we already have a jsp page that displays some content and if we > want to > pass parameters ,how do we do that ? I have a simple example of > passing > parameters from a url and displaying that parameter in a xhtm. > Whats is incorrect in the following code ? > > Consider the following page-flow.xml. > <config xmlns="http://www.orbeon.com/oxf/controller"> > > <page path-info="/paramstest" default-submission="parameters.xml" > view="view.xhtml"> > <setvalue ref="/parameters/id" parameter="id"/> > </page> > <epilogue url="oxf:/config/epilogue.xpl"/> > </config> > > > Here is parameters.xml > <submission> > </id> > </submission> > > Here is the view.xhtml : > > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xi="http://www.w3.org/2001/XInclude" > xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"> > <head> > <title>XForms Test Parameters</title> > <xforms:model> > <xforms:instance id="parameters-instance"> > <xi:include href="input:instance"/> > </xforms:instance> > </xforms:model> > </head> > <body> > <p> > <xforms:input ref="id"> > <xforms:label>The parameter Passed was:</xforms:label> > </xforms:input> > </p> > </body> > </html> > > I would imagine that when i invoke a url such as > http://localhost:8080/ops/paramstest?id=2 , > 1. page flow controller will read the parameter passed and would > make it > available in its instance output to page view. However, i get a Page > not > found :resource requested not found in server message. > > Any pointers ? > Can somebody please help ? > > > > > > > > > -- > View this message in context: http://www.nabble.com/passing-parameters-from-a-jsp-page-tf4866281.html#a13926004 > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.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 > OW2 mailing lists service home page: http://www.ow2.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 OW2 mailing lists service home page: http://www.ow2.org/wws |
We have content management system that stores the xml.All i know is an interface will provide me stream of xml for editing. I dont know if that supports REST Api . How can i read that xml as a Stream using XML Pipelines ?
|
Administrator
|
If you don't know anything about your system, it's going to be hard to
answer specifically. But generally, you can access pretty much anything you want with the Java processor: http://www.orbeon.com/ops/doc/processors-java -Erik On Nov 27, 2007, at 6:27 AM, xmlguy wrote: > > We have content management system that stores the xml.All i know is > an > interface will provide me stream of xml for editing. I dont know if > that > supports REST Api . How can i read that xml as a Stream using XML > Pipelines > ? > > > > > > Erik Bruchez wrote: >> >> I see at least one issue. You write: >> >> <setvalue ref="/parameters/id" .../> >> >> but your parameter document is: >> >> <submission> >> </id> >> </submission> >> >> This is not well-formed XML. I assume you meant: >> >> <submission> >> <id/> >> </submission> >> >> But then you should replace "/parameters/id" with "/submission/id". >> >> Other than that, things look fine. >> >> -Erik >> >> On Nov 24, 2007, at 8:08 AM, xmlguy wrote: >> >>> >>> Hello gurus, >>> Please provide some direction to this question : >>> If we already have a jsp page that displays some content and if we >>> want to >>> pass parameters ,how do we do that ? I have a simple example of >>> passing >>> parameters from a url and displaying that parameter in a xhtm. >>> Whats is incorrect in the following code ? >>> >>> Consider the following page-flow.xml. >>> <config xmlns="http://www.orbeon.com/oxf/controller"> >>> >>> <page path-info="/paramstest" default- >>> submission="parameters.xml" >>> view="view.xhtml"> >>> <setvalue ref="/parameters/id" parameter="id"/> >>> </page> >>> <epilogue url="oxf:/config/epilogue.xpl"/> >>> </config> >>> >>> >>> Here is parameters.xml >>> <submission> >>> </id> >>> </submission> >>> >>> Here is the view.xhtml : >>> >>> <html xmlns="http://www.w3.org/1999/xhtml" >>> xmlns:xforms="http://www.w3.org/2002/xforms" >>> xmlns:ev="http://www.w3.org/2001/xml-events" >>> xmlns:xi="http://www.w3.org/2001/XInclude" >>> xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"> >>> <head> >>> <title>XForms Test Parameters</title> >>> <xforms:model> >>> <xforms:instance id="parameters-instance"> >>> <xi:include href="input:instance"/> >>> </xforms:instance> >>> </xforms:model> >>> </head> >>> <body> >>> <p> >>> <xforms:input ref="id"> >>> <xforms:label>The parameter Passed was:</xforms:label> >>> </xforms:input> >>> </p> >>> </body> >>> </html> >>> >>> I would imagine that when i invoke a url such as >>> http://localhost:8080/ops/paramstest?id=2 , >>> 1. page flow controller will read the parameter passed and would >>> make it >>> available in its instance output to page view. However, i get a Page >>> not >>> found :resource requested not found in server message. >>> >>> Any pointers ? >>> Can somebody please help ? >>> >>> >>> >>> >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/passing-parameters-from-a-jsp-page-tf4866281.html#a13926004 >>> Sent from the ObjectWeb OPS - Users mailing list archive at >>> Nabble.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 >>> OW2 mailing lists service home page: http://www.ow2.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 >> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> > > -- > View this message in context: http://www.nabble.com/Re%3A-passing-parameters-from-a-jsp-page-tf4878656.html#a13971777 > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.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 > OW2 mailing lists service home page: http://www.ow2.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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |