RE: Complex Forms

2001-10-31 Thread Max Larsson

Hi,

i had a similar task to solve. But i think i didn't had such
complex form like you will have. I solved it with couples
of self coded action and data binding framework. The databinding
farmework is self coded, too. But it will be replaced with something
much beter. I know about two packges, which could replace 
my framework: The castor project and the persitence/databinding
part from Trubine (Apache).
But i will first move on, when i know how exformula works??

HTH

Max

> -Original Message-
> From: Madel,Kurt [mailto:[EMAIL PROTECTED]]
> Sent: Mittwoch, 31. Oktober 2001 22:58
> To: '[EMAIL PROTECTED]'
> Subject: Complex Forms
> 
> 
> The company that I work for builds web front-ends for 
> database editing,
> viewing, report generation, etc.  I am using Cocoon2 to 
> generate dynamic PDF
> reports, and we use ASP for the rest of the site.  I would like to use
> Cocoon for the entire site, but have yet to see any examples 
> of extremely
> complex forms.
> 
> Has anybody created complex multi-page forms with validation to insert
> complicated records into a database, and then manipulate 
> those records, and
> if so did you add any non-standard components to Cocoon (ie. 
> databinding)?
> 
> What is the status of exformula??
> 
> If this just isn't Cocoon's cup of tea, do any users have an 
> opinion of what
> is the best web framework/templating system for complex, 
> validated, data
> intensive html forms.
> 
> Thanks,
> Kurt
> 
> -
> 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: sitemap handler's sitemap is not available

2001-10-31 Thread sergi

did you try to replace %TOMCAT_HOME% with your real path to tomcat

-Original Message-
From: Sebastian Bergmann [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 5:43 PM
To: [EMAIL PROTECTED]
Subject: sitemap handler's sitemap is not available


  Just did a fresh install of Cocoon2 from CVS on Win2K

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co xml-cocoon2
cd xml-cocoon2
build.bat -Dinclude.webapp.libs=yes
  -Dinstall.war=%TOMCAT_HOME%\webapps install

  Tomcat is version 4.0.1, example pages work fine.

  Accessing

http://localhost:8080/cocoon/

  yields an 

org.apache.cocoon.ProcessingException:
The sitemap handler's sitemap is not available.
Please check logs for the exact error.

  error message. I checked the logs but could not find the exact error.

  Any ideas?

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

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




Complex Forms

2001-10-31 Thread Madel,Kurt

The company that I work for builds web front-ends for database editing,
viewing, report generation, etc.  I am using Cocoon2 to generate dynamic PDF
reports, and we use ASP for the rest of the site.  I would like to use
Cocoon for the entire site, but have yet to see any examples of extremely
complex forms.

Has anybody created complex multi-page forms with validation to insert
complicated records into a database, and then manipulate those records, and
if so did you add any non-standard components to Cocoon (ie. databinding)?

What is the status of exformula??

If this just isn't Cocoon's cup of tea, do any users have an opinion of what
is the best web framework/templating system for complex, validated, data
intensive html forms.

Thanks,
Kurt

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




Questions

2001-10-31 Thread Leo Wong

Dear Sir/madam,

I don't know if it is an appropriate channel to voice
question, but i believe it is not a bug. so, i hope u
can give be some hints..

I am using Tomcat4.0 (Catalina) and Cocoon1.8.2 
i followed the instructions, copied every
"run-time-needed" jar in to $CATALINA_HOME/lib
including cocoon.jar, i saw it loaded in the -debug
mode of $CATALINA/bin/startup.sh script. But when i
browser the Cocoon.xml i got the following error. 

I try renaming cocoon, xerces, and xalan with prefix
"a", hoping that it will altered the order of jar
loading. but still the message persist.

Please kindly help.

Thanks in advance
Best regards
Leo Wong



java.lang.RuntimeException: Error loading logicsheet
at
resource://org/apache/cocoon/processor/xsp/library/java/cookie.xsl
due to java.lang.Exception: Resource not found or
retrieving error.
at
org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:302)
at
org.apache.cocoon.framework.Manager.create(Manager.java:109)
at
org.apache.cocoon.framework.Router.init(Router.java:80)
at
org.apache.cocoon.framework.Manager.create(Manager.java:109)
at org.apache.cocoon.Engine.(Engine.java:179)
at
org.apache.cocoon.Engine.getInstance(Engine.java:232)
at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:856)

... blablabla


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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

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




Re: Selector question....

2001-10-31 Thread Alexander Smirnoff

My bad, sorry:  must be outside !

Alex.

- Original Message - 
From: "Alexander Smirnoff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 1:33 PM
Subject: Selector question


> What could be wrong in this snippet?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> It doesn't work as expected and I'm getting irrelevant Exception:
> 
> java.net.SocketException: Connection aborted by peer: socket write error
> 
> 
> Thanks,
> Alex
> 
> 
> 
> -
> 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]>




Selector question....

2001-10-31 Thread Alexander Smirnoff

What could be wrong in this snippet?












It doesn't work as expected and I'm getting irrelevant Exception:

java.net.SocketException: Connection aborted by peer: socket write error


Thanks,
Alex



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




Generated XSP problem

2001-10-31 Thread Jacek Szpyrka

Hi

Sorry for my poor english.

I have the problem. In my sitemap I have:

   
 
 
 
   

It work very good.

But if I replace it by

   
 
 
   

   
 
 
 
   

it every time (request) transforms xsp into java (cache does not work properly?) and 
next into class. More over pattern "_get_file_/**" is matched (and executed ofcourse) 
THREE (3) times.

Why so strange construction? I have to make www service where XSP pages will be 
generated (model, view, logic in my application are defineable). So "file" generator 
will be replaced in future by my own generator and some transformators.

My cocoon version is 2.0rc1. Java version Classic VM (build 1.3.0, J2RE 1.3.0 IBM 
build cn130-20001124 (JIT enabled: jitc)). Tomcat version 3.2.1.

Thank You.

Jacek Szpyrka 


-
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: Exception Handling

2001-10-31 Thread Thomas Patterson

I had to modify the code in order to do this.
- Original Message -
From: "Truhann van der Poel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 6:59 AM
Subject: Exception Handling


> Hello,
>
> Anybody know how to go about handling exceptions during cocoon requests
> within the cocoon framework ?  In other words how would I go about to
> display a customised exception page to a user if something went wrong
during
> a request ?
>
> I am using Cocoon 1.8.2.
>
> Regards
>
> -
> 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: problem with "external-graphics" solved

2001-10-31 Thread Giacomo Pati

Quoting Eduardo Godoy Vega <[EMAIL PROTECTED]>:

> be more specific, what is an "external graphics" ?
> (in a different webserver?, or in a different context ?)

external-graphics in this context as I understand it is an element from FO spec. 
used to render external graphic files.

Giacomo
> 
> Eduardo.
> 
> -Original Message-
> From: Adnan Zelkanovic [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 30, 2001 8:00 AM
> To: FOP DEV; Cocoon-DEV; Cocoon Users
> Subject: problem with "external-graphics" solved
> 
> 
> If you run Cocoon2rc1a, Tomcat-3.2.3, FOP-0.20.1, Apache-1.3.20 and
> wonder
> why "external-graphics" does not work. Then you have to install
> Tomcat-4.0.1
> !
> That is the way to solve this "little" problem.
> 
> 
> Mit freundlichen Grüßen
> 
> Adnan Zelkanovic
> allgäuNet.Onlinedienste GmbH
> 
> Nebelhornstraße 8
> 86807 Buchloe
> Tel. (08241) 96869-33
> Fax  (08241) 96869-26
> http://www.allgaeu.net
> e-mail: [EMAIL PROTECTED]
> 
> ein Unternehmen der abc.Mediengruppe
> 
> 
> 
> -
> 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]>




Exception Handling

2001-10-31 Thread Truhann van der Poel

Hello,

Anybody know how to go about handling exceptions during cocoon requests
within the cocoon framework ?  In other words how would I go about to
display a customised exception page to a user if something went wrong during
a request ?

I am using Cocoon 1.8.2.

Regards

-
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: Installing actions

2001-10-31 Thread Lajos Moczar

Kristof,

I'm curious about your problem; what version of Cocoon & Tomcat are you 
running?

Regards,

Lajos
galatea.com



Jozsa Kristof wrote:

> Arno,
> 
>   I've tried both the cocoon/WEB-INF/classes/ dir, which should be
> auto-included due to the Tomcat config, and setting the extra-classpath
> in Cocoon's web.xml. In the first case, I get extreme errors, Cocoon cannot
> even start up its default page. In the second case, the dir in
> extra-classpath gets ignored, even if I set it absolute, relative, whatever.
> 
>   I've found a way, where Cocoon *can* find my own Action class, however.
> I've bundled my class file in the right directory structure in a .jar file,
> and dropped it into WEB-INF/lib beside cocoonXX.jar and such. Using that way
> (but only that), Cocoon can find my action class, and starts up correctly,
> but situation still aint clear..
> 
>   I'm trying to get a parameter from my Cocoon action. I've used the
> standard way of setting the parameter on the java side, from act() returning
> a Map object, just as I've seen it in the examples. I also try to reach it
> the standard way from the xsp:  default="did not worked"/>, and I only get the default value back every
> time. 
> 
>   So the question still stands: can anyone show me a Hello-World like
> example of setting a value from a Java action class which can be retreived
> from an xsp with the correct sitemap setup? 
> 
> I'm begging for this, I'm suffering on that very same problem for 1 whole
> week, and I cant step any further.
> 
> Best regards,
> Christopher
> 
> On Tue, Oct 30, 2001 at 09:07:35AM +0100, Arno Illmann wrote:
> 
>>Hi Christopher, here is what Vadim Gritsenko wrote to me in a similar case. 
>>In the end I putted the class file in the cocoon source and made a new 
>>build. This works, but it should be easier as shown below.
>>
>>Arno
>>
>>---
>>Hi,
>>
>>Here is couple of hints for you:
>>
>>1) Extra-classpath the way you specified would never work. The correct path 
>>would be:
>>
>>
>>extra-classpath
>>C:\Programme\ApacheGroup\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\clas
> \
>>ses 
>>
>>2) You do need to add ...\cocoon\WEB-INF\classes into classpath, because it 
>>is added
>>automatically by the servlet contaier (Tomcat)
>>
>>
>>If you have DatabaseSelectAction.class file in \
>>...\cocoon\WEB-INF\classes\org\apache\cocoon\acting, you do not required to 
>>add any \
>>classpath entries. Try to restart Tomcat and access sitemap again. If this 
>>fails, I \
>>do not have other pointers...
>>
>>Vadim
>>
>>
>>>-Original Message-
>>>From: Arno Illmann [mailto:[EMAIL PROTECTED]]
>>>Sent: Thursday, October 04, 2001 2:34 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: installing of actions
>>>
>>>
>>>In the morning I posted this at the wrong thread so I do it again.
>>>My tryings over the day came not to success too and I hope, someone with 
>>>
>>more \
>>
>>>cocoon knowledge can shed us  some light on the following?
>>>
>>>Thanks in advance, Arno Illmann
>>>
>>>I did this:
>>>
>>>1) downloaded DatabaseSelectAction.java from CVS and compiled it to
>>>..\cocoon\WEB-INF\classes\org\apache\cocoon\acting.
>>>
>>>2) added to cocoons web.xml:
>>>
>>>
>>>extra-classpath
>>>
>>>
>>C:\Programme\ApacheGroup\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\cl 
>\
>>
>>>asses\org\apache\cocoon\ac ting\DatabaseSelectAction.class
>>>
>>>
>>>3) added to the sitemap of the tutorial web application example:
>>>
>>>
>
>>src="org.apache.cocoon.acting.DatabaseSelectAction"/>  >>src="org.apache.cocoon.acting.DatabaseAddAction"/> >>
>>name="dbDel" \
>>
>>>src="org.apache.cocoon.acting.DatabaseDeleteAction"/> >>
>>name="dbUpd" \
>>
>>>src="org.apache.cocoon.acting.DatabaseUpdateAction"/> >>
>>name="form" \
>>
>>>src="org.apache.cocoon.acting.FormValidatorAction"/> 
>>>
>>>The error message after invoking the tutorial is :
>>>
>>>org.apache.cocoon.ProcessingException: Exception in Handler:
>>>org.apache.avalon.framework.component.ComponentException:
>>>Could not set up Component for hint: 
>>>
>>org\apache\cocoon\www\tutorial\sitemap_xmap
>>
>>>Without >>src="org.apache.cocoon.acting.DatabaseSelectAction"/> it started 
>>>
>>seriously. I then
>>
>>>tried other paths in init param extra classpath, and other funny things.
>>>
>>>I think it could be no packages/path problem and compiling was without 
>>>
>>errors. But \
>>
>>>is i.e the syntax of path  to the class file right (its the right on my 
>>>
>>windows \
>>
>>>machine) or must I use a jar file? Any hints are very  very welcome.
>>>
>>>
>>
>>Jozsa Kristof wrote:
>>
>>
>>>On Mon, Oct 29, 2001 at 01:55:45PM +0100, Jozsa Kristof wrote:
>>>
>>>
I wrote a HelloWorld-like action based on the docs located in my cocoon
install: /cocoon/documents/actions. I've put the file in
/cocoon/WEB-INF/classes (using the package name 'test', so
/test/HelloWorldAction.class).


>>>..
>>>
>>>
..which means exactly afaik that Cocoon is unable to find the right Avalon
c

Re: disable-output-escaping !!

2001-10-31 Thread Jörg Heinicke

Hi Martin,

disable-output-escaping is bad coding when creating tags with it. For example:


   ...blabla...


But if you need it for your sign, you can use it. But the XSL-transformer 
are not forced to support disable-output-escaping!! But most do it.

Joerg

Martin Mauri wrote:

>  
> 
> Hi users,
> 
>  
> 
> I need to use some kind of disable-output-escaping cause' I need to show 
> the result of the HTML generated on an Excel spreadsheet. The process of 
> rendering to HTML and sending it to IExplorer with the 
> application/vnd.ms-excel is done in the same process pipeline. The 
> problem rises when the Excel OLE control embedded in IE opens it. As 
> HTTPFormatter transforms every "o"(~) to its correspondent SGML code 
> º. The thing is that Excel 97 doesn't recognise it.
> 
> I took a look at the FAQs and it says that using 
> "disable-output-escaping" is bad coding, so I don't know what to do.
> 
> any idea??
> 
> thanks in advance.
> 
> Lic. Martin O. Mauri
> Profesion + Auge A.F.J.P.
> Paraná 666 - CP:1017 - Cap. Federal
> TE: (011)4373-7786/7 int:422
> [EMAIL PROTECTED] 
> www.profesi.com.ar 


-- 

System Development
VIRBUS AG
Fon +49(0)341-979-7435
Fax +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


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

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




RE: problem with "external-graphics" solved

2001-10-31 Thread Eduardo Godoy Vega

be more specific, what is an "external graphics" ?
(in a different webserver?, or in a different context ?)

Eduardo.

-Original Message-
From: Adnan Zelkanovic [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 8:00 AM
To: FOP DEV; Cocoon-DEV; Cocoon Users
Subject: problem with "external-graphics" solved


If you run Cocoon2rc1a, Tomcat-3.2.3, FOP-0.20.1, Apache-1.3.20 and wonder
why "external-graphics" does not work. Then you have to install Tomcat-4.0.1
!
That is the way to solve this "little" problem.


Mit freundlichen Grüßen

Adnan Zelkanovic
allgäuNet.Onlinedienste GmbH

Nebelhornstraße 8
86807 Buchloe
Tel. (08241) 96869-33
Fax  (08241) 96869-26
http://www.allgaeu.net
e-mail: [EMAIL PROTECTED]

ein Unternehmen der abc.Mediengruppe



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




disable-output-escaping !!

2001-10-31 Thread Martin Mauri



 
Hi users,
 
I need to use some kind of disable-output-escaping cause' I 
need to show the result of the HTML generated on an Excel spreadsheet. The 
process of rendering to HTML and sending it to IExplorer with the 
application/vnd.ms-excel is done in the same process pipeline. The problem rises 
when the Excel OLE control embedded in IE opens it. As HTTPFormatter 
transforms every "o"(~) to its correspondent SGML code º. The thing is that Excel 97 
doesn't recognise it.
I took a look at the FAQs and it says that using 
"disable-output-escaping" is bad coding, so I don't know 
what to do.
 
any idea??
 
thanks in advance.
 
Lic. Martin O. MauriProfesion + Auge A.F.J.P.Paraná 
666 - CP:1017 - Cap. FederalTE: (011)4373-7786/7 int:422[EMAIL PROTECTED]www.profesi.com.ar


RE: Cocoon2 : Selector using parameter from request.

2001-10-31 Thread Eduardo Godoy Vega

Maybe this code can help you!
Here "Count" is an action Parameter ...














Eduardo.
-Original Message-
From: Kenneth Petersen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 9:04 AM
To: users
Subject: Cocoon2 : Selector using parameter from request.


I would like to use a parameter from the request to determine what xml-file
to view. Without being sure, I think that the "parameter"-selector
(org.apache.cocoon.selection.ParameterSelectorFactory) from the Cocoon
SiteMap can be used for this. As a test I have written the following
matcher:

   










   

What I would like is to be able to pass a parameter from the request instead
of value="". How do I accomplish this?


Best regards
KP

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

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


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

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




RE: [C2.0rc1] Problems with IE5.00 - throws an Exception during endDocument processing after sitemap redirect

2001-10-31 Thread Klaus Bertram



Hi 
adrian,
 
please 
try it with a service pack for NT4.0 6.1a it's the latest
we had 
problems with SP5 on NT4.0
 
Klaus

  -Original Message-From: Adrian Geissel 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 31, 2001 12:12 
  PMTo: [EMAIL PROTECTED]Subject: [C2.0rc1] 
  Problems with IE5.00 - throws an Exception during endDocument processing after 
  sitemap redirect
  Hi,
   
  I've logged this as a bug for C2, but I also 
  wanted to see if anyone else is having this problem.
   
  Scenario:
   
  my sitemap performs some processing (database 
  update) in an action, and on success, redirects to another page before 
  returning using the supplied redirector object. The URI that it points to is 
  also served by the sitemap, and also consists of aggregated content that is 
  transformed - all things legal and cool.
   
  The problem is that using IE 5.00 (WinNT 4.0 
  SP5), the redirected URI is not completed, and eventually the connection 
  times-out - not very good. To make matters worse, the problem does not exist 
  if I access the redirected page directly from the browser, or perform my 
  database update action from another machine running IE 5.5 (Win2k), the 
  problem does not exist.
   
  Has anyone else experienced this?
  The full bug report is at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4438 (applogies 
  for the long report, but it has taken a while to isolate the 
  problem)
   
  Many thanks,
  Adrian
   
  (please don't gripe about IE - this is 
  a real problem - I'm just looking for other instances, and possible solutions. 
  thanks /A)


[C2.0rc1] Problems with IE5.00 - throws an Exception during endDocument processing after sitemap redirect

2001-10-31 Thread Adrian Geissel



Hi,
 
I've logged this as a bug for C2, but I also wanted 
to see if anyone else is having this problem.
 
Scenario:
 
my sitemap performs some processing (database 
update) in an action, and on success, redirects to another page before returning 
using the supplied redirector object. The URI that it points to is also served 
by the sitemap, and also consists of aggregated content that is transformed - 
all things legal and cool.
 
The problem is that using IE 5.00 (WinNT 4.0 SP5), 
the redirected URI is not completed, and eventually the connection times-out - 
not very good. To make matters worse, the problem does not exist if I access the 
redirected page directly from the browser, or perform my database update action 
from another machine running IE 5.5 (Win2k), the problem does not 
exist.
 
Has anyone else experienced this?
The full bug report is at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4438 (applogies 
for the long report, but it has taken a while to isolate the 
problem)
 
Many thanks,
Adrian
 
(please don't gripe about IE - this is a 
real problem - I'm just looking for other instances, and possible solutions. 
thanks /A)


Re: Cocoon2 and dynamically generated stylesheets

2001-10-31 Thread Tobias Kiesling

Am Montag, 29. Oktober 2001 18:35 schrieben Sie:
> Hi all,
>
> I am trying to find a way of setting up a cocoon2 pipeline that uses a
> stylesheet in one XSLT transformation that has been generated by the
> preceeding XSLT transformation.
>
> This problem is similar to the one described by Tobias Kiesling on Sep. 9th
> 2001.
>
> As Tobias pointed out, the general process can be achieved by creating an
> XML document in the first step that contains the stylesheet needed in the
> second step as an embedded section. This works using xalan stand-alone.
> Taking into account that xalan looks for a processing instruction in the
> XML document when not supplied with a stylesheet, one might think that
> putting  or even  into the sitemap
> would do the job. From looking at
> org.apache.cocoon.transformation.TraxTransformer I see that omitting the
> src attribute is prohibited and supplying an empty string as its parameter
> causes an exception. I don't yet understand the inner workings of cocoon2
> but wouldn't it be possible to define one of the above options as a way of
> telling the XSLT transformer to look for a PI?

I'm not an expert, but I think the problem here lies with the general way of 
how a transformation is done with TrAX. The stylesheet is compiled into a 
javax.xml.Templates object long before the SaX events of an input document 
occur. It should be possible to use a SAX2DOM converter and then just use an 
XSLT processor like in Cocoon1. But, of course this does not fit the Cocoon2 
philosophy.

>
> Maybe I am getting something wrong about the way of using cocoon2. Maybe
> any of you guys can tell me about the 'right way' of using cocoon2 in the
> following scenario: I want to post an XML document to the server, which
> describes a structured query and points to another XML document sitting on
> that server on which the query is to be performed. The response should be
> the result of the query, possibly piped through further XSLT
> transformations. My approach was to transform the XML document representing
> the query into another XML document with an embedded stylesheet
> implementing the query by use of XPATH and accessing the 'data' XML
> document via the document() function (using an XPATH expression passed in
> as a variable is not possible :-().

The reason for this is that there is no possibility in XPath to convert a 
string to a nodeset. There are conversion functions from nodeset to string, 
number, boolean, but not the other way around. This seems to be a lack in 
XPath, as it should be fairly easy to add a function like nodeset() that 
takes a string as input, evaluates that string and returns the resulting 
nodeset.

> If you look at it, this process is
> quite elegant. I am not convinced that allowing for such a process would
> break the content-style separation, as not all XSLT-transformations are
> (strictly) about
> representation.
>

Another thought I had for obtaining the same result as with the embedded 
stylesheet approach was to split the pipeline by extracting the stylesheet 
from the document in one processing step, and to have the XSLT processor 
accept two pipes as input, one for the data to transform and the other one 
for the stylesheet. However this cannot be done easily, as the XSLT processor 
has to buffer the SaX events at least until the whole stylesheet has been 
received. I'm not a cocoon expert, so my thoughts may be wrong.

However, I think that the dynamic creation of stylesheets is a very powerful 
tool that would be good to be supported somehow.

Greetings,
  Tobias

-
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: Installing actions

2001-10-31 Thread Jozsa Kristof

On Wed, Oct 31, 2001 at 10:09:29AM +0100, Christian Haul wrote:
> On 29.Oct.2001 -- 01:55 PM, Jozsa Kristof wrote:
> > I wrote a HelloWorld-like action based on the docs located in my cocoon
> > install: /cocoon/documents/actions. I've put the file in
> > /cocoon/WEB-INF/classes (using the package name 'test', so
> > /test/HelloWorldAction.class).
> 
> Jozsa, I think that everything is OK with your setup. Alas, I had
> similar problems with an early beta of tomcat 4. So, this might be a
> container problem rather than a cocoon one.

Hi Chris,

  thanks for your mail. I got so crazy on that problem (over 40 hours of
suffering :), so I decided not to use Actions at all. I'll solve the problem
using standard xsp logicsheet files; but I still have a class-finding
problem: if I want to include my Java class from xsp:include, it *only*
finds it if it's included in a jar file in cocoon/WEB-INF/lib/, it seems to
be unable to use the extra-classpath property setting from cocoon's web.xml.

Have you met this problem?

Christopher
(Kristof stands for Christopher in Hungarian ;)
-- 
.Digital.Yearning.for.Networked.Assassination.and.Xenocide

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