Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  "forward" v.s. redirect

billrobertson42
Posted: Sun May 04, 2008 3:10 pm Reply with quote
User Joined: 07 Jan 2008 Posts: 13
I'm extremely interested in YAWS. I have some experience in servlets,
and there is one thing that I am curious about. In a servlet, it is
possible to "forward" a request to another servlet by naming its URL.
This does not go back to the browser, but instead just calls the other
servlet's process method and when it is done, then you will return.

Is there an equivalent in YAWS? I went through the demo documentation
on the various redirect functions, and it seemed to me that even
local_redirect returns a redirect to the browser.

Thanks,
Bill Robertson






____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist
View user's profile Send private message
Guest
Posted: Sun May 04, 2008 4:25 pm Reply with quote
Guest
On 5/4/08, Bill Robertson <billrobertson42@yahoo.com> wrote:
> I'm extremely interested in YAWS. I have some experience in servlets,
> and there is one thing that I am curious about. In a servlet, it is
> possible to "forward" a request to another servlet by naming its URL.
> This does not go back to the browser, but instead just calls the other
> servlet's process method and when it is done, then you will return.
>
> Is there an equivalent in YAWS? I went through the demo documentation
> on the various redirect functions, and it seemed to me that even
> local_redirect returns a redirect to the browser.

I believe that returning

{page, "/local/path/to/another/resource"}

where the second argument is the URI path to the local resource you're
redirecting to, will achieve what you seek.

--steve

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received 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