[Rife-users] strange problem with pathinfo when using mod_jk

2006-03-17 Thread hui
when using tomcat alone, everything is fine.
but when go to apache with mod_jk, there comes problem:

look at:
(tomcat standalone)
http://65.99.194.156:8080/nxnx/mix/%E4%BD%A0%E5%A5%BD

result: UTF-8%E4%BD%A0%E5%A5%BD你好.. ---this is correct what I want.

but:
(apache+mod_jk)
http://65.99.194.156/nxnx/mix/%E4%BD%A0%E5%A5%BD

result: UTF-8 ---missed query string

with the results above i use the code:
===
 public void processElement() throws EngineException {
setContentType(text/xml);
String name;
try {
print(getRequestCharacterEncoding());

print(getInput(id));

print(URLDecoder.decode(getInput(id).trim(), UTF-8));

name = URLDecoder.decode(getInput(id).trim(), UTF-8);
..


I thought it was apache or mod_jk config problem at first, and googled
for a whole day,
but not working, then I tried:

http://65.99.194.156/nxnx/W.jsp?%E4%BD%A0%E5%A5%BD

http://65.99.194.156:8080/nxnx/W.jsp?%E4%BD%A0%E5%A5%BD

the query is not missing!

does anybody know where is the problem?

thank you!


hui.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] strange problem with pathinfo when using mod_jk

2006-03-17 Thread Geert Bevin

Hi Hui,

I'm sorry I can't help you with that, I don't use mod_jk.

You might want to ask on their mailing list. You can also try writing  
a simple servlet (without RIFE) to see if the pathinfo in an URL like  
http://65.99.194.156:8080/nxnx/mix/%E4%BD%A0%E5%A5%B arrives  
correctly through mod_jk at the servlet.


Sorry that I can't help more.

Best regards,

Geert

On 17-mrt-06, at 10:50, hui wrote:


when using tomcat alone, everything is fine.
but when go to apache with mod_jk, there comes problem:

look at:
(tomcat standalone)
http://65.99.194.156:8080/nxnx/mix/%E4%BD%A0%E5%A5%BD

result: UTF-8%E4%BD%A0%E5%A5%BD你好.. ---this is correct what  
I want.


but:
(apache+mod_jk)
http://65.99.194.156/nxnx/mix/%E4%BD%A0%E5%A5%BD

result: UTF-8 ---missed query string

with the results above i use the code:
===
 public void processElement() throws EngineException {
setContentType(text/xml);
String name;
try {
print(getRequestCharacterEncoding());

print(getInput(id));

print(URLDecoder.decode(getInput(id).trim(), UTF-8));

name = URLDecoder.decode(getInput(id).trim(), UTF-8);
..


I thought it was apache or mod_jk config problem at first, and googled
for a whole day,
but not working, then I tried:

http://65.99.194.156/nxnx/W.jsp?%E4%BD%A0%E5%A5%BD

http://65.99.194.156:8080/nxnx/W.jsp?%E4%BD%A0%E5%A5%BD

the query is not missing!

does anybody know where is the problem?

thank you!


hui.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin Uwyn bvba   GTalk: [EMAIL PROTECTED]
Use what you need Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


[Rife-users] logout of memory user hangs

2006-03-17 Thread David Herbert
I am having trouble getting a simple logout working with a logged-in 
memory user.  I have a stage of my app when I need to install lots of 
Postgres tables, so I log in as a memory user admin.  This displays a 
menu of options, including logout.  Everything works fine apart from the 
logging out, which hangs.  What I would like is for the logout 
functionality to take me back to the setup menu page as a logged-out 
user i.e. redisplay the login screen. I believe that the snapback 
functionality should do this? Where am I going wrong?


Relevant bits of site file:

site
globalvar name=authid/
arrival destid=SETUP/
departure srcid=LOGOUT/
element id=AUTHMEM file=authmem.xml/
element id=SETUP file=setup.xml url=/setup inherits=AUTHMEM
flowlink srcexit=logout destid=LOGOUT/
/element

... other elements removed ...

element id=LOGOUT file=rife/logout/passthrough/memory.xml 
url=/logout

flowlink srcexit=logged_out snapback=true/
/element
/site

Relevant bit of setup.xml:

element implementation=uk.co.communitytech.SetupHome
property name=namehome/property

... other exits removed ...

submission name=logout/
exit name=logout/
/element

Relevant bit of authmem.xml:

element extends=rife/authenticated/memory.xml
property name=template_namelogin/property
property name=roleadmin/property
submission name=credentials
param name=login/
param name=password/
/submission
childtrigger name=authid/
/element

Any help much appreciated!

David Herbert.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] strange problem with pathinfo when using mod_jk

2006-03-17 Thread Geert Bevin

That's not pathinfo, that's a query parameter.

On 17-mrt-06, at 11:45, hui wrote:


servlet is great:

http://65.99.194.156/servlets-examples/test?name=%E4%BD%A0%E5%A5%BD

http://65.99.194.156:8080/servlets-examples/test?name=%E4%BD%A0%E5% 
A5%BD


with code:

===
public class ServletTest extends HttpServlet {
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {

}

protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
request.setCharacterEncoding(UTF-8);
response.setCharacterEncoding(UTF-8);
response.getWriter().write(request.getQueryString());
response.getWriter().write(request.getParameter(name));
}
}
==

i am going to eat something  so tired today..


On 3/17/06, Geert Bevin [EMAIL PROTECTED] wrote:

Hi Hui,

I'm sorry I can't help you with that, I don't use mod_jk.

You might want to ask on their mailing list. You can also try writing
a simple servlet (without RIFE) to see if the pathinfo in an URL like
http://65.99.194.156:8080/nxnx/mix/%E4%BD%A0%E5%A5%B arrives
correctly through mod_jk at the servlet.

Sorry that I can't help more.

Best regards,

Geert

On 17-mrt-06, at 10:50, hui wrote:


when using tomcat alone, everything is fine.
but when go to apache with mod_jk, there comes problem:

look at:
(tomcat standalone)
http://65.99.194.156:8080/nxnx/mix/%E4%BD%A0%E5%A5%BD

result: UTF-8%E4%BD%A0%E5%A5%BD你好.. ---this is correct what
I want.

but:
(apache+mod_jk)
http://65.99.194.156/nxnx/mix/%E4%BD%A0%E5%A5%BD

result: UTF-8 ---missed query string

with the results above i use the code:
===
 public void processElement() throws EngineException {
setContentType(text/xml);
String name;
try {
print(getRequestCharacterEncoding());

print(getInput(id));

print(URLDecoder.decode(getInput(id).trim(),  
UTF-8));


name = URLDecoder.decode(getInput(id).trim(),  
UTF-8);

..


I thought it was apache or mod_jk config problem at first, and  
googled

for a whole day,
but not working, then I tried:

http://65.99.194.156/nxnx/W.jsp?%E4%BD%A0%E5%A5%BD

http://65.99.194.156:8080/nxnx/W.jsp?%E4%BD%A0%E5%A5%BD

the query is not missing!

does anybody know where is the problem?

thank you!


hui.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin Uwyn bvba   GTalk:  
[EMAIL PROTECTED]

Use what you need Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302  
599


PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin Uwyn bvba   GTalk: [EMAIL PROTECTED]
Use what you need Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


[Rife-users] Official RIFE training course in the works

2006-03-17 Thread Geert Bevin
Hi everyone,

for those that are interested, an official course for RIFE is in the
works as a collaboration with Skills Matter. They are specialized in
open-source training in the UK and Europe.

You can find more information about this particular course here:
http://skillsmatter.com/menu/60/course/121

Feel free to give comments or suggestions, or to contact Skills Matter
about the dates and price.

Emmanuel and Stephane, since you are both in the UK, tell me if you're
interested in being involved and maybe become a trainer. I will probably
not be able to give all the trainings and it's nice if this would be
done by existing RIFE users. It pays rather well too ;-)
Contact me privately if you're interested.

Best regards,

Geert

-- 
Geert Bevin Uwyn bvba   GTalk: [EMAIL PROTECTED]
Use what you need Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] strange problem with pathinfo when using mod_jk

2006-03-17 Thread hui
I donot know, it is working now, and i donot konw why, what a day!

http://www.nxnx.net/mix/%E4%BD%A0%E5%A5%BD

On 3/17/06, Geert Bevin [EMAIL PROTECTED] wrote:
 That's not pathinfo, that's a query parameter.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] strange problem with pathinfo when using mod_jk

2006-03-17 Thread Geert Bevin

Well it least it works, that's the important part ;-)

On 17-mrt-06, at 12:00, hui wrote:


I donot know, it is working now, and i donot konw why, what a day!

http://www.nxnx.net/mix/%E4%BD%A0%E5%A5%BD

On 3/17/06, Geert Bevin [EMAIL PROTECTED] wrote:

That's not pathinfo, that's a query parameter.

___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users



--
Geert Bevin Uwyn bvba   GTalk: [EMAIL PROTECTED]
Use what you need Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] logout of memory user hangs

2006-03-17 Thread Geert Bevin

Hi David,

please read up on snapbacks, it snaps back to the first element that  
the user visited in a request. So if you create a new request that  
goes directly to the logout element, it will snap back to that element:

http://rifers.org/wiki/display/RIFE/Snapbacks

If you don't want to litter the setup element (or your subsite) with  
detection code for a submission that exist to the logout element. You  
can use precedence to isolate this.


Hope this helps,

Geert

On 17-mrt-06, at 11:41, David Herbert wrote:

I am having trouble getting a simple logout working with a logged- 
in memory user.  I have a stage of my app when I need to install  
lots of Postgres tables, so I log in as a memory user admin.  This  
displays a menu of options, including logout.  Everything works  
fine apart from the logging out, which hangs.  What I would like is  
for the logout functionality to take me back to the setup menu page  
as a logged-out user i.e. redisplay the login screen. I believe  
that the snapback functionality should do this? Where am I going  
wrong?


Relevant bits of site file:

site
globalvar name=authid/
arrival destid=SETUP/
departure srcid=LOGOUT/
element id=AUTHMEM file=authmem.xml/
element id=SETUP file=setup.xml url=/setup  
inherits=AUTHMEM

flowlink srcexit=logout destid=LOGOUT/
/element

... other elements removed ...

element id=LOGOUT file=rife/logout/passthrough/memory.xml  
url=/logout

flowlink srcexit=logged_out snapback=true/
/element
/site

Relevant bit of setup.xml:

element implementation=uk.co.communitytech.SetupHome
property name=namehome/property

... other exits removed ...

submission name=logout/
exit name=logout/
/element

Relevant bit of authmem.xml:

element extends=rife/authenticated/memory.xml
property name=template_namelogin/property
property name=roleadmin/property
submission name=credentials
param name=login/
param name=password/
/submission
childtrigger name=authid/
/element

Any help much appreciated!

David Herbert.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users



--
Geert Bevin Uwyn bvba   GTalk: [EMAIL PROTECTED]
Use what you need Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] strange problem with pathinfo when using mod_jk

2006-03-17 Thread hui
yeah, check this:  http://www.nxnx.net/mix/rife

On 3/17/06, Geert Bevin [EMAIL PROTECTED] wrote:
 Well it least it works, that's the important part ;-)
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] strange problem with pathinfo when using mod_jk

2006-03-17 Thread Geert Bevin

coool :-)

That content looks familiar ;-)

On 17-mrt-06, at 12:10, hui wrote:


yeah, check this:  http://www.nxnx.net/mix/rife

On 3/17/06, Geert Bevin [EMAIL PROTECTED] wrote:

Well it least it works, that's the important part ;-)

___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users



--
Geert Bevin Uwyn bvba   GTalk: [EMAIL PROTECTED]
Use what you need Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


[Rife-users] Re: Official RIFE training course in the works

2006-03-17 Thread Geert Bevin

Emmanuel and Stephane, since you are both in the UK, tell me if you're


Sorry Eddy, I keep forgetting that you're in the UK too. If you're  
interested in this, please contact me privately too.


--
Geert Bevin Uwyn bvba   GTalk: [EMAIL PROTECTED]
Use what you need Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Re: Official RIFE training course in the works

2006-03-17 Thread Emmanuel Okyere
definitely; pls keep me in the loop. I looked at your last blog post
too; simple and brilliant... i'll follow those lines for my talk
today.

cheers,
eokyere

On 3/17/06, Geert Bevin [EMAIL PROTECTED] wrote:
  Emmanuel and Stephane, since you are both in the UK, tell me if you're

 Sorry Eddy, I keep forgetting that you're in the UK too. If you're
 interested in this, please contact me privately too.

 --
 Geert Bevin Uwyn bvba   GTalk: [EMAIL PROTECTED]
 Use what you need Avenue de Scailmont 34  Skype: gbevin
 http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
 gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users



--
Mohandas Gandhi - You must be the change you wish to see in the world.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Re: Official RIFE training course in the works

2006-03-17 Thread Geert Bevin

Sounds cool, looking forward to the video...

On 17-mrt-06, at 12:25, Emmanuel Okyere wrote:


it went smooth, thx :) ... still learning on timing myself though... i
couldn't get enough time to show the crowd code... but there was a lot
of interaction from the word go, and most people after the session
said they really enjoyed it, so that was good.

i'll post a link to the video on the blog when it goes up... looking
forward to the rife presentation today too :)

cheers,
eokyere

On 3/17/06, Geert Bevin [EMAIL PROTECTED] wrote:

How did your presentation of yesterday go?

Emmanuel Okyere wrote:

definitely; pls keep me in the loop. I looked at your last blog post
too; simple and brilliant... i'll follow those lines for my talk
today.

cheers,
eokyere

On 3/17/06, Geert Bevin [EMAIL PROTECTED] wrote:
Emmanuel and Stephane, since you are both in the UK, tell me if  
you're

Sorry Eddy, I keep forgetting that you're in the UK too. If you're
interested in this, please contact me privately too.

--
Geert Bevin Uwyn bvba   GTalk:  
[EMAIL PROTECTED]

Use what you need Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477  
302 599


PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F  
D6A9

Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
Mohandas Gandhi - You must be the change you wish to see in the  
world.

___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users



--
Geert Bevin Uwyn bvba   GTalk:  
[EMAIL PROTECTED]

Use what you need Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302  
599


PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
Mohandas Gandhi - You must be the change you wish to see in the  
world.

___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users



--
Geert Bevin Uwyn bvba   GTalk: [EMAIL PROTECTED]
Use what you need Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] strange problem with pathinfo when using mod_jk

2006-03-17 Thread Eddy Young

hui wrote:

yeah, check this:  http://www.nxnx.net/mix/rife


If that is not a demonstration of the true power of RIFE, I don't know 
what is :-)


hui, how long did it take you to write this?

Eddy
--
http://coding.mu
http://priscimon.com/blog
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Re: Official RIFE training course in the works

2006-03-17 Thread Eddy Young

Geert Bevin wrote:

Emmanuel and Stephane, since you are both in the UK, tell me if you're


Sorry Eddy, I keep forgetting that you're in the UK too. If you're 
interested in this, please contact me privately too.


I doubt that I will be able to deal with the schedule, full-time day job 
forbid and with so many other projects on hand.


But thanks for the offer.

Eddy
--
http://coding.mu
http://priscimon.com/blog
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


[Rife-users] New article on TSS

2006-03-17 Thread Geert Bevin

Hi all,

if you feel like commenting on the article I published on my blog  
yesterday, please comment in this thread at TheServerSide:

http://www.theserverside.com/news/thread.tss?thread_id=39484

Best regards,

Geert

--
Geert Bevin Uwyn bvba   GTalk: [EMAIL PROTECTED]
Use what you need Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users