embedding graphics

2003-02-12 Thread joni santoso
Hi,

I have asked this question before using other subject.

Here are my problems :

1. I tried to overlap several images (please see the fo 
file below). I want to make images gigi1.jpg and gl.jpg 
overlapped. However, it seems that it is not doable. Is 
it? (Sorry if this question may actually be fit to ask in 
fop-user but maybe anyone here knows it).

2. I have this fo file that works fine but when I put this 
onto cocoon the pictures don't show up. What's wrong? The 
images and the fo file are in the same directory. However, 
I don't map any of these images just the fo file.

thx.

here are the fo :


===
Meriahkan Hari Kasih Sayang dengan mengirimkan Kartu Elektronik PlasaCom kepada kerabat dan teman yang Anda kasihi !
Pilih kartu favorit Anda di Polling Lomba Desain Kartu Tema Valentine 
di http://kartu.plasa.com/lomba/
===

-
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: Jumping within sitemap?

2003-02-12 Thread Idhaya Chandran
I think u can achieve this using selectors.
You can have ur custom selectors.

--Idhaya

-Original Message-
From: Sonny Sukumar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 1:29 PM
To: [EMAIL PROTECTED]
Subject: Jumping within sitemap?



Hi guys,

I'm wondering if it's possible to jump from one place
in the sitemap to another.  I made up the following
code, but it's basically what I'm aiming to do:


  


  

  
  



  
  
  



  


It's like calling a function/method in a programming
language, and it thus supports reuse of factored out
code.

Does it make sense?

Please let me know how we can do it! :-)

Thanks,

Sonny

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.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: ideal hardware for cocoon?

2003-02-12 Thread Niclas Hedhman

As Peter hints, there is no limit on how much you can spend on your ideal 
production environment.

50,000 CaffeinMark Java CPU (byte codes in silicon) with XML parsing hardware 
accelerator (similar to a NVidia chip) would be a good start. Then make that 
into an array of 1, each with a Gig of memory, and you are in a good 
position...

Price tag for the above; Give me 12-18 months and $10-15million, and I'll make 
it happen.  ;o)

Niclas

On Wednesday 12 February 2003 23:02, caleb racey wrote:
> Hi folks
>
> We are going to be setting up a dedicated cocoon server soon and I am
> trying to spec out the hardware. The operating system will be redhat (8
> probably) and tomcat will be the servlet engine.
>
> Does anyone have any experiences of what hardware balance is right for
> cocoon? I know this is stupid question with no concrete answer as it
> depends on what the server will be doing, loading, etc. etc. etc.
>
> Having said all this what balance would you go for when buying a cocoon
> server? Would you go for single processor (2.6ghz) machine with lots of
> memory (4-6gig) or a dual processor machine (2 x 2.6ghz) with less
> memory (2gig).
>
> My searching of the cocoon, tomcat, and FOP lists hasn't really given me
> any good feel for optimum hardware configuration. I'm hoping someone has
> some experience.
>
> The cocoon server is mainly going to be serving FOP based
> transformations, xml (xhtml) to PDF and xml to svg to png.  As much
> static content as possible will be served from a dedicated apache http
> server so this machine will only be doing dynamic xml transformations.
> Some of these might get quite large, our present record is xhmtl to 206
> pages of pdf.
>
> Again I appreciate that optimum hardware should be reached by careful
> study of what us it is going to be put to, but we are just starting out
> seriously on the cocoon route so don't have the experience to know
> exactly how it will be used.
>
>
> Caleb Racey
> Webteam
> University Computer Service
> University of Newcastle
> tel 0191 222 5916
>
>
>
>
> -
> 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: Fault tolerance...

2003-02-12 Thread Niclas Hedhman

Many users has opinions about the Fault handling in Cocoon, and most, users 
and developers alike, agree it is not very good.

I suggest that you bring it up for discussion on cocoon-dev instead, as many 
developers don't monitor this list.

BTW, it would be great to have a "most wanted" list from the users, for the 
developers to seek inspiration from. Note; Too much flexibility (Flexibility 
Syndrome = It can be done, therefor do it) is not appreciated, and will be 
rejected.

Niclas

On Thursday 13 February 2003 00:04, Ben Young wrote:
> In my current work with the aggregation option in Cocoon 2.0.4 it seems
> that the aggregation options are not very fault tolerant. If one of the
> map:part's of my map:aggregate section points to a file that does not
> exist, all map:part's after that one do not get returned even if their
> files exist.
>
> With a cinclude transformer the error is a bit worse. If the file requested
> does not exist in the pipeline, I get a NullPointerException from line 180
> in the CIncludeTransformer.java. That line contains the source.recycle()
> call. Since the source is never created, there is nothing to recycle. Hence
> the error. 
>
> Would it be possible to make the map:aggregate continue on it's merry way
> even if one of the map:part's doesn't resolve to anything?
>
> Would it also be possible to add some fault tolerance to the
> CincludeTransformer? It seems to that the cinclude's done using the
> cocoon:// protocol don't follow any map:redirect-to's. That's probably
> somewhat unrelated, but worth mentioning I guess. 8o)
>
> Thank you for your thoughts and time,
> Ben
>
>
> -
> 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 XSL evaluation

2003-02-12 Thread Idhaya Chandran
You can use 

instead of 


--Idhaya
-Original Message-
From: Yatin Shah [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 6:09 AM
To: [EMAIL PROTECTED]
Subject: Dynamic XSL evaluation


My application access DB for content(Using SQL Transformer) which later 
gets transformed into HTML via xml2html transformer.
For example, I have following sniippet in my xml2html transformer:





This works fine.
If the welcome_title was " Hello. Welcome to Acme, Inc. "
Then the embeded HTML code is not interperted as HTML tags.
Regardless of how it's embeded in the data(as  or as ) it is 
included as it was embeded.

What I like to do is to dynamically evaluate the content of 
$welcome_title so that embeded HTML tags are detected and parsed as:


Hello. Welcome to Acme, Inc.



Even better would be to be able to include any XML tags and have it 
dynamically evaluated by the xml2html transformer.
Any one have any ideas?
Thanks for your help.
-Yatin


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




Dynamic XSL evaluation

My application access DB for content(Using SQL Transformer) which later 
gets transformed into HTML via xml2html transformer.
For example, I have following sniippet in my xml2html transformer:
   
   
   
   

This works fine.
If the welcome_title was " Hello. Welcome to Acme, Inc. "
Then the embeded HTML code is not interperted as HTML tags.
Regardless of how it's embeded in the data(as  or as ) it is 
included as it was embeded.

What I like to do is to dynamically evaluate the content of 
$welcome_title so that embeded HTML tags are detected and parsed as:
   
   
   Hello. Welcome to Acme, Inc.
   
   

Even better would be to be able to include any XML tags and have it 
dynamically evaluated by the xml2html transformer.
Any one have any ideas?
Thanks for your help.
-Yatin


-
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: Pass custom parameters into an XSP




yeah, 
sorry. didn't follow the chain upto AbstractGenerator ;-)

  -Ursprüngliche Nachricht-Von: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Im 
  Auftrag von Nathaniel AlfredGesendet: Donnerstag, 13. Februar 
  2003 00:51An: [EMAIL PROTECTED]Betreff: RE: 
  Pass custom parameters into an XSP
  
  Actually, you don't need to override 
  setup().
  The 
  base class of the XSP generated class already does that and provides 
  "protected Parameters parameters;"
   
  You 
  can use directly in 
   
  String entityType = 
  this.parameters.getParameter("entityType");
   
  including the other nice features of 
  Parameters such as defaulting and converting to int, boolean, and so 
  on.
  
-Original Message-From: Collin VanDyck 
[mailto:[EMAIL PROTECTED]]Sent: Donnerstag, 13. Februar 
2003 00:04To: [EMAIL PROTECTED]Cc: David 
CummingsSubject: Re: Pass custom parameters into an 
XSP
Wow. I did not know you could use the XSP to 
override the setup method.  That is VERY helpful. Thanks!!
 
 

  - Original Message - 
  From: 
  Marco Rolappe 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, February 12, 2003 
  5:59 PM
  Subject: AW: Pass custom parameters 
  into an XSP
  
  hi collin,
   
  with XSPs an easier alternative would be to pass your 'parameter' 
  as a request parameter.
   
  then you would:
   
  
      
      
  
   
  
      
      ...
  
   
  then you can get the request parameter from within your XSP via the 
  request logicsheet () or via embedded 
  logic (request.getParameter ()).
   
   
  the other alternative; passing the parameter as a sitemap 
  parameter:
   
  
      
      
      
      ...
  
   
  for this to work you have to embed the appropriate logic into your 
  XSP for retrieving that parameter; as your compiled XSP is a generator in 
  the end you accomplish this by overriding its setup() method and process 
  the parameter(s) there.
   
  just as a hint (take a look at the respective 
  sources/docs):
   
  
      
      public void setup (SourceResolver resolver, Map 
  objectModel, String src, Parameters params) throws ...
      {
      // process parameter(s) 
  here
      ...
   
      super.setup (resolver, objectModel, src, 
  params);
      }
  
   
  
  
   
  HTH
  
-Ursprüngliche Nachricht-Von: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]Im 
Auftrag von Collin VanDyckGesendet: Mittwoch, 12. Februar 
2003 22:44An: [EMAIL PROTECTED]Betreff: 
Pass custom parameters into an XSP
Hello,
 
I am trying to figure out how I can pass in 
custom parameters into an already existing generator such as the 
XSP/serverpages generator.  Here's my scenario:
 
I receive a request for 
/edit/page
 
Which matches /edit/*
 
So from this matcher, I have {1} == 
"page".. I want to pass this off to let's say 
 
/docs/xsp/edit/item.xsp  as a 
parameter named "entityType"
 
So that in the XSP I can access the 
"entityType" variable.
 
I think I'm missing something obvious. If 
someone could point me into the right direction, I'd really appreciate 
it.
 
thanks,
Collin
 
 
  This message 
  is for the named person's use only. It may contain confidential, proprietary 
  or legally privileged information. No confidentiality or privilege is waived 
  or lost by any mistransmission. If you receive this message in error, please 
  notify the sender urgently and then immediately delete the message and any 
  copies of it from your system. Please also immediately destroy any hardcopies 
  of the message. You must not, directly or indirectly, use, disclose, 
  distribute, print, or copy any part of this message if you are not the 
  intended recipient. The sender's company reserves the right to monitor all 
  e-mail communications through their networks. Any views expressed in this 
  message are those of the individual sender, except where the message states 
  otherwise and the sender is authorised to state them to be the views of the 
  sender's company. 


RE: Pass custom parameters into an XSP



Actually, you don't need to override 
setup().
The 
base class of the XSP generated class already does that and provides 
"protected Parameters parameters;"
 
You 
can use directly in 
 
String 
entityType = this.parameters.getParameter("entityType");
 
including the other nice features of 
Parameters such as defaulting and converting to int, boolean, and so 
on.

  -Original Message-From: Collin VanDyck 
  [mailto:[EMAIL PROTECTED]]Sent: Donnerstag, 13. Februar 2003 
  00:04To: [EMAIL PROTECTED]Cc: David 
  CummingsSubject: Re: Pass custom parameters into an 
  XSP
  Wow. I did not know you could use the XSP to 
  override the setup method.  That is VERY helpful. Thanks!!
   
   
  
- Original Message - 
From: 
Marco Rolappe 

To: [EMAIL PROTECTED] 

Sent: Wednesday, February 12, 2003 5:59 
PM
Subject: AW: Pass custom parameters 
into an XSP

hi 
collin,
 
with XSPs an easier alternative would be to pass your 'parameter' as 
a request parameter.
 
then you would:
 

    
    

 

    
    ...

 
then you can get the request parameter from within your XSP via the 
request logicsheet () or via embedded logic 
(request.getParameter ()).
 
 
the other alternative; passing the parameter as a sitemap 
parameter:
 

    
    
    
    ...

 
for this to work you have to embed the appropriate logic into your 
XSP for retrieving that parameter; as your compiled XSP is a generator in 
the end you accomplish this by overriding its setup() method and process the 
parameter(s) there.
 
just as a hint (take a look at the respective 
sources/docs):
 

    
    public void setup (SourceResolver resolver, Map 
objectModel, String src, Parameters params) throws ...
    {
    // process parameter(s) 
here
    ...
 
    super.setup (resolver, objectModel, src, 
params);
    }

 


 
HTH

  -Ursprüngliche Nachricht-Von: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Im 
  Auftrag von Collin VanDyckGesendet: Mittwoch, 12. Februar 
  2003 22:44An: [EMAIL PROTECTED]Betreff: 
  Pass custom parameters into an XSP
  Hello,
   
  I am trying to figure out how I can pass in 
  custom parameters into an already existing generator such as the 
  XSP/serverpages generator.  Here's my scenario:
   
  I receive a request for 
  /edit/page
   
  Which matches /edit/*
   
  So from this matcher, I have {1} == "page".. 
  I want to pass this off to let's say 
   
  /docs/xsp/edit/item.xsp  as a parameter 
  named "entityType"
   
  So that in the XSP I can access the 
  "entityType" variable.
   
  I think I'm missing something obvious. If 
  someone could point me into the right direction, I'd really appreciate 
  it.
   
  thanks,
  Collin
   
   

This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. 



Re: Pass custom parameters into an XSP




Wow. I did not know you could use the XSP to 
override the setup method.  That is VERY helpful. Thanks!!
 
 

  - Original Message - 
  From: 
  Marco Rolappe 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, February 12, 2003 5:59 
  PM
  Subject: AW: Pass custom parameters into 
  an XSP
  
  hi 
  collin,
   
  with 
  XSPs an easier alternative would be to pass your 'parameter' as a request 
  parameter.
   
  then 
  you would:
   
  
      
      
  
   
  
      
      ...
  
   
  then 
  you can get the request parameter from within your XSP via the request 
  logicsheet () or via embedded logic 
  (request.getParameter ()).
   
   
  the 
  other alternative; passing the parameter as a sitemap 
  parameter:
   
  
      
      
  
      
      ...
  
   
  for 
  this to work you have to embed the appropriate logic into your XSP for 
  retrieving that parameter; as your compiled XSP is a generator in the end you 
  accomplish this by overriding its setup() method and process the parameter(s) 
  there.
   
  just 
  as a hint (take a look at the respective sources/docs):
   
  
      
      public void setup (SourceResolver resolver, Map 
  objectModel, String src, Parameters params) throws ...
      {
      
  // process parameter(s) 
  here
      
  ...
   
      
  super.setup (resolver, objectModel, src, 
  params);
      }
  
   
  
  
   
  HTH
  
-Ursprüngliche Nachricht-Von: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]Im 
Auftrag von Collin VanDyckGesendet: Mittwoch, 12. Februar 
2003 22:44An: [EMAIL PROTECTED]Betreff: Pass 
custom parameters into an XSP
Hello,
 
I am trying to figure out how I can pass in 
custom parameters into an already existing generator such as the 
XSP/serverpages generator.  Here's my scenario:
 
I receive a request for /edit/page
 
Which matches /edit/*
 
So from this matcher, I have {1} == "page".. I 
want to pass this off to let's say 
 
/docs/xsp/edit/item.xsp  as a parameter 
named "entityType"
 
So that in the XSP I can access the 
"entityType" variable.
 
I think I'm missing something obvious. If 
someone could point me into the right direction, I'd really appreciate 
it.
 
thanks,
Collin
 
 


AW: Pass custom parameters into an XSP




hi 
collin,
 
with 
XSPs an easier alternative would be to pass your 'parameter' as a request 
parameter.
 
then 
you would:
 

    
    

 

    
    ...

 
then 
you can get the request parameter from within your XSP via the request 
logicsheet () or via embedded logic 
(request.getParameter ()).
 
 
the 
other alternative; passing the parameter as a sitemap 
parameter:
 

    
    

    
    ...

 
for 
this to work you have to embed the appropriate logic into your XSP for 
retrieving that parameter; as your compiled XSP is a generator in the end you 
accomplish this by overriding its setup() method and process the parameter(s) 
there.
 
just 
as a hint (take a look at the respective sources/docs):
 

    
    public void setup (SourceResolver resolver, Map 
objectModel, String src, Parameters params) throws ...
    {
    
// process parameter(s) 
here
    
...
 
    
super.setup (resolver, objectModel, src, 
params);
    }

 


 
HTH

  -Ursprüngliche Nachricht-Von: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Im 
  Auftrag von Collin VanDyckGesendet: Mittwoch, 12. Februar 2003 
  22:44An: [EMAIL PROTECTED]Betreff: Pass custom 
  parameters into an XSP
  Hello,
   
  I am trying to figure out how I can pass in 
  custom parameters into an already existing generator such as the 
  XSP/serverpages generator.  Here's my scenario:
   
  I receive a request for /edit/page
   
  Which matches /edit/*
   
  So from this matcher, I have {1} == "page".. I 
  want to pass this off to let's say 
   
  /docs/xsp/edit/item.xsp  as a parameter 
  named "entityType"
   
  So that in the XSP I can access the "entityType" 
  variable.
   
  I think I'm missing something obvious. If someone 
  could point me into the right direction, I'd really appreciate 
it.
   
  thanks,
  Collin
   
   


Pass custom parameters into an XSP




Hello,
 
I am trying to figure out how I can pass in custom 
parameters into an already existing generator such as the XSP/serverpages 
generator.  Here's my scenario:
 
I receive a request for /edit/page
 
Which matches /edit/*
 
So from this matcher, I have {1} == "page".. I want 
to pass this off to let's say 
 
/docs/xsp/edit/item.xsp  as a parameter named 
"entityType"
 
So that in the XSP I can access the "entityType" 
variable.
 
I think I'm missing something obvious. If someone 
could point me into the right direction, I'd really appreciate it.
 
thanks,
Collin
 
 


Re: Writing Request to File System


I'm not sure that this will solve my problem with "write-source".  Nothing
is getting written to my file and I get the following message on the
browser "the src attribute could not be resolved and failed to cancel".

I appreciate the tip, I'll run the response though another stylesheet and
display that to the user.  Um, maybe "the src attribute could not be
resolved and failed to cancel" is my response from the
SourceWritingTransformer.

Does that response from SourceWritingTransformer make any sense to you?

Thanks,

JohnPT



   
   
  cocoon-users-return-46550-jthaemlitz=oreillyauto.com@XML 
   
  .APACHE.ORG 
To:   [EMAIL PROTECTED]   
  
cc: 
  02/12/03 02:32 PM   
Subject:  Re: Writing Request to File System
  Please respond to cocoon-users   
   
   
   
   
   





On Wednesday, February 12, 2003, at 02:14 PM,
[EMAIL PROTECTED] wrote:

> a little more help would be greatly appreciated.  The root of my
> document
> after the transformation is , do I need to wrap this in
> another tag so the  has something to send
> back
> to the browser?
>

The SourceWritingTransformer replaces the source:write tag with a
response to say what happened. If you want to display the edited
content back to the user again, you need to duplicate it, before the
transformation.


regards Jeremy


-
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: Writing Request to File System


On Wednesday, February 12, 2003, at 02:14 PM, 
[EMAIL PROTECTED] wrote:

a little more help would be greatly appreciated.  The root of my 
document
after the transformation is , do I need to wrap this in
another tag so the  has something to send 
back
to the browser?


The SourceWritingTransformer replaces the source:write tag with a 
response to say what happened. If you want to display the edited 
content back to the user again, you need to duplicate it, before the 
transformation.


regards Jeremy


-
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: sample web-app too complex?


While on the subject, I just got:

http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice

to work - and was wondering how one should package this as cleanly,
modular and small as possible ?

I.e:
http://cvs.apache.org/~dirkx/CoFi/

is what I have now. But it still has a few hard coded paths and
references. Ultimately I'd like to get it as a simple zip/jar which
can be added to the XMLFormXindice page which is trivial to deploy.

Things I am left to wonder - and would appreciate it if anyone could point
me to the right documentation:

->  in sitemap.xmap I'd like to reference
the cocoon/samples/stylesheets/... relative
or absolute to server root rather than have the local
copy in the styles directory.

Is that possible ?

->  Right now I use an ant task to build a .jar which
then gets (manually) put in cocoon/WEB-INF/lib

Is there a way to make this local or reference
it more self contained from sitemap.xmap ?

Ideally with a map:action src=" something
relative.

Is that possible ?

->  Right now I add the xindice.jar to the lib
of cocoon/WEB-INF.

Is there a way instead to
manage the classpath directly from the
sitemap.xmap in the local directory ?

Or in short; how do I make the above a more 'modular' and stand alone
example. Pointers to the right place in the documentation appreciated.

Thanks,

Dw



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




Reconciling JSP/JSF with XML/XSLT

All,

TheServerSide.com posted yesterday an article about using JSP and JSF
in combination with XML and XSLT. This may be of interest to Cocoon
users who have forgotten that Sun is still working and improving on
JSP. JSF stands for JavaServer Faces. It is essentially a server-side
component model a la Swing, designed to integrate nicely with JSP.

The article presents the natural evolution of server-side Java
programming from basic servlet programming to JSP 2.0 with JSTL and
JSF, shows the limitations of the current JSF rendering architecture
and finally illustrates how XML technologies can solve them.

The article comes with sample code, including an experimental XML
renderer for JSF. The article is available here:

  http://www.theserverside.com/resources/article.jsp?l=BestBothWorlds

Enjoy,

-Erik


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




Database password encryption in cocoon.xconf

Hi,
Is there anyway to enable password encryption in cocoon's database connections (ref 
cocoon.xconf) ?



  
  jdbc:oracle:thin:@my_server:my_port:my_SID
  username
  my_encrypted_password



Please advise if a password encryption tool can be used to encrypt database passwords 
and getting cocoon to use this tool to do the reverse when connecting to a database. I 
know this is a long shot, but I thought I will ask anyway!

Reason for this query is that our internal security policy do not to allow storing of 
passwords without them being encrypted first.

Thanks and Regards
Kirula


--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



-
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: Too much java in xsp

Yes, Sir.  Absolutely use an action and remove JAVA as much as possible from
the xsp.  When you do this and know how to pass a STRING ARRAY into the
XML/XSL without the need of the XSP - please let me know - it is the only
thing that i still rely on an XSP for.

> -Original Message-
> From: Lionel Crine [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 11:40 AM
> To: [EMAIL PROTECTED]
> Subject: Too much java in xsp
>
>
> I'm using an xsp in which I manipulate some code (
> parameters,
> for example).
>
> But unfortunately, There is too much code java in it and so the
> xsp is very
> HUGE.
>
> I was thinking about using an action in the sitemap to modify my document
> instead of java code in the xsp, is it a good idea ?
>
> am I on the right way ?
>
>
> -
> 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: Too much java in xsp

Title: RE: Too much java in xsp 






Well, Robert's suggestion is a good one and I've already written a tutorial about 

that (http://xml.apache.org/cocoon/tutorial/tutorial-generator.html)


But if that seems out of reach, you can use something like:





yourpackage.*



...


to include any java class in your xsp and use it like you would anywhere else:

yourpackage.YourHelper.doSomethingComplicated(object);

or whatever.  In the end, your xsp winds up as a java file (a Generator) so 

you can do whatever can be done in java from within an xsp (except inheritance??)

including code encapsulation.


See http://xml.apache.org/cocoon/userdocs/xsp/logicsheet-concepts.html#java-logicsheets

for some specific things to look out for when doing that - the doc is aimed at 

logicsheet development, but applies to this as well.


Some of the logicsheets do this as well, and would make good examples, though they are 

slightly more complicated because they introduce one layer of abstraction from an xsp.


Geoff




> -Original Message-

> From: Lionel Crine [mailto:[EMAIL PROTECTED]]

> Sent: Wednesday, February 12, 2003 12:03 PM

> To: [EMAIL PROTECTED]

> Subject: RE: Too much java in xsp 

> 

> 

> Please, can you give me more information (hints) about the 

> helper Geoff ?

> 

> 

> -

> 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: Too much java in xsp

Robert,
Here is my issue :

I have create a portal :
When I come to the form page :


1/An xsp file is generated from the form.
2/This xsp get the request parameters and modify the structure as I want it 
to be
3/A transformer Get the SAX events of the xsp generator, get information 
from XML DB and return a response
4/ Finally I dispay the result in the browser.


I think creating a new generator would be an error.


-
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: Too much java in xsp

Please, can you give me more information (hints) about the helper Geoff ?


-
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: Fault tolerance...

Title: RE: Fault tolerance...






have you tried using the resource exists action?


Geoff


> -Original Message-

> From: Ben Young [mailto:[EMAIL PROTECTED]]

> Sent: Wednesday, February 12, 2003 11:04 AM

> To: [EMAIL PROTECTED]

> Subject: Fault tolerance...

> 

> 

> In my current work with the aggregation option in Cocoon 

> 2.0.4 it seems that

> the aggregation options are not very fault tolerant. If one of the

> map:part's of my map:aggregate section points to a file that 

> does not exist,

> all map:part's after that one do not get returned even if 

> their files exist.

> 

> With a cinclude transformer the error is a bit worse. If the 

> file requested

> does not exist in the pipeline, I get a NullPointerException 

> from line 180

> in the CIncludeTransformer.java. That line contains the 

> source.recycle()

> call. Since the source is never created, there is nothing to 

> recycle. Hence

> the error. 

> 

> Would it be possible to make the map:aggregate continue on 

> it's merry way

> even if one of the map:part's doesn't resolve to anything?

> 

> Would it also be possible to add some fault tolerance to the

> CincludeTransformer? It seems to that the cinclude's done using the

> cocoon:// protocol don't follow any map:redirect-to's. That's probably

> somewhat unrelated, but worth mentioning I guess. 8o)

> 

> Thank you for your thoughts and time,

> Ben

> 

> 

> -

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

> 

> 

> 





Call of scratchpad webservices examples using

Hi all,

I'm trying to call web services from org.apache.cocoon.webservices 
package using AxisRPCReader.
The given example of AdminService works and I try to call others 
services such as the Cocoon-JVM-Memory one.

works:

http://xml.apache.org/axis/wsdd/"/>


doesn't work:

  
 
  


It says: 
	ns1:Server.NoService
	The AXIS engine could not find a target service to invoke!
	targetService is null 

Does anybody know how to call such RPC services?

Thanks.


-
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: Too much java in xsp

Title: RE: Too much java in xsp 






why don't you create a helper class with your heavy duty java in it?  


Geoff


> -Original Message-

> From: Lionel Crine [mailto:[EMAIL PROTECTED]]

> Sent: Wednesday, February 12, 2003 11:40 AM

> To: [EMAIL PROTECTED]

> Subject: Too much java in xsp 

> 

> 

> I'm using an xsp in which I manipulate some code 

> ( parameters, 

> for example).

> 

> But unfortunately, There is too much code java in it and so 

> the xsp is very 

> HUGE.

> 

> I was thinking about using an action in the sitemap to modify 

> my document 

> instead of java code in the xsp, is it a good idea ?

> 

> am I on the right way ?

> 

> 

> -

> 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: Too much java in xsp

Probably a generator actually. Use generators for things that are more
complex. XSP should be used, IMHO, only for generation with small amounts of
code.

-- Robert

- Original Message -
From: "Lionel Crine" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 5:40 PM
Subject: Too much java in xsp


> I'm using an xsp in which I manipulate some code ( parameters,
> for example).
>
> But unfortunately, There is too much code java in it and so the xsp is very
> HUGE.
>
> I was thinking about using an action in the sitemap to modify my document
> instead of java code in the xsp, is it a good idea ?
>
> am I on the right way ?
>
>
> -
> 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]>




Too much java in xsp

I'm using an xsp in which I manipulate some code ( parameters, 
for example).

But unfortunately, There is too much code java in it and so the xsp is very 
HUGE.

I was thinking about using an action in the sitemap to modify my document 
instead of java code in the xsp, is it a good idea ?

am I on the right way ?


-
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: sample web-app too complex?

Michael Melhem wrote:


Hi Christian, I was actually thinking that we could provide a new 
build target that would build a hello-world.war and would contain 
only one or two simple samples.

The object of this hello-world.war would be demonstrate the basic
features/ideas behind Cocoon without getting bogged down on details. 
Just something simple with extra documentation so that newbies can get 
ther handes dirty real quick.

So instead of having X number of generators|transformers|serializers
being declared in the components section, we would have one or two
of each which would make things much easier to follow. We would also
have only one or two pipelines using say a basic file generator
to transform an xml file to HTML etc. I think at a minimum the webapp
would aslo need to show basic use of actions views..

With the current complexity of the webapp Im afraid that perhaps a lot 
of new users might not be able to see the "forrest for the trees".

Does anyone else see value in this?

Good idea Michael,

I have been trying to get my head around Cocoon for a couple months now, 
without biting the bullet and devoting a solid week to it.

This approach hasn't been successful yet.  I think your idea may help a lot.

I would like to put in a request that you include a simple example using 
a custom generator instead of a flat XML file.  The reason is that I am 
coming from a servlet / JSP / struts background instead of a HTML / PHP 
/ whatever background.  I want to use Cocoon as a platform for web 
applications more than multi-platform publishing.

Thanks,
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net


-
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: Fault tolerance...

Ben Young <[EMAIL PROTECTED]> writes:

> In my current work with the aggregation option in Cocoon 2.0.4 it seems that
> the aggregation options are not very fault tolerant. If one of the
> map:part's of my map:aggregate section points to a file that does not exist,
> all map:part's after that one do not get returned even if their files exist.
> 
> With a cinclude transformer the error is a bit worse. If the file requested
> does not exist in the pipeline, I get a NullPointerException from line 180
> in the CIncludeTransformer.java. That line contains the source.recycle()
> call. Since the source is never created, there is nothing to recycle. Hence
> the error. 
> 
> Would it be possible to make the map:aggregate continue on it's merry way
> even if one of the map:part's doesn't resolve to anything?

I would prefer a slightly different behavior. The CIncludeTranformer
could add a short error message in XML, so the next transformer
could either remove the error message or transform it to a user friendly
form. 

Martin

--
Martin Holz <[EMAIL PROTECTED]>

Softwareentwicklung / Vernetztes Studium - Chemie
FIZ CHEMIE Berlin
Franklinstrasse 11
D-10587 Berlin 

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




Fault tolerance...

In my current work with the aggregation option in Cocoon 2.0.4 it seems that
the aggregation options are not very fault tolerant. If one of the
map:part's of my map:aggregate section points to a file that does not exist,
all map:part's after that one do not get returned even if their files exist.

With a cinclude transformer the error is a bit worse. If the file requested
does not exist in the pipeline, I get a NullPointerException from line 180
in the CIncludeTransformer.java. That line contains the source.recycle()
call. Since the source is never created, there is nothing to recycle. Hence
the error. 

Would it be possible to make the map:aggregate continue on it's merry way
even if one of the map:part's doesn't resolve to anything?

Would it also be possible to add some fault tolerance to the
CincludeTransformer? It seems to that the cinclude's done using the
cocoon:// protocol don't follow any map:redirect-to's. That's probably
somewhat unrelated, but worth mentioning I guess. 8o)

Thank you for your thoughts and time,
Ben


-
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: ideal hardware for cocoon?

> 
> We are going to be setting up a dedicated cocoon server soon 
> and I am trying to spec out the hardware. The operating 
> system will be redhat (8
> probably) and tomcat will be the servlet engine.
> 
> Does anyone have any experiences of what hardware balance is 
> right for cocoon? 

As much as you can afford... :-)

>I know this is stupid question with no 
> concrete answer as it depends on what the server will be 
> doing, loading, etc. etc. etc.
> 
> The cocoon server is mainly going to be serving FOP based 
> transformations, xml (xhtml) to PDF and xml to svg to png.  

Given that it sounds like as much memory as you can afford will help...

> As much static content as possible will be served from a 
> dedicated apache http server so this machine will only be 
> doing dynamic xml transformations. Some of these might get 
> quite large, our present record is xhmtl to 206 pages of pdf.

Yep, definitely going to need memory.

As you've stated there is no answer to this question.

Here we have Cocoon serving a lot of very dynamic content.  Dev development
is 2 Dell 2650's: dual Xeon processors, RAID 5, 1GB memory.  One runs Oracle
DB other runs Jboss/Tomcat/Cocoon.  Production will be Quad Xeon processor
with 4GB memory for DB and multiple 2650's (or similar) for JBoss and Tomcat
with more memory.  We expect to support a couple 100 users. Lots' of
hardware for a small user base, but the problem is hard to solve and
hardware is cheaper than people time for this particular problem...


-
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: sample web-app too complex?

On Mon, Feb 03, 2003 at 02:06:18PM +0100, Christian Haul wrote:
> On 03.Feb.2003 -- 01:33 PM, Michael Melhem wrote:
> > Hi Cocooners,
> > 
> > I know that we probably have had this discussion before, but is there a
> > reason why we dont have simple "Hello-World" sample web-app along side
> > the current sample web-app? (or does there already exist an independent
> > "hello-world" web-app that Im not aware of?)
> > 
> > I have been trying to encourage some people I know to adopt Cocoon
> > in their organisations, but it seems to me that many new people are
> > daunted by the complexity of the sample web-app.  It might not seem so
> > difficult for most of us (who use cocoon everyday) but this is not the
> > case for most new users.
> 
> Michael, I'm not quite sure if I understand this "simple webapp"
> proposal correctly. We do have a "clean-webapp" target which AFAIR
> builds a webapp without samples or documentation.

Hi Christian, I was actually thinking that we could provide a new 
build target that would build a hello-world.war and would contain 
only one or two simple samples.

The object of this hello-world.war would be demonstrate the basic
features/ideas behind Cocoon without getting bogged down on details. 
Just something simple with extra documentation so that newbies can get 
ther handes dirty real quick.

So instead of having X number of generators|transformers|serializers
being declared in the components section, we would have one or two
of each which would make things much easier to follow. We would also
have only one or two pipelines using say a basic file generator
to transform an xml file to HTML etc. I think at a minimum the webapp
would aslo need to show basic use of actions views..

With the current complexity of the webapp Im afraid that perhaps a lot 
of new users might not be able to see the "forrest for the trees".

Does anyone else see value in this?

> 
> The other issue is the current samples we ship. A lot lives in a
> single sitemap file which is not really encouraging to try to
> understand what happens in there. Perhaps, we could all adopt some
> samples and split this monster into several sub sitemaps that contain
> just the parts for this particular sample. Have a look at the current
> database block samples to see what I mean.

Yes I agree with you here, the current webapp could itself be
simplified.

Regards,
Michael

> 
>   Chris.
> -- 
> C h r i s t i a n   H a u l
> [EMAIL PROTECTED]
> fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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




ideal hardware for cocoon?

Hi folks 

We are going to be setting up a dedicated cocoon server soon and I am
trying to spec out the hardware. The operating system will be redhat (8
probably) and tomcat will be the servlet engine.

Does anyone have any experiences of what hardware balance is right for
cocoon? I know this is stupid question with no concrete answer as it
depends on what the server will be doing, loading, etc. etc. etc.

Having said all this what balance would you go for when buying a cocoon
server? Would you go for single processor (2.6ghz) machine with lots of
memory (4-6gig) or a dual processor machine (2 x 2.6ghz) with less
memory (2gig).

My searching of the cocoon, tomcat, and FOP lists hasn't really given me
any good feel for optimum hardware configuration. I'm hoping someone has
some experience. 

The cocoon server is mainly going to be serving FOP based
transformations, xml (xhtml) to PDF and xml to svg to png.  As much
static content as possible will be served from a dedicated apache http
server so this machine will only be doing dynamic xml transformations.
Some of these might get quite large, our present record is xhmtl to 206
pages of pdf.

Again I appreciate that optimum hardware should be reached by careful
study of what us it is going to be put to, but we are just starting out
seriously on the cocoon route so don't have the experience to know
exactly how it will be used.  


Caleb Racey
Webteam 
University Computer Service 
University of Newcastle
tel 0191 222 5916




-
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: cocoon on SunOne?

We are running cocoon on SunOne as well, and I had this problem too.
It's really quite simple. You just need to add some permission in the
server.policy file for cocoon to work. These are the permissions I
added:

permission java.lang.RuntimePermission
"createSecurityManager";
permission java.lang.RuntimePermission
"createClassLoader";
permission java.util.PropertyPermission "*",
"read,write";
permission java.net.SocketPermission"*",
"accept,resolve";

As well as a delete permission to the java.io.FilePermission.

That's it, and cocoon should work fine after that.

Regards,

Kyle

-Original Message-
From: Tsui, Alban [mailto:[EMAIL PROTECTED]] 
Sent: February 12, 2003 6:11 AM
To: [EMAIL PROTECTED]
Subject: cocoon on SunOne?


hi 
I have compiled cocoon2.0.3 with jdk1.4 as a war and tried to deploy it
to SunOne app server. When I hit the page: http://localhost:81/cocoon I
got the following error:
Type: Exception Report

Message: Internal Server Error
Exception 
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:94
9)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6
58)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:229)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
05)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:212)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
05)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:203
)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
05)
at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcesso
r.ja
va:157)
at
com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

Root Cause 
java.security.AccessControlException: access denied
(java.lang.RuntimePermission createSecurityManager)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.
java
:270)
at
java.security.AccessController.checkPermission(AccessController.java:401
)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.(SecurityManager.java:298)
at
org.apache.cocoon.util.log.CocoonLogFormatter$CallStack.(CocoonLogFormat
ter.
java:99)
at
org.apache.cocoon.util.log.CocoonLogFormatter.(CocoonLogFormatter.java:1
27)
at
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:73
0)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:262)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:92
1)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6
58)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:229)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
05)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:212)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
05)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:203
)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
05)
at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcesso
r.ja
va:157)
at
com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

Is this something to do with my cocoon or with my SunONE settings? Any
help would be appreciated. Alban


This message may contain privileged and/or confidential information.  If
you have received this e-mail in error or are not the intended
recipient, you may not use, copy, disseminate or distribute it; do not
open any attachments, delete it immediately from your system and notify
the sender promptly by e-mail that you have done so.  Thank you.

-
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: Writing Request to File System


The writeSource.xsl tranformer seems to be working.  If I remove the
 I can see the document on the browser
and it looks correct.  However when I include the "write-source" I get the
following message on the browser "the src attribute could not be resolved
and failed to cancel".  any idea what that message is trying to say?

I'm not sure if it's relevant, but I can run the editor examples under
mount/editor.

a little more help would be greatly appreciated.  The root of my document
after the transformation is , do I need to wrap this in
another tag so the  has something to send back
to the browser?

Thanks,

JohnPT



   
   
  cocoon-users-return-46489-jthaemlitz=oreillyauto.com@XML 
   
  .APACHE.ORG 
To:   <[EMAIL PROTECTED]> 
  
cc: 
  02/11/03 01:58 PM   
Subject:  RE: Writing Request to File System
  Please respond to cocoon-users   
   
   
   
   
   




>Then write it to a file on my TomCat server (I NEED THIS)

http://xml.apache.org/cocoon/userdocs/transformers/sourcewriting-transformer

.html

sitemap:

...

 




writeSource.xsl:


http://www.w3.org/1999/XSL/Transform";
xmlns:source="http://apache.org/cocoon/source/1.0";>
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 
 
 
 
 


Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 11 February 2003 05:31PM
To: [EMAIL PROTECTED]
Subject: Writing Request to File System


I'm a newbie.  I have Cocoon running.  I have a stylesheet that can submit
and recieve values from the RequestGenerator.

What I want to do is
Get http RequestGenerator XML (I have that)
Run it though a stylesheet (I have that)
Then write it to a file on my TomCat server (I NEED THIS)
Then redirect the request to an index page (This would be nice)

Right now I can send the output I want to go to the file as a response to
the web client.

Thanks,

JohnPT



-
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: AW: anyone interested in a cocoon-users meeting in Köln/germany ?

I would be interested too. Despite I would prefere some place in Switzerland (or 
France).

Hold us informed about it :-)



-Original Message-
From: Darren Petrie [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 11, 2003 3:30 PM
To: [EMAIL PROTECTED]
Subject: Re: AW: anyone interested in a cocoon-users meeting in Köln/germany ? 


Hussayn,

I would be interested in a Cocoon meeting in Koln.

Darren Petrie


On Tuesday, February 11, 2003, at 02:49 PM, [EMAIL PROTECTED] wrote:

> I am also interested in a 'Cocoon meeting' in the
> Cologne area (Sa or Su please because I am working in
> the UK)
>
> Cheers
> Holger Adelmann
>
>
> On Tue, 11 Feb 2003, "Jan Harms" wrote:
>
>>
>> Hi Hussayn,
>>
>> I´m interested too. The topics I would like to hear
>> about or discuss are: "What do you use Cocoon for?"
>> (i.e. what types of applications) and, of course,
> "best
>> practices"   :-)
>>
>> BTW, is anyone of you going to the JAX 2003 Conference
>> in Frankfurt (12.-16. May) ?
>>
>> Carsten and Matthew will be doing a "Powerworkshop" on Cocoon.
>>
>> Bye,
>>
>> -Jan Harms
>>
>>> -Ursprüngliche Nachricht-
>>> Von: SAXESS - Hussayn Dabbous
>> [mailto:[EMAIL PROTECTED]]
>>> Gesendet: Dienstag, 11. Februar 2003 13:53
>>> An: [EMAIL PROTECTED]
>>> Betreff: anyone interested in a cocoon-users meeting
>> in Köln/germany ?
>>>
>>>
>>> Hy;
>>>
>>> If there is interest, i could organise something in
>> Köln.
>>> (maybe not as nice a place as some of you offered in
>> this list ;-) )
>>> Just send me a note (possibly include a proposal for
>> an agenda ... )
>>>
>>> regards, Hussayn
>>>
>>
>>
>>
> -
>> Please check that your question  has not already been answered in the
>> FAQ before posting.
>> < href="http://mail.cswebmail.com/jump/http://xml.apache.org/cocoon/faq/
> index.html>">http://xml.apache.org/cocoon/faq/index.html>;
>>
>> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>> For additional commands, e-mail:
>> <[EMAIL PROTECTED]>
>
> ___
> The ALL NEW CS2000 from CompuServe
>  Better!  Faster! More Powerful!
>  250 FREE hours! Sign-on Now!  
> http://www.compuserve.com/trycsrv/cs2000/webmail/
>
>
>
>
>
> -
> 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]>
>
>
Darren Petrie
[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: How to get an absolute path ?

On Tue, 11 Feb 2003 11:09:46 -0500
"Timothy Larson" <[EMAIL PROTECTED]> wrote:

> You can get the current sitemap path in an XSP:
>   http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104160818008223&w=2
> 
> Tim
> 
> >>> [EMAIL PROTECTED] 02/11/03 10:24AM >>>
> Hi all !
> 
> I am using Cocoon 2.0.4 with Tomcat 4.1.18.
> In an XSP page, I would like to get the "hard" path of the webapp or a
> sub-dir of the webapp, to use Lucene with an index directory. I know I can
> get the relative path of the webapp with , but I want
> to get the absolute path such like :
> "/apps/tomcat/webapps/cocoon/mycocoon/index". Is it possible ?
> 
> I apologize in advance if this doesn't concern this mailing list ! ...
> 
> Olivier BILLARD

Try 
ServletContext httpContext.getRealPath("")


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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: cocoon on SunOne?

I am not quite sure but I guess:

Root Cause 
java.security.AccessControlException: access denied
(java.lang.RuntimePermission createSecurityManager)

it has something to do with your Permission setting and I think they reside on your 
server.

...but it is just a guess!

King regards
Thorsten

-Ursprüngliche Nachricht-
Von: Tsui, Alban [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 12. Februar 2003 13:11
An: [EMAIL PROTECTED]
Betreff: cocoon on SunOne?


hi 
I have compiled cocoon2.0.3 with jdk1.4 as a war and tried to deploy it to
SunOne app server. When I hit the page:
http://localhost:81/cocoon
I got the following error:
Type: Exception Report

Message: Internal Server Error
Exception 
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
9)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:229)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:212)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203
)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.ja
va:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

Root Cause 
java.security.AccessControlException: access denied
(java.lang.RuntimePermission createSecurityManager)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:270)
at
java.security.AccessController.checkPermission(AccessController.java:401)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.(SecurityManager.java:298)
at
org.apache.cocoon.util.log.CocoonLogFormatter$CallStack.(CocoonLogFormatter.
java:99)
at
org.apache.cocoon.util.log.CocoonLogFormatter.(CocoonLogFormatter.java:127)
at
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:730)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:262)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:92
1)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:229)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:212)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203
)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.ja
va:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

Is this something to do with my cocoon or with my SunONE settings? Any help
would be appreciated.
Alban


This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

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




cocoon on SunOne?

hi 
I have compiled cocoon2.0.3 with jdk1.4 as a war and tried to deploy it to
SunOne app server. When I hit the page:
http://localhost:81/cocoon
I got the following error:
Type: Exception Report

Message: Internal Server Error
Exception 
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
9)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:229)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:212)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203
)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.ja
va:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

Root Cause 
java.security.AccessControlException: access denied
(java.lang.RuntimePermission createSecurityManager)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:270)
at
java.security.AccessController.checkPermission(AccessController.java:401)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.(SecurityManager.java:298)
at
org.apache.cocoon.util.log.CocoonLogFormatter$CallStack.(CocoonLogFormatter.
java:99)
at
org.apache.cocoon.util.log.CocoonLogFormatter.(CocoonLogFormatter.java:127)
at
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:730)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:262)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:92
1)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:229)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:212)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203
)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.ja
va:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

Is this something to do with my cocoon or with my SunONE settings? Any help
would be appreciated.
Alban


This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

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




webServiceProxy




Hi!
 
I am new to cocoon, and I was wondering if I could 
use this feature ( webServiceProxy ) with any Web site ( and if yes 
-how? ) or just with those sites who produce XML content.
 
Thank you 
Tudor


Re: XForms - and persistance layer - Xindice or other cleverness


On Wednesday, February 12, 2003, at 08:00 AM, Dirk-Willem van Gulik 
wrote:


Is there a well known receipe to generate the JavaBeans which XForms 
needs
to hold the data for each form ? Or a generic mapper whcih given the 
xform
data lets me store such directly in Xindice or, through somethign like 
an
automated SQL mapping, elsewhere ?

What I am looking for is a data definition driven
	- form
	- validation
	- storage construction. Where a change in the data definition,
followed if needed by a purge of the database and a
restructure/rebuild/remake, will drive the (html) forms, table/storage
structs and validation. A recompile of generated java code is fine too.

Data defintion is obviously not to be interpreted too narrow; i.e. it 
may
have companion definitions for UI or storage hints,

Thanks for your collective wisdom !

There was a flowscript posted on Cocoon Dev, handling XForm <-> Bean 
<-> RDBMS using Hibernate.



I am trying to get my head around it ;)

regards Jeremy


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



The cocoon-sandwich-use-case(was :Session managing problem)

Hy, all;

I see one special use case for cocoon, which i call the
"cocoon-sandwich". The raising amount of questions
in the past few weeks triggered me to write down this text.
Lajos Moczar and myself we are in this since about two months
now. This message summarizes some of our results. I think, this
issue is of common interest. Hence i want to give you an insight
into what we found and how we solved the problems in general.


scenario:
-

You have a webapplication, that is already up and running.
This webapp uses "conventional" interaction (jsp, servlets)
possibly it is built up with struts, expresso or whatever.
The webapp is independent of cocoon.
You need to setup an intelligent "presentation-layer" that
talks to the browser on one side and to the webapp on the
other side. This presentation layer thus acts as client to
the webapp and as server to the browser:


   client/server ...  client/server
  +-+ ++ ++
  | BROWSER |-|  PRESENTATION  |-| WEBAPP |
  +-+ ++ ++


implementation scenarios


0.) The poor mans scenario
--

This scenario can be implemented with "standard-cocoon"
under certain circumstances:

1.) the webapp is stateless
2.) the webapp does not use sessions
3.) the webapp has an XML-interface (responds with XML-content)
For jsp's i mean this: <%@ page contentType="text/xml"%>
3.) there is no hidden flow between webapp and browser,
i.e. no COOKIES

You can get around by using the "http:" ptocol handler coming
with cocoon.

I name this "poor man's scenario", because you simply get it
for free and can set it up in two minutes.

But if you need to make your presentation layer transparent
to session-infos and hidden flows (cookies), you need
to make some additional work, that is currently not
available from "standard-cocoon". Even the WebappProxyGenerator
mentioned often in this context, does NOT provide transparent
session preserving!


1.) The hacker's solution
-

We created one solution, that works almoust perfect under
following conditions:

* Your webapp and your presentation layer are running in the same
  ip-domain
* You can modify your webapp in a way, that it does its own
  session handling. Basically you would setup a Hashtable containing
  the session-data. The access key is the sessionid. You put the
  sessionid into your very special cookie and tell the browser to
  send this cookie whenever it sends a request to your ip-domain.
  Now when your webapp gets such a cookie, it can refer to the
  session in the hashtable.

We still have to provide a facility to move Cookies forth and
back through the presentation layer. For this purpose we have
written a special proxy-protocol handler, that can be used similar
to the standard "http:" protocol:



  



When using this proxy: handler, it will take care of your
cookies in both directions (request and response)
The major advantage here is, that you can use the proxy: handler
wherever you can place a src into the sitemap. i.e. you could
enable cookies with the WebProxyGenerator (hope, that's true. of
course it depends heavily on what the generator does ;- )

There are two drawbacks to this:
1.) You must login to your webapp first and create the
session environment and the cookie. Only after you did
this, you can use your presentation layer to go on.
2.) You must modify your webapp after all.

Because of these drawbacks i call this solution the
"hacker's solution"

2.) The versatile solution
--

Now what could you do, if you wanted to keep your webapp as is?
There are two points here:

1.) You need to login to your webapp through the presentation layer.
Basically you would login to the presentation layer and the
presentation layer would login to your webapp.
2.) In order to get this done, you need to use the SAME credentials
in the presentation layer as you need in your webapp.

You would not need to move COOKIES between the browser and the
webapp for session tracking. This would now be done internally by
cocoon and the proxy: handler. But you may still want to pass
cookies for other purposes. No problem, proxy: already does what
you need.

There is still one drawback to this solution:

You need to use the same authentification database in
presentation layer and webapp. This may be no problem at all
if you can manage to run your webapp and the presentation layer on
the same container, or at least in the same environment (using the
same user database). But when you want to setup a scenario with
SSO over far servers, you need just another level of processing.


3.) The SSO solution (rich mans's solution)
-

sub sitemap whith protected resource

Hello,


Every time I need a pattern I need to pass "cocoon-reload=true" to relaod 
the sitemap even it 's unchanged.
The issue is that is really slow, so I've decided to create a sub sitemap 
so that only it would be reloaded.

I'm not sure it will works.
The thing is that I need to insert protected patterns into the sub sitemap.

Should I store all the authenticate process into it or only the patterns I 
want ?
If it works, how can I be sure "cocoon-reload=true" will reload only the 
sub sitemap ?


Lionel


-
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: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo

If you add the following Java options to the line that runs tomcat:

-Xint -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=12999,suspend=n

Then you can attach to tomcat using elicpse at the socket  12999. How to
attach eclipse specifically is somethign I dont know. I use NetBeans because
it is a far better product. However I think even eclipse will do this just
fine.

-- Robert

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 11:23 AM
Subject: RE: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Hi Robert,

I want to use the Eclipse debugger. I dont' if it is JPD compatible but I
think...

In Eclipse, how do you attach Tomcat remotely?

Thanks
Regards
Sylvain


-Message d'origine-
De: Robert Simmons [mailto:[EMAIL PROTECTED]]
Date: mardi, 11. février 2003 21:55
À: [EMAIL PROTECTED]
Objet: Re: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Debugging is easy if you have a JPD compatible debugger. Look at the Java
documentation on the "Java" command for info on how to run tomcat in debug
mode and then attach to it remotely. I use this technique with JBoss all the
time.

-- Robert

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 2:03 PM
Subject: RE: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Martin,

You said that you run Tomcat out of Eclipse. So you don't need a /WEB-INF
directory in your Eclipse project, right?
The Tomcat Eclipse runs Tomcat inside Eclipse. What is exactly the difference
between outside and inside?

To start/stop (outside) Tomcat from Eclipse, what do you change in
windows/Preferences?

At this time I don't want to develop components but I would like to debug the
existing components. Would be better to create Java project?


Thanks again
Best.
Sylvain



-Message d'origine-
De: Martin Dulisch [mailto:[EMAIL PROTECTED]]
Date: mardi, 11. février 2003 10:16
À: [EMAIL PROTECTED]
Objet: Re: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Sylvain,

I use the tomcat plug-in "only" to start/stop tomcat out of eclipse. I
dont use the tomcat project type.

If you want to develop java components like actions or transformers
than create a java project. If you do not develop java components than
you can create a simple project. The project folder should be in both
cases the tomcat/webapps/cocoon folder.

Java Build Path settings (Properties of the project):
- Build output folder: WEB-INF/classes
- Libraries: add libs from WEB-INF/lib you need to compile

To start/stop tomcat set the tomcat path in Windows/Preferences. The
tomcat plug-in starts tomcat in debug mode. So you can set breakpoints
in your source files. I use tomcat 4.1.X. Here hot code replacement
works for me.

For the non java work I use the sunBow plug-in :)

Hope I did not have forget anything.

Martin





- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 9:47 AM
Subject: RE: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Hi Martin,

I want to develop application like you. And I have installed this
Tomcat plugin to debug my app and the Cocoon sources. I don't want to
"work" at the Cocoon sources, only understand how it works for
debugging.

Yes please. A description of your environment in Eclipse would be
greatly appreciated.

Thank you very much
Regards
Sylvain

-Message d'origine-
De: Martin Dulisch [mailto:[EMAIL PROTECTED]]
Date: mardi, 11. février 2003 09:23
À: [EMAIL PROTECTED]
Objet: Re: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Hi Sylvain,

what do you want to do with this project? Application development with
cocoon or do you want to work at the cocoon sources?

I do the first one. If you want to do the same I could describe my
environment in eclipse.

Martin

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 4:55 PM
Subject: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Is there someone that could explain me how to load Cocoon into a
Tomcat project in Eclipse?
This type of project comes from the Sysdeo plugin which allow to run
Tomcat into Eclipse.

Thanks
Regards
Sylvain

-
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: XForms - and persistance layer - Xindice or other cleverness



On Wed, 12 Feb 2003 [EMAIL PROTECTED] wrote:

> http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice

Thanks -seems that Schematron was the missing piece - and this fits much
nicer together than what I had managed sofar with Castor.

Thanks again !

Dw.


-
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: Aggregating files using patterns?

Peter Klotz wrote:

Hi,

I don't think that this would help, because I would need to call this
first pipeline with distinct names but I don't know that. And I can't pass
a pattern to a pipeline, right? I thought of using a directory generator
and use a XSL to get the actual file names but how would I then
automatically call the second pipeline for each filename?



ok:

DirectoryGenerator
XSLT to transform filenames into XInclude "statements"
XIncludeTransformer
XSLT to "pretty format"

HTH

Michael








Peter Klotz wrote:


how can one generate a document from multiple sources without knowing
their exact names using a pattern? Given some files blah_*.xml, I
would like to aggregate all these and get one XML document to apply
stylesheets etc.

But I have never seen that it is possible to use patterns in
map:aggregate/map:part or map:generate? Something like


[...]


You could try it with "two" pipelines:


  

  



  
  





HTH

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: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo

Hi Robert,

I want to use the Eclipse debugger. I dont' if it is JPD compatible but I think...

In Eclipse, how do you attach Tomcat remotely?

Thanks
Regards
Sylvain


-Message d'origine-
De: Robert Simmons [mailto:[EMAIL PROTECTED]]
Date: mardi, 11. février 2003 21:55
À: [EMAIL PROTECTED]
Objet: Re: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Debugging is easy if you have a JPD compatible debugger. Look at the Java
documentation on the "Java" command for info on how to run tomcat in debug
mode and then attach to it remotely. I use this technique with JBoss all the
time.

-- Robert

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 2:03 PM
Subject: RE: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Martin,

You said that you run Tomcat out of Eclipse. So you don't need a /WEB-INF
directory in your Eclipse project, right?
The Tomcat Eclipse runs Tomcat inside Eclipse. What is exactly the difference
between outside and inside?

To start/stop (outside) Tomcat from Eclipse, what do you change in
windows/Preferences?

At this time I don't want to develop components but I would like to debug the
existing components. Would be better to create Java project?


Thanks again
Best.
Sylvain



-Message d'origine-
De: Martin Dulisch [mailto:[EMAIL PROTECTED]]
Date: mardi, 11. février 2003 10:16
À: [EMAIL PROTECTED]
Objet: Re: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Sylvain,

I use the tomcat plug-in "only" to start/stop tomcat out of eclipse. I
dont use the tomcat project type.

If you want to develop java components like actions or transformers
than create a java project. If you do not develop java components than
you can create a simple project. The project folder should be in both
cases the tomcat/webapps/cocoon folder.

Java Build Path settings (Properties of the project):
- Build output folder: WEB-INF/classes
- Libraries: add libs from WEB-INF/lib you need to compile

To start/stop tomcat set the tomcat path in Windows/Preferences. The
tomcat plug-in starts tomcat in debug mode. So you can set breakpoints
in your source files. I use tomcat 4.1.X. Here hot code replacement
works for me.

For the non java work I use the sunBow plug-in :)

Hope I did not have forget anything.

Martin





- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 9:47 AM
Subject: RE: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Hi Martin,

I want to develop application like you. And I have installed this
Tomcat plugin to debug my app and the Cocoon sources. I don't want to
"work" at the Cocoon sources, only understand how it works for
debugging.

Yes please. A description of your environment in Eclipse would be
greatly appreciated.

Thank you very much
Regards
Sylvain

-Message d'origine-
De: Martin Dulisch [mailto:[EMAIL PROTECTED]]
Date: mardi, 11. février 2003 09:23
À: [EMAIL PROTECTED]
Objet: Re: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Hi Sylvain,

what do you want to do with this project? Application development with
cocoon or do you want to work at the cocoon sources?

I do the first one. If you want to do the same I could describe my
environment in eclipse.

Martin

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 4:55 PM
Subject: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Is there someone that could explain me how to load Cocoon into a
Tomcat project in Eclipse?
This type of project comes from the Sysdeo plugin which allow to run
Tomcat into Eclipse.

Thanks
Regards
Sylvain

-
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: XForms - and persistance layer - Xindice or other cleverness

Hi Dirk-Willem,

See the How-to at Cocoon Wiki:
http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice


Regards

Sylvain

-Message d'origine-
De: Dirk-Willem van Gulik [mailto:[EMAIL PROTECTED]]
Date: mercredi, 12. février 2003 09:01
À: [EMAIL PROTECTED]
Objet: XForms - and persistance layer - Xindice or other cleverness



Is there a well known receipe to generate the JavaBeans which XForms needs
to hold the data for each form ? Or a generic mapper whcih given the xform
data lets me store such directly in Xindice or, through somethign like an
automated SQL mapping, elsewhere ?

What I am looking for is a data definition driven
- form
- validation
- storage construction. Where a change in the data definition,
followed if needed by a purge of the database and a
restructure/rebuild/remake, will drive the (html) forms, table/storage
structs and validation. A recompile of generated java code is fine too.

Data defintion is obviously not to be interpreted too narrow; i.e. it may
have companion definitions for UI or storage hints,

Thanks for your collective wisdom !

Dw




-
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: Jumping within sitemap?

Sonny,

if a client-side redirect would do, try redirect-to, like in:







Regards,

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

> -Mensaje original-
> De: Sonny Sukumar [mailto:[EMAIL PROTECTED]]
> Enviado el: miercoles, 12 de febrero de 2003 8:59
> Para: [EMAIL PROTECTED]
> Asunto: Jumping within sitemap?
> 
> 
> 
> Hi guys,
> 
> I'm wondering if it's possible to jump from one place
> in the sitemap to another.  I made up the following
> code, but it's basically what I'm aiming to do:
> 
> 
>   
> 
> 
>   
> 
>   
>   
> 
> 
> 
>   
>   
>   
> 
> 
> 
>   
> 
> 
> It's like calling a function/method in a programming
> language, and it thus supports reuse of factored out
> code.
> 
> Does it make sense?
> 
> Please let me know how we can do it! :-)
> 
> Thanks,
> 
> Sonny
> 


-
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: Jumping within sitemap?

Sure. You just need to use the cocoon:/ protocol.
See info about Protocols at:
http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html

Best.


-Mensaje original-
De: Sonny Sukumar [mailto:[EMAIL PROTECTED]]
Enviado el: miercoles, 12 de febrero de 2003 8:59
Para: [EMAIL PROTECTED]
Asunto: Jumping within sitemap?



Hi guys,

I'm wondering if it's possible to jump from one place
in the sitemap to another.  I made up the following
code, but it's basically what I'm aiming to do:


  


  

  
  



  
  
  



  


It's like calling a function/method in a programming
language, and it thus supports reuse of factored out
code.

Does it make sense?

Please let me know how we can do it! :-)

Thanks,

Sonny

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.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: Aggregating files using patterns?

Hi,

I don't think that this would help, because I would need to call this
first pipeline with distinct names but I don't know that. And I can't pass
a pattern to a pipeline, right? I thought of using a directory generator
and use a XSL to get the actual file names but how would I then
automatically call the second pipeline for each filename?


> Peter Klotz wrote:
>> how can one generate a document from multiple sources without knowing
>> their exact names using a pattern? Given some files blah_*.xml, I
>> would like to aggregate all these and get one XML document to apply
>> stylesheets etc.
>>
>> But I have never seen that it is possible to use patterns in
>> map:aggregate/map:part or map:generate? Something like
[...]
> You could try it with "two" pipelines:
>
> 
>
>  
>
> 
>
> 
>
>
> 

> HTH
>
> 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: Aggregating files using patterns?

Peter Klotz wrote:

Hi,

how can one generate a document from multiple sources without knowing
their exact names using a pattern? Given some files blah_*.xml, I would
like to aggregate all these and get one XML document to apply stylesheets
etc.

But I have never seen that it is possible to use patterns in
map:aggregate/map:part or map:generate? Something like


or

  


Is it or is there another approach to this presumably common problem?


You could try it with "two" pipelines:


  

  



  
  


HTH

Michael



Please help, Peter



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




Aggregating files using patterns?

Hi,

how can one generate a document from multiple sources without knowing
their exact names using a pattern? Given some files blah_*.xml, I would
like to aggregate all these and get one XML document to apply stylesheets
etc.

But I have never seen that it is possible to use patterns in
map:aggregate/map:part or map:generate? Something like


or

  


Is it or is there another approach to this presumably common problem?


Please help, Peter



-
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: How to get an absolute path ?

Thank you both Jan and Timothy !

I tried with the "context" variable with the getAbsolutePath(), and it works
perfectly !

--
Olivier BILLARD


- Original Message -
From: "Jan Harms" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 4:47 PM
Subject: AW: How to get an absolute path ?


> Hi Olivier,
>
> in a servlet the ServletContexts getRealPath() method does what you want.
In Cocoon there is the class
> org.apache.cocoon.environment.Context which should do the same.
>
> Hope this helps
>
> -Jan Harms
>
> > -Ursprüngliche Nachricht-
> > Von: Olivier Billard [mailto:[EMAIL PROTECTED]]
> > Gesendet: Dienstag, 11. Februar 2003 16:24
> > An: [EMAIL PROTECTED]
> > Betreff: How to get an absolute path ?
> >
> >
> > Hi all !
> >
> > I am using Cocoon 2.0.4 with Tomcat 4.1.18.
> > In an XSP page, I would like to get the "hard" path of the webapp or a
> > sub-dir of the webapp, to use Lucene with an index directory.
> > I know I can
> > get the relative path of the webapp with
> > , but I want
> > to get the absolute path such like :
> > "/apps/tomcat/webapps/cocoon/mycocoon/index". Is it possible ?
> >
> > I apologize in advance if this doesn't concern this mailing list ! ...
> >
> > Olivier BILLARD
>
>
> -
> 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: Passing parameters

Thanks Nesto.

A question: Why the jsp is as "type=file"? is It mandatory?

Thanks again

Eduardo.

- Original Message -
From: "Nesto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 3:17 PM
Subject: Re: Passing parameters


> Hi Eduardo!
> Your question is general, I don' know if I understand it well.
> However, in the past weeks I had the same problem.
> Here I post you the solution I found, with the great help of this
community.
> Hope this help for your problem to.
>
> I wanted to write a matcher for an URI of this type:
> http://myhost.com:8080/cocoon/myApp/list.jsp?param=value
>
> The matcher is:
> 
>   
>  
>   src="http://anotherhost:8080/anotherApp{../1}.jsp?param={param}";
> mime-type="text/xml"/>
>  
>  
>
> 
>
> Note: the jsp that generates xml data is included with type="file" and not
> as type="jsp"
>
> Nesto
>
>
>
> - Original Message -
> From: "Eduardo Zurita" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 11, 2003 2:16 PM
> Subject: Re: Passing parameters
>
>
> > OK.
> >
> > is there a way to pass a parameter from the user querystring to a JSP
> > generator?
> >
> > Thanks in advance
> >
> > Eduardo.
> >
>
>
> -
> 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: xsp util and file contents

On 11.Feb.2003 -- 09:13 PM, Tom Place wrote:
> Hi,
> 
> I’m trying to insert xml into my xsp, this xml is for navigation
> purposes so ideally I would like to use one navigation file in many
> different xsp documents.
> I have looked at the mail archive to find out the details about this but
> I cant seam to get it to work!
> 
> My example is below:
> 
> 
> 
>xmlns:xsp="http://apache.org/xsp";
> xmlns:util=”http://apache.org/xsp/util/2.0”>

   

 

  

> 
> 
> I am getting compilation errors – any ideas?

Alternatives are aggregation (see samples) or any of the
*IncludeTransformers. 

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add "SUMMARY: " to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

And if you are really cool, add a page at http://wiki.cocoondev.org

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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




XForms - and persistance layer - Xindice or other cleverness


Is there a well known receipe to generate the JavaBeans which XForms needs
to hold the data for each form ? Or a generic mapper whcih given the xform
data lets me store such directly in Xindice or, through somethign like an
automated SQL mapping, elsewhere ?

What I am looking for is a data definition driven
- form
- validation
- storage construction. Where a change in the data definition,
followed if needed by a purge of the database and a
restructure/rebuild/remake, will drive the (html) forms, table/storage
structs and validation. A recompile of generated java code is fine too.

Data defintion is obviously not to be interpreted too narrow; i.e. it may
have companion definitions for UI or storage hints,

Thanks for your collective wisdom !

Dw




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