[Yanel-usage] URL /resource mapping

Bettina Messmer bettina.messmer at gmx.ch
Thu Jul 7 13:43:30 CEST 2011


Hi,

I think it does.

I try inserterted:

<p>
DEBUG: <xsl:value-of select="$URL"/>
</p>

and get in as a result in the browser:

DEBUG: /de/myfolder/index

greets,

Bettina

-------- Original-Nachricht --------
> Datum: Thu, 07 Jul 2011 12:02:51 +0200
> Von: Michael Wechner <michael.wechner at wyona.com>
> An: yanel-usage at wyona.com
> Betreff: Re: [Yanel-usage] URL /resource mapping

> Am 07.07.11 11:20, schrieb Bettina Messmer:
> > Hi,
> >
> > Thanks a lot. Adding an error doesn't change the error message. The main
> problem seems still to be the page not found error.
> >
> > To be more precise about my Problem:
> >
> > Actually all works fine (also the test with Hugo works), as long as I
> have the following statement in my xsl-file:
> >
> > <form action=".upload.html" method="post" enctype="multipart/form-data">
> >
> > As soon as I want to add some path-value before ".upload.html" I get the
> 404 error.
> >
> > <form action="{$URL}.upload.html" method="post"
> enctype="multipart/form-data">
> 
> does the $URL parameter exists inside your XSLT?
> 
> (similar/compare to <xsl:param name="yanel.path"
> select="'PATH_IS_NULL'"/>)
> 
> HTH
> 
> Michael
> > thanks,
> >
> > Bettina
> >
> >
> > -------- Original-Nachricht --------
> >> Datum: Thu, 07 Jul 2011 09:32:06 +0200
> >> Von: Michael Wechner<michael.wechner at wyona.com>
> >> An: yanel-usage at wyona.com
> >> Betreff: Re: [Yanel-usage] URL /resource mapping
> >> Hi Bettina
> >>
> >> Am 07.07.11 09:16, schrieb Bettina Messmer:
> >>> Hi,
> >>>
> >>> I want to remap all URLs which end with ".upload.html" to the same
> file.
> >>>
> >>> Therefore I added:
> >>>
> >>>
> >>>     <matcher pattern="**.upload.html"
> >> rcpath="/usecases/upload.yanel-rc"/>
> >>
> >> add an "error" to the file  (e.g. change the name of the resource to
> >> something like<yanel:rti name="HUGO"
> >> namespace="http://www.wyona.org/yanel/resource/1.0"/>
> >>
> >> /usecases/upload.yanel-rc
> >>
> >> to make sure that this resource configuration is actually used
> >>
> >>> to the map. But I get always a Page not found exception.
> >>>
> >>> In the log4j-document there is no error message printed.
> >> are you really sure, because the 404 method
> >>
> >>
> src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java#do404(....)
> >>
> >> does also log the 404?
> >>
> >> Try deleting all the log files by first stopping Tomcat/yanel, delete
> >> files inside logs directory and start Tomcat.
> >> And then check log files again.
> >>
> >> HTH
> >>
> >> Michael
> >>> Does anybody know why it doesn't work?
> >>>
> >>> greets,
> >>>
> >>> Bettina
> >>>
> >> -- 
> >> Yanel-usage mailing list Yanel-usage at wyona.com
> >> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-usage
> 
> -- 
> Yanel-usage mailing list Yanel-usage at wyona.com
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-usage

-- 
NEU: FreePhone - kostenlos mobil telefonieren!			
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the Yanel-usage mailing list