I would call this a bug, but I won't...yet. req.serverSidePath accepts
relative site paths fine, but does not work with an absolute site path.

Since this doesn't work as I expect, is there something that does?

<%
# these work as expected
res.write(req.serverSidePath('./')+'<br>')
res.write(req.serverSidePath('../')+'<br>')
res.write(req.serverSidePath('.././index.psp')+'<br>')
res.write(req.serverSidePath('../../index.psp')+'<br>')
res.write(req.serverSidePath('index.psp')+'<br>')

# this does not work as expected, ie. as it does on other web platforms
res.write(req.serverSidePath('/index.psp')+'<br>')
# it returns '\index.psp' instead of the expected absolute path
%>

Is this a bug? Is there another function?

-Kai



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to