problem with redirect in the portlet

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

problem with redirect in the portlet

sushik billa
This post was updated on .
Hi

I am new to orbeon, i was trying to redirect to a page outside orbeon portlet from xpl using oxf:redirect processor.

when I tried to use oxf:redirect processor an illegal state exception was thrown in the portal server but works fine in a normal web-app. I am really not sure off where i am going wrong..

Please do let me know as to what is wrong with the code below..

view.xhtml that call the myxpl.xpl

------------------------------------------------------------------------------------------------

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://orbeon.org/oxf/xml/formatting">
    <head>
        <title>Orbeon Forms Example Portlet</title>
    </head>
    <body>
      <p>
             Welcome to the Orbeon Forms example portlet! From here, you can try:
        </p>
        <ul>
            <li>
                <p>
                    Viewing and editing portlet preferences
                </p>
            </li>
            <li>
                <p>
                    Orbeon Forms example applications running in a portlet:
                </p>
                <ul>                   
                    <li><a href="/mytest/myparams>My test portlet</li>
                </ul>
            </li>
        </ul>
    </body>
</html>

------------------------------------------------------------------------------------------------

page-flow.xml
-----------------------------------------------------------------------------------------------------
<config xmlns="http://www.orbeon.com/oxf/controller">

    <page path-info="/mytest/myparams" model="myfirstxpl.xpl">     
        </page>       
       
    <epilogue url="oxf:/config/epilogue.xpl"/>

</config>


-----------------------------------------------------------------------------------------------------

myxpl.xpl

-----------------------------------------------------------------------------------------------
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
          xmlns:oxf="http://www.orbeon.com/oxf/processors"
          xmlns:xs="http://www.w3.org/2001/XMLSchema">       
   
   
   <p:processor name="oxf:redirect">
            <p:input name="data">
            <redirect-url>           
            <path-info>http://www.yahoo.com/index.html</path-info>           
            </redirect-url>
            </p:input>
   </p:processor>
   
   
</p:config>

------------------------------------------------------------------------------------------------


Thanks for all the support..