RE: Session problems!!!

2003-02-21 Thread Luca Morandini
Maxime,

have you already checked the list of attributes by using: 
xsp-session:get-attribute-names as=xml/ ?

This in order to know whether it has been created (and then it is a problem with its 
value), or it has not (and then it is a sesison
problem).

Regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 21, 2003 9:27 AM
 To: [EMAIL PROTECTED]
 Subject: Session problems!!!


 How does sessions work???
 I created a login form like in the Cocoon developer's handbook
 chapter8, then the login xsp page as in the book.
 That works, I get on my page something like this
 User 'Guest' has been authentificated  but when I write

 xsp-session:get-attribute name=user/


 I don't get anything!!!

 Please help!

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Session problems!!!

2003-02-21 Thread Maxime.Gheysen
When I write xsp-session:get-attribute-names as=xml/ I don't get
anything. Does that mean my session is not created? But I specified 
xsp:page language=java 
xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-session=http://apache.org/xsp/session/2.0;
create-session=true


And then xsp-session:set-attributeuser/xsp-session:set-attribute;
Where user=Guest

-Original Message-
From: Luca Morandini [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 21, 2003 9:38 AM
To: [EMAIL PROTECTED]
Subject: RE: Session problems!!!


Maxime,

have you already checked the list of attributes by using:
xsp-session:get-attribute-names as=xml/ ?

This in order to know whether it has been created (and then it is a
problem with its value), or it has not (and then it is a sesison
problem).

Regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 21, 2003 9:27 AM
 To: [EMAIL PROTECTED]
 Subject: Session problems!!!


 How does sessions work???
 I created a login form like in the Cocoon developer's handbook 
 chapter8, then the login xsp page as in the book. That works, I get on

 my page something like this User 'Guest' has been authentificated  but

 when I write

 xsp-session:get-attribute name=user/


 I don't get anything!!!

 Please help!

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Session problems!!!

2003-02-21 Thread Luca Morandini
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 21, 2003 9:53 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: Session problems!!!
 
 
 When I write xsp-session:get-attribute-names as=xml/ I don't get
 anything. Does that mean my session is not created? But I specified 
 xsp:page language=java 
   xmlns:xsp=http://apache.org/xsp;
   xmlns:xsp-session=http://apache.org/xsp/session/2.0;
   create-session=true
 
 
 And then xsp-session:set-attributeuser/xsp-session:set-attribute;
 Where user=Guest

shouldn't it be: xsp-session:set-attribute 
name=useruser/xsp-session:set-attribute ?

Regards,

- 
   Luca Morandini 
   GIS Consultant 
  [EMAIL PROTECTED] 
http://utenti.tripod.it/lmorandini/index.html 
-
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Session problems!!!

2003-02-21 Thread Maxime.Gheysen
Both are correct. The problem is somewhere with the creation of the
session.

 
 
 When I write xsp-session:get-attribute-names as=xml/ I don't get 
 anything. Does that mean my session is not created? But I specified 
 xsp:page language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:xsp-session=http://apache.org/xsp/session/2.0;
  create-session=true
 
 
 And then xsp-session:set-attributeuser/xsp-session:set-attribute;
 Where user=Guest
 but xsp-session:get-attribute name=user/ is null too!



shouldn't it be: xsp-session:set-attribute
name=useruser/xsp-session:set-attribute ?

Regards,



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Session problems!!!

2003-02-21 Thread Luca Morandini
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 21, 2003 10:05 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: Session problems!!!
 
 
 Both are correct. The problem is somewhere with the creation of the
 session.
 

Let's put it this way: this works just fine on my 2.0.3:

?xml version=1.0 encoding=iso-8859-1 standalone=yes?
xsp:page
xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-session=http://apache.org/xsp/session/2.0;
create-session=true

page
xsp-session:set-attribute name=status/
xsp:logic
String user=guest;
/xsp:logic
xsp-session:set-attribute 
name=userxsp:expruser/xsp:expr/xsp-session:set-attribute
xsp-session:get-attribute-names as=xml/
xsp-session:get-attribute name=user as=xml/
/page

/xsp:page

Regards,


- 
   Luca Morandini 
   GIS Consultant 
  [EMAIL PROTECTED] 
http://utenti.tripod.it/lmorandini/index.html 
-
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Session problems!!!

2003-02-21 Thread Maxime.Gheysen
If I copy the code you have I get nothing! Just 
Guest 
But that's because of xsp:expruser/xsp:expr, and when I write
xsp-session:get-attribute name=user as=xml/ I don't get anything!

-Original Message-
From: Luca Morandini [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 21, 2003 10:34 AM
To: [EMAIL PROTECTED]
Subject: RE: Session problems!!!


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 21, 2003 10:05 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: Session problems!!!
 
 
 Both are correct. The problem is somewhere with the creation of the 
 session.
 

Let's put it this way: this works just fine on my 2.0.3:

?xml version=1.0 encoding=iso-8859-1 standalone=yes? xsp:page
xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-session=http://apache.org/xsp/session/2.0;
create-session=true

page
xsp-session:set-attribute name=status/
xsp:logic
String user=guest;
/xsp:logic
xsp-session:set-attribute
name=userxsp:expruser/xsp:expr/xsp-session:set-attribute
xsp-session:get-attribute-names as=xml/
xsp-session:get-attribute name=user as=xml/
/page

/xsp:page

Regards,


- 
   Luca Morandini 
   GIS Consultant 
  [EMAIL PROTECTED] 
http://utenti.tripod.it/lmorandini/index.html 
-
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Session problems!!!

2003-02-21 Thread Luca Morandini
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 21, 2003 10:42 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: Session problems!!!


 If I copy the code you have I get nothing! Just
 Guest
 But that's because of xsp:expruser/xsp:expr, and when I write
 xsp-session:get-attribute name=user as=xml/ I don't get anything!

Hmm... therefore it should be something related to your environment, have you already 
searched the list or bugzilla for such
anomalies ?

BTW, which environment are you working on (mine is Tomcat 4.0.1 and Cocoon 2.0.3 on 
Windows 2000) ?

Regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Session problems!!!

2003-02-21 Thread Maxime.Gheysen
The versions are the same, I'm just using it under Windows NT4 SP6.
I'll try to copy the sample and modify it...

What is bugzilla?

-Original Message-
From: Luca Morandini [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 21, 2003 10:48 AM
To: [EMAIL PROTECTED]
Subject: RE: Session problems!!!


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 21, 2003 10:42 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: Session problems!!!


 If I copy the code you have I get nothing! Just
 Guest
 But that's because of xsp:expruser/xsp:expr, and when I write 
 xsp-session:get-attribute name=user as=xml/ I don't get 
 anything!

Hmm... therefore it should be something related to your environment,
have you already searched the list or bugzilla for such anomalies ?

BTW, which environment are you working on (mine is Tomcat 4.0.1 and
Cocoon 2.0.3 on Windows 2000) ?

Regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Session problems!!!

2003-02-21 Thread Luca Morandini
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 21, 2003 10:50 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: Session problems!!!


 The versions are the same, I'm just using it under Windows NT4 SP6.
 I'll try to copy the sample and modify it...

 What is bugzilla?

The bug repository of Cocoon (well, of many other projects, actually), check it out 
at: http://nagoya.apache.org/bugzilla/index.html

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: SESSION PROBLEMS

2002-03-18 Thread yuryx

Stefano Bonnin wrote:

Hi,

I'm trying to convert an old C1 application in C2, but I found a lot of
problems. All session (request/response) management has changed.

For example:

with C1 I wrote:

xsp:logic
if ((session.isNew()) and (myVariable == myValue)) {

.
.
response.sendRedirect(response.encodeURL(My URL));

}
/xsp:logic

Now, with C2, how can I do this?
I tried with this but without success:
xsp:logic
if ((session:is-new/) and (myVariable == myValue)) {

.
.
response.sendRedirect(response.encodeURL(My URL));
}
/xsp:logic

Line 149, column 33: Method sendRedirect(java.lang.String) not found in
interface org.apache.cocoon.environment.Response


and, , another problem:

if I write

xsp:logic
if ((session.isNew()) and (myVariable == myValue)) {

.
.
.
}
/xsp:logic

Cocoon return me: Line 121, column 8: Undefined variable or class name:
session

why? In the Cocoon examples I read a document like this (whith session
object used instead of xsp tags)


Please, help me!


---
Outgoing mail is certified Virus Free. (FLASHH!)
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.338 / Virus Database: 189 - Release Date: 14/03/02


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Try for use that  xsp-session:is-new/ :)

Regards.
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]