Re: can't resolve session in xsp

2003-06-12 Thread morten svanæs
Hi,
I forgot to say the xsp called is called from within another xmlform script.
Seems like something happens when you use a xsp inside another match ?


- Original Message -
From: morten svanæs [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 12:47 AM
Subject: can't resolve session in xsp


 Hi,
 I'm getting a error mesage when I'm trying to access the session in
 a xsp script and I don't understand why.
 It happens when I'm trying to assign a session variable with
 session.getAttribute to a another variable, but when I write
 xsp-session:get-attribute name=user/ outside the xsp:logic
 it works.
 Here is the error message:

  org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error compiling
 meny_xsp:
 ERROR 1 (org\apache\cocoon\www\xmldbform\useradmin\meny_xsp.java):
 ...

 String myvar =

 (

 // start error (lines 81-81) session cannot be resolved
 XSPSessionHelper.getSessionAttribute(session,

 // end error
 String.valueOf(user),
 null)
 )
 ;

 ...
 Line 81, column 0: session cannot be resolved

 Here is a code snippet from my xsp file:
  xsp:logic
   String myvar = xsp-session:get-attribute name=user/;
  /xsp:logic

 I'm running cocoon-2.1m2
 Any help or suggestions would be greatly appreciated.

 Regards
 Morten Svanaes



 -
 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: can't resolve session in xsp

2003-06-12 Thread morten svanæs
Hi all,
seems like I finaly found the solution myself.
Maybe it's pretty obvious but anyway.
It seems like you can't get session before
the first tag in a xsp.

THIS DON'T WORK! ,reports can't resolve session
xsp:page
xsp:logic
String sessionvar = (String)session.getAttribute(foo);
/xsp:logic

tag
/tag
/xsp:page

THIS WORKS!
xsp:page
xsp:logic

/xsp:logic

tag
xsp:logic
String sessionvar = (String)session.getAttribute(foo);
/xsp:logic
/tag
/xsp:page

Can someone please explain to me why ?

Morten Svanaes

- Original Message -
From: morten svanæs [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 10:44 AM
Subject: Re: can't resolve session in xsp


 Hi,
 I forgot to say the xsp called is called from within another xmlform
script.
 Seems like something happens when you use a xsp inside another match ?


 - Original Message -
 From: morten svanæs [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, June 12, 2003 12:47 AM
 Subject: can't resolve session in xsp


  Hi,
  I'm getting a error mesage when I'm trying to access the session in
  a xsp script and I don't understand why.
  It happens when I'm trying to assign a session variable with
  session.getAttribute to a another variable, but when I write
  xsp-session:get-attribute name=user/ outside the xsp:logic
  it works.
  Here is the error message:
 
   org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
  org.apache.cocoon.ProcessingException: Language Exception:
  org.apache.cocoon.components.language.LanguageException: Error compiling
  meny_xsp:
  ERROR 1 (org\apache\cocoon\www\xmldbform\useradmin\meny_xsp.java):
  ...
 
  String myvar =
 
  (
 
  // start error (lines 81-81) session cannot be resolved
  XSPSessionHelper.getSessionAttribute(session,
 
  // end error
  String.valueOf(user),
  null)
  )
  ;
 
  ...
  Line 81, column 0: session cannot be resolved
 
  Here is a code snippet from my xsp file:
   xsp:logic
String myvar = xsp-session:get-attribute name=user/;
   /xsp:logic
 
  I'm running cocoon-2.1m2
  Any help or suggestions would be greatly appreciated.
 
  Regards
  Morten Svanaes
 
 
 
  -
  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: can't resolve session in xsp

2003-06-12 Thread Geoff Howard
Remember that xsp (like jsp) gets compiled into a java class - a
Cocoon Generator.  In order to account for all the things people
might want to do (define additional methods, etc) only the code
inside the first tag gets placed inside the generate() method of
the resulting generator.  XSP defines some convenience member
variables like session, request, etc. but they are not initiated
yet when you are referring to them below.

This whole process might be a lot less mysterious if you go examine
the .java file that is created from your xsp prior to compilation.
It's probably under your servlet container's work directory under
the cocoon-files directory.  Dig around and you'll see a directory
tree that starts with org/apache/cocoon/... look in there and you'll
find it.

HTH,
Geoff Howard

 -Original Message-
 From: morten svanæs [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 12, 2003 4:13 PM
 To: [EMAIL PROTECTED]
 Subject: Re: can't resolve session in xsp


 Hi all,
 seems like I finaly found the solution myself.
 Maybe it's pretty obvious but anyway.
 It seems like you can't get session before
 the first tag in a xsp.

 THIS DON'T WORK! ,reports can't resolve session
 xsp:page
 xsp:logic
 String sessionvar = (String)session.getAttribute(foo);
 /xsp:logic

 tag
 /tag
 /xsp:page

 THIS WORKS!
 xsp:page
 xsp:logic

 /xsp:logic

 tag
 xsp:logic
 String sessionvar = (String)session.getAttribute(foo);
 /xsp:logic
 /tag
 /xsp:page

 Can someone please explain to me why ?

 Morten Svanaes

 - Original Message -
 From: morten svanæs [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, June 12, 2003 10:44 AM
 Subject: Re: can't resolve session in xsp


  Hi,
  I forgot to say the xsp called is called from within another xmlform
 script.
  Seems like something happens when you use a xsp inside another match ?
 
 
  - Original Message -
  From: morten svanæs [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, June 12, 2003 12:47 AM
  Subject: can't resolve session in xsp
 
 
   Hi,
   I'm getting a error mesage when I'm trying to access the session in
   a xsp script and I don't understand why.
   It happens when I'm trying to assign a session variable with
   session.getAttribute to a another variable, but when I write
   xsp-session:get-attribute name=user/ outside the xsp:logic
   it works.
   Here is the error message:
  
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
   org.apache.cocoon.ProcessingException: Language Exception:
   org.apache.cocoon.components.language.LanguageException:
 Error compiling
   meny_xsp:
   ERROR 1 (org\apache\cocoon\www\xmldbform\useradmin\meny_xsp.java):
   ...
  
   String myvar =
  
   (
  
   // start error (lines 81-81) session cannot be resolved
   XSPSessionHelper.getSessionAttribute(session,
  
   // end error
   String.valueOf(user),
   null)
   )
   ;
  
   ...
   Line 81, column 0: session cannot be resolved
  
   Here is a code snippet from my xsp file:
xsp:logic
 String myvar = xsp-session:get-attribute name=user/;
/xsp:logic
  
   I'm running cocoon-2.1m2
   Any help or suggestions would be greatly appreciated.
  
   Regards
   Morten Svanaes
  
  
  
   -
   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]





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



can't resolve session in xsp

2003-06-11 Thread morten svanæs
Hi,
I'm getting a error mesage when I'm trying to access the session in
a xsp script and I don't understand why.
It happens when I'm trying to assign a session variable with
session.getAttribute to a another variable, but when I write
xsp-session:get-attribute name=user/ outside the xsp:logic
it works.
Here is the error message:

 org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
meny_xsp:
ERROR 1 (org\apache\cocoon\www\xmldbform\useradmin\meny_xsp.java):
...

String myvar =

(

// start error (lines 81-81) session cannot be resolved
XSPSessionHelper.getSessionAttribute(session,

// end error
String.valueOf(user),
null)
)
;

...
Line 81, column 0: session cannot be resolved

Here is a code snippet from my xsp file:
 xsp:logic
  String myvar = xsp-session:get-attribute name=user/;
 /xsp:logic

I'm running cocoon-2.1m2
Any help or suggestions would be greatly appreciated.

Regards
Morten Svanaes



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



Re: [AUTH-FRAMEWORK] Session in xsp.

2002-09-25 Thread Vadim Gritsenko

Antonio Gallardo Rivera wrote:

Can I use session variables into a XSP? I cannot reach it only trought a 
transformation. How I must declare the name space to use it in XSP since


Antonio,



xsp:page
xmlns:xsp-session=http://apache.org/xsp/session/2.0; 
create-session=true
xmlns:xsp=http://apache.org/xsp;

does not work.


This is to access Cocoon session object using session logicsheet. Read 
more on:
http://xml.apache.org/cocoon/userdocs/xsp/session.html


Currently I need to use:

   xmlns:session=http://cocoon.apache.org/session/1.0; 


This one allows you to work with /session framework, /also known as 
/sunShine, and has nothing to do with sessions above. This sunShine 
sessions are available via transformer. Read more on:
/http://xml.apache.org/cocoon/developing/webapps/sunshine.html
/
Please go through examples also.


Regards,
Vadim/


and then make a transformation before the use: for example (sitemap):

!-- Welcome page - Protected --
  map:match pattern=welcome
map:act type=auth-protect
   map:parameter name=handler value=myhandler/
map:generate src=docs/welcome.xsp type=serverpages/
map:transform type=session/
  ^^
   - The transform needed currently :(
/map:act
map:transform src=stylesheets/mystyle.xsl/
map:serialize/
  /map:match

Regards,

Antonio Gallardo
  



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

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




Re: [AUTH-FRAMEWORK] Session in xsp.

2002-09-25 Thread Antonio Gallardo Rivera

Thanks for the info Vadim.

I am using 2.1-CVS. I read it and currently I am working on the 
auth-framework. The question is that we cannot access to 

session:getxml from the called session transformer using XSP. IT does not 
work. I know there is a bug that prevent the use of 2 pipelines to make a 
little workaround. Then is Cocoon will continue featuring XSP, we need a way 
to use the session:getxml to get the values we stored there from a XSP.

I am just trying to help in this XSP issue. All your comments are welcome. I 
am juat a newbie trying to make use of Cocoon. Like a Cocoon guru all your 
comments are always welcome to me. Thanks for help me to understand the 
Cocoon way. I believe in Cocoon. But currently I dont know if I get the right 
way using XSP. :-/ What do you think?

Regards,

Antonio Gallardo.



El Miércoles, 25 de Septiembre de 2002 12:21, Vadim Gritsenko escribió:
 Antonio Gallardo Rivera wrote:
 Can I use session variables into a XSP? I cannot reach it only trought a
 transformation. How I must declare the name space to use it in XSP since

 Antonio,

 xsp:page
 xmlns:xsp-session=http://apache.org/xsp/session/2.0;
 create-session=true
 xmlns:xsp=http://apache.org/xsp;
 
 does not work.

 This is to access Cocoon session object using session logicsheet. Read
 more on:
 http://xml.apache.org/cocoon/userdocs/xsp/session.html

 Currently I need to use:
 
  xmlns:session=http://cocoon.apache.org/session/1.0;

 This one allows you to work with /session framework, /also known as
 /sunShine, and has nothing to do with sessions above. This sunShine
 sessions are available via transformer. Read more on:
 /http://xml.apache.org/cocoon/developing/webapps/sunshine.html
 /
 Please go through examples also.


 Regards,
 Vadim/

 and then make a transformation before the use: for example (sitemap):
 
 !-- Welcome page - Protected --
   map:match pattern=welcome
 map:act type=auth-protect
  map:parameter name=handler value=myhandler/
 map:generate src=docs/welcome.xsp type=serverpages/
 map:transform type=session/
 ^^
  - The transform needed currently :(
 /map:act
 map:transform src=stylesheets/mystyle.xsl/
 map:serialize/
   /map:match
 
 Regards,
 
 Antonio Gallardo

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

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

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

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




Re: [AUTH-FRAMEWORK] Session in xsp.

2002-09-25 Thread Vadim Gritsenko

Antonio Gallardo Rivera wrote:

Thanks for the info Vadim.

I am using 2.1-CVS. I read it and currently I am working on the 
auth-framework. The question is that we cannot access to 

session:getxml from the called session transformer using XSP. IT does not 
work. I know there is a bug that prevent the use of 2 pipelines to make a 
little workaround. Then is Cocoon will continue featuring XSP, we need a way 
to use the session:getxml to get the values we stored there from a XSP.

I am just trying to help in this XSP issue. All your comments are welcome. I 
am juat a newbie trying to make use of Cocoon. Like a Cocoon guru all your 
comments are always welcome to me. Thanks for help me to understand the 
Cocoon way. I believe in Cocoon. But currently I dont know if I get the right 
way using XSP. :-/ What do you think?


I'm aware of this limitation of XSP / session transformer. In Cocoon, we 
have xscript logicsheet and session transformer which provide somewhat 
similar functionality but do not allow sharing of data between them. It 
is on TODO list to make these two parts play well together. It involves 
changes in how xscript's variables are represented in memory, and may be 
some changes to sessions transformer on way how it stores session 
contexts.

I'm confident we will fix this issue, sooner or later, it just always 
matter of time.

Vadim


Regards,

Antonio Gallardo.



El Miércoles, 25 de Septiembre de 2002 12:21, Vadim Gritsenko escribió:
  

Antonio Gallardo Rivera wrote:


Can I use session variables into a XSP? I cannot reach it only trought a
transformation. How I must declare the name space to use it in XSP since
  

Antonio,



xsp:page
   xmlns:xsp-session=http://apache.org/xsp/session/2.0;
create-session=true
   xmlns:xsp=http://apache.org/xsp;

does not work.
  

This is to access Cocoon session object using session logicsheet. Read
more on:
http://xml.apache.org/cocoon/userdocs/xsp/session.html



Currently I need to use:

 xmlns:session=http://cocoon.apache.org/session/1.0;
  

This one allows you to work with /session framework, /also known as
/sunShine, and has nothing to do with sessions above. This sunShine
sessions are available via transformer. Read more on:
/http://xml.apache.org/cocoon/developing/webapps/sunshine.html
/
Please go through examples also.


Regards,
Vadim/



and then make a transformation before the use: for example (sitemap):

!-- Welcome page - Protected --
 map:match pattern=welcome
   map:act type=auth-protect
 map:parameter name=handler value=myhandler/
   map:generate src=docs/welcome.xsp type=serverpages/
   map:transform type=session/
^^
 - The transform needed currently :(
   /map:act
   map:transform src=stylesheets/mystyle.xsl/
   map:serialize/
 /map:match

Regards,

Antonio Gallardo
  





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

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




RE: session in xsp

2002-09-24 Thread Luca Morandini

Gabor,

why don't you add a writeDOMSession transforming step ?

You could generate an element using redefine-params.xsl with all the request 
paremeters you like, and then write that very element
to the session.

Best regards,

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


 -Original Message-
 From: Gabor Bartha [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 24, 2002 1:14 PM
 To: [EMAIL PROTECTED]
 Subject: session in xsp


 HI,

 I've got a page with input parameters, an action validate the
 parameters. If the validation (the action) is success I want to redefine
 parameters as get all posted parameters and put them to the session. I
 want it do in the redefine-params.xsl like here:

 map:match pattern=examples/xsp/welcome
   map:act type=form-validator
   map:parameter name=descriptor
value=context:///mount/myapp/descriptor.xml/
   map:parameter name=validate-set value=query/
   map:transform src=stylesheets/redefine-params.xsl
   map:parameter name=use-request-parameters value=true/
   /map:transform
   map:generate src=examples/xsp/searching.xsp/
   map:transform src=stylesheets/simple-page2html.xsl/
   map:serialize/
 /map:act
   map:generate src=examples/xsp/query.xsp/
   map:transform src=stylesheets/simple-page2html.xsl/
   map:serialize/
 /map:match

 how can I access the session from the redefine-params.xsl , because I
 want to put parameters into session but I cannot.
 Or is there any other solution to do this (define an own action is not
 acceptable for me)?

 Gabor


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

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



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

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




Re: session in xsp

2002-09-24 Thread Gabor Bartha

Hi Luca,

I have to change and check some of posted parameters' names and values. 
That's why I want to use an xsl (or anything else where I can define 
rules to changes) and cannot use a writeDOMSession transformer. After it 
I can use the writeDOMSession

Gabor

Luca Morandini wrote:

Gabor,

why don't you add a writeDOMSession transforming step ?

You could generate an element using redefine-params.xsl with all the request 
paremeters you like, and then write that very element
to the session.

Best regards,

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


  

-Original Message-
From: Gabor Bartha [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 1:14 PM
To: [EMAIL PROTECTED]
Subject: session in xsp


HI,

I've got a page with input parameters, an action validate the
parameters. If the validation (the action) is success I want to redefine
parameters as get all posted parameters and put them to the session. I
want it do in the redefine-params.xsl like here:

map:match pattern=examples/xsp/welcome
  map:act type=form-validator
  map:parameter name=descriptor
   value=context:///mount/myapp/descriptor.xml/
  map:parameter name=validate-set value=query/
  map:transform src=stylesheets/redefine-params.xsl
  map:parameter name=use-request-parameters value=true/
  /map:transform
  map:generate src=examples/xsp/searching.xsp/
  map:transform src=stylesheets/simple-page2html.xsl/
  map:serialize/
/map:act
  map:generate src=examples/xsp/query.xsp/
  map:transform src=stylesheets/simple-page2html.xsl/
  map:serialize/
/map:match

how can I access the session from the redefine-params.xsl , because I
want to put parameters into session but I cannot.
Or is there any other solution to do this (define an own action is not
acceptable for me)?

Gabor


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

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





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

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



  





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

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




[AUTH-FRAMEWORK] Session in xsp.

2002-09-23 Thread Antonio Gallardo Rivera

Can I use session variables into a XSP? I cannot reach it only trought a 
transformation. How I must declare the name space to use it in XSP since

xsp:page
xmlns:xsp-session=http://apache.org/xsp/session/2.0; 
create-session=true
xmlns:xsp=http://apache.org/xsp;

does not work.

Currently I need to use:

xmlns:session=http://cocoon.apache.org/session/1.0; 

and then make a transformation before the use: for example (sitemap):

!-- Welcome page - Protected --
  map:match pattern=welcome
map:act type=auth-protect
map:parameter name=handler value=myhandler/
map:generate src=docs/welcome.xsp type=serverpages/
map:transform type=session/
   ^^
- The transform needed currently :(
/map:act
map:transform src=stylesheets/mystyle.xsl/
map:serialize/
  /map:match

Regards,

Antonio Gallardo

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

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




access session in xsp

2002-06-05 Thread Christoph Stocker

hi!

i use weblogic6.0sp2, cocoon2.0.2 and win2000

i want to access the session in an xsp.


xsp:page
language=java
xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-session=http://apache.org/xsp/session/2.0;


xsp:logic
org.apache.cocoon.environment.http.HttpSession session = 
 
(org.apache.cocoon.environment.http.HttpSession)request.getSession();

String foo = (String)session.getAttribute(errorData);
xsp:logic
.
.
.

/xsp:page


but i always get the following error-message (also if
i comment the line -- String foo =
(String)session.getAttribute(errorData);


Language Exception 

More precisely:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error while
instantiating org\apache\cocoon\www\registrierung\error_xsp:
java.lang.NullPointerException 


any idea

greetings, chris


-
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]




RE: access session in xsp

2002-06-05 Thread Vadim Gritsenko

 From: Christoph Stocker [mailto:[EMAIL PROTECTED]]
 
 hi!
 
 i use weblogic6.0sp2, cocoon2.0.2 and win2000
 
 i want to access the session in an xsp.
 
 
 xsp:page
   language=java
   xmlns:xsp=http://apache.org/xsp;
   xmlns:xsp-session=http://apache.org/xsp/session/2.0;
 
 
 xsp:logic

This is page 'global' context - Java code goes into class itself.


   org.apache.cocoon.environment.http.HttpSession session =
 
 (org.apache.cocoon.environment.http.HttpSession)request.getSession();

'request' variable here is not initialized yet.


You have to put this block inside document tag.

Vadim

   String foo = (String)session.getAttribute(errorData);
 xsp:logic
 .
 .
 .
 
 /xsp:page
 
 
 but i always get the following error-message (also if
 i comment the line -- String foo =
 (String)session.getAttribute(errorData);
 
 
 Language Exception
 
 More precisely:
 
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error while
 instantiating org\apache\cocoon\www\registrierung\error_xsp:
 java.lang.NullPointerException
 
 
 any idea
 
 greetings, chris
 
 
 -
 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]


-
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]




Session in XSP

2002-05-06 Thread yuryx

Hello all!

May be anyone to answer me for the next question:
Why org.apache.cocoon.environment.Session not available in XSP?
Why cocoon-dev shouldn't built-in it into XSP as 
org.apache.cocoon.environment.Request parameter (for example)?

Thanx.
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]




Re: Session in XSP

2002-05-06 Thread yuryx

yuryx wrote:

 Hello all!

 May be anyone to answer me for the next question:
 Why org.apache.cocoon.environment.Session not available in XSP?
 Why cocoon-dev shouldn't built-in it into XSP as 
 org.apache.cocoon.environment.Request parameter (for example)?

 Thanx.
 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]

Sorry by the question.
In Cocoon2.0.2-2.1-dev object session is present in XSP.

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]




Re: Dynamic (Session) XML -- XSP -- XSL

2002-02-25 Thread Olivier Rossel

Jegadish wrote:

 Hi,
 I have a serious problem,Which I don't know how to solve.Please help 
 me to solve this problem.
 I have a Xml string (A) put in session by a servlet and a Xsp is 
 called.( without any XML file pre-existing )

  

 eg: (A)

  

 ARCHIVES 
 MESSAGES
 STARTMSGNO1/ STARTMSGNO
 ENDMSGNO10/ ENDMSGNO
 MOREMSGSFALSE/ MOREMSGS
 /MESSAGES
 /ARCHIVES

  

  

 The Xsp  pulls out the string (A) from session

 and it's ARCHIVES \MESSAGES\ MOREMSGS value is changed to TRUE .
 How can I call a Xsl to render the Xml (A) being modified in the Xsp.
 Thankz for any help
 Jegadish.P


I am not sure to understand really your problem.
You are in the classic process of XSP generation + XSL transformation + 
HTML (or whatever) serialization.
You should describe a pipeline in your sitemap.xconf that matches the 
URL that ends with the name of your xsp, and
describe which XSL is supposed to be used, and which serializer is launched.

I sent a previous message about the general philosophy of sitemaps:
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101431445503415w=2



-
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]




Modify Xml form session in Xsp

2001-12-06 Thread Jegadish


Hi,
I have a serious problem,Which I don't know how to solve.
I have a Xml string in session,In Xsp I pull out the string from session and
how can I modify that Xml string in my same Xsp and call a Xsl to render the
Xml being modified in the Xsp.
Thankz for any help
Jegadish.P


-
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]