Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  yssi and xtra_docroots

anders_n
Posted: Thu Aug 17, 2006 6:12 pm Reply with quote
User Joined: 28 Feb 2005 Posts: 155 Location: Saltillo, Mexico
I have a problem using yssi and multiple docroots.

In my #sconf I have
docroot = "/home/anders/proj/lib/core/priv/www",
xtra_docroots=["/home/anders/proj/lib/app1/priv/www/app1",
"/home/anders/proj/lib/app1/priv/www/app2"],


in /home/anders/proj/lib/core/priv/www I have common header.yaws, footer.yaws
that I try to include in
/home/anders/proj/lib/app1/priv/www/app1/page.yaws using
yssi.

<erl>
out(A) ->
{yssi,"/header.yaws"}.
</erl>

The error I get is
=ERROR REPORT==== 17-Aug-2006::12:57:21 ===
Failed to yssi "/header.yaws"

Am I misunderstanding how xtra_docroots are supposed to work?

/Anders

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
View user's profile Send private message Yahoo Messenger
Guest
Posted: Fri Aug 18, 2006 7:31 am Reply with quote
Guest
Anders Nygren wrote:
> I have a problem using yssi and multiple docroots.
>
> In my #sconf I have
> docroot = "/home/anders/proj/lib/core/priv/www",
> xtra_docroots=["/home/anders/proj/lib/app1/priv/www/app1",
> "/home/anders/proj/lib/app1/priv/www/app2"],
>
>
> in /home/anders/proj/lib/core/priv/www I have common header.yaws, footer.yaws
> that I try to include in
> /home/anders/proj/lib/app1/priv/www/app1/page.yaws using
> yssi.
>
> <erl>
> out(A) ->
> {yssi,"/header.yaws"}.
> </erl>
>


Is it just yssi that doesn't work with xtra_docroots or
doesn't xtra_docroots work at all for you ?


/klacke


--
Claes Wikstrom -- Caps lock is nowhere and
http://www.tail-f.com -- everything is under control
cellphone: +46 70 2097763

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
anders_n
Posted: Fri Aug 18, 2006 2:18 pm Reply with quote
User Joined: 28 Feb 2005 Posts: 155 Location: Saltillo, Mexico
On 8/18/06, Claes Wikstr
View user's profile Send private message Yahoo Messenger
Guest
Posted: Mon Aug 21, 2006 7:56 am Reply with quote
Guest
> Hi
> The 'problem' is that it seems that I can not refer to a file that is
> under another
> docroot.
> For example if I have in $DOCROOT a file header.yaws and in
> $EXTRA_DOCROOT/somefile.yaws I try to do {yssi, header.yaws} it fails, with
> the error mentioned earlier. So I think that yaws only looks in the
> current "docroot"
> for the file, and does not search in all of them.
>
> And it seems to be the same way with ssi.
>
> But maybe its supposed to be that way?
>


Hmm, I'd consider this a bug. It's not suppsed to
like that it's an unfortunate feature interaction
between xtra docroots and yssi/ssi


/klacke



--
Claes Wikstrom -- Caps lock is nowhere and
http://www.tail-f.com -- everything is under control
cellphone: +46 70 2097763

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
anders_n
Posted: Mon Aug 21, 2006 2:19 pm Reply with quote
User Joined: 28 Feb 2005 Posts: 155 Location: Saltillo, Mexico
On 8/21/06, Claes Wikstr
View user's profile Send private message Yahoo Messenger
anders_n
Posted: Tue Aug 29, 2006 9:31 pm Reply with quote
User Joined: 28 Feb 2005 Posts: 155 Location: Saltillo, Mexico
Claes
I am not sure if You already saw this from last week.

/Anders

On 8/21/06, Anders Nygren <anders.nygren@gmail.com> wrote:
> On 8/21/06, Claes Wikstr
View user's profile Send private message Yahoo Messenger
Guest
Posted: Wed Aug 30, 2006 7:14 am Reply with quote
Guest
Anders Nygren wrote:
> Claes
> I am not sure if You already saw this from last week.
>

I did, I'm sorry I forgot to reply. It's in CVS now.

>>
>> 3, xtra_docroots, both ssy and yssi only looks in xtra_doocroots that
>> are listed AFTER
>> the docroot of the .yaws file that contains the [y]ssi directive. I
>> dont know how to
>> fix that.

Hmmm, this needs to be fixed.


/klacke



--
Claes Wikstrom -- Caps lock is nowhere and
http://www.tail-f.com -- everything is under control
cellphone: +46 70 2097763

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum