C2 error in the page "Session Logicsheet"

2001-08-22 Thread Drasko Kokic

The page under the following URL:
http://xml.apache.org/cocoon2/logicsheet-sessions.html
is still having the old namespaces for the xsp,
session, etc.
How can we change this?
TIA
Drasko 

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


-
Please check that your question has not already been answered in the
FAQ before posting. 

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


Re: Announce list?

2001-08-22 Thread Ulrich Mayring

Jeremy Crosbie wrote:
> 
> The xml-announce list already appears to handle the Cocoon announcements.

I see, thanks for the info.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Problem getting xml from DB

2001-08-22 Thread Sébastien Lefebvre

Hi,


I try to get xml from my DB (MySQL), here is my piece of code :

SELECT piano from TFiche where 
IdFiche=









node  is a child of   so I have /page/sebas

here is the piece of xml in my DB :

#B1DFB0#A4D1FF


When I try to apply a template in my XSL stylesheet, it does not apply 
the template but, instead, write the values of  and 










Hello 


Does you have any idea (I'm sure you have ;-) ) ?
What does the "root" argument of esql:get-xml mean ?

Thanks a lot

Sébastien



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Problem getting xml from DB

2001-08-22 Thread Hubert NEOtyk Iwaniuk

hi Sébastien,

> 
> Hello 

u should use match not name

hope it helps,
hubert



---
Ausgehende Mail ist zertifiziert virenfrei.
Uberpruft durch AVG Antivirus System (http://www.grisoft.com/de).
Version: 6.0.265 / Virendatenbank: 137 - Erstellungsdatum: 2001-07-18


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




esql:max-row esql:skip-row

2001-08-22 Thread Kai . Rehlen

Hi,

can someone please exlpain how to use the  and 
attributes?


mypool


select d.docid, d.title, d.author, h.date, h.histid from doc as d, history
as h
where h.docid = d.docid and d.docid != 0 and noAdmin
h.histid = (select max(h2.histid) from history as h2 where h2.docid =
d.docid) order by Order






strDate = (new
SimpleDateFormat("dd.MM.").format());strDate






I'm using Cocoon 2.0b1 and IBM DB2

Thanks a lot 

Kai 

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Problem getting xml from DB

2001-08-22 Thread Sébastien Lefebvre

Oups !!!
I had a template name because of the need of a  and I 
didn't see it !
Thanks again

Sébastien

>hi Sébastien,
>
>>
>>Hello 
>>
>
>u should use match not name
>
>hope it helps,
>hubert
>
>
>
>---
>Ausgehende Mail ist zertifiziert virenfrei.
>Uberpruft durch AVG Antivirus System (http://www.grisoft.com/de).
>Version: 6.0.265 / Virendatenbank: 137 - Erstellungsdatum: 2001-07-18
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. 
>
>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. 

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




Naming folders...bug or what?? (1.8.2)

2001-08-22 Thread annemarie . hartvigsen

Hi,

after hours of debugging (trying to figure out the fault that causes "cannot
output text before element" or something equally useful error info.), I
moved my files to another folder.

I had:

welcome/welcome.xml
welcome/welcome-html.xsl

and changed to:

startpage/welcome.xml
startpage/welcome-html.xsl

and now it works!!!

I have lots of files in folders with the same name (e.g login.xml in
login/), so that shouldn't be a problem per se.

Does anybody know what causes the problem?

Cocoon 1.8.2

/AM

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: [C2b2] document() function not working?

2001-08-22 Thread Jörg Heinicke

Hello Wes,

did you solve your problem? I also have my problem with this function, 
equal to relative/absolute path and so on, it seems to me, that the 
document()-function doesn't work.

Best proof:

   
   
   


I won't get my .. in the output-document, if it is 
written after the . And I don't get neither the  
nor the value of $test.

I work with C2b2, Tomcat 3.2.3 and Sun JDK 1.3.

What could be the problem or a workaround?

Joerg


 > Subject:
 > [C2b2] document() function not working?
 > From:
 > Wes Morgan <[EMAIL PROTECTED]>
 > Date:
 > Thu, 02 Aug 2001 10:08:36 -0400
 > To:
 > [EMAIL PROTECTED]
 >
 > Has anyone successfully used the document('otherfile.xml') function 
to > access nodes in a different XML file from within an XSLT stylesheet 
   > under Cocoon2 beta1 or 2? It seems to be unimplemented right now, 
but > I can't tell for sure if it's just because I'm using it 
incorrectly.  > If you have gotten it to work, could you post your 
working code?  > Thanks.
 >
 > Wes Morgan
 >
 >
 >
 > Subject:
 > Re: [C2b2] document() function not working?
 > From:
 > [EMAIL PROTECTED] (Rajkumar, Joseph)
 > Date:
 > Thu, 02 Aug 2001 11:31:23 -0400
 > To:
 > [EMAIL PROTECTED]
 >
 > Hi Wes
 >
 > Yes, I have used the document('otherfile.xml') and it works under 
  > cocoon2.
 >
 > Put the file 'otherfile.xml' in the same directory in which you have 
  > your xsl file or give the relative path to 'otherfile.xml' relative
 > to the directory where you have your 'xsl' file.
 >
 > Regards
 > Joseph Rajkumar
 >
 >
 > Wes Morgan wrote:
 >
 >
 > > Has anyone successfully used the document('otherfile.xml') function
 > > to access nodes in a different XML file from within an XSLT
 > > stylesheet under Cocoon2 beta1 or 2? It seems to be unimplemented
 > > right now, but I can't tell for sure if it's just because I'm using
 > > it incorrectly. If you have gotten it to work, could you post your
 > > working code? Thanks.
 > >
 > > Wes Morgan


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Need help with session:set-attribute

2001-08-22 Thread Enke Michael

Hello again,
I need some help with the session-logicsheet.
I try to set an attribute in a session
but I get always a compilation error.

Here is my xsp:

 
http://apache.org/xsp";
  xmlns:session="http://apache.org/xsp/session/2.0";
>
 

 
 
 apple
 



I create a session, try to set an attribute and destroy the session.
In the generted java file I see:
...
XSPRequestHelper.setSessionAttribute(objectModel,
 String.valueOf("fruit"),
 this.characters("apple");
)
...

For shure the semicolon must move behind the last right parenthesis.
As I saw, the session.xsl didn't change since May so this must be my
fault.
But where???

Regards,
Michael

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: message is null

2001-08-22 Thread Vadim Gritsenko

On a contrary.
:)

Regards,
Vadim

> -Original Message-
> From: Madock Chiwenda [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 12:58 AM
> To: [EMAIL PROTECTED]
> Subject: message is null
> 
> 
> Hi 
> 
> I am testing Cocoon2 on Tomcat 3.2.2. On using "Manage Employee" Sample page the 
>page works as I expected but 
> I get this 
> message on the tomcat console: "message is null". Does this means that sometiong is 
>wrong? 
> 
> Cheers
> 
> Madock
> 
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




RE: Need help with session:set-attribute

2001-08-22 Thread Vadim Gritsenko

Try
"apple"

Vadim

> -Original Message-
> From: Enke Michael [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 9:01 AM
> To: [EMAIL PROTECTED]
> Subject: Need help with session:set-attribute
> 
> 
> Hello again,
> I need some help with the session-logicsheet.
> I try to set an attribute in a session
> but I get always a compilation error.
> 
> Here is my xsp:
> 
>  
>xmlns:xsp="http://apache.org/xsp";
>   xmlns:session="http://apache.org/xsp/session/2.0";
> >
>  
> 
>  
>  
>  apple
>  
> 
> 
> 
> I create a session, try to set an attribute and destroy the session.
> In the generted java file I see:
> ...
> XSPRequestHelper.setSessionAttribute(objectModel,
>  String.valueOf("fruit"),
>  this.characters("apple");
> )
> ...
> 
> For shure the semicolon must move behind the last right parenthesis.
> As I saw, the session.xsl didn't change since May so this must be my
> fault.
> But where???
> 
> Regards,
> Michael
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




RE: Need help with session:set-attribute

2001-08-22 Thread Drasko Kokic

would anybody know how to get the session object in
C2?
I would need to pass it to some java methods :-(

--- Vadim Gritsenko <[EMAIL PROTECTED]> wrote:
> Try
> 
name="fruit">"apple"
> 
> Vadim
> 
> > -Original Message-
> > From: Enke Michael
> [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 22, 2001 9:01 AM
> > To: [EMAIL PROTECTED]
> > Subject: Need help with session:set-attribute
> > 
> > 
> > Hello again,
> > I need some help with the session-logicsheet.
> > I try to set an attribute in a session
> > but I get always a compilation error.
> > 
> > Here is my xsp:
> > 
> >  
> >  >   xmlns:xsp="http://apache.org/xsp";
> >  
> xmlns:session="http://apache.org/xsp/session/2.0";
> > >
> >  
> > 
> >  
> >  
> >   name="fruit">apple
> >  
> > 
> > 
> > 
> > I create a session, try to set an attribute and
> destroy the session.
> > In the generted java file I see:
> > ...
> >
> XSPRequestHelper.setSessionAttribute(objectModel,
> > 
> String.valueOf("fruit"),
> > 
> this.characters("apple");
> > )
> > ...
> > 
> > For shure the semicolon must move behind the last
> right parenthesis.
> > As I saw, the session.xsl didn't change since May
> so this must be my
> > fault.
> > But where???
> > 
> > Regards,
> > Michael
> > 
> >
>
-
> > Please check that your question has not already
> been answered in the
> > FAQ before posting.
> 
> > 
> > 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.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


-
Please check that your question has not already been answered in the
FAQ before posting. 

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


C2: can't match images in sitemap

2001-08-22 Thread Chris Newland

Hi All,

I'm trying to add a map:match to my sitemap to fetch images but they are not
fetched (my fault, Cocoon2 is working great)

Location of my files:

tomcat/webapps/cocoon/docs/samples/pages/my_page.xsp
tomcat/webapps/cocoon/docs/samples/images/my_image.jpg
tomcat/webapps/cocoon/stylesheets/my_xsl.xsl

sitemap entries:






(loads + processes XSP page fine)





(does not return the image)

The returned HTML contains:



As far as I can see, this is the same way that the cocoon.gif image is
fetched from samples.xml but I can't see what I'm doing wrong.

Any help would be appreciated.

Thanks,

Chris

--
Chris Newland
Software Research Engineer

Emorphia Ltd
Registered in England.  4133002
Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK

Email: [EMAIL PROTECTED]
Tel: +44 (0)1279 450100
Fax: +44 (0)1279 450102

Check out FIPA-OS at http://fipa-os.sourceforge.net/

This message may contain information proprietary to Emorphia so any
unauthorised disclosure, copying or distribution of its contents is strictly
prohibited.



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: C2 error in the page "Session Logicsheet"

2001-08-22 Thread Christopher Painter-Wakefield


How about copying the existing one into the Cocoon 1 documentation before
changing it?  It would also be nice for the original Request logicsheet
docs to be copied into the Cocoon 1 docs (they were originally for Cocoon
1, too).  There are still a lot of folks working with Cocoon 1 and asking
questions that could be answered if those docs were added to the Cocoon 1
docs.

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  C2 error in the page "Session Logicsheet"


The page under the following URL:
http://xml.apache.org/cocoon2/logicsheet-sessions.html
is still having the old namespaces for the xsp,
session, etc.
How can we change this?
TIA
Drasko





-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Need help with session:set-attribute

2001-08-22 Thread Enke Michael

Ok, if I do this, I get also an error.
Now there is the semicolon missing!
The java file looks like:
...
XSPObjectHelper.xspExpr(contentHandler,
XSPRequestHelper.getSessionId(objectModel));
 
 
this.contentHandler.endElement("", "session-id", "session-id");
 
 
this.characters("\n\n ");
 
XSPRequestHelper.setSessionAttribute(objectModel,
 String.valueOf("fruit"),
 
 ("apple")
)
this.characters("\n ");
 
XSPRequestHelper.invalidateSession(objectModel);
...

Michael

Vadim Gritsenko wrote:
> 
> Try
> name="fruit">"apple"
> 
> Vadim
> 
> > -Original Message-
> > From: Enke Michael [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 22, 2001 9:01 AM
> > To: [EMAIL PROTECTED]
> > Subject: Need help with session:set-attribute
> >
> >
> > Hello again,
> > I need some help with the session-logicsheet.
> > I try to set an attribute in a session
> > but I get always a compilation error.
> >
> > Here is my xsp:
> > 
> >
> >  >   xmlns:xsp="http://apache.org/xsp";
> >   xmlns:session="http://apache.org/xsp/session/2.0";
> > >
> >
> > 
> >  
> >
> >  apple
> >  
> > 
> > 
> >
> > I create a session, try to set an attribute and destroy the session.
> > In the generted java file I see:
> > ...
> > XSPRequestHelper.setSessionAttribute(objectModel,
> >  String.valueOf("fruit"),
> >  this.characters("apple");
> > )
> > ...
> >
> > For shure the semicolon must move behind the last right parenthesis.
> > As I saw, the session.xsl didn't change since May so this must be my
> > fault.
> > But where???
> >
> > Regards,
> > Michael
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > 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. 
> 
> 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. 

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




Re: can't match images in sitemap

2001-08-22 Thread Tibi DONDERA

IMHO,

Your configuration seems right. I bet that using

/images/my_image.jpg
will give you the image.

But the tag that is in your page should be 
After all, the URL of the page is

/pages/my_page.html,

right?

Hope this helps.


- Original Message -
From: "Chris Newland" <[EMAIL PROTECTED]>
To: "Cocoon-Users" <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 4:10 PM
Subject: C2: can't match images in sitemap


> Hi All,
>
> I'm trying to add a map:match to my sitemap to fetch images but they are
not
> fetched (my fault, Cocoon2 is working great)
>
> Location of my files:
>
> tomcat/webapps/cocoon/docs/samples/pages/my_page.xsp
> tomcat/webapps/cocoon/docs/samples/images/my_image.jpg
> tomcat/webapps/cocoon/stylesheets/my_xsl.xsl
>
> sitemap entries:
>
> 
> 
> 
> 
>
> (loads + processes XSP page fine)
>
> 
> 
> 
>
> (does not return the image)
>
> The returned HTML contains:
>
> 
>
> As far as I can see, this is the same way that the cocoon.gif image is
> fetched from samples.xml but I can't see what I'm doing wrong.
>
> Any help would be appreciated.
>
> Thanks,
>
> Chris
>
> --
> Chris Newland
> Software Research Engineer
>
> Emorphia Ltd
> Registered in England.  4133002
> Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK
>
> Email: [EMAIL PROTECTED]
> Tel: +44 (0)1279 450100
> Fax: +44 (0)1279 450102
>
> Check out FIPA-OS at http://fipa-os.sourceforge.net/
>
> This message may contain information proprietary to Emorphia so any
> unauthorised disclosure, copying or distribution of its contents is
strictly
> prohibited.
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Re: C2: can't match images in sitemap

2001-08-22 Thread java guru

Hi.,
  The debug "guru" of cocoon2 is the log..As you might
already know, everything(well almose) the passes thru
cocoon2 is logged..
  So check the log bottom up would give u idea of
whats going on with ur jpg's..

good luck

 --- Chris Newland <[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> I'm trying to add a map:match to my sitemap to fetch
> images but they are not
> fetched (my fault, Cocoon2 is working great)
> 
> Location of my files:
> 
> tomcat/webapps/cocoon/docs/samples/pages/my_page.xsp
>
tomcat/webapps/cocoon/docs/samples/images/my_image.jpg
> tomcat/webapps/cocoon/stylesheets/my_xsl.xsl
> 
> sitemap entries:
> 
> 
>src="docs/samples/pages/{1}.xsp"/>
>   
> 
> 
> (loads + processes XSP page fine)
> 
> 
>mime-type="image/jpg"/>
> 
> 
> (does not return the image)
> 
> The returned HTML contains:
> 
> 
> 
> As far as I can see, this is the same way that the
> cocoon.gif image is
> fetched from samples.xml but I can't see what I'm
> doing wrong.
> 
> Any help would be appreciated.
> 
> Thanks,
> 
> Chris
> 
> --
> Chris Newland
> Software Research Engineer
> 
> Emorphia Ltd
> Registered in England.  4133002
> Mill House, Station Approach, Harlow Mill, Harlow,
> Essex, CM20 2EL, UK
> 
> Email: [EMAIL PROTECTED]
> Tel: +44 (0)1279 450100
> Fax: +44 (0)1279 450102
> 
> Check out FIPA-OS at http://fipa-os.sourceforge.net/
> 
> This message may contain information proprietary to
> Emorphia so any
> unauthorised disclosure, copying or distribution of
> its contents is strictly
> prohibited.
> 
> 
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
>  

=
Thanks and have great day
srini


Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: [C2b2] document() function not working?

2001-08-22 Thread Christopher Painter-Wakefield


If you are getting nothing back when you use the document() function, make
sure the file you are opening with document() is valid XML.  I found out
the hard way that document() fails silently (at least in Cocoon 1.8.2) when
the XML is bad.  Try opening the XML document in IE or something like that
to make sure it parses successfully.

If this is still true in C2, it might make a good FAQ entry.

-Christopher



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: C2: can't match images in sitemap

2001-08-22 Thread l.moran

Chris,

Try with a single star in map:match, like in:

 

 

Best regards,

- 
   Luca Morandini 
   GIS Consultant 
  [EMAIL PROTECTED] 
+39 0744 59 85 1 Office 
+39 0335 681 02 12 Mobile 
http://utenti.tripod.it/lmorandini/index.html 
-
 

> -Original Message-
> From: Chris Newland [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 4:10 PM
> To: Cocoon-Users
> Subject: C2: can't match images in sitemap
> 
> 
> Hi All,
> 
> I'm trying to add a map:match to my sitemap to fetch images but 
> they are not
> fetched (my fault, Cocoon2 is working great)
> 
> Location of my files:
> 
> tomcat/webapps/cocoon/docs/samples/pages/my_page.xsp
> tomcat/webapps/cocoon/docs/samples/images/my_image.jpg
> tomcat/webapps/cocoon/stylesheets/my_xsl.xsl
> 
> sitemap entries:
> 
> 
>   
>   
> 
> 
> (loads + processes XSP page fine)
> 
> 
>   
> 
> 
> (does not return the image)
> 
> The returned HTML contains:
> 
> 
> 
> As far as I can see, this is the same way that the cocoon.gif image is
> fetched from samples.xml but I can't see what I'm doing wrong.
> 
> Any help would be appreciated.
> 
> Thanks,
> 
> Chris
> 
> --
> Chris Newland
> Software Research Engineer
> 
> Emorphia Ltd
> Registered in England.  4133002
> Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK
> 
> Email: [EMAIL PROTECTED]
> Tel: +44 (0)1279 450100
> Fax: +44 (0)1279 450102
> 
> Check out FIPA-OS at http://fipa-os.sourceforge.net/
> 
> This message may contain information proprietary to Emorphia so any
> unauthorised disclosure, copying or distribution of its contents 
> is strictly
> prohibited.
> 
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




RE: C2: can't match images in sitemap

2001-08-22 Thread Vadim Gritsenko

Chris,

Access "images/my_image.jpg" from the browser and look into cocoon.log file.
(you may want to delete existing cocoon.log - if any - before this)

Vadim

> -Original Message-
> From: Chris Newland [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 10:10 AM
> To: Cocoon-Users
> Subject: C2: can't match images in sitemap
> 
> 
> Hi All,
> 
> I'm trying to add a map:match to my sitemap to fetch images but they are not
> fetched (my fault, Cocoon2 is working great)
> 
> Location of my files:
> 
> tomcat/webapps/cocoon/docs/samples/pages/my_page.xsp
> tomcat/webapps/cocoon/docs/samples/images/my_image.jpg
> tomcat/webapps/cocoon/stylesheets/my_xsl.xsl
> 
> sitemap entries:
> 
> 
>   
>   
> 
> 
> (loads + processes XSP page fine)
> 
> 
>   
> 
> 
> (does not return the image)
> 
> The returned HTML contains:
> 
> 
> 
> As far as I can see, this is the same way that the cocoon.gif image is
> fetched from samples.xml but I can't see what I'm doing wrong.
> 
> Any help would be appreciated.
> 
> Thanks,
> 
> Chris
> 
> --
> Chris Newland
> Software Research Engineer
> 
> Emorphia Ltd
> Registered in England.  4133002
> Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK
> 
> Email: [EMAIL PROTECTED]
> Tel: +44 (0)1279 450100
> Fax: +44 (0)1279 450102
> 
> Check out FIPA-OS at http://fipa-os.sourceforge.net/
> 
> This message may contain information proprietary to Emorphia so any
> unauthorised disclosure, copying or distribution of its contents is strictly
> prohibited.
> 
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




Re: Naming folders...bug or what?? (1.8.2)

2001-08-22 Thread Christopher Painter-Wakefield


There shouldn't be any issues with folder naming; I use this pattern all
the time.  I believe the particular error you mention occurs when you try
to put text in the output at the root level (e.g., not inside an enclosing
element).  For example,


  Hello, World!
  ...


-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Naming folders...bug or what?? (1.8.2)


Hi,

after hours of debugging (trying to figure out the fault that causes
"cannot
output text before element" or something equally useful error info.), I
moved my files to another folder.

I had:

welcome/welcome.xml
welcome/welcome-html.xsl

and changed to:

startpage/welcome.xml
startpage/welcome-html.xsl

and now it works!!!

I have lots of files in folders with the same name (e.g login.xml in
login/), so that shouldn't be a problem per se.

Does anybody know what causes the problem?

Cocoon 1.8.2

/AM




-
Please check that your question has not already been answered in the
FAQ before posting. 

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




User autentication with cookies...

2001-08-22 Thread Paolo

Hi everyone... i am new in Cocoon please sorry for my stupid questions
I'll ask here...

I need a simple user authentication mode, then I am writing my code
around the 'protected area' web application in Cocoon 2.

The only change I need to do is setting a cookie with username and
password to the client to let it access the protected area in the near
future without filling any form.

Then, I think I should have to do the first time the user access my
protected area:

1) Check if the client sent a valid cookie with username and password. 
2) If cookie is set, go to step 4
3) Send the 'login form' to the user. When filled go to next step. 
4) Check username and password. If not correct go to step 3
5) Send/update cookie to the client with username, password and new
expiration date

I think that everything should be done in sitemap.xmap like other
autentication actions.

Please help me 

Many thanx to everyone!
Paolo Scaffardi
AIRVENT SAM S.p.A.



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: Need help with session:set-attribute

2001-08-22 Thread Vadim Gritsenko

Enke,

Check session.xsl in cocoon.jar:
  


  XSPRequestHelper.setSessionAttribute(objectModel,
String.valueOf(),

  );

  

Note: there is ";" after setSessionAttribute. If your copy does not have one - it's 
time to upgrade.

Vadim

> -Original Message-
> From: Enke Michael [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 10:27 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Need help with session:set-attribute
> 
> 
> Ok, if I do this, I get also an error.
> Now there is the semicolon missing!
> The java file looks like:
> ...
> XSPObjectHelper.xspExpr(contentHandler,
> XSPRequestHelper.getSessionId(objectModel));
>  
>  
> this.contentHandler.endElement("", "session-id", "session-id");
>  
>  
> this.characters("\n\n ");
>  
> XSPRequestHelper.setSessionAttribute(objectModel,
>  String.valueOf("fruit"),
>  
>  ("apple")
> )
> this.characters("\n ");
>  
> XSPRequestHelper.invalidateSession(objectModel);
> ...
> 
> Michael
> 
> Vadim Gritsenko wrote:
> > 
> > Try
> > name="fruit">"apple"
> > 
> > Vadim
> > 
> > > -Original Message-
> > > From: Enke Michael [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, August 22, 2001 9:01 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Need help with session:set-attribute
> > >
> > >
> > > Hello again,
> > > I need some help with the session-logicsheet.
> > > I try to set an attribute in a session
> > > but I get always a compilation error.
> > >
> > > Here is my xsp:
> > > 
> > >
> > >  > >   xmlns:xsp="http://apache.org/xsp";
> > >   xmlns:session="http://apache.org/xsp/session/2.0";
> > > >
> > >
> > > 
> > >  
> > >
> > >  apple
> > >  
> > > 
> > > 
> > >
> > > I create a session, try to set an attribute and destroy the session.
> > > In the generted java file I see:
> > > ...
> > > XSPRequestHelper.setSessionAttribute(objectModel,
> > >  String.valueOf("fruit"),
> > >  this.characters("apple");
> > > )
> > > ...
> > >
> > > For shure the semicolon must move behind the last right parenthesis.
> > > As I saw, the session.xsl didn't change since May so this must be my
> > > fault.
> > > But where???
> > >
> > > Regards,
> > > Michael
> > >
> > > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. 
> > >
> > > 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. 
> > 
> > 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. 
> 
> 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. 

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




AW: C2: can't match images in sitemap

2001-08-22 Thread Jörn Heid

What URL produces
?

If it's "pages/test.xsp" the link has to be "../images/my_image.jsp" ...

-Ursprüngliche Nachricht-
Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 22. August 2001 16:30
An: [EMAIL PROTECTED]
Betreff: RE: C2: can't match images in sitemap


Chris,

Access "images/my_image.jpg" from the browser and look into cocoon.log file.
(you may want to delete existing cocoon.log - if any - before this)

Vadim

> -Original Message-
> From: Chris Newland [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 10:10 AM
> To: Cocoon-Users
> Subject: C2: can't match images in sitemap
>
>
> Hi All,
>
> I'm trying to add a map:match to my sitemap to fetch images but they are
not
> fetched (my fault, Cocoon2 is working great)
>
> Location of my files:
>
> tomcat/webapps/cocoon/docs/samples/pages/my_page.xsp
> tomcat/webapps/cocoon/docs/samples/images/my_image.jpg
> tomcat/webapps/cocoon/stylesheets/my_xsl.xsl
>
> sitemap entries:
>
> 
>   
>   
> 
>
> (loads + processes XSP page fine)
>
> 
>   
> 
>
> (does not return the image)
>
> The returned HTML contains:
>
> 
>
> As far as I can see, this is the same way that the cocoon.gif image is
> fetched from samples.xml but I can't see what I'm doing wrong.
>
> Any help would be appreciated.
>
> Thanks,
>
> Chris
>
> --
> Chris Newland
> Software Research Engineer
>
> Emorphia Ltd
> Registered in England.  4133002
> Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK
>
> Email: [EMAIL PROTECTED]
> Tel: +44 (0)1279 450100
> Fax: +44 (0)1279 450102
>
> Check out FIPA-OS at http://fipa-os.sourceforge.net/
>
> This message may contain information proprietary to Emorphia so any
> unauthorised disclosure, copying or distribution of its contents is
strictly
> prohibited.
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

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. 

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




RE: can't match images in sitemap

2001-08-22 Thread Chris Newland

Thanks everyone,

Accessing the images directly works fine and so does prefixing the url with
../ (path back to webapp root) but my understanding was that the sitemap
provided a total abstraction between the url fetched by the browser
"images/my_image.jpg" and the actual file on disk.

Prefixing my URLs so that they are relative to the current page seems a
little hardcoded to me.

Isn't the request for the image processed by the sitemap?

Thanks,

Chris

> -Original Message-
> From: Tibi DONDERA [mailto:[EMAIL PROTECTED]]
> Sent: 22 August 2001 15:31
> To: [EMAIL PROTECTED]
> Subject: Re: can't match images in sitemap
>
>
> IMHO,
>
> Your configuration seems right. I bet that using
>
> /images/my_image.jpg
> will give you the image.
>
> But the tag that is in your page should be  src="../images/my_image.jpg">
> After all, the URL of the page is
>
> /pages/my_page.html,
>
> right?
>
> Hope this helps.
>
>
> - Original Message -
> From: "Chris Newland" <[EMAIL PROTECTED]>
> To: "Cocoon-Users" <[EMAIL PROTECTED]>
> Sent: Wednesday, August 22, 2001 4:10 PM
> Subject: C2: can't match images in sitemap
>
>
> > Hi All,
> >
> > I'm trying to add a map:match to my sitemap to fetch images but they are
> not
> > fetched (my fault, Cocoon2 is working great)
> >
> > Location of my files:
> >
> > tomcat/webapps/cocoon/docs/samples/pages/my_page.xsp
> > tomcat/webapps/cocoon/docs/samples/images/my_image.jpg
> > tomcat/webapps/cocoon/stylesheets/my_xsl.xsl
> >
> > sitemap entries:
> >
> > 
> > 
> > 
> > 
> >
> > (loads + processes XSP page fine)
> >
> > 
> > 
> > 
> >
> > (does not return the image)
> >
> > The returned HTML contains:
> >
> > 
> >
> > As far as I can see, this is the same way that the cocoon.gif image is
> > fetched from samples.xml but I can't see what I'm doing wrong.
> >
> > Any help would be appreciated.
> >
> > Thanks,
> >
> > Chris
> >
> > --
> > Chris Newland
> > Software Research Engineer
> >
> > Emorphia Ltd
> > Registered in England.  4133002
> > Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK
> >
> > Email: [EMAIL PROTECTED]
> > Tel: +44 (0)1279 450100
> > Fax: +44 (0)1279 450102
> >
> > Check out FIPA-OS at http://fipa-os.sourceforge.net/
> >
> > This message may contain information proprietary to Emorphia so any
> > unauthorised disclosure, copying or distribution of its contents is
> strictly
> > prohibited.
> >
> >
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > 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. 
>
> 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. 

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




Re: Dynamic stylesheets (Newbie question)

2001-08-22 Thread Christopher Painter-Wakefield


Kevin,

there are many ways of doing what you want to do, outside of modifying your
code as has already been suggested.

You can generate Cocoon processing instructions dynamically in your XML,
using the  tag (see http://xml.apache.org/cocoon/xsp.html for
instructions on this.)  You can also chain stylesheets using the
 tag, which is how I prefer to do it.

You can grab your request parameters (mode=view, etc.) either by using XSP
in your object.xml or using  at the root level of
your stylesheet (see "Using query parameters during XSL transformation" in
http://xml.apache.org/cocoon/guide.html for more info on that.)

For simplicity, let's assume your XML looks like this (either a static XML
file or the output from your XSP page):


  view
  ...


Your stylesheet would look like this:


  
  type="xslt"
  

  

  
href="view.xsl"
type="text/xsl"
  



  
href="edit.xsl"
type="text/xsl"
  

  

  


...

-Christopher




Please respond to [EMAIL PROTECTED]

To:   <[EMAIL PROTECTED]>
cc:

Subject:  Dynamic stylesheets (Newbie question)


I currently have two XML documents, object-view.xml and object-edit.xml.
Both are identical except for one word in one line.

object-view.xml calls this stylesheet:


while object-edit.xml calls this one:


It seems silly and inefficient to have two XML documents for this.  What I
want to do is have just one XML file and access these two different
renditions like this (or some other easy method):

http://servername:8080/cocoon/object.xml?mode=view
http://servername:8080/cocoon/object.xml?mode=edit

I am surprised I cannot find an answer to this problem.  I learned that
XML/XSLT can't do this alone, and then I figured Cocoon can do this, but I
have searched FAQ, archive and docs.  Am I not looking in the right place
or
using the proper terms?  Any pointers appreciated.  I've got 1.8.2
installed
with Jakarta Tomcat 3.2.3.

Thanks,

--Kevin





-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: can't match images in sitemap

2001-08-22 Thread Vadim Gritsenko

> -Original Message-
> From: Chris Newland [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 11:00 AM
> To: [EMAIL PROTECTED]
> Subject: RE: can't match images in sitemap
> 
> 
> Thanks everyone,
> 
> Accessing the images directly works fine and so does prefixing the url with
> ../ (path back to webapp root) but my understanding was that the sitemap
> provided a total abstraction between the url fetched by the browser
> "images/my_image.jpg" and the actual file on disk.
> 
> Prefixing my URLs so that they are relative to the current page seems a
> little hardcoded to me.
> 
> Isn't the request for the image processed by the sitemap?

Yes, but you need to correctly link it in HTML. Cocoon does NOT rewrites URL for you,
it is still your job to put correct absolute (to the root, not application) or 
relative URLs into
HTML.

Vadim

> 
> Thanks,
> 
> Chris
> 
> > -Original Message-
> > From: Tibi DONDERA [mailto:[EMAIL PROTECTED]]
> > Sent: 22 August 2001 15:31
> > To: [EMAIL PROTECTED]
> > Subject: Re: can't match images in sitemap
> >
> >
> > IMHO,
> >
> > Your configuration seems right. I bet that using
> >
> > /images/my_image.jpg
> > will give you the image.
> >
> > But the tag that is in your page should be  > src="../images/my_image.jpg">
> > After all, the URL of the page is
> >
> > /pages/my_page.html,
> >
> > right?
> >
> > Hope this helps.
> >
> >
> > - Original Message -
> > From: "Chris Newland" <[EMAIL PROTECTED]>
> > To: "Cocoon-Users" <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 22, 2001 4:10 PM
> > Subject: C2: can't match images in sitemap
> >
> >
> > > Hi All,
> > >
> > > I'm trying to add a map:match to my sitemap to fetch images but they are
> > not
> > > fetched (my fault, Cocoon2 is working great)
> > >
> > > Location of my files:
> > >
> > > tomcat/webapps/cocoon/docs/samples/pages/my_page.xsp
> > > tomcat/webapps/cocoon/docs/samples/images/my_image.jpg
> > > tomcat/webapps/cocoon/stylesheets/my_xsl.xsl
> > >
> > > sitemap entries:
> > >
> > > 
> > > 
> > > 
> > > 
> > >
> > > (loads + processes XSP page fine)
> > >
> > > 
> > > 
> > > 
> > >
> > > (does not return the image)
> > >
> > > The returned HTML contains:
> > >
> > > 
> > >
> > > As far as I can see, this is the same way that the cocoon.gif image is
> > > fetched from samples.xml but I can't see what I'm doing wrong.
> > >
> > > Any help would be appreciated.
> > >
> > > Thanks,
> > >
> > > Chris
> > >
> > > --
> > > Chris Newland
> > > Software Research Engineer
> > >
> > > Emorphia Ltd
> > > Registered in England.  4133002
> > > Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK
> > >
> > > Email: [EMAIL PROTECTED]
> > > Tel: +44 (0)1279 450100
> > > Fax: +44 (0)1279 450102
> > >
> > > Check out FIPA-OS at http://fipa-os.sourceforge.net/
> > >
> > > This message may contain information proprietary to Emorphia so any
> > > unauthorised disclosure, copying or distribution of its contents is
> > strictly
> > > prohibited.
> > >
> > >
> > >
> > > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. 
> > >
> > > 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. 
> >
> > 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. 
> 
> 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. 

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




RE: can't match images in sitemap

2001-08-22 Thread java guru

Yes.,
  there is abstraction between the url and actual
location of the files on the disk...But from my
understanding what the situation is..

1. If you have sent over html to browser with image
link as "/images/image1.jpg" and that html url is
"http://localhost:8080/cocoon/welcome";..

2. When the browser sends request back to server, the
request for image is formed like
"http://localhost:8080/images/image1.jpg"..this is
something browser did..

3. When the request hits the server, thr url doesnt
fall under category of url to be forwarded to
cocoon..and hence the web server(tomcat) try to handle
by itself(or root web application)..which would not
find the file obviously..

4. Now on the page of
"http://localhost:8080/cocoon/welcome/intro"; if u have
image with "images/image1.gif" the request from
browser for image is formed like
"http://localhost:8080/cocoon/welcome/images/image1.jpg";..

5. Now once this request hits the server, the request
if forwarded to cocoon by the container, by this time
the uri becomes "welcom/images/image1.jpg" as it
entered to "cocoon" context..

6. This resulted uri is passed thru the "mathers" and
if u have match saying "
pattern="images/*.jpg"..obviously the requested uri
doesnt match with the specified pattern..

7. This has nothing to do with abstraction between uri
and actual file..This has to do with the way url are
handled by browser

 --- Chris Newland <[EMAIL PROTECTED]> wrote:
> Thanks everyone,
> 
> Accessing the images directly works fine and so does
> prefixing the url with
> ../ (path back to webapp root) but my understanding
> was that the sitemap
> provided a total abstraction between the url fetched
> by the browser
> "images/my_image.jpg" and the actual file on disk.
> 
> Prefixing my URLs so that they are relative to the
> current page seems a
> little hardcoded to me.
> 
> Isn't the request for the image processed by the
> sitemap?
> 
> Thanks,
> 
> Chris
> 
> > -Original Message-
> > From: Tibi DONDERA
> [mailto:[EMAIL PROTECTED]]
> > Sent: 22 August 2001 15:31
> > To: [EMAIL PROTECTED]
> > Subject: Re: can't match images in sitemap
> >
> >
> > IMHO,
> >
> > Your configuration seems right. I bet that using
> >
> > /images/my_image.jpg
> > will give you the image.
> >
> > But the tag that is in your page should be  > src="../images/my_image.jpg">
> > After all, the URL of the page is
> >
> > /pages/my_page.html,
> >
> > right?
> >
> > Hope this helps.
> >
> >
> > - Original Message -
> > From: "Chris Newland" <[EMAIL PROTECTED]>
> > To: "Cocoon-Users" <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 22, 2001 4:10 PM
> > Subject: C2: can't match images in sitemap
> >
> >
> > > Hi All,
> > >
> > > I'm trying to add a map:match to my sitemap to
> fetch images but they are
> > not
> > > fetched (my fault, Cocoon2 is working great)
> > >
> > > Location of my files:
> > >
> > >
> tomcat/webapps/cocoon/docs/samples/pages/my_page.xsp
> > >
>
tomcat/webapps/cocoon/docs/samples/images/my_image.jpg
> > > tomcat/webapps/cocoon/stylesheets/my_xsl.xsl
> > >
> > > sitemap entries:
> > >
> > > 
> > >  src="docs/samples/pages/{1}.xsp"/>
> > > 
> > > 
> > >
> > > (loads + processes XSP page fine)
> > >
> > > 
> > >  mime-type="image/jpg"/>
> > > 
> > >
> > > (does not return the image)
> > >
> > > The returned HTML contains:
> > >
> > > 
> > >
> > > As far as I can see, this is the same way that
> the cocoon.gif image is
> > > fetched from samples.xml but I can't see what
> I'm doing wrong.
> > >
> > > Any help would be appreciated.
> > >
> > > Thanks,
> > >
> > > Chris
> > >
> > > --
> > > Chris Newland
> > > Software Research Engineer
> > >
> > > Emorphia Ltd
> > > Registered in England.  4133002
> > > Mill House, Station Approach, Harlow Mill,
> Harlow, Essex, CM20 2EL, UK
> > >
> > > Email: [EMAIL PROTECTED]
> > > Tel: +44 (0)1279 450100
> > > Fax: +44 (0)1279 450102
> > >
> > > Check out FIPA-OS at
> http://fipa-os.sourceforge.net/
> > >
> > > This message may contain information proprietary
> to Emorphia so any
> > > unauthorised disclosure, copying or distribution
> of its contents is
> > strictly
> > > prohibited.
> > >
> > >
> > >
> > >
>
-
> > > Please check that your question has not already
> been answered in the
> > > FAQ before posting.
> 
> > >
> > > 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.
> 
> >
> > To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> >
> >
> >
> 
> 
> 
>
-
> Please check that your question has not already bee

Re: [C2b2] document() function not working?

2001-08-22 Thread Jörg Heinicke

Hi Christopher,

thanks for your reply, but it must be another problem. I tested the 
stylesheet with all the XML-files on the commandline with Ant/Xalan and 
without Cocoon - it works fine. But I want to use Cocoon for doing this 
transformation on the fly.

For the document()-function I have a question: Will the called XML-file 
handled by the sitemap ( -> So do I need a correct matcher in it?  -> 
inclusive link-resolving? ) e.g. like a HTML-redirect for JPGs/GIFS or does 
it work completely without Cocoon (direct access to the XML-file)? I think 
that I tested all possibilities, but I had no success.

I also searched the logfiles - no success. No error messages from document().

Regards,

Joerg


Christopher Painter-Wakefield wrote:
> If you are getting nothing back when you use the document() function, make
> sure the file you are opening with document() is valid XML.  I found out
> the hard way that document() fails silently (at least in Cocoon 1.8.2) when
> the XML is bad.  Try opening the XML document in IE or something like that
> to make sure it parses successfully.
> 
> If this is still true in C2, it might make a good FAQ entry.
> 
> -Christopher


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: can't match images in sitemap

2001-08-22 Thread Piroumian, Konstantin

If you have all your images in one directory (%context%/images) then you can
use this:





This will redirect all requests like:
docs/samples/pages/images/img.jpg  <-- this is what you get with your src
attribute

to %context%/images

This is not a good solution, but it works and you can use simply  everywhere. But if you want to classify your images
by directories then you will need something else...

Regards,
Konstantin Piroumian

> Thanks everyone,
>
> Accessing the images directly works fine and so does prefixing the url
with
> ../ (path back to webapp root) but my understanding was that the sitemap
> provided a total abstraction between the url fetched by the browser
> "images/my_image.jpg" and the actual file on disk.
>
> Prefixing my URLs so that they are relative to the current page seems a
> little hardcoded to me.
>
> Isn't the request for the image processed by the sitemap?
>
> Thanks,
>
> Chris
>
> > -Original Message-
> > From: Tibi DONDERA [mailto:[EMAIL PROTECTED]]
> > Sent: 22 August 2001 15:31
> > To: [EMAIL PROTECTED]
> > Subject: Re: can't match images in sitemap
> >
> >
> > IMHO,
> >
> > Your configuration seems right. I bet that using
> >
> > /images/my_image.jpg
> > will give you the image.
> >
> > But the tag that is in your page should be  > src="../images/my_image.jpg">
> > After all, the URL of the page is
> >
> > /pages/my_page.html,
> >
> > right?
> >
> > Hope this helps.
> >
> >
> > - Original Message -
> > From: "Chris Newland" <[EMAIL PROTECTED]>
> > To: "Cocoon-Users" <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 22, 2001 4:10 PM
> > Subject: C2: can't match images in sitemap
> >
> >
> > > Hi All,
> > >
> > > I'm trying to add a map:match to my sitemap to fetch images but they
are
> > not
> > > fetched (my fault, Cocoon2 is working great)
> > >
> > > Location of my files:
> > >
> > > tomcat/webapps/cocoon/docs/samples/pages/my_page.xsp
> > > tomcat/webapps/cocoon/docs/samples/images/my_image.jpg
> > > tomcat/webapps/cocoon/stylesheets/my_xsl.xsl
> > >
> > > sitemap entries:
> > >
> > > 
> > > 
> > > 
> > > 
> > >
> > > (loads + processes XSP page fine)
> > >
> > > 
> > > 
> > > 
> > >
> > > (does not return the image)
> > >
> > > The returned HTML contains:
> > >
> > > 
> > >
> > > As far as I can see, this is the same way that the cocoon.gif image is
> > > fetched from samples.xml but I can't see what I'm doing wrong.
> > >
> > > Any help would be appreciated.
> > >
> > > Thanks,
> > >
> > > Chris
> > >
> > > --
> > > Chris Newland
> > > Software Research Engineer
> > >
> > > Emorphia Ltd
> > > Registered in England.  4133002
> > > Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK
> > >
> > > Email: [EMAIL PROTECTED]
> > > Tel: +44 (0)1279 450100
> > > Fax: +44 (0)1279 450102
> > >
> > > Check out FIPA-OS at http://fipa-os.sourceforge.net/
> > >
> > > This message may contain information proprietary to Emorphia so any
> > > unauthorised disclosure, copying or distribution of its contents is
> > strictly
> > > prohibited.
> > >
> > >
> > >
> > > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. 
> > >
> > > 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. 
> >
> > 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. 
>
> 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. 

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




RE: can't match images in sitemap

2001-08-22 Thread Chris Newland

Ok, thanks all, this is much clearer now.

btw, is there any way to remove "cocoon" from the URL, I guess this is a
tomcat configuration issue so I'll have a look in there first.

thanks,

Chris

> -Original Message-
> From: java guru [mailto:[EMAIL PROTECTED]]
> Sent: 22 August 2001 16:08
> To: [EMAIL PROTECTED]
> Subject: RE: can't match images in sitemap
>
>
> Yes.,
>   there is abstraction between the url and actual
> location of the files on the disk...But from my
> understanding what the situation is..
>
> 1. If you have sent over html to browser with image
> link as "/images/image1.jpg" and that html url is
> "http://localhost:8080/cocoon/welcome";..
>
> 2. When the browser sends request back to server, the
> request for image is formed like
> "http://localhost:8080/images/image1.jpg"..this is
> something browser did..
>
> 3. When the request hits the server, thr url doesnt
> fall under category of url to be forwarded to
> cocoon..and hence the web server(tomcat) try to handle
> by itself(or root web application)..which would not
> find the file obviously..
>
> 4. Now on the page of
> "http://localhost:8080/cocoon/welcome/intro"; if u have
> image with "images/image1.gif" the request from
> browser for image is formed like
> "http://localhost:8080/cocoon/welcome/images/image1.jpg";..
>
> 5. Now once this request hits the server, the request
> if forwarded to cocoon by the container, by this time
> the uri becomes "welcom/images/image1.jpg" as it
> entered to "cocoon" context..
>
> 6. This resulted uri is passed thru the "mathers" and
> if u have match saying "
> pattern="images/*.jpg"..obviously the requested uri
> doesnt match with the specified pattern..
>
> 7. This has nothing to do with abstraction between uri
> and actual file..This has to do with the way url are
> handled by browser
>
>  --- Chris Newland <[EMAIL PROTECTED]> wrote:
> > Thanks everyone,
> >
> > Accessing the images directly works fine and so does
> > prefixing the url with
> > ../ (path back to webapp root) but my understanding
> > was that the sitemap
> > provided a total abstraction between the url fetched
> > by the browser
> > "images/my_image.jpg" and the actual file on disk.
> >
> > Prefixing my URLs so that they are relative to the
> > current page seems a
> > little hardcoded to me.
> >
> > Isn't the request for the image processed by the
> > sitemap?
> >
> > Thanks,
> >
> > Chris
> >
> > > -Original Message-
> > > From: Tibi DONDERA
> > [mailto:[EMAIL PROTECTED]]
> > > Sent: 22 August 2001 15:31
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: can't match images in sitemap
> > >
> > >
> > > IMHO,
> > >
> > > Your configuration seems right. I bet that using
> > >
> > > /images/my_image.jpg
> > > will give you the image.
> > >
> > > But the tag that is in your page should be  > > src="../images/my_image.jpg">
> > > After all, the URL of the page is
> > >
> > > /pages/my_page.html,
> > >
> > > right?
> > >
> > > Hope this helps.
> > >
> > >
> > > - Original Message -
> > > From: "Chris Newland" <[EMAIL PROTECTED]>
> > > To: "Cocoon-Users" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, August 22, 2001 4:10 PM
> > > Subject: C2: can't match images in sitemap
> > >
> > >
> > > > Hi All,
> > > >
> > > > I'm trying to add a map:match to my sitemap to
> > fetch images but they are
> > > not
> > > > fetched (my fault, Cocoon2 is working great)
> > > >
> > > > Location of my files:
> > > >
> > > >
> > tomcat/webapps/cocoon/docs/samples/pages/my_page.xsp
> > > >
> >
> tomcat/webapps/cocoon/docs/samples/images/my_image.jpg
> > > > tomcat/webapps/cocoon/stylesheets/my_xsl.xsl
> > > >
> > > > sitemap entries:
> > > >
> > > > 
> > > >  > src="docs/samples/pages/{1}.xsp"/>
> > > > 
> > > > 
> > > >
> > > > (loads + processes XSP page fine)
> > > >
> > > > 
> > > >  > mime-type="image/jpg"/>
> > > > 
> > > >
> > > > (does not return the image)
> > > >
> > > > The returned HTML contains:
> > > >
> > > > 
> > > >
> > > > As far as I can see, this is the same way that
> > the cocoon.gif image is
> > > > fetched from samples.xml but I can't see what
> > I'm doing wrong.
> > > >
> > > > Any help would be appreciated.
> > > >
> > > > Thanks,
> > > >
> > > > Chris
> > > >
> > > > --
> > > > Chris Newland
> > > > Software Research Engineer
> > > >
> > > > Emorphia Ltd
> > > > Registered in England.  4133002
> > > > Mill House, Station Approach, Harlow Mill,
> > Harlow, Essex, CM20 2EL, UK
> > > >
> > > > Email: [EMAIL PROTECTED]
> > > > Tel: +44 (0)1279 450100
> > > > Fax: +44 (0)1279 450102
> > > >
> > > > Check out FIPA-OS at
> > http://fipa-os.sourceforge.net/
> > > >
> > > > This message may contain information proprietary
> > to Emorphia so any
> > > > unauthorised disclosure, copying or distribution
> > of its contents is
> > > strictly
> > > > prohibited.
> > > >
> > > >
> > > >
> > > >
> >
> -
> > > > Please check that your question has not already
> 

Re: Need help with session:set-attribute

2001-08-22 Thread Enke Michael

Ok, thanks for the tip.
The problem was the timestamp on the session.xsl
soo the build.sh didn't recognize that src/.../session.xsl
was newer than build/cocoon/src/.../session.xsl
which had no ";"

Michael


Vadim Gritsenko wrote:
> 
> Enke,
> 
> Check session.xsl in cocoon.jar:
>   
> 
> 
>   XSPRequestHelper.setSessionAttribute(objectModel,
> String.valueOf(),
> 
>   );
> 
>   
> 
> Note: there is ";" after setSessionAttribute. If your copy does not have one - it's 
>time to upgrade.
> 
> Vadim
> 
> > -Original Message-
> > From: Enke Michael [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 22, 2001 10:27 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Need help with session:set-attribute
> >
> >
> > Ok, if I do this, I get also an error.
> > Now there is the semicolon missing!
> > The java file looks like:
> > ...
> > XSPObjectHelper.xspExpr(contentHandler,
> > XSPRequestHelper.getSessionId(objectModel));
> >
> >
> > this.contentHandler.endElement("", "session-id", "session-id");
> >
> >
> > this.characters("\n\n ");
> >
> > XSPRequestHelper.setSessionAttribute(objectModel,
> >  String.valueOf("fruit"),
> >
> >  ("apple")
> > )
> > this.characters("\n ");
> >
> > XSPRequestHelper.invalidateSession(objectModel);
> > ...
> >
> > Michael
> >
> > Vadim Gritsenko wrote:
> > >
> > > Try
> > > name="fruit">"apple"
> > >
> > > Vadim
> > >
> > > > -Original Message-
> > > > From: Enke Michael [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, August 22, 2001 9:01 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Need help with session:set-attribute
> > > >
> > > >
> > > > Hello again,
> > > > I need some help with the session-logicsheet.
> > > > I try to set an attribute in a session
> > > > but I get always a compilation error.
> > > >
> > > > Here is my xsp:
> > > > 
> > > >
> > > >  > > >   xmlns:xsp="http://apache.org/xsp";
> > > >   xmlns:session="http://apache.org/xsp/session/2.0";
> > > > >
> > > >
> > > > 
> > > >  
> > > >
> > > >  apple
> > > >  
> > > > 
> > > > 
> > > >
> > > > I create a session, try to set an attribute and destroy the session.
> > > > In the generted java file I see:
> > > > ...
> > > > XSPRequestHelper.setSessionAttribute(objectModel,
> > > >  String.valueOf("fruit"),
> > > >  this.characters("apple");
> > > > )
> > > > ...
> > > >
> > > > For shure the semicolon must move behind the last right parenthesis.
> > > > As I saw, the session.xsl didn't change since May so this must be my
> > > > fault.
> > > > But where???
> > > >
> > > > Regards,
> > > > Michael
> > > >
> > > > -
> > > > Please check that your question has not already been answered in the
> > > > FAQ before posting. 
> > > >
> > > > 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. 
> > >
> > > 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. 
> >
> > 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. 
> 
> 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. 

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




RE: can't match images in sitemap

2001-08-22 Thread Luca Morandini

Chris,

there is a FAQ entry on this at the Cocoon2 site (it works only on Apache,
though...).

Best regards,


-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
+39 0744 59 85 1 Office
+39 0335 681 02 12 Mobile
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Chris Newland [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 5:31 PM
> To: [EMAIL PROTECTED]
> Subject: RE: can't match images in sitemap
>
>
> Ok, thanks all, this is much clearer now.
>
> btw, is there any way to remove "cocoon" from the URL, I guess this is a
> tomcat configuration issue so I'll have a look in there first.
>
> thanks,
>
> Chris
>
> > -Original Message-
> > From: java guru [mailto:[EMAIL PROTECTED]]
> > Sent: 22 August 2001 16:08
> > To: [EMAIL PROTECTED]
> > Subject: RE: can't match images in sitemap
> >
> >
> > Yes.,
> >   there is abstraction between the url and actual
> > location of the files on the disk...But from my
> > understanding what the situation is..
> >
> > 1. If you have sent over html to browser with image
> > link as "/images/image1.jpg" and that html url is
> > "http://localhost:8080/cocoon/welcome";..
> >
> > 2. When the browser sends request back to server, the
> > request for image is formed like
> > "http://localhost:8080/images/image1.jpg"..this is
> > something browser did..
> >
> > 3. When the request hits the server, thr url doesnt
> > fall under category of url to be forwarded to
> > cocoon..and hence the web server(tomcat) try to handle
> > by itself(or root web application)..which would not
> > find the file obviously..
> >
> > 4. Now on the page of
> > "http://localhost:8080/cocoon/welcome/intro"; if u have
> > image with "images/image1.gif" the request from
> > browser for image is formed like
> > "http://localhost:8080/cocoon/welcome/images/image1.jpg";..
> >
> > 5. Now once this request hits the server, the request
> > if forwarded to cocoon by the container, by this time
> > the uri becomes "welcom/images/image1.jpg" as it
> > entered to "cocoon" context..
> >
> > 6. This resulted uri is passed thru the "mathers" and
> > if u have match saying "
> > pattern="images/*.jpg"..obviously the requested uri
> > doesnt match with the specified pattern..
> >
> > 7. This has nothing to do with abstraction between uri
> > and actual file..This has to do with the way url are
> > handled by browser
> >
> >  --- Chris Newland <[EMAIL PROTECTED]> wrote:
> > > Thanks everyone,
> > >
> > > Accessing the images directly works fine and so does
> > > prefixing the url with
> > > ../ (path back to webapp root) but my understanding
> > > was that the sitemap
> > > provided a total abstraction between the url fetched
> > > by the browser
> > > "images/my_image.jpg" and the actual file on disk.
> > >
> > > Prefixing my URLs so that they are relative to the
> > > current page seems a
> > > little hardcoded to me.
> > >
> > > Isn't the request for the image processed by the
> > > sitemap?
> > >
> > > Thanks,
> > >
> > > Chris
> > >
> > > > -Original Message-
> > > > From: Tibi DONDERA
> > > [mailto:[EMAIL PROTECTED]]
> > > > Sent: 22 August 2001 15:31
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: can't match images in sitemap
> > > >
> > > >
> > > > IMHO,
> > > >
> > > > Your configuration seems right. I bet that using
> > > >
> > > > /images/my_image.jpg
> > > > will give you the image.
> > > >
> > > > But the tag that is in your page should be  > > > src="../images/my_image.jpg">
> > > > After all, the URL of the page is
> > > >
> > > > /pages/my_page.html,
> > > >
> > > > right?
> > > >
> > > > Hope this helps.
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Chris Newland" <[EMAIL PROTECTED]>
> > > > To: "Cocoon-Users" <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, August 22, 2001 4:10 PM
> > > > Subject: C2: can't match images in sitemap
> > > >
> > > >
> > > > > Hi All,
> > > > >
> > > > > I'm trying to add a map:match to my sitemap to
> > > fetch images but they are
> > > > not
> > > > > fetched (my fault, Cocoon2 is working great)
> > > > >
> > > > > Location of my files:
> > > > >
> > > > >
> > > tomcat/webapps/cocoon/docs/samples/pages/my_page.xsp
> > > > >
> > >
> > tomcat/webapps/cocoon/docs/samples/images/my_image.jpg
> > > > > tomcat/webapps/cocoon/stylesheets/my_xsl.xsl
> > > > >
> > > > > sitemap entries:
> > > > >
> > > > > 
> > > > >  > > src="docs/samples/pages/{1}.xsp"/>
> > > > > 
> > > > > 
> > > > >
> > > > > (loads + processes XSP page fine)
> > > > >
> > > > > 
> > > > >  > > mime-type="image/jpg"/>
> > > > > 
> > > > >
> > > > > (does not return the image)
> > > > >
> > > > > The returned HTML contains:
> > > > >
> > > > > 
> > > > >
> > > > > As far as I can see, this is the same way that
> > > the cocoon.gif image is
> > > > > fetched from samp

[C2] with Tomcat 3.2.3 under win2k

2001-08-22 Thread Olivier Pineau



I have troubles with C2
 
My build is succesfull but I cant launch the 
servlet.
 
When I go to http://localhost:8080/cocoon/, I see 
the following page :
 
Please help,
 
Olivier
 

Cocoon 2 - Internal server error


type 
internal-server-error
message 
The sitemap handler's sitemap is not available. Please check 
D:\XML\jakarta-tomcat-3.2.3\webapps\cocoon\WEB-INF\logs\cocoon.log for the exact 
error.
description org.apache.cocoon.ProcessingException: 
The sitemap handler's sitemap is not available. Please check 
D:\XML\jakarta-tomcat-3.2.3\webapps\cocoon\WEB-INF\logs\cocoon.log for the exact 
error.
sender 
org.apache.cocoon.servlet.CocoonServlet
source 
Cocoon servlet
request-uri/cocoon/

exceptionorg.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. Please check D:\XML\jakarta-tomcat-3.2.3\webapps\cocoon\WEB-INF\logs\cocoon.log for the exact error.

path-info

stacktraceorg.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. Please check D:\XML\jakarta-tomcat-3.2.3\webapps\cocoon\WEB-INF\logs\cocoon.log for the exact error.
	at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:184)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:102)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:423)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:489)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)




[C2] issues/observations

2001-08-22 Thread Kito D. Mann

Hello,

I'm currently evaluating Cocoon 2 for the next version of our site (we 
deployed with Cocoon 1.8 earlier this year). I spent a couple of days 
porting the old application to Cocoon 2 as a test, and I've run into a few 
issues that I'm hoping you can help me sort out. Some of these things may 
be pure ignorance, so forgive me if I overlooked something obvious. I did, 
however, read all of the docs, and I have a lot of experience with Cocoon 1.8.

Here are my comments/issues/etc:

- Sending action results to an XSP. I know I'm missing something here, but 
I couldn't figure out how to do this (without using the request logicsheet).
The old code had a home-grown Action framework, so I created a proxy action 
to convert between our framework and Cocoon's. Here's what the action did 
in its act() method:

  DispatchableActionAdapter oldAction = 
(DispatchableActionAdapter)ActionFactory.getAction(actionName);
   Object obj = oldAction.handle(req);
   if (obj != null)
   {
 HashMap map = new HashMap();
 String documentName = oldAction.getNormalReturnDocument();
 documentName = documentName.substring(0, 
documentName.lastIndexOf("."));
 map.put("document", documentName);
 SystemLog.trace("saved [document] as " + documentName);
 map.put(ActionConstants.ACTION_RESPONSE, obj);
 SystemLog.trace("saved value as " + 
ActionConstants.ACTION_RESPONSE);

 return map;
   }

The old XSP pages had statements like the following inside  tags:

  ArrayList skillList = 
(ArrayList)request.getAttribute(ActionConstants.ACTION_RESPONSE);

However, this always returned null (I tried many different variations). I 
could access the responses fine from the sitemap, but I had no luck with 
XSP. What am I missing?

- Having trouble getting nested sitemap matcher variables (e.g. "{1}") 
within an action tag. Example:

   

 
   

   
   
   
 

 
 
   

When this executes, the {1} values aren't substituted at all (it tries to 
find "content/.xsp"). However, the following works because the variables 
aren't nested within the action:

   

  
  

 
   
   
 

 
 
   

- There seems to be an XSP bug that often generates the following code:

  this.characters("
  ");

This seems to happen whenever there's an extra line after an  
statement:


 ...


 
 Site Guide
 userType
 
 
 
...

Remove the line, and it works fine:


 ...

 
 Site Guide
 userType
 
 
 
...

- No default (hard-coded) error handler. One of the things that really 
throws me off with Cocoon 2 is the lack of some default error handling. It 
doesn't seem like the  section gets called for a lot of 
exceptions that can occur in the pipeline. I found myself constantly 
looking at the logs to figure out what went wrong, which was difficult to 
get used to, since 1.8 always displayed some sort of error.

- No default output. It's disconcerting to see a blank page, because it can 
mean many things (i.e. an exception in an action, no mapping defined for 
the requested url, etc.).

- Background compilation. This is a great thing for production use, but 
during development I want instant gratification :-). Is there a way to just 
make the request block until the compilation is complete?

If anyone can spread some light on these issues, I'd greatly appreciate it. 
I'm quite impressed with the architecture of this release, btw.


Kito D. Mann
Chief Architect
[EMAIL PROTECTED]
Grow.Net
(212)625-1914 x105



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Q: separation of content and logic

2001-08-22 Thread Enke Michael

Hi!
Everywhere in the Cocoon docs I lern that
it is the best to separate the content from the logic. Ok.

Now I want to generate a Menuestructure from database
entries in the way a filebrowser works, expand an entry on mouseclick,
on the second mouseclick collapse them (html links). 
My first guess was to use nested select statements
to only get those entries I want to show (expanded or collapsed).

As I thought further may be it would be better in the xsp
to always retrieve all items from the database
and then decide in the stylesheet which entries to
show and which not (e.g. by session attributes).
But in a xsl I cann't use 

My question: Do I have to write a "buildin" logicsheet?
Or is there another way to place  inside a stylesheet?
Or did somebody wrote a stylesheet which cares of such tasks
I want?

Michael

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: What's wrong?

2001-08-22 Thread Uslu, Cihan Y (MED)



In 
your web.xml file change init-param value to the path that points to where your 
cocoon.properties file located at. 
 
web.xml
-
 
 
 

 

   
properties
   
web-inf/conf/cocoon.properties

.

..
 

 
 
Cihan

  -Original Message-From: Ekrem Aksoy 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, August 21, 2001 
  11:05 AMTo: [EMAIL PROTECTED]Subject: Re: 
  What's wrong?
  I've tried this, too:) If you could install, pls 
  tell me how in details... thanx.
  
- Original Message - 
From: 
Uslu, 
Cihan Y (MED) 
To: '[EMAIL PROTECTED]' 

Sent: Tuesday, August 21, 2001 6:53 
PM
Subject: RE: What's wrong?

try to put cocoon.properties under 
[dir-to-cocoon]/WEB-INF/conf/
 
Cihan

  -Original Message-From: Ekrem Aksoy [mailto:[EMAIL PROTECTED]]Sent: 
  Tuesday, August 21, 2001 10:38 AMTo: [EMAIL PROTECTED]Subject: 
  What's wrong?
  I have installed cocoon-1.8.2 on my 
  system(win2k+IIS+JRun3.0).Although I've followed the installing 
  instructions, I couldn't get it worked. it gives this err 
  mess:
  unable to open 
  resource:[dir-to-cocoon]/conf/cocoon.properties
  I have modified the servlet init params 
  several times but it didn't worked...?so what's wrong with this? 
  
  Thanx , 
  Ekrem


Re: [C2] with Tomcat 3.2.3 under win2k

2001-08-22 Thread Gianugo Rabellino

On Wed, Aug 22, 2001 at 11:07:14AM +0200, Olivier Pineau wrote:
> I have troubles with C2
> 
> My build is succesfull but I cant launch the servlet.
> 
> When I go to http://localhost:8080/cocoon/, I see the following page :
> 
> message The sitemap handler's sitemap is not available. Please check 
>D:\XML\jakarta-tomcat-3.2.3\webapps\cocoon\WEB-INF\logs\cocoon.log for the exact 
>error.
> 
> Please help,

Help yourself :) and read the cocoon.log pointed out by
the error message (or send the relevant part of it if that 
doesn't help).

Ciao,

-- 
Gianugo Rabellino

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: [C2] issues/observations - platform/version

2001-08-22 Thread Kito D. Mann

FYI,

I'm developing with Cocoon 2.0 b2 with Tomcat 3.2.3 (default web server) 
running on Windows NT 4.0.


Kito D. Mann
Chief Architect
[EMAIL PROTECTED]
Grow.Net

At 11:58 AM 8/22/01 -0400, you wrote:
>Hello,
>
>I'm currently evaluating Cocoon 2 for the next version of our site (we 
>deployed with Cocoon 1.8 earlier this year). I spent a couple of days 
>porting the old application to Cocoon 2 as a test, and I've run into a few 
>issues that I'm hoping you can help me sort out. Some of these things may 
>be pure ignorance, so forgive me if I overlooked something obvious. I did, 
>however, read all of the docs, and I have a lot of experience with Cocoon 1.8.
>
>Here are my comments/issues/etc:
>
>- Sending action results to an XSP. I know I'm missing something here, but 
>I couldn't figure out how to do this (without using the request logicsheet).
>The old code had a home-grown Action framework, so I created a proxy 
>action to convert between our framework and Cocoon's. Here's what the 
>action did in its act() method:
>
>  DispatchableActionAdapter oldAction = 
> (DispatchableActionAdapter)ActionFactory.getAction(actionName);
>   Object obj = oldAction.handle(req);
>   if (obj != null)
>   {
> HashMap map = new HashMap();
> String documentName = oldAction.getNormalReturnDocument();
> documentName = documentName.substring(0, 
> documentName.lastIndexOf("."));
> map.put("document", documentName);
> SystemLog.trace("saved [document] as " + documentName);
> map.put(ActionConstants.ACTION_RESPONSE, obj);
> SystemLog.trace("saved value as " + 
> ActionConstants.ACTION_RESPONSE);
>
> return map;
>   }
>
>The old XSP pages had statements like the following inside  tags:
>
>  ArrayList skillList = 
> (ArrayList)request.getAttribute(ActionConstants.ACTION_RESPONSE);
>
>However, this always returned null (I tried many different variations). I 
>could access the responses fine from the sitemap, but I had no luck with 
>XSP. What am I missing?
>
>- Having trouble getting nested sitemap matcher variables (e.g. "{1}") 
>within an action tag. Example:
>
>   
>
> 
>   
>
>   
>   
>   
> 
>
> 
> 
>   
>
>When this executes, the {1} values aren't substituted at all (it tries to 
>find "content/.xsp"). However, the following works because the variables 
>aren't nested within the action:
>
>   
>
>  
>  
>
> 
>   
>   
> 
>
> 
> 
>   
>
>- There seems to be an XSP bug that often generates the following code:
>
>  this.characters("
>  ");
>
>This seems to happen whenever there's an extra line after an  
>statement:
>
>
> ...
>
>
> 
> Site Guide
> userType
> 
> 
> 
>...
>
>Remove the line, and it works fine:
>
>
> ...
>
> 
> Site Guide
> userType
> 
> 
> 
>...
>
>- No default (hard-coded) error handler. One of the things that really 
>throws me off with Cocoon 2 is the lack of some default error handling. It 
>doesn't seem like the  section gets called for a lot of 
>exceptions that can occur in the pipeline. I found myself constantly 
>looking at the logs to figure out what went wrong, which was difficult to 
>get used to, since 1.8 always displayed some sort of error.
>
>- No default output. It's disconcerting to see a blank page, because it 
>can mean many things (i.e. an exception in an action, no mapping defined 
>for the requested url, etc.).
>
>- Background compilation. This is a great thing for production use, but 
>during development I want instant gratification :-). Is there a way to 
>just make the request block until the compilation is complete?
>
>If anyone can spread some light on these issues, I'd greatly appreciate 
>it. I'm quite impressed with the architecture of this release, btw.
>
>
>Kito D. Mann
>Chief Architect
>[EMAIL PROTECTED]
>Grow.Net
>(212)625-1914 x105
>
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. 
>
>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. 

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




[Fwd: Re: [C2b2] document() function not working?]

2001-08-22 Thread Jörg Heinicke

Hi,

I'm one step further!! The problem: I looked in the wrong logfile. In the 
logfile for Tomcat there is written nearly the same as for Cocoon, but no 
errors ;-)
Now I could change the link to the called XML-file. But there is still a 
problem:

javax.xml.transform.TransformerException: Can not load requested doc: home
 at org.apache.xalan.templates.FuncDocument.warn(FuncDocument.java:448)
 at 
org.apache.xalan.templates.FuncDocument.getDoc(FuncDocument.java:385)
 at 
org.apache.xalan.templates.FuncDocument.execute(FuncDocument.java:221)
 at org.apache.xpath.Expression.asIterator(Expression.java:261)
 at 
org.apache.xpath.axes.FilterExprWalker.setRoot(FilterExprWalker.java:156)
 at 
org.apache.xpath.axes.WalkingIteratorSorted.reset(WalkingIteratorSorted.java:164) 


What does this mean? What are the possible errors?

Regards,

Joerg



 Original-Nachricht 
Betreff: Re: [C2b2] document() function not working?
Datum: Wed, 22 Aug 2001 17:22:38 +0200
Von: Jörg Heinicke <[EMAIL PROTECTED]>
An: [EMAIL PROTECTED]
Referenzen: <[EMAIL PROTECTED]>

Hi Christopher,

thanks for your reply, but it must be another problem. I tested the
stylesheet with all the XML-files on the commandline with Ant/Xalan and
without Cocoon - it works fine. But I want to use Cocoon for doing this
transformation on the fly.

For the document()-function I have a question: Will the called XML-file
handled by the sitemap ( -> So do I need a correct matcher in it?  ->
inclusive link-resolving? ) e.g. like a HTML-redirect for JPGs/GIFS or does
it work completely without Cocoon (direct access to the XML-file)? I think
that I tested all possibilities, but I had no success.

I also searched the logfiles - no success. No error messages from document().

Regards,

Joerg


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




performance tuning...

2001-08-22 Thread Karl Øie

Hi, I have a very standard pipeline for my project. The file
"oversikten.xml" is filtered through the stylesheet
"oversikten.xsl" which uses parameters sent to it to filter/rearrange the
output.









The file "oversikten.xml" is about 4mb large, and the site performs quite
badly. Is there any tips for improving the performance short of splitting
the file into smaller parts as this I am not allowed to do that.

mvh karl øie


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: performance tuning...

2001-08-22 Thread Berin Loritsch

Karl Øie wrote:
> 
> Hi, I have a very standard pipeline for my project. The file
> "oversikten.xml" is filtered through the stylesheet
> "oversikten.xsl" which uses parameters sent to it to filter/rearrange the
> output.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> The file "oversikten.xml" is about 4mb large, and the site performs quite
> badly. Is there any tips for improving the performance short of splitting
> the file into smaller parts as this I am not allowed to do that.


What are the numbers your are targeting?  (i.e. how fast do you need it?)
What kind of hardware are you using?
What are the current numbers you are getting? (i.e. how slow is it now?)

To really help you, we need these questions answered.

If you are using the Caching Pipeline, you should be able to experience better
performance each time you request it.  However, if your cache is set too small
to keep the entire XML in memory, the cache will be of no benefit.

How complicated are the XSLT stylesheets?  If you are not using global variables
or parameters, that speeds things up.

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: [C2b2] document() function not working?

2001-08-22 Thread Wes Morgan

Yes, I solved the problem. I hadn't realized that the path needed to be 
relative to the stylesheet (kind of a no-brainer in retrospect).

Wes Morgan

Jörg Heinicke wrote:

> Hello Wes,
>
> did you solve your problem? I also have my problem with this function, 
> equal to relative/absolute path and so on, it seems to me, that the 
> document()-function doesn't work.
>
> Best proof:
> 
>   
>   
>   
> 
>
> I won't get my .. in the output-document, if it is 
> written after the . And I don't get neither the  
> nor the value of $test.
>
> I work with C2b2, Tomcat 3.2.3 and Sun JDK 1.3.
>
> What could be the problem or a workaround?
>
> Joerg
>
>
> > Subject:
> > [C2b2] document() function not working?
> > From:
> > Wes Morgan <[EMAIL PROTECTED]>
> > Date:
> > Thu, 02 Aug 2001 10:08:36 -0400
> > To:
> > [EMAIL PROTECTED]
> >
> > Has anyone successfully used the document('otherfile.xml') function 
> to > access nodes in a different XML file from within an XSLT 
> stylesheet   > under Cocoon2 beta1 or 2? It seems to be unimplemented 
> right now, but > I can't tell for sure if it's just because I'm using 
> it incorrectly.  > If you have gotten it to work, could you post your 
> working code?  > Thanks.
> >
> > Wes Morgan
> >
> >
> >
> > Subject:
> > Re: [C2b2] document() function not working?
> > From:
> > [EMAIL PROTECTED] (Rajkumar, Joseph)
> > Date:
> > Thu, 02 Aug 2001 11:31:23 -0400
> > To:
> > [EMAIL PROTECTED]
> >
> > Hi Wes
> >
> > Yes, I have used the document('otherfile.xml') and it works under  > 
> cocoon2.
> >
> > Put the file 'otherfile.xml' in the same directory in which you have 
>  > your xsl file or give the relative path to 'otherfile.xml' relative
> > to the directory where you have your 'xsl' file.
> >
> > Regards
> > Joseph Rajkumar
> >
> >
> > Wes Morgan wrote:
> >
> >
> > > Has anyone successfully used the document('otherfile.xml') function
> > > to access nodes in a different XML file from within an XSLT
> > > stylesheet under Cocoon2 beta1 or 2? It seems to be unimplemented
> > > right now, but I can't tell for sure if it's just because I'm using
> > > it incorrectly. If you have gotten it to work, could you post your
> > > working code? Thanks.
> > >
> > > Wes Morgan
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




RE: [C2] with Tomcat 3.2.3 under win2k

2001-08-22 Thread Bernie Lee



Hi 
Olivier
 
I'm 
having the exact same problem. I'll let you know if and when I solve 
it...
Gotta 
check out the sitemap.xmap and Jdbc.Connection
 
 

  -Original Message-From: Olivier Pineau 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 22, 
  2001 5:07 PMTo: [EMAIL PROTECTED]Subject: [C2] 
  with Tomcat 3.2.3 under win2k
  I have troubles with C2
   
  My build is succesfull but I cant launch the 
  servlet.
   
  When I go to http://localhost:8080/cocoon/, I see 
  the following page :
   
  Please help,
   
  Olivier
   
  
  Cocoon 2 - Internal server error
  

  type 
  internal-server-error
  message 
  The sitemap handler's sitemap is not available. Please check 
  D:\XML\jakarta-tomcat-3.2.3\webapps\cocoon\WEB-INF\logs\cocoon.log for the 
  exact error.
  description 
  org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not 
  available. Please check 
  D:\XML\jakarta-tomcat-3.2.3\webapps\cocoon\WEB-INF\logs\cocoon.log for the 
  exact error.
  sender 
  org.apache.cocoon.servlet.CocoonServlet
  source 
  Cocoon servlet
  request-uri/cocoon/
  
  exceptionorg.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. Please check D:\XML\jakarta-tomcat-3.2.3\webapps\cocoon\WEB-INF\logs\cocoon.log for the exact error.
  
  path-info
  
  stacktraceorg.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. Please check D:\XML\jakarta-tomcat-3.2.3\webapps\cocoon\WEB-INF\logs\cocoon.log for the exact error.
	at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:184)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:102)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:423)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:489)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)

  


AW: separation of content and logic

2001-08-22 Thread Max Larsson

Hi,

> Now I want to generate a Menuestructure from database
> entries in the way a filebrowser works, expand an entry on mouseclick,
> on the second mouseclick collapse them (html links). 
> My first guess was to use nested select statements
> to only get those entries I want to show (expanded or collapsed).

I am trying to do the same. At the moment i am trying to use
the nested set model from "SQL for smarties". See:

http://www.dbmsmag.com/9603d06.html
http://www.dbmsmag.com/9604d06.html
http://www.dbmsmag.com/9605d06.html
 
> As I thought further may be it would be better in the xsp
> to always retrieve all items from the database
> and then decide in the stylesheet which entries to
> show and which not (e.g. by session attributes).
> But in a xsl I cann't use 

After thinking a lot i decided to let xsp retrieve
the complete menu structure and let the xsl stylesheet
decide which menu items are collapsed or expandended.
To that i will give the xsl stylesheet a parameter,
which contains all the ids of the menuitems, wich shall
be expanded. That's my idea, if it works have to
be proved.

Max

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




IMPORTANT : ThreadSafe removed from Action

2001-08-22 Thread Sylvain Wallez

Hi all,

According to the conclusions of the cocoon-dev thread "Why does Action 
implement ThreadSafe ?", ThreadSafe implementation has been removed from 
Action and added to all non abstract existing implementations.

This means that :

- you should update your existing actions so that they implement 
ThreadSafe to keep the previous behaviour (one instance serves all requests)

- you can now choose the lifestyle of your actions depending on their 
implementation : ThreadSafe, Poolable, etc.

Sylvain.
-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com


-
Please check that your question has not already been answered in the
FAQ before posting. 

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