Hi !!

        I have a problem with a <map:redirect-to uri="xxx"/> command.

For example, when I request the uri "monsite/wap/menu.contact", I would
like to be redirect to the uri "monsite/wap/contact/contact.info".

To do that, I have in my subdirectory monsite a sitemap with this lines
: 

    <map:pipeline>
[...]
      <map:match pattern="wap/menu.contact">
        <map:redirect-to uri="contact/contact.info"/>
      </map:match>

     <map:match pattern="wap/*/*.*">
        <map:generate src="documents/{1}/{2}.xml"/>
        <map:transform src="stylesheets/wap/{3}.xsl">
          <map:parameter name="section" value="{1}"/>
          <map:parameter name="toc-file"
value="../../documents/toc.xml"/>
          <map:parameter name="base-url" value="/cocoon/transrapide"/>
          <map:parameter name="media" value="wap"/>
       </map:transform>
       <map:transform src="stylesheets/wap/menupage.xsl">
          <map:parameter name="section" value="{1}"/>
          <map:parameter name="request-url" value="{2}.{3}"/>
          <map:parameter name="toc-file"
value="../../documents/toc.xml"/>
          <map:parameter name="base-url" value="/cocoon/transrapide"/>
         <map:parameter name="media" value="wap"/>
       </map:transform>
        <map:serialize type="wml"/>
      </map:match>
[...]
    <map:pipeline>

The other pages (without redirection) works fine.

one wap terminal emulator says : 

Net Request   :
http://c-ace-st1.rd.francetelecom.fr:8080/cocoon/transrapide/wap/menu.co
ntact
Net Request   : error:neterr/compile-error.wml

 the screen stays blank and the source seams to be empty

another : 

Invalid WML Code



How could I resolve my problem ?
Is redirect-to command avaible with a wap terminal, a wml serializer ??

Thanks

Nicolas !!

Cocoon 2.0.2, jdk 1.3.1-03, tomcat 4.0.4, W2000

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to