erlangweb-users Mailing List for Erlang Web
Brought to you by:
etcerlangweb,
paulgray
You can subscribe to this list here.
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
(40) |
Dec
(25) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2009 |
Jan
(7) |
Feb
(17) |
Mar
(10) |
Apr
(3) |
May
(10) |
Jun
(2) |
Jul
(2) |
Aug
(3) |
Sep
(12) |
Oct
(9) |
Nov
(11) |
Dec
(7) |
| 2010 |
Jan
(3) |
Feb
(10) |
Mar
(18) |
Apr
(20) |
May
(1) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
(8) |
May
|
Jun
|
Jul
|
Aug
(6) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
|
From: Tomasz K. <tom...@er...> - 2012-09-05 07:12:08
|
Hi, Erlang-web users.
We would like to inform you, that Erlangweb-users mailing list will be closed.
Further discussions and issues will be moderated through github issues.
https://github.com/esl/erlang-web
|
|
From: kingrl <try...@gm...> - 2011-09-10 16:08:09
|
I followed the tutorial "Distributing the service", but I didn't disclose the results , nor did it errors report . You can share experience ? Thank you! |
|
From: Piotr D. <pio...@er...> - 2011-08-29 12:56:50
|
I'm not sure which system you're having problems with.
Does "bin/start_interactive yaws" work under Ubuntu?
Does it work under MacOs?
----- Oryginalna wiadomość -----
> I have installed yaws in my Mac Lion system, and it runs well. When I
> turn to my ubuntu system, it works well. And I can start up inets
> server in my mac system (bin/start_interactive). Is there something
> wrong associate embed yaws?
>
> Thank you
>
> On Aug 29, 2011, at 8:19 PM, Piotr Dorobisz wrote:
>
> > Hi,
> > Have you tried installing build dependencies for yaws?:
> > apt-get build-dep yaws
> >
> > Piotr
> >
> >
> >
> > ----- Oryginalna wiadomość -----
> >> Hi,
> >> "bin/start_interactive yaws" can not start up the yaws server . I
> >> find the problem is :
> >> =SUPERVISOR REPORT==== 28-Aug-2011::02:22:01 ===
> >> Supervisor: {local,yaws_sup_restarts}
> >> Context: start_error
> >> Reason: {'EXIT',{error,could_not_load_driver}}
> >> Offender: [{pid,undefined},
> >> {name,yaws_sendfile},
> >> {mfargs,{yaws_sendfile_compat,start_link,[]}},
> >> {restart_type,permanent},
> >> {shutdown,5000},
> >> {child_type,worker}]
> >> How could I solve it?
> >> Thank you!
> >> ------------------------------------------------------------------------------
> >> EMC VNX: the world's simplest storage, starting under $10K
> >> The only unified storage solution that offers unified management
> >> Up to 160% more powerful than alternatives and 25% more efficient.
> >> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> >> _______________________________________________
> >> Erlangweb-users mailing list
> >> Erl...@li...
> >> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
> >> http://www.erlang-web.org/
>
>
|
|
From: Piotr D. <pio...@er...> - 2011-08-29 12:19:25
|
Hi,
Have you tried installing build dependencies for yaws?:
apt-get build-dep yaws
Piotr
----- Oryginalna wiadomość -----
> Hi,
> "bin/start_interactive yaws" can not start up the yaws server . I
> find the problem is :
> =SUPERVISOR REPORT==== 28-Aug-2011::02:22:01 ===
> Supervisor: {local,yaws_sup_restarts}
> Context: start_error
> Reason: {'EXIT',{error,could_not_load_driver}}
> Offender: [{pid,undefined},
> {name,yaws_sendfile},
> {mfargs,{yaws_sendfile_compat,start_link,[]}},
> {restart_type,permanent},
> {shutdown,5000},
> {child_type,worker}]
> How could I solve it?
> Thank you!
> ------------------------------------------------------------------------------
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> _______________________________________________
> Erlangweb-users mailing list
> Erl...@li...
> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
> http://www.erlang-web.org/
|
|
From: kingrl <try...@gm...> - 2011-08-27 18:33:53
|
Hi,
"bin/start_interactive yaws" can not start up the yaws server . I find the problem is :
=SUPERVISOR REPORT==== 28-Aug-2011::02:22:01 ===
Supervisor: {local,yaws_sup_restarts}
Context: start_error
Reason: {'EXIT',{error,could_not_load_driver}}
Offender: [{pid,undefined},
{name,yaws_sendfile},
{mfargs,{yaws_sendfile_compat,start_link,[]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]
How could I solve it?
Thank you! |
|
From: doug <dvd...@gm...> - 2011-08-25 16:09:26
|
-record(item_types, [{description, "Name"},
after completing the step to include the "description" tuple in
-record(item_type,
then doing eptic:reload,
The Name, Description, Unit Price labels will not render.
Thank you,
Douglas
|
|
From: Piotr D. <pio...@er...> - 2011-08-22 18:47:01
|
Hi, Latest EW is on github so try using it: git clone git://github.com/esl/erlang-web.git Piotr W dniu 22.08.2011 18:23, doug pisze: > what can I do? > > hg clone https://bitbucket.org/etc/erlang-web/ > > cd erlang-web > > ./bin/compile.erl > > > > lib/eptic-1.4/src/e_mod_inets.erl:55: variable 'Headers' is unbound > lib/eptic-1.4/src/e_mod_inets.erl:61: record mod undefined > lib/eptic-1.4/src/e_mod_inets.erl:87: record mod undefined > lib/eptic-1.4/src/e_mod_inets.erl:93: record mod undefined > lib/eptic-1.4/src/e_mod_inets.erl:94: variable 'Headers' is unbound > lib/eptic-1.4/src/e_mod_inets.erl:106: record mod undefined > lib/eptic-1.4/src/e_mod_inets.erl:107: variable 'Method' is unbound > lib/eptic-1.4/src/e_mod_inets.erl:109: record mod undefined > lib/eptic-1.4/src/e_mod_inets.erl:110: variable 'Post' is unbound > lib/eptic-1.4/src/e_mod_inets.erl:112: record mod undefined > There were errors during the compilation! > > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > > > > _______________________________________________ > Erlangweb-users mailing list > Erl...@li... > https://lists.sourceforge.net/lists/listinfo/erlangweb-users > http://www.erlang-web.org/ |
|
From: doug <dvd...@gm...> - 2011-08-22 16:23:04
|
what can I do? hg clone https://bitbucket.org/etc/erlang-web/ cd erlang-web ./bin/compile.erl lib/eptic-1.4/src/e_mod_inets.erl:55: variable 'Headers' is unbound lib/eptic-1.4/src/e_mod_inets.erl:61: record mod undefined lib/eptic-1.4/src/e_mod_inets.erl:87: record mod undefined lib/eptic-1.4/src/e_mod_inets.erl:93: record mod undefined lib/eptic-1.4/src/e_mod_inets.erl:94: variable 'Headers' is unbound lib/eptic-1.4/src/e_mod_inets.erl:106: record mod undefined lib/eptic-1.4/src/e_mod_inets.erl:107: variable 'Method' is unbound lib/eptic-1.4/src/e_mod_inets.erl:109: record mod undefined lib/eptic-1.4/src/e_mod_inets.erl:110: variable 'Post' is unbound lib/eptic-1.4/src/e_mod_inets.erl:112: record mod undefined There were errors during the compilation! |
|
From: Piotr D. <pio...@er...> - 2011-04-28 11:52:54
|
It was caused by path mismatch on R14. It's been fixed - an updated version is on github (git://github.com/esl/erlang-web.git). Regards, Piotr ----- "douglas" <dvd...@gm...> napisał: > compile.erl fails: > > can’t find include lib “inets/src/httpd.hrl” > > erlangweb-1.4.1.tar.gz > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > Erlangweb-users mailing list > Erl...@li... > https://lists.sourceforge.net/lists/listinfo/erlangweb-users > http://www.erlang-web.org/ |
|
From: Michal S. <mi...@er...> - 2011-04-19 09:46:56
|
Hello, Erlang Web can be seen as a middleware between the HTTP server and your application. So far it has been used with Inets and Yaws only, but it is certainly possible to add support for other servers as well. I don't have any experience with IIS, but probably Erlang Web could be extended with support for FastCGI and this way run on top of IIS. Or maybe there are better ways to integrate with IIS? I haven't tried using ErlangWeb on Windows platform with no cygwin, maybe someone from the community has any experience with it and can share with us? Regards, Michal -- Michal Slaski http://www.erlang-solutions.com On 13 Apr 2011, at 16:44, info wrote: > Dear Michal, > First of all, I am using erlang without cygwin, then my first requirement would be to not use erlangweb with cygwin: is it possible for you ? > My next requirement would be to use IIS instead of Yaws or Inets because I don't know these products: is it possible for you ? > According to the start.erl module, that seems difficult ... Am I wrong ? > > J-Ph. Constantin > ITS3 Genève > www.its3.ch |
|
From: info <in...@it...> - 2011-04-13 14:44:42
|
Dear Michal, First of all, I am using erlang without cygwin, then my first requirement would be to not use erlangweb with cygwin: is it possible for you ? My next requirement would be to use IIS instead of Yaws or Inets because I don't know these products: is it possible for you ? According to the start.erl module, that seems difficult ... Am I wrong ? J-Ph. Constantin ITS3 Genève www.its3.ch |
|
From: Michal S. <mi...@er...> - 2011-04-13 10:33:55
|
Hello, I would not be surprised if the bin/compile.erl script works for Cygwin already, however I have never had a chance to try it with Cygwin. The statement comes from a wiki page describing installation of the Erlang Web and it should be read that there was no effort put on making it work from Windows command line. I think you are the first user who raised this question. If you would need any help with installing it on Windows, please let us know. If you would manage to install it yourself, please share your experiences through a new wiki page. Regards, Michal -- Michal Slaski http://www.erlang-solutions.com On 12 Apr 2011, at 14:21, info wrote: > "Currently only Linux-based systems are supported" : When for a Windows version without Cygwin ? > > J-Ph. Constantin > ITS3 Genève > www.its3.ch |
|
From: info <in...@it...> - 2011-04-12 12:21:44
|
"Currently only Linux-based systems are supported" : When for a Windows version without Cygwin ? J-Ph. Constantin ITS3 Genève www.its3.ch |
|
From: Michal S. <mi...@er...> - 2011-04-12 08:28:40
|
Hello, Currently there is no component of Erlang Web, which would support the Google Maps API. In Erlang Web we have a concept of e_components, they provide extensions of the framework. The Google Maps API component could be implemented as an e_component. One can list currently available e_components typing: > bin/e_component.erl list and an overview is available here: http://wiki.erlang-web.org/Ecomponents/Overview Michal -- Michal Slaski http://www.erlang-solutions.com On 11 Apr 2011, at 17:13, info wrote: > Hello, > As newbie, I would like to know if you have examples, tutorials for using erlangweb with the Google Maps api ? > Thank you, > > J-Ph. Constantin > ITS3 Genève > www.its3.ch > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev_______________________________________________ > Erlangweb-users mailing list > Erl...@li... > https://lists.sourceforge.net/lists/listinfo/erlangweb-users > http://www.erlang-web.org/ |
|
From: info <in...@it...> - 2011-04-11 15:14:03
|
Hello, As newbie, I would like to know if you have examples, tutorials for using erlangweb with the Google Maps api ? Thank you, J-Ph. Constantin ITS3 Genève www.its3.ch |
|
From: douglas <dvd...@gm...> - 2011-04-09 16:55:03
|
compile.erl fails: can’t find include lib “inets/src/httpd.hrl” erlangweb-1.4.1.tar.gz |
|
From: Roberto A. <rob...@er...> - 2010-12-07 19:21:50
|
Hi all,
I have a user-defined primitive type who relies on double entries in the POST list during validation. The type is more or less in the same situation as the wtype_password, which is expected to receive one or two POST variables with the same name (for confirmation purposes).
If this was working in Erlang Web 1.3, it doesn't work with Erlang Web 1.4 anymore. This is due to the wpart_valid:zip_get/4 function, which removes every duplicate entry, making exceptions for the password and collection types.
-spec(zip_get/4 :: (list(tuple()), list(string()),
list(tuple()), list(tuple())) -> list(tuple())).
zip_get([],[],_,Acc)->
lists:reverse(Acc);
zip_get([{collection, _}|T1],[H2|T2], POST, Acc) ->
In = proplists:get_all_values(H2,POST),
zip_get(T1,T2,POST,[In|Acc]);
zip_get([{password, _}|T1], [H2|T2], POST, Acc) ->
case proplists:get_all_values(H2, POST) of
[_, _] = Val ->
zip_get(T1, T2, POST, [Val|Acc]);
[Val] ->
zip_get(T1, T2, POST, [Val|Acc]);
_ ->
zip_get(T1, T2, POST, [undefined|Acc])
end;
zip_get([_|T1],[H2|T2], POST, Acc) ->
In = proplists:get_value(H2,POST),
zip_get(T1,T2,POST,[In|Acc]).
Notice the get_value in the last clause, as opposite to get_all_values, which I think it was the default behaviour of earlier versions of Erlang Web. It can't simply replaced into a get_all_values since that will break all others data types (such as wtype_time) which rely on exactly one element for validation.
Is there any reason why this behaviour was changed?
Cheers,
Roberto Aloi
--
University of Kent - Erlang Solutions Ltd.
Blog: http://aloiroberto.wordpress.com
Twitter: @prof3ta
|
|
From: Krzysztof G. <krz...@er...> - 2010-07-01 13:57:25
|
Hello everyone,
We are happy to announce that Erlang Web 1.4.1 has been released.
This is mainly a maintenance release with features:
* Unicode handling improvements
- you can use utf-8 in wtpl templates
- there is wpart_lookup_unbreak wpart that allows you
to look up data which is already a list of UTF-8 bytes
(wpart_lookup expects UCS code points)
- wpart_password UTF-8 problem fixed
* Date format strings fixes
- "NN" is used to encode minute, "MM" stands for month everywhere
- "MM" as minute in wpart_time is still supported, but deprecated,
please upgrade your code
- alt_format attribute for wtype_datetime (fall-back format for parsing)
* Serving files instead of returning not_found for static files
* Many minor bug fixes and improvements
We would like to thank everyone who participated in this release's development.
We do encourage you to try Erlang Web 1.4.1 out, send us
comments, contribute and enjoy the coding!
Erlang Web 1.4.1 can be easily downloaded as a tarball from
its official website: http://www.erlang-web.org/download.html
The latest version can be also checked out from the github
repository: http://github.com/esl/erlang-web/
The documentation can be found on Erlang Web's wiki page:
http://wiki.erlang-web.org/
Best regards,
--
Krzysztof Goj
|
|
From: AndyChow <diu...@16...> - 2010-05-02 01:17:19
|
hi, i only use signal tpl file for app in normal times, tpl works good. when i read template engine from http://wiki.erlang-web.org/TemplateEngine, following the document, i build the same tpl files, and i use wpart_gen:load_tpl api for load tpl files, like http://www.erlang-web.org/step1.html, when i build the app and run it. it give me following error: reason: {{badmatch,{error,enoent}}, [{wpart_gen,load_tpl,3}, {lists,foreach,2}, {websso,test,1}, {e_mod_gen,controller,3}, {e_mod_yaws,'-out/1-fun-0-',1}, {e_mod_yaws,with_formatted_error,1}, {e_mod_yaws,out,1}, {yaws_server,deliver_dyn_part,8}]} this is my a part of load tpl code: Tpls = [{base, "test/base.html"}, {half_filled, "test/half_filled.html"}, {filled, "test/filled.html"} ], lists:foreach(fun({Name, Path}) -> wpart_gen:load_tpl(shop, Name, Path) end, Tpls), there is something wrong? please give a whole example for template engines, thanks.:) |
|
From: AndyChow <diu...@16...> - 2010-04-30 15:17:15
|
It works!
I want to know when erlangweb next new version will be release?
在2010-04-30,"Michal Ptaszek" <mic...@er...> 写道:
>
>----- "AndyChow" <diu...@16...> wrote:
>
>> i change as following:
>> =====================
>>
>> CookeName = "test",
>> CookieValue = "test111",
>> {headers, {cookie, CookeName, CookieValue}, {redirect,
>> "/websso/register"}}.
>
>Oh, I just noticed that: second element of the tuple should be a list:
>
>{headers, [{cookie, CookeName, CookieValue}], {redirect, "/websso/register"}}.
>
>If that does not help - could you please let us know which EW version do
>you use?
>
>
>>
>> same error happened.
>> =================
>> reason: {function_clause,[{e_mod_yaws,add_headers,
>> [{cookie,"test","test111"},[]]},
>> {e_mod_yaws,controller_exec,2},
>> {e_mod_yaws,with_formatted_error,1},
>> {e_mod_yaws,out,1},
>> {yaws_server,deliver_dyn_part,8},
>> {yaws_server,aloop,3},
>> {yaws_server,acceptor0,2},
>> {proc_lib,init_p_do_apply,3}]}
>>
>>
>>
>>
>> 在2010-04-30,"Michal Ptaszek" <mic...@er...> 写道:
>> >Hi,
>> >
>> >----- "AndyChow" <diu...@16...> wrote:
>> >
>> >> hi,
>> >> i want to set cookie in client, and add following code in my app,
>> like
>> >> this:
>> >>
>> >> CookeName = test,
>> >> CookieValue = aaaa,
>> >> {headers, {cookies, CookeName, CookieValue, "/"}, {redirect,
>> >> "/websso/register"}}.
>> >
>> >You should probably use {cookie, Name, Val, Path}:
>> >(http://wiki.erlang-web.org/Eptic/ServerTuples)
>> >
>> >>
>> >> after i rebuild and restart app, and view in browser, i get
>> following
>> >> error in console:
>> >>
>> >> reason: {function_clause,[{e_mod_yaws,add_headers,
>> >>
>> [{cookies,test,aaaa,"/"},[]]},
>> >> {e_mod_yaws,controller_exec,2},
>> >> {e_mod_yaws,with_formatted_error,1},
>> >> {e_mod_yaws,out,1},
>> >> {yaws_server,deliver_dyn_part,8},
>> >> {yaws_server,aloop,3},
>> >> {yaws_server,acceptor0,2},
>> >> {proc_lib,init_p_do_apply,3}]}
>> >
>> >Moreover, deducting from the stack trace of the crash, I think both
>> cookie name
>> >and cookie value should be strings (now they are atoms).
>> >
>> >>
>> >> Is i use i wrong? please give me handle, thanks. :)
>> >>
>> >>
>> >>
>> ------------------------------------------------------------------------------
>> >>
>> >> _______________________________________________
>> >> Erlangweb-users mailing list
>> >> Erl...@li...
>> >> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
>> >> http://www.erlang-web.org/
>> >
>> >Best regards,
>> >Michal Ptaszek
>> >---------------------------------------------------
>> >
>> >---------------------------------------------------
>> >
>> >WE'VE CHANGED NAMES!
>> >
>> >Since January 1st 2010 Erlang Training and Consulting Ltd. has become
>> ERLANG SOLUTIONS LTD.
>> >
>> >www.erlang-solutions.com
>> >
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Erlangweb-users mailing list
>> Erl...@li...
>> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
>> http://www.erlang-web.org/
>
>Kind regards,
>Michal Ptaszek
>---------------------------------------------------
>
>---------------------------------------------------
>
>WE'VE CHANGED NAMES!
>
>Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG SOLUTIONS LTD.
>
>www.erlang-solutions.com
> |
|
From: AndyChow <diu...@16...> - 2010-04-30 15:14:16
|
hi,
I'm using erlangweb 1.4, i read the wiki page and tutorial pdf about cooke section, the method not same.
在2010-04-30,"Michal Ptaszek" <mic...@er...> 写道:
>
>----- "AndyChow" <diu...@16...> wrote:
>
>> i change as following:
>> =====================
>>
>> CookeName = "test",
>> CookieValue = "test111",
>> {headers, {cookie, CookeName, CookieValue}, {redirect,
>> "/websso/register"}}.
>
>Oh, I just noticed that: second element of the tuple should be a list:
>
>{headers, [{cookie, CookeName, CookieValue}], {redirect, "/websso/register"}}.
>
>If that does not help - could you please let us know which EW version do
>you use?
>
>
>>
>> same error happened.
>> =================
>> reason: {function_clause,[{e_mod_yaws,add_headers,
>> [{cookie,"test","test111"},[]]},
>> {e_mod_yaws,controller_exec,2},
>> {e_mod_yaws,with_formatted_error,1},
>> {e_mod_yaws,out,1},
>> {yaws_server,deliver_dyn_part,8},
>> {yaws_server,aloop,3},
>> {yaws_server,acceptor0,2},
>> {proc_lib,init_p_do_apply,3}]}
>>
>>
>>
>>
>> 在2010-04-30,"Michal Ptaszek" <mic...@er...> 写道:
>> >Hi,
>> >
>> >----- "AndyChow" <diu...@16...> wrote:
>> >
>> >> hi,
>> >> i want to set cookie in client, and add following code in my app,
>> like
>> >> this:
>> >>
>> >> CookeName = test,
>> >> CookieValue = aaaa,
>> >> {headers, {cookies, CookeName, CookieValue, "/"}, {redirect,
>> >> "/websso/register"}}.
>> >
>> >You should probably use {cookie, Name, Val, Path}:
>> >(http://wiki.erlang-web.org/Eptic/ServerTuples)
>> >
>> >>
>> >> after i rebuild and restart app, and view in browser, i get
>> following
>> >> error in console:
>> >>
>> >> reason: {function_clause,[{e_mod_yaws,add_headers,
>> >>
>> [{cookies,test,aaaa,"/"},[]]},
>> >> {e_mod_yaws,controller_exec,2},
>> >> {e_mod_yaws,with_formatted_error,1},
>> >> {e_mod_yaws,out,1},
>> >> {yaws_server,deliver_dyn_part,8},
>> >> {yaws_server,aloop,3},
>> >> {yaws_server,acceptor0,2},
>> >> {proc_lib,init_p_do_apply,3}]}
>> >
>> >Moreover, deducting from the stack trace of the crash, I think both
>> cookie name
>> >and cookie value should be strings (now they are atoms).
>> >
>> >>
>> >> Is i use i wrong? please give me handle, thanks. :)
>> >>
>> >>
>> >>
>> ------------------------------------------------------------------------------
>> >>
>> >> _______________________________________________
>> >> Erlangweb-users mailing list
>> >> Erl...@li...
>> >> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
>> >> http://www.erlang-web.org/
>> >
>> >Best regards,
>> >Michal Ptaszek
>> >---------------------------------------------------
>> >
>> >---------------------------------------------------
>> >
>> >WE'VE CHANGED NAMES!
>> >
>> >Since January 1st 2010 Erlang Training and Consulting Ltd. has become
>> ERLANG SOLUTIONS LTD.
>> >
>> >www.erlang-solutions.com
>> >
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Erlangweb-users mailing list
>> Erl...@li...
>> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
>> http://www.erlang-web.org/
>
>Kind regards,
>Michal Ptaszek
>---------------------------------------------------
>
>---------------------------------------------------
>
>WE'VE CHANGED NAMES!
>
>Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG SOLUTIONS LTD.
>
>www.erlang-solutions.com
> |
|
From: Michal P. <mic...@er...> - 2010-04-30 15:09:27
|
----- "AndyChow" <diu...@16...> wrote:
> i change as following:
> =====================
>
> CookeName = "test",
> CookieValue = "test111",
> {headers, {cookie, CookeName, CookieValue}, {redirect,
> "/websso/register"}}.
Oh, I just noticed that: second element of the tuple should be a list:
{headers, [{cookie, CookeName, CookieValue}], {redirect, "/websso/register"}}.
If that does not help - could you please let us know which EW version do
you use?
>
> same error happened.
> =================
> reason: {function_clause,[{e_mod_yaws,add_headers,
> [{cookie,"test","test111"},[]]},
> {e_mod_yaws,controller_exec,2},
> {e_mod_yaws,with_formatted_error,1},
> {e_mod_yaws,out,1},
> {yaws_server,deliver_dyn_part,8},
> {yaws_server,aloop,3},
> {yaws_server,acceptor0,2},
> {proc_lib,init_p_do_apply,3}]}
>
>
>
>
> 在2010-04-30,"Michal Ptaszek" <mic...@er...> 写道:
> >Hi,
> >
> >----- "AndyChow" <diu...@16...> wrote:
> >
> >> hi,
> >> i want to set cookie in client, and add following code in my app,
> like
> >> this:
> >>
> >> CookeName = test,
> >> CookieValue = aaaa,
> >> {headers, {cookies, CookeName, CookieValue, "/"}, {redirect,
> >> "/websso/register"}}.
> >
> >You should probably use {cookie, Name, Val, Path}:
> >(http://wiki.erlang-web.org/Eptic/ServerTuples)
> >
> >>
> >> after i rebuild and restart app, and view in browser, i get
> following
> >> error in console:
> >>
> >> reason: {function_clause,[{e_mod_yaws,add_headers,
> >>
> [{cookies,test,aaaa,"/"},[]]},
> >> {e_mod_yaws,controller_exec,2},
> >> {e_mod_yaws,with_formatted_error,1},
> >> {e_mod_yaws,out,1},
> >> {yaws_server,deliver_dyn_part,8},
> >> {yaws_server,aloop,3},
> >> {yaws_server,acceptor0,2},
> >> {proc_lib,init_p_do_apply,3}]}
> >
> >Moreover, deducting from the stack trace of the crash, I think both
> cookie name
> >and cookie value should be strings (now they are atoms).
> >
> >>
> >> Is i use i wrong? please give me handle, thanks. :)
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >>
> >> _______________________________________________
> >> Erlangweb-users mailing list
> >> Erl...@li...
> >> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
> >> http://www.erlang-web.org/
> >
> >Best regards,
> >Michal Ptaszek
> >---------------------------------------------------
> >
> >---------------------------------------------------
> >
> >WE'VE CHANGED NAMES!
> >
> >Since January 1st 2010 Erlang Training and Consulting Ltd. has become
> ERLANG SOLUTIONS LTD.
> >
> >www.erlang-solutions.com
> >
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Erlangweb-users mailing list
> Erl...@li...
> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
> http://www.erlang-web.org/
Kind regards,
Michal Ptaszek
---------------------------------------------------
---------------------------------------------------
WE'VE CHANGED NAMES!
Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG SOLUTIONS LTD.
www.erlang-solutions.com
|
|
From: AndyChow <diu...@16...> - 2010-04-30 15:04:33
|
i change as following:
=====================
CookeName = "test",
CookieValue = "test111",
{headers, {cookie, CookeName, CookieValue}, {redirect, "/websso/register"}}.
same error happened.
=================
reason: {function_clause,[{e_mod_yaws,add_headers,
[{cookie,"test","test111"},[]]},
{e_mod_yaws,controller_exec,2},
{e_mod_yaws,with_formatted_error,1},
{e_mod_yaws,out,1},
{yaws_server,deliver_dyn_part,8},
{yaws_server,aloop,3},
{yaws_server,acceptor0,2},
{proc_lib,init_p_do_apply,3}]}
在2010-04-30,"Michal Ptaszek" <mic...@er...> 写道:
>Hi,
>
>----- "AndyChow" <diu...@16...> wrote:
>
>> hi,
>> i want to set cookie in client, and add following code in my app, like
>> this:
>>
>> CookeName = test,
>> CookieValue = aaaa,
>> {headers, {cookies, CookeName, CookieValue, "/"}, {redirect,
>> "/websso/register"}}.
>
>You should probably use {cookie, Name, Val, Path}:
>(http://wiki.erlang-web.org/Eptic/ServerTuples)
>
>>
>> after i rebuild and restart app, and view in browser, i get following
>> error in console:
>>
>> reason: {function_clause,[{e_mod_yaws,add_headers,
>> [{cookies,test,aaaa,"/"},[]]},
>> {e_mod_yaws,controller_exec,2},
>> {e_mod_yaws,with_formatted_error,1},
>> {e_mod_yaws,out,1},
>> {yaws_server,deliver_dyn_part,8},
>> {yaws_server,aloop,3},
>> {yaws_server,acceptor0,2},
>> {proc_lib,init_p_do_apply,3}]}
>
>Moreover, deducting from the stack trace of the crash, I think both cookie name
>and cookie value should be strings (now they are atoms).
>
>>
>> Is i use i wrong? please give me handle, thanks. :)
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Erlangweb-users mailing list
>> Erl...@li...
>> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
>> http://www.erlang-web.org/
>
>Best regards,
>Michal Ptaszek
>---------------------------------------------------
>
>---------------------------------------------------
>
>WE'VE CHANGED NAMES!
>
>Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG SOLUTIONS LTD.
>
>www.erlang-solutions.com
> |
|
From: Michal P. <mic...@er...> - 2010-04-30 14:59:52
|
Hi,
----- "AndyChow" <diu...@16...> wrote:
> hi,
> i want to set cookie in client, and add following code in my app, like
> this:
>
> CookeName = test,
> CookieValue = aaaa,
> {headers, {cookies, CookeName, CookieValue, "/"}, {redirect,
> "/websso/register"}}.
You should probably use {cookie, Name, Val, Path}:
(http://wiki.erlang-web.org/Eptic/ServerTuples)
>
> after i rebuild and restart app, and view in browser, i get following
> error in console:
>
> reason: {function_clause,[{e_mod_yaws,add_headers,
> [{cookies,test,aaaa,"/"},[]]},
> {e_mod_yaws,controller_exec,2},
> {e_mod_yaws,with_formatted_error,1},
> {e_mod_yaws,out,1},
> {yaws_server,deliver_dyn_part,8},
> {yaws_server,aloop,3},
> {yaws_server,acceptor0,2},
> {proc_lib,init_p_do_apply,3}]}
Moreover, deducting from the stack trace of the crash, I think both cookie name
and cookie value should be strings (now they are atoms).
>
> Is i use i wrong? please give me handle, thanks. :)
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Erlangweb-users mailing list
> Erl...@li...
> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
> http://www.erlang-web.org/
Best regards,
Michal Ptaszek
---------------------------------------------------
---------------------------------------------------
WE'VE CHANGED NAMES!
Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG SOLUTIONS LTD.
www.erlang-solutions.com
|
|
From: AndyChow <diu...@16...> - 2010-04-30 14:54:29
|
hi,
i want to set cookie in client, and add following code in my app, like this:
CookeName = test,
CookieValue = aaaa,
{headers, {cookies, CookeName, CookieValue, "/"}, {redirect, "/websso/register"}}.
after i rebuild and restart app, and view in browser, i get following error in console:
reason: {function_clause,[{e_mod_yaws,add_headers,
[{cookies,test,aaaa,"/"},[]]},
{e_mod_yaws,controller_exec,2},
{e_mod_yaws,with_formatted_error,1},
{e_mod_yaws,out,1},
{yaws_server,deliver_dyn_part,8},
{yaws_server,aloop,3},
{yaws_server,acceptor0,2},
{proc_lib,init_p_do_apply,3}]}
Is i use i wrong? please give me handle, thanks. :)
|