[Yanel-usage] contact-form
Michael Wechner
michael.wechner at wyona.com
Thu Jun 23 13:44:45 CEST 2011
Hi Bettina
Am 23.06.11 12:17, schrieb Bettina Messmer:
> Hi,
>
> I'm trying to create a webpage using the contact-form resource. In order to use it I added contact.html to the map file
>
> <matcher pattern="**.contact.html" rcpath="contact.html.yanel-rc"/>
I guess the matcher pattern would rather be something like
**/contact.html
whereas I would suggest that you use a one-to-one matching, e.g.
http://127.0.0.1:8080/yanel/MY_REALM/en/contact.html
res-configs/contact.html.yanel-rc
instead using the map
HTH
Michael
> and then provided a contact.html.yanel-rc
>
> <?xml version="1.0"?>
>
> <yanel:resource-config xmlns:yanel="http://www.wyona.org/yanel/rti/1.0">
> <yanel:rti name="contact-form" namespace="http://www.wyona.org/yanel/resource/1.0"/>
>
> <yanel:property name="xslt" value="/app/xslt/global2.xsl"/>
> <yanel:property name="mime-type" value="application/xhtml+xml"/>
> <yanel:property name="to" value="....."/>
>
> </yanel:resource-config>
>
> now I get always a Page not found error....
>
> And I don't exactly understand, where my mistake is or which other file i need to add.
>
> thanks and greets,
>
> Bettina
>
>
>
More information about the Yanel-usage
mailing list