[C2] Where's the bug?

2001-06-26 Thread Jörn Heid

I want to remove newlines (or spaces) from my output. It seems the HTML
serializer causes the problem (Xalan commandline, xml-serializer work
correctly)...


With this stylesheet






JOERN_HEID


-
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: org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.

2001-06-26 Thread S.J.Chun

For me, adding cocoon classes into the system classpath or servlet engine's classpath
solves this problem.
Tomcat 4.0 aka Catalina runs well without this kind of problem. So, the servlet 
engine's
classloader has this problem, I think.

- Original Message - 
From: "florent barbare" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 11:11 PM
Subject: org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not 
available.


> 
> Hi,
> 
> I have the following errors when i used my "new cocoon" site.
> it works with tomcat 3.2.
> 
> org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not
> available.
> 
> Any idea ?
> 
> thanks
> 
> regards
> 
> Florent
> 
> -Original Message-
> From: Uli Mayring [mailto:[EMAIL PROTECTED]]
> Sent: mardi 26 juin 2001 13:32
> To: [EMAIL PROTECTED]
> Subject: Re: Fw: Authentification + Forward
> 
> 
> On Tue, 26 Jun 2001, loc-at-soft wrote:
> 
> > This code doesn't work ! I'm not able to use "loginException"  . I want to
> forward connection errors on an error page !
> > Does anyone have an exemple of such an authentification XML page
> connecting to a database ?
> 
> Download the auth taglib under http://ulim.cocoonhost.com, it has many
> samples.
> 
> Ulrich
> 
> --
> Ulrich Mayring
> DENIC eG, Softwareentwicklung
> 
> 
> -
> 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 as a web reporting engine

2001-06-26 Thread Darrel Riekhof

Hello,

Background:  We've been looking for some tool to help us publish reports on
the web.  We have evaluted several Java reporting engines (Actuate, Crystal
Reports, Inetsoft StyleReport, JReport), but we can't find one we really
like.  We're currently using Inetsoft's StyleReport, but are frustrated from
several of its style limitations.  Differences in formatting between the
HTML  and PDF version of the same report are also a problem.

I was looking for an alternative, and someone suggested taking a look at
Cocoon.  I did, and have some questions:

1) Is Cocoon a viable solution for a reporting engine on a high volume site?

2) Our front end is all .jsp pages.  How do we set things up so that our
servlet engine first processes the .jsp page, then feeds the resulting file
to Cocoon?  We need to use Java calls from the JSP pages to pull the data
that will go on our reports.  Assuming we'd use an XML template in the JSP
page instead of an HTML one.  The server would need to first process the
Java in the JSP page to fill in the xml tags in the page.  Then, this page
would go through cocoon, get translated, marked-up, etc.  Is this the
correct way to do it, and how do we do this?

3) There are several minor details about the reports that are important to
us.  One is to put borders around the entire page, and any subsection of the
report.  We have several other minor reqs like this that our current
reporting engine can't do.  Is Cocoon flexible and powerful enough to any
kind of formatting, and to generate HTML or PDF or  with
custom formatting?

4)  We are going to need help.  Are there any good books on Cocoon?  Are
there any Cocoon consultants around that would come on site for a few weeks?

Darrel

-
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.log

2001-06-26 Thread giacomo

On Tue, 26 Jun 2001, RAO,YENUGANTI (Non-HP-Cupertino,ex1) wrote:

> Hi
>
> I just installed the product. after going to the welcome page,i saw this
> out put in cocoon.log, Is it a serious error ?. How do I solve this problem.
>

It's not a serious problem. Only the database samples will not be
usable. Install your cocoon.war directly into your servlet engines
webapps directory with

  build.sh -Dinclude.webapp.libs=yes \
   -dinstall.war=[PATH/TO/WEBAPPS/OF/YOUR/SERVLET/ENGINE]
   install

to resolve the {$install.war} variable with the right path.

Giacomo

>
>
> DEBUG   99358   [cocoon  ] (Thread-24):
> org.apache.avalon.excalibur.datasource.JdbcConnection: could not be
> instantiated.
> java.sql.SQLException: File input/output error:
> ${install.war}/cocoon/WEB-INF/db/cocoondb.properties
>   at org.hsqldb.Trace.getError(Trace.java:180)
>   at org.hsqldb.Trace.getError(Trace.java:144)
>   at org.hsqldb.Trace.error(Trace.java:205)
>   at org.hsqldb.Log.saveProperties(Log.java:621)
>   at org.hsqldb.Log.create(Log.java:512)
>   at org.hsqldb.Log.open(Log.java:159)
>   at org.hsqldb.Database.(Database.java:96)
>   at org.hsqldb.jdbcConnection.openStandalone(jdbcConnection.java:926)
>   at org.hsqldb.jdbcConnection.(jdbcConnection.java:682)
>   at org.hsqldb.jdbcDriver.connect(jdbcDriver.java:116)
>   at java.sql.DriverManager.getConnection(DriverManager.java:517)
>   at java.sql.DriverManager.getConnection(DriverManager.java:177)
>   at
> org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(Jdb
> cConnectionFactory.java:52)
>   at
> org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:
> 70)
>   at
> org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(HardRe
> sourceLimitingPool.java:85)
>   at
> org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(JdbcCo
> nnectionPool.java:50)
>   at
> org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceL
> imitingPool.java:82)
>   at
> org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(JdbcConnection
> Pool.java:109)
>   at java.lang.Thread.run(Thread.java:484)
>
>
> -Rao
>
>
> -
> 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: XML->XSP->XML->HTML

2001-06-26 Thread giacomo

On Tue, 26 Jun 2001, franck delarue wrote:

> hi,
> I want to produce a XSP file with a XML and a XSL
> file, and that the XSP file generates an other xml
> file. But I don't know how to configure the file
> sitemap.xmap.
> This is what I have done to configure the sitemap but
> it doesn't work :
>
>
> 
>  src="doc.xsl"/>
> 
>

There is not transformer of type serverPage. XSP are always at the
generator stage. Transform your xsl into a logicsheet (not much work
normaly) and your xml file into a xsp and you should be done.

Giacomo

>
> I work on linux redhat, with the server engine
> Resin 2.0.0 and cocoon 2.
>
> Thanks in advance.
>
>
>
> ___
> Do You Yahoo!? -- Pour faire vos courses sur le Net,
> Yahoo! Shopping : http://fr.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: XML->XSP->XML->HTML

2001-06-26 Thread giacomo

On Tue, 26 Jun 2001, Don Wellington wrote:

> My question is why?
>
> Is there some reason an XSP transformer cannot be
> written?
>
> If not, I might take the time to write one.

Would be cool, but also kinda tricky ;)

Giacomo

>
> Don
>
> --- Peter Nuetzel - inglobo <[EMAIL PROTECTED]>
> wrote:
> > AFAIK this is not possible with Cocoon2. Currently
> > XSP can only be used as
> > Generator.
> >
> > - peter
> >
> >
> > -Ursprüngliche Nachricht-
> > Von: franck delarue <[EMAIL PROTECTED]>
> > An: [EMAIL PROTECTED]
> > <[EMAIL PROTECTED]>
> > Datum: Dienstag, 26. Juni 2001 19:40
> > Betreff: XML->XSP->XML->HTML
> >
> >
> > >hi,
> > >I want to produce a XSP file with a XML and a XSL
> > >file, and that the XSP file generates an other xml
> > >file. But I don't know how to configure the file
> > >sitemap.xmap.
> > >This is what I have done to configure the sitemap
> > but
> > >it doesn't work :
> > >
> > >   
> > >
> > > > >src="doc.xsl"/>
> > >
> > >   
> > >
> > >I work on linux redhat, with the server engine
> > >Resin 2.0.0 and cocoon 2.
> > >
> > >Thanks in advance.
> > >
> > >
> > >
> >
> >___
> > >Do You Yahoo!? -- Pour faire vos courses sur le
> > Net,
> > >Yahoo! Shopping : http://fr.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]>
> >
>
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
>


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

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




Re: AW: PDF in IE revisited

2001-06-26 Thread Uli Mayring

On Tue, 26 Jun 2001, Stefan Seifert wrote:

> Is it possible to output PDF as binary from Cocoon 2? Is there any
> solution for this problem in sight (it seemed solved in Cocoon 1.8 with
> the .pdf-Fix)?

Actually there's a page at MSDN (don't have the URL handy right now) where
it is exactly described what IE does. I've described a work-around on this
list a couple of weeks ago, check the archives.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Softwareentwicklung


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




How to use sessions in Cocoon2

2001-06-26 Thread Anthony Mills



Hello,
    How does one do 
this:
 

    SomeClass sc = 
(SomeClass)session.getAttribute( "sc" );
 
    session.setAttribute( "sc", 
sc );

 
The session logicsheet does not seem to work if you 
use anything but strings.  For now I am having to embed the correct code 
into my XSP page.  And the Documents on Cocoon2 web site are for Cocoon1, 
so they are little help.
 
Thanks,
 
Anthony
 


VoiceXML - saving audio files

2001-06-26 Thread Anand, Anju

There was a thread on saving audio files. I was wondering if there was
any reply to this.

thanks
anju

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




Bug in C2b1 ?

2001-06-26 Thread Luca Morandini

Folks,

I've added the empty-taglib sample (thanks Gary !) and I went about my
business.

After I while I deleted it from cocoon.xconf and sitemap.xmap and then:
none of my XSP pages worked anymore :(

After a looong while I tried to delete the files generated in the work
directory of tomcat and everything got back to normal :)

Should I really delete by hand every logicsheet no longer needed ? Or it is
just a bug ?

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


> -Original Message-
> From: Luca Morandini [mailto:[EMAIL PROTECTED]]
> Sent: martedì 26 giugno 2001 21.13
> To: [EMAIL PROTECTED]
> Subject: RE: XML->XSP->XML->HTML
>
>
> Franck,
>
>   if I got it right, you have a doc.xml file with some tags
> (referring to the
> doc.xsl logicsheet) and want to produce an HTML file... is that so ?
>
>   Well, if so, you have to declare the logicsheet namespace
> in the doc.xml
> and change your sitemap to resemble this:
>
> 
>  
>  
>  
> 
>
>   I've added an extra step to transform XML into proper HTML.
>
> Best regards,
>  
> -
>    Luca Morandini
>    GIS Consultant
>     [EMAIL PROTECTED]
>   +39 0744 59  85  1 Office
>   +39 0335 681 02 12 Mobile
> http://utenti.tripod.it/lmorandini/index.html
> -
>
>
> > -Original Message-
> > From: franck delarue [mailto:[EMAIL PROTECTED]]
> > Sent: martedì 26 giugno 2001 9.54
> > To: [EMAIL PROTECTED]
> > Subject: XML->XSP->XML->HTML
> >
> >
> > hi,
> > I want to produce a XSP file with a XML and a XSL
> > file, and that the XSP file generates an other xml
> > file. But I don't know how to configure the file
> > sitemap.xmap.
> > This is what I have done to configure the sitemap but
> > it doesn't work :
> >
> >
> > 
> >  > src="doc.xsl"/>
> > 
> >
> >
> > I work on linux redhat, with the server engine
> > Resin 2.0.0 and cocoon 2.
> >
> > Thanks in advance.
> >
> >
> >
> > ___
> > Do You Yahoo!? -- Pour faire vos courses sur le Net,
> > Yahoo! Shopping : http://fr.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]>
>


-
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: XML->XSP->XML->HTML

2001-06-26 Thread Don Wellington

My question is why?

Is there some reason an XSP transformer cannot be
written?  

If not, I might take the time to write one.

Don

--- Peter Nuetzel - inglobo <[EMAIL PROTECTED]>
wrote:
> AFAIK this is not possible with Cocoon2. Currently
> XSP can only be used as
> Generator.
> 
> - peter
> 
> 
> -Ursprüngliche Nachricht-
> Von: franck delarue <[EMAIL PROTECTED]>
> An: [EMAIL PROTECTED]
> <[EMAIL PROTECTED]>
> Datum: Dienstag, 26. Juni 2001 19:40
> Betreff: XML->XSP->XML->HTML
> 
> 
> >hi,
> >I want to produce a XSP file with a XML and a XSL
> >file, and that the XSP file generates an other xml
> >file. But I don't know how to configure the file
> >sitemap.xmap.
> >This is what I have done to configure the sitemap
> but
> >it doesn't work :
> >
> >   
> >
> > >src="doc.xsl"/>
> >
> >   
> >
> >I work on linux redhat, with the server engine
> >Resin 2.0.0 and cocoon 2.
> >
> >Thanks in advance.
> >
> >
> >
>
>___
> >Do You Yahoo!? -- Pour faire vos courses sur le
> Net,
> >Yahoo! Shopping : http://fr.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]>
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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




[C2] www-form-data with cocoon .. bugs in maybeupload

2001-06-26 Thread Samuel ARNOD-PRIN

Hello,

who does use maybeupload well with C2 ??
because I've got a few errors...

- first, my textarea are without the originated CR-LF ... french
character are modified 
- secondly, from IE5 on Mac, I don't receive image params (param.x and
param.y of an input type=image)
- third, how to put this debug messages away ? (I took cocoon 2b1)
and fourth.. is it possible to use cos from oreilly with c2 if I can't
resolve maybeuploads bugs ?


thank U :)

-
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: PDF in IE revisited

2001-06-26 Thread Stefan Seifert


...
> Note that binary PDFs (like any binary format) probably work. The
> security filter apparently only checks ASCII type of data, my guess is
> that it looks for malicious scripting code.
> 
> Ulrich

Is it possible to output PDF as binary from Cocoon 2? Is there any
solution for this problem in sight (it seemed solved in Cocoon 1.8 with
the .pdf-Fix)?

Stefan

-
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.log

2001-06-26 Thread RAO,YENUGANTI (Non-HP-Cupertino,ex1)

Hi 

I just installed the product. after going to the welcome page,i saw this 
out put in cocoon.log, Is it a serious error ?. How do I solve this problem.



DEBUG   99358   [cocoon  ] (Thread-24):
org.apache.avalon.excalibur.datasource.JdbcConnection: could not be
instantiated.
java.sql.SQLException: File input/output error:
${install.war}/cocoon/WEB-INF/db/cocoondb.properties
at org.hsqldb.Trace.getError(Trace.java:180)
at org.hsqldb.Trace.getError(Trace.java:144)
at org.hsqldb.Trace.error(Trace.java:205)
at org.hsqldb.Log.saveProperties(Log.java:621)
at org.hsqldb.Log.create(Log.java:512)
at org.hsqldb.Log.open(Log.java:159)
at org.hsqldb.Database.(Database.java:96)
at org.hsqldb.jdbcConnection.openStandalone(jdbcConnection.java:926)
at org.hsqldb.jdbcConnection.(jdbcConnection.java:682)
at org.hsqldb.jdbcDriver.connect(jdbcDriver.java:116)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at
org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(Jdb
cConnectionFactory.java:52)
at
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:
70)
at
org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(HardRe
sourceLimitingPool.java:85)
at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(JdbcCo
nnectionPool.java:50)
at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceL
imitingPool.java:82)
at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(JdbcConnection
Pool.java:109)
at java.lang.Thread.run(Thread.java:484)


-Rao


-
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: XML->XSP->XML->HTML

2001-06-26 Thread Luca Morandini

Franck,

if I got it right, you have a doc.xml file with some tags (referring to the
doc.xsl logicsheet) and want to produce an HTML file... is that so ?

Well, if so, you have to declare the logicsheet namespace in the doc.xml
and change your sitemap to resemble this:


 
 
 


I've added an extra step to transform XML into proper HTML.

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


> -Original Message-
> From: franck delarue [mailto:[EMAIL PROTECTED]]
> Sent: martedì 26 giugno 2001 9.54
> To: [EMAIL PROTECTED]
> Subject: XML->XSP->XML->HTML
>
>
> hi,
> I want to produce a XSP file with a XML and a XSL
> file, and that the XSP file generates an other xml
> file. But I don't know how to configure the file
> sitemap.xmap.
> This is what I have done to configure the sitemap but
> it doesn't work :
>
>
> 
>  src="doc.xsl"/>
> 
>
>
> I work on linux redhat, with the server engine
> Resin 2.0.0 and cocoon 2.
>
> Thanks in advance.
>
>
>
> ___
> Do You Yahoo!? -- Pour faire vos courses sur le Net,
> Yahoo! Shopping : http://fr.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]>




Error in import

2001-06-26 Thread Fang Huang


Hi, how should I use my own class in xsp? I wrote 

MyJavaClass


but got the exception: Class MyJavaClass not found in import.

I have set classpath to current directory, what should I do?
thanks.

Fang



-
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: XML->XSP->XML->HTML

2001-06-26 Thread Peter Nuetzel - inglobo

AFAIK this is not possible with Cocoon2. Currently XSP can only be used as
Generator.

- peter


-Ursprüngliche Nachricht-
Von: franck delarue <[EMAIL PROTECTED]>
An: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Datum: Dienstag, 26. Juni 2001 19:40
Betreff: XML->XSP->XML->HTML


>hi,
>I want to produce a XSP file with a XML and a XSL
>file, and that the XSP file generates an other xml
>file. But I don't know how to configure the file
>sitemap.xmap.
>This is what I have done to configure the sitemap but
>it doesn't work :
>
>   
>
>src="doc.xsl"/>
>
>   
>
>I work on linux redhat, with the server engine
>Resin 2.0.0 and cocoon 2.
>
>Thanks in advance.
>
>
>
>___
>Do You Yahoo!? -- Pour faire vos courses sur le Net,
>Yahoo! Shopping : http://fr.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: Is SQLTransformer gonna be there?..Re: SQL Transfomer

2001-06-26 Thread Beauprez Sven


Mr. guru,

If it is up to me, the SQLTransformer will never be depricated  ;-). But the
functionallity might slightly change and the implementation might be
completly redone if necessary as long as the usage stays the same (i am not
planning to change anything, but someone might be...).
I never had any problems with the examples, it is very strange that the esql
samples work and the sql-sample page not.
If i am not mistaken, Vadim made a change to the SQLTransformer in
cocoon_20_branch a few days ago, check again if you have the latest version
and try again...
If it doesn't work, try to describe your problem in more detail (what's the
output, what's in the log file,...)


Sven




-Original Message-
From: java guru [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 5:31 PM
To: [EMAIL PROTECTED]
Subject: Is SQLTransformer gonna be there?..Re: SQL Transfomer


This may look like newbie question..but is
SQLTransformer and taglib gonna continue or
deprecated??? What about esql..what is the
difference.

And finally i could never run the sql-page.xml example
from cocoon2 to work..i dont know whats the
problem.i could run esql example successful..



Appreciating the response..
srini


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

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

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

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




XML->XSP->XML->HTML

2001-06-26 Thread franck delarue

hi,
I want to produce a XSP file with a XML and a XSL
file, and that the XSP file generates an other xml
file. But I don't know how to configure the file
sitemap.xmap. 
This is what I have done to configure the sitemap but
it doesn't work :

   



   

I work on linux redhat, with the server engine
Resin 2.0.0 and cocoon 2.

Thanks in advance.



___
Do You Yahoo!? -- Pour faire vos courses sur le Net, 
Yahoo! Shopping : http://fr.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]>




RE: Is SQLTransformer gonna be there?..Re: SQL Transfomer

2001-06-26 Thread Vadim Gritsenko

> -Original Message-
> From: java guru [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 11:31
> To: [EMAIL PROTECTED]
> Subject: Is SQLTransformer gonna be there?..Re: SQL Transfomer
> 
> 
> This may look like newbie question..but is
> SQLTransformer and taglib gonna continue or
> deprecated??? What about esql..what is the
> difference.
> 
> And finally i could never run the sql-page.xml example
> from cocoon2 to work..i dont know whats the
> problem.i could run esql example successful..

I've done fixes to SLQTransformer (Sat Jun 23),
if you have older Cocoon2 version you should update and
then sql-page example should work.

Vadim

> 
> 
> 
> Appreciating the response..
> srini
> 
> 
> Do You Yahoo!?
> For regular News updates go to http://in.news.yahoo.com
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 

-
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 can I redirect my Result ? Using fp tag

2001-06-26 Thread Gustavo Mejia


HELLO,
I know, here Gustavo the trouble, jeje.. well, here you have a small
java code that helps to access and save the query result, mm.. well you
can access any URL, but it help me for my intentions, I had to do this
because I couldn't use fp tag.
import java.io.*;
import java.net.*;
public class XmlFile
{
    public
static void main(String argv[])
    {
   
String s;
   
try {
   
URL url = new URL (argv[0]);
   
URLConnection conex = url.openConnection();
   
System.out.println("Cargando "+argv[0]);
   
BufferedReader datos = new BufferedReader (new InputStreamReader(conex.getInputStream()));
   
do {
   
s = datos.readLine();
   
if (s != null) System.out.println(s);
   
} while (s != null);
   
} catch (ArrayIndexOutOfBoundsException e) {
   
System.out.println ("Sintaxis: java Xml ");
   
} catch (UnknownHostException e) {
   
System.out.println ("El host no existe o no responde");
   
} catch (Exception e) {
   
e.printStackTrace();
   
}
    }
}
Gustavo Mejia wrote:
Hello !!
Anybody read my message ?? any idea ?? please, I need your help !!
I still trying but I don't get it !
Gustavo !
 
Gustavo Mejia wrote:
Hi,
I am still trying to save my XML to a file, I am using
fp tags, here I am trying to get and to save the field empno from
the employee table, I need just exactly the same thing that I got in my
browser, but now in a file (including the tags that describe the information
of the field), but it doesn't work, 
please ! I need your help !!
Here my code,
thanks a lot and sorry for the trouble !
Gustavo



  xmlns:fp="http://apache.org/cocoon/XSP/FP/1.0"
  xmlns:request="http://www.apache.org/1999/XSP/Request"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
  xmlns:esql="http://apache.org/cocoon/SQL/v2"
>

 resulta.xml
    /
 replace



  oracle.jdbc.driver.OracleDriver
  jdbc:oracle:thin:@204.153.24.233:1521:cta
  user
  password
  
 
 select
* from employee   order by empno
 
    
  Prueba ESQL
para el CTA: 
  
   


  



 
  
  Aqui puede
ir un pie de pagina
    
  



Gustavo Mejia wrote:
Hi, sorry for the troubles but I am here again !
Could somebody tell how can I use FP tags in order to save my XML resulted
from query ?  Here my code.



  xmlns:fp="http://apache.org/cocoon/XSP/FP/1.0"
  xmlns:request="http://www.apache.org/1999/XSP/Request"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
  xmlns:esql="http://apache.org/cocoon/SQL/v2"
>


    Date
now = new Date();


  oracle.jdbc.driver.OracleDriver
  jdbc:oracle:thin:@My_IP:1521:cta
  user
  password
  



select * from employee

where empno=

or sex=

or sex=

or birtdate=TO_DATE(,'DD/MM/')

order by empno


    
 
Prueba ESQL para el CTA Fecha de hoy : now
 

   

 

 

 

 

 

 

 

 

 

   
sun.jdbc.odbc.JdbcOdbcDriver
   
JDBC:ODBC:SQL
   
user
   
password
   

 

  
select * from Departamento
  
where empno = 
 

 

   

 

   

 

 

   
No hay depto
 

   

 



 

 
Aqui puede ir un pie de pagina
    
  



 
Thanks a lot !
Gustavo
 
 
Gustavo Mejia wrote:
And, also, how can I save this results into an specific
file automataclly ??
Any Idea.. ?? I really appreciate all your help !!!
Gustavo
Gustavo Mejia wrote:
> Hi !
>
> I am here again !
>
> I have a question, I have a very small application that makes a query
to
> my database, when I make the request I got the result in other XML
> document but in my same page (well y the same browser) the question
is,
> how can I redirect the results, in order that this results appear
in the
> URL that I define, is it posiible, ?? how can I do that ?
>
> Please !! help me !!!
>
> Thanks a lot !!!
> Gustavo
>
> -
> 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]>






help reg...sqltranformer

2001-06-26 Thread java guru

Hi.,
  I am trying the sql tranformer example ...and
nothing ever show up..i actually see my query as it is
"select *" on to the screen..

The connection pool is properly defined and the esql
example works but not the sql example...

Please help..
Thanks


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

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

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




RE: Does cache work in Cocoon 1.8.2 on Tomcat 3.2.1?

2001-06-26 Thread JEULIN Olivier

You're right, it doesn't work.
You've found a bug :-/
I haven't found it in the bug database (but you may want to check again; see
it in the 'bug database' section of cocoon's homepage).
I'll let you submit it, to take ll credit for it... Fame starts small ;)

> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Envoyé : mardi 26 juin 2001 17:27
> À : [EMAIL PROTECTED]
> Objet : RE: Does cache work in Cocoon 1.8.2 on Tomcat 3.2.1?
> 
> 
> Thank you very much. Now I managed to get the "from cache" in 
> the bottom :-) In 
> IE5.5 it is not enough to left-shift and reload - you have to 
> use the menu: 
> InternetOptions/DeleteFiles - now I know that.
> 
> But why can the same page NOT be cached in both IE and 
> Netscape? I understand 
> that the page could use a different stylseheet in Netscape 
> than IE and 
> therefore the cache has to get recalculated - so we have one 
> cache for Netscape 
> and another cache for IE. But only one of the browsers can 
> get a cache copy of 
> the page - this is the browser that asks for the page first 
> time after the 
> server is started. So is this normal behavior of Cocoon 
> cache? If this is 
> correct the cache in Cocoon 1.8.2 do only work for ONE device!
> 
> Thanks in advance
> /Bjarne
snip!

-
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: Re[4]: How to use

2001-06-26 Thread Daniel Pfuhl

 --- Zeljko Rajic <[EMAIL PROTECTED]> schrieb: >
Hi Daniel,
> 
> on Monday, June 25, 2001, you wrote:
> 
> >> > did you specify the Namespaces and the
> programming
> >> > language in your xsp-file correctly ?
> >> 
> >> > e.g. like this:
> >> 
> >> >  >> > language="java"
> >> > xmlns:xsp="http://apache.org/xsp";
> >> >
> >>
> >
>
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> >> 
> >> I had set the namespace as follows:
> >>
> 'xmlns:xsp-request="http://apache.org/xsp/request'.
> >> I changed the namespace
> >> value as you suggested and the compiler error
> >> disappeared. Are the values/URIs
> >> for the namespaces anywhere documented?
> >> 
> >> Anyway, still it does not work as I would expect.
> >> The following XSP fragment
> >> produces the following output...
> >> 
> >> XSP fragment:
> >> 
> >> 
> >>Parameter 'param1' value:
> >> >> default="default Value">
> >>  
> someValue
> >>
> >> 
> >> 
> >> 
> >> output:
> >> 
> >> Parameter 'param1' value: someValue
> >> 
> >> 
> >> Is there still something wrong?
> 
> > hmmm maybe you want to try something like this
> 
> >  > default="Not provided"/>
> 
> > ...in your xsp.
> 
> 
> Shouldn't these two ways of using the
>  produce the
> same output, meaning shouldn't my way of using have
> the same result?  Does my
> way of using the tag work with your Cocoon
> installation and produce the
> expected output?

Hi Zeljko,

Like written in the C2 Docu these two should have the
same effect - you are right. But I tested it on my
installation and your "version" wan't work.

I always got some error so I changed it into this:


  someValue


This wan't produce an error, but also wan't return
any parameter. :-(

I read about here:
http://xml.apache.org/cocoon2/logicsheet-request.html

take a look at that, maybe you find the correct way or
there is a bug ?!

daniel



=

Daniel Pfuhl
mailto:[EMAIL PROTECTED]

__
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.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]>




esql:get-xml and external entities

2001-06-26 Thread Lionel Barth

Hello,

I use cocoon 1.8.2, tomcat 3.2.2, apache 1.3.20 and postgres 7.1.2

I have xml fragments in the database. I use esql taglib to extract
fragments:
  
select get_otsi('')


  

  

  

  


All works fine until I have external entities references in a fragment
in which case I have a "org.xml.sax.SAXException: The entity "ouvert"
was referenced but not declared. [FATAL ERROR]" which is perfectly
right.

I tried to create a new "entities" attribute in esql:get-xml in esql.xsl
on the model of the "root" attribute in order to add a
 ['> %ent;]>
before the xml fragment.

So the previous esql query was transformed to:
 
  http://mysite/myentitiesfile.ent"; column="get_otsi"/>
  
 but it didn't work.

I tried to supply the declaration directly from the database, it didn't
work too.

Is there any way to tell esql:get-xml to handle external entities?

Thanks for any help
Lionel Barth



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




Is SQLTransformer gonna be there?..Re: SQL Transfomer

2001-06-26 Thread java guru

This may look like newbie question..but is
SQLTransformer and taglib gonna continue or
deprecated??? What about esql..what is the
difference.

And finally i could never run the sql-page.xml example
from cocoon2 to work..i dont know whats the
problem.i could run esql example successful..



Appreciating the response..
srini


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

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

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




RE: Does cache work in Cocoon 1.8.2 on Tomcat 3.2.1?

2001-06-26 Thread bhj

Thank you very much. Now I managed to get the "from cache" in the bottom :-) In 
IE5.5 it is not enough to left-shift and reload - you have to use the menu: 
InternetOptions/DeleteFiles - now I know that.

But why can the same page NOT be cached in both IE and Netscape? I understand 
that the page could use a different stylseheet in Netscape than IE and 
therefore the cache has to get recalculated - so we have one cache for Netscape 
and another cache for IE. But only one of the browsers can get a cache copy of 
the page - this is the browser that asks for the page first time after the 
server is started. So is this normal behavior of Cocoon cache? If this is 
correct the cache in Cocoon 1.8.2 do only work for ONE device!

Thanks in advance
/Bjarne


Quoting JEULIN Olivier <[EMAIL PROTECTED]>:

> Yup, "...served from cache in 1 ms..." 
> My advices are:
> 1) (how could I forget this one) clear your browser's cache... ! I've
> try it
> right now: IE was reading the old file. I bet 1 euro on this one ;)
> 2) if you have invalidated the cache while developping you app., restart
> cocoon to be sure the new config file is loaded, and... that you're
> editing
> the good one :) (in the WEB-INF of tomcat).
> 3) ... err ... blow up the all thing :)
> 
> Ol'
> > -Message d'origine-
> > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Envoyé : mardi 26 juin 2001 15:49
> > À : [EMAIL PROTECTED]
> > Objet : RE: Does cache work in Cocoon 1.8.2 on Tomcat 3.2.1?
> > 
> > 
> > Thanks for your help. But I ran your sample-code, and it 
> > works fine but the 
> > page is NOT cached on my system - it outputs the HTML and this:
> > 
> > ""
> > 
> > So it was "served in", not "served from cache" - so any idea 
> > of why this works 
> > on your machine but not on my machine? On you system the text 
> > is "served form 
> > cache" - right?
> > 
> > I have tried this om Windows 2000 and Windows 98.
> > 
> > Thanks in advance
> > /Bjarne
> 
> -
> 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]>




[c2] ESQL, get-xml and entities like  

2001-06-26 Thread Stefan Seifert

I use ESQL and get-xml to get XHTML-Fragments from the database.

The Problem: The XHTML conatins sometimes entities like  , which
are vaild for XTHML, but not for XML. In an XSL-Stylesheet i can use a
statement like

http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent";>
%HTMLlat1;
]>

to integrate XHTML entities. But when i use get-xml in an XSP page, this
does not work; even if i put this statement in the XSP page.

Any idea to tell the XML parse internally used from get-xml to allow
these specific Entities?

Stefan

-
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: Does cache work in Cocoon 1.8.2 on Tomcat 3.2.1?

2001-06-26 Thread JEULIN Olivier

Yup, "...served from cache in 1 ms..." 
My advices are:
1) (how could I forget this one) clear your browser's cache... ! I've try it
right now: IE was reading the old file. I bet 1 euro on this one ;)
2) if you have invalidated the cache while developping you app., restart
cocoon to be sure the new config file is loaded, and... that you're editing
the good one :) (in the WEB-INF of tomcat).
3) ... err ... blow up the all thing :)

Ol'
> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Envoyé : mardi 26 juin 2001 15:49
> À : [EMAIL PROTECTED]
> Objet : RE: Does cache work in Cocoon 1.8.2 on Tomcat 3.2.1?
> 
> 
> Thanks for your help. But I ran your sample-code, and it 
> works fine but the 
> page is NOT cached on my system - it outputs the HTML and this:
> 
> ""
> 
> So it was "served in", not "served from cache" - so any idea 
> of why this works 
> on your machine but not on my machine? On you system the text 
> is "served form 
> cache" - right?
> 
> I have tried this om Windows 2000 and Windows 98.
> 
> Thanks in advance
> /Bjarne

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




org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.

2001-06-26 Thread florent barbare


Hi,

I have the following errors when i used my "new cocoon" site.
it works with tomcat 3.2.

org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not
available.

Any idea ?

thanks

regards

Florent

-Original Message-
From: Uli Mayring [mailto:[EMAIL PROTECTED]]
Sent: mardi 26 juin 2001 13:32
To: [EMAIL PROTECTED]
Subject: Re: Fw: Authentification + Forward


On Tue, 26 Jun 2001, loc-at-soft wrote:

> This code doesn't work ! I'm not able to use "loginException"  . I want to
forward connection errors on an error page !
> Does anyone have an exemple of such an authentification XML page
connecting to a database ?

Download the auth taglib under http://ulim.cocoonhost.com, it has many
samples.

Ulrich

--
Ulrich Mayring
DENIC eG, Softwareentwicklung


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




SQL Transfomer

2001-06-26 Thread Sergio Carvalho

Hi,

How can I pass HTTP parameters into SQL queries using SQL Transformer? There's no 
mention in the docs, or examples, but on the source code there seems to be a 
 element that may do this. Except that I can't get how it works...

Cheers,

Sergio

-
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 can I redirect my Result ? Using fp tag

2001-06-26 Thread Gustavo Mejia


Hello !!
Anybody read my message ?? any idea ?? please, I need your help !!
I still trying but I don't get it !
Gustavo !
 
Gustavo Mejia wrote:
Hi,
I am still trying to save my XML to a file, I am using
fp tags, here I am trying to get and to save the field empno from
the employee table, I need just exactly the same thing that I got in my
browser, but now in a file (including the tags that describe the information
of the field), but it doesn't work, 
please ! I need your help !!
Here my code,
thanks a lot and sorry for the trouble !
Gustavo



  xmlns:fp="http://apache.org/cocoon/XSP/FP/1.0"
  xmlns:request="http://www.apache.org/1999/XSP/Request"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
  xmlns:esql="http://apache.org/cocoon/SQL/v2"
>

 resulta.xml
    /
 replace



  oracle.jdbc.driver.OracleDriver
  jdbc:oracle:thin:@204.153.24.233:1521:cta
  user
  password
  
 
 select
* from employee   order by empno
 
    
  Prueba ESQL
para el CTA: 
  
   


  



 
  
  Aqui puede
ir un pie de pagina
    
  



Gustavo Mejia wrote:
Hi, sorry for the troubles but I am here again !
Could somebody tell how can I use FP tags in order to save my XML resulted
from query ?  Here my code.



  xmlns:fp="http://apache.org/cocoon/XSP/FP/1.0"
  xmlns:request="http://www.apache.org/1999/XSP/Request"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
  xmlns:esql="http://apache.org/cocoon/SQL/v2"
>


    Date
now = new Date();


  oracle.jdbc.driver.OracleDriver
  jdbc:oracle:thin:@My_IP:1521:cta
  user
  password
  



select * from employee

where empno=

or sex=

or sex=

or birtdate=TO_DATE(,'DD/MM/')

order by empno


    
 
Prueba ESQL para el CTA Fecha de hoy : now
 

   

 

 

 

 

 

 

 

 

 

   
sun.jdbc.odbc.JdbcOdbcDriver
   
JDBC:ODBC:SQL
   
user
   
password
   

 

  
select * from Departamento
  
where empno = 
 

 

   

 

   

 

 

   
No hay depto
 

   

 



 

 
Aqui puede ir un pie de pagina
    
  



 
Thanks a lot !
Gustavo
 
 
Gustavo Mejia wrote:
And, also, how can I save this results into an specific
file automataclly ??
Any Idea.. ?? I really appreciate all your help !!!
Gustavo
Gustavo Mejia wrote:
> Hi !
>
> I am here again !
>
> I have a question, I have a very small application that makes a query
to
> my database, when I make the request I got the result in other XML
> document but in my same page (well y the same browser) the question
is,
> how can I redirect the results, in order that this results appear
in the
> URL that I define, is it posiible, ?? how can I do that ?
>
> Please !! help me !!!
>
> Thanks a lot !!!
> Gustavo
>
> -
> 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: Does cache work in Cocoon 1.8.2 on Tomcat 3.2.1?

2001-06-26 Thread bhj

Thanks for your help. But I ran your sample-code, and it works fine but the 
page is NOT cached on my system - it outputs the HTML and this:

""

So it was "served in", not "served from cache" - so any idea of why this works 
on your machine but not on my machine? On you system the text is "served form 
cache" - right?

I have tried this om Windows 2000 and Windows 98.

Thanks in advance
/Bjarne

Quoting JEULIN Olivier <[EMAIL PROTECTED]>:

> Hi,
> as explained in the "caching" section of the documentation, some
> contents
> are
> never cached, except if you tell cocoon to do so. If you use XSP, you'll
> have to overload the 'hasChanged' method and put a .
> Anyway, here is a small example that is cached for me, and with the very
> same configuration:
> as I only apply a XSLT transform (cacheable & doesn't invalidate the
> cache),
> the page is cached just fine.
> -xml file
> 
> 
> 
> 
>   
> 
>   
> 
>   
> 
>   
> -chainage-html.xsl
> 
> http://www.w3.org/1999/XSL/Transform";
> version="1.0">
> 
>name="cocoon-format">type="text/html"
>   
> CHAINAGE
> 
>   
> 
>   
> 
> 
> 
>non traité
>   
> 
> 
> 
>traité
> 
> 
>  match="@*|node()|comment()|processing-instruction()|text()">
>  
> select="@*|node()|comment()|processing-instruction()|text()"/>
>  
> 
> 
> 
> 
> Olivier
> > -Message d'origine-
> > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Envoyé : mardi 26 juin 2001 14:12
> > À : [EMAIL PROTECTED]
> > Objet : Does cache work in Cocoon 1.8.2 on Tomcat 3.2.1?
> > 
> > 
> > Hi,
> > Does anyone have some source that gets cached by the Cocoon 
> > 1.8.2 engine? If so 
> > please send it to me, so I should se if it works in my 
> > environment also. I have 
> > been running Cocoon for some time, but have never seen the: 
> > "" (no "from cache" ). Not even the 
> > http://localhost:8080/cocoon/samples/hello/hello-page.xml 
> > gets cached. My 
> > cocoon.properties is below but maybe the problem is somewere 
> > else. I have read 
> > the "a brief guide to the cocoon cache system", and have 
> > looked at some old 
> > posted mails, but it didn't help me with getting the cache 
> > work - I would 
> > really like to see a simple exaple of a page that is cached - 
> > so I will work 
> > from there.
> > 
> > What am I doing wrong, any idea?
> > 
> > Thanks for any help in advance 
> > /Bjarne
> > 
> > ##
> > # Cache Managers #
> > ##
> > 
> > # the default cache
> > cache = org.apache.cocoon.cache.CocoonCache
> > 
> > #uncomment this to disable ALL page caching
> > #cache = org.apache.cocoon.cache.NoCache
> ...
> 
> -
> 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: Does cache work in Cocoon 1.8.2 on Tomcat 3.2.1?

2001-06-26 Thread JEULIN Olivier

Hi,
as explained in the "caching" section of the documentation, some contents
are
never cached, except if you tell cocoon to do so. If you use XSP, you'll
have to overload the 'hasChanged' method and put a .
Anyway, here is a small example that is cached for me, and with the very
same configuration:
as I only apply a XSLT transform (cacheable & doesn't invalidate the cache),
the page is cached just fine.
-xml file




  

  

  

  
-chainage-html.xsl

http://www.w3.org/1999/XSL/Transform";
version="1.0">

  type="text/html"
  
CHAINAGE



  



 non traité




 traité



 
   
 




Olivier
> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Envoyé : mardi 26 juin 2001 14:12
> À : [EMAIL PROTECTED]
> Objet : Does cache work in Cocoon 1.8.2 on Tomcat 3.2.1?
> 
> 
> Hi,
> Does anyone have some source that gets cached by the Cocoon 
> 1.8.2 engine? If so 
> please send it to me, so I should se if it works in my 
> environment also. I have 
> been running Cocoon for some time, but have never seen the: 
> "" (no "from cache" ). Not even the 
> http://localhost:8080/cocoon/samples/hello/hello-page.xml 
> gets cached. My 
> cocoon.properties is below but maybe the problem is somewere 
> else. I have read 
> the "a brief guide to the cocoon cache system", and have 
> looked at some old 
> posted mails, but it didn't help me with getting the cache 
> work - I would 
> really like to see a simple exaple of a page that is cached - 
> so I will work 
> from there.
> 
> What am I doing wrong, any idea?
> 
> Thanks for any help in advance 
> /Bjarne
> 
> ##
> # Cache Managers #
> ##
> 
> # the default cache
> cache = org.apache.cocoon.cache.CocoonCache
> 
> #uncomment this to disable ALL page caching
> #cache = org.apache.cocoon.cache.NoCache
...

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




Validating XML with C2, Help Please!!

2001-06-26 Thread Eduardo Yanez

Hi every body,

I can not find where is the XML validating flag in Cocoon 2 configuration
for the validation of the XML files.

Where is it? could any body tell me?

Thanks in advance!,
Eduardo Yanez.



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

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




C2 initialization problem

2001-06-26 Thread Martin Mauri

Hi Cocooners,

I've just installed Cocoon 2, but I get the following error while trying to
start it. It sounds strange as I've followed exactly the installation
instructions.

Error: 500
Localization: /cocoon/
Internal servlet error:

java.lang.VerifyError: (class: org/apache/cocoon/servlet/CocoonServlet,
method: createCocoon signature: ()V) Incompatible object argument for
function call
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Class.java:237)
 at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268)
 at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
 at org.apache.tomcat.core.Handler.service(Handler.java:254)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

any idea?

thanks in advance.

Lic. Martin O. Mauri
Profesion + Auge A.F.J.P
Parana 666 - Cap. Federal
[EMAIL PROTECTED]
www.profesi.com.ar


-
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 precompile the xsp ?

2001-06-26 Thread java guru

There is procedure out-lined in faq of c2 ... I am
still trying to work it out..




 --- [EMAIL PROTECTED] wrote: > An XSP is only
compiled the first time it is called.
> Each subsequent time,
> this compiled version is used. So the way to
> "pre-compile" an XSP is to call
> it in your browser.
> 
> hth,
> 
> tomK
> 
> 
> -Original Message-
> From: Ling Kok Choon [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 26 juni 2001 16:32
> To: [EMAIL PROTECTED]
> Subject: how to precompile the xsp ?
> 
> 
> hi,
> 
>I am developing a web application with Cocoon 2.
> But the xsp's
> performance is not very good ( 
> very slow ), so is it posible to precompile the xsp
> file ? and may i know
> how to do it ?
> 
> Thank you.
> 
> 
> From Kok Cho0n.
> 
>

> Name: Ling Kok Choon
> E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
> Date: 06/26/01
> Time: 22:32:02
> 
> This message was sent by Z-Mail Pro - from NetManage
> NetManage - delivers Standards Based IntraNet
> Solutions
>

> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
>  


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

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

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




[C2] NT : Problem with XSP : it works the first time and then no more (You can not select a component from a disposed ComponentSelector)

2001-06-26 Thread Samuel ARNOD-PRIN

What's this bug about ??

I've got no problem using Linux but on Windows JDK1.3 ... I don't
understand..


thanx for helping

-
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: Handler:java.io.FileNotFoundException: /sitemap.xmap (No such fil e or directory)

2001-06-26 Thread Apostolou, Kostantinos

Thanks 
You were right!
But I didn't touch the cocoon.xconfig file!
It was as I got it from the war file!

Any way now I have other problems (the Dr Watson error)
It seams that my jdk1.2
is not good enough so 
I will try with jdk1.3.1
let see if it is going to work this time.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tue, June 26, 2001 12:05 PM
To: [EMAIL PROTECTED]
Subject: RE: Handler:java.io.FileNotFoundException: /sitemap.xmap (No
such fil e or directory)


Have a look at the cocoon.xconf file. Near the end, there is a line that
looks something like this:



My guess is that this has somehow changed on your machine to



(note the slash).

Try removing the slash.

hth,

tomK



-Original Message-
From: Apostolou, Kostantinos
[mailto:[EMAIL PROTECTED]]
Sent: dinsdag 26 juni 2001 9:26
To: '[EMAIL PROTECTED]'
Subject: Handler:java.io.FileNotFoundException: /sitemap.xmap (No such
fil e or directory)


Hi I got the following problem

java.io.FileNotFoundException: /sitemap.xmap (No such file or
directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:68)
at
org.apache.cocoon.environment.Source.getInputStream(Source.java:116)
at
org.apache.cocoon.environment.Source.getInputSource(Source.java:165)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:230)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:158)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:224)
at java.lang.Thread.run(Thread.java:479)

It seams that it can't find the sitemap.xmap file.
1.My $TOMCAT_HOME/webapps/cocoon dir looks like this

META-INF  WEB-INF  cocoon.xconf  docs  i18n  protected  resources
sitemap.xmap  stylesheets  sub  templates

I am using an ALPHA server 400 with REDHAT 6.2

JDK1.2

In my CLASS PATH I have the jar files of the following

nis1_2_1
jndi1_2_1
jndi1_1ea2_demo
rmregistry1_2_1
jaf-1.0.1
fscontext1_2beta3
cosnaming1_2_1

I got the Cocoon-2.0b1.tar.gz 
And I got a tomcat-3.2.1
My $TOMCAT_HOME/lib directory looks like 
ant.jar  jasper.jar  servlet.jar  test  webserver.jar  xerces_1_4_0.jar

I attatched the log file 

 <> 


Does anybody have any suggestion?

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




Does cache work in Cocoon 1.8.2 on Tomcat 3.2.1?

2001-06-26 Thread bhj

Hi,
Does anyone have some source that gets cached by the Cocoon 1.8.2 engine? If so 
please send it to me, so I should se if it works in my environment also. I have 
been running Cocoon for some time, but have never seen the: “” (no "from cache" ). Not even the 
http://localhost:8080/cocoon/samples/hello/hello-page.xml gets cached. My 
cocoon.properties is below but maybe the problem is somewere else. I have read 
the "a brief guide to the cocoon cache system", and have looked at some old 
posted mails, but it didn't help me with getting the cache work - I would 
really like to see a simple exaple of a page that is cached - so I will work 
from there.

What am I doing wrong, any idea?

Thanks for any help in advance 
/Bjarne

##
# Cache Managers #
##

# the default cache
cache = org.apache.cocoon.cache.CocoonCache

#uncomment this to disable ALL page caching
#cache = org.apache.cocoon.cache.NoCache

#Change this to false to disable all Last-Modified headers
#This will also disable client-side and proxy caching, but not Cocoon
#internal caching.
#Content that is not cached by Cocoon will not have a Last-Modified header.
lastmodified = true

#NOTE: See also the next set of options. The CocoonCache is implemented by
#the Store.

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




SV: SV: ident and spaces (Netscape problem)

2001-06-26 Thread Pål Wester

It was extreme spacing in vertical direction and
unnessesary breaking.

I found a sollution, and that was to make cocoon report
a earlier HTML version... It is now HTML 3.2 public, the
same as dreamviewer produces I think It's a shame that
the prog doesn't use DOCTYPE though... off to INTERDEV..

mvh: Pål Wester 
høgskoleingenør/programmerer

> -Opprinnelig melding-
> Fra: Sergio Carvalho [mailto:[EMAIL PROTECTED]]
> Sendt: 26. juni 2001 12:28
> Til: [EMAIL PROTECTED]
> Emne: Re: SV: ident and spaces (Netscape problem)
>
>
>
> As a general rule, when removing the DOCTYPE removes a 'bug' on
> mozilla, it's just that mozilla is behaving correctly as per the
> standard (the one DOCTYPE refers to!), and reverts to quirk-mode
> when there's no DOCTYPE.
>
> I had the same problem with image layout (which was introducing
> spurious space). In my case, I solved it with a CSS stylesheet
> changing image layout to block.
>
> Can you give specifics as to what layout problem are you having?
>
> Sérgio
>
> On Mon, 25 Jun 2001 14:16:26 +0200
> Pål Wester <[EMAIL PROTECTED]> wrote:
>
> > I found out that if i remove the DOCTYPE definition
> > on top of the produced page, I get rid of the problem.
> >
> > Is there any way to keep the formatting and get rid of
> > the DOCTYPE at the first line? I've tried changing it to
> > loose, but thats not good either.
> >
> > mvh: Pål Wester
> > høgskoleingenør/programmerer
> >
> >
> > never.no as, stortingsgt 30, 0161 Oslo
> > direkte: 22 01 66 34, 906 900 62
> > tlf: 22 01 66 34, fax: 22 01 66 21
> > http://never.no - icq:103476059
> >
> >
> >
> >   -Opprinnelig melding-
> >   Fra: Pål Wester [mailto:[EMAIL PROTECTED]]
> >   Sendt: 25. juni 2001 12:57
> >   Til: Cocoon
> >   Emne: ident and spaces
> >
> >
> >   HI there...
> >
> >   I'm having problems with the fact that cocoon pages
> >   removes spaces, tabs and linefeed. It seems that
> >   Netscape 6 parse the pages differently...
> >
> >   How can I preserve the spaces on the output??
> >   mvh: Pål Wester
> >   høgskoleingenør/programmerer
> >
> >
> >   never.no as, stortingsgt 30, 0161 Oslo
> >   direkte: 22 01 66 34, 906 900 62
> >   tlf: 22 01 66 34, fax: 22 01 66 21
> >   http://never.no - icq:103476059
> >
> >
> >
> >
> >
>
> -
> 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: Fw: Authentification + Forward

2001-06-26 Thread Uli Mayring

On Tue, 26 Jun 2001, loc-at-soft wrote:

> This code doesn't work ! I'm not able to use "loginException"  . I want to forward 
>connection errors on an error page !
> Does anyone have an exemple of such an authentification XML page connecting to a 
>database ?

Download the auth taglib under http://ulim.cocoonhost.com, it has many
samples.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Softwareentwicklung


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




Fw: Authentification + Forward

2001-06-26 Thread loc-at-soft



 
- Original Message - 
From: loc-at-soft 
To: [EMAIL PROTECTED] 

Sent: Tuesday, June 26, 2001 10:26 AM
Subject: Authentification + Forward

 

Hello, 
 
I'm trying to create an authentification XML page 
for Web users connecting to a MySQL database.
 
Here is my source code
---
login.xml

login-html.xsl" type ="text/xsl"?>  

 
http://www.apache.org/1999/XSP/Core"xmlns:esql="http://apache.org/cocoon/SQL/v2"> 
   String login = 
request.getParameter("login");  
String password = 
request.getParameter("password");  
Boolean loginException=false try {   
    
    
org.gjt.mm.mysql.Driver 
 jdbc:mysql://192.36.253.1/lims 
    
 login   
  password 
       
    }   catch (Exception e) 
{  loginException=true;}   
-
 
This code doesn't work ! I'm not able to use 
"loginException"  . I want to forward connection errors on an error page 
!
Does anyone have an exemple of such an 
authentification XML page connecting to a database ?
 
Thanks for your help !
 
;-[
 
 


[C2] How to make a redirect in a xsp page before the xsl ??

2001-06-26 Thread Samuel ARNOD-PRIN

Hello 

I've got a xsp page that will be transformed with a xsl file.
But when I make "response.sendredirect" .. the message is transformed
with xsl !!

what is the syntax to redirect properly ?

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

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




[C2/NT] The first time, it is OK, the second time, it crashs !

2001-06-26 Thread Samuel ARNOD-PRIN

Hello,

I am using c2 on both linux and nt platform with apache web server and
tomcat.

when I start my site on NT I can access to my xsp page without problem
but the first time only...
the other times, I get a ProcessException .. resource not found... why
???

note that even the simplest xsp works like that...

any idea ??

I've already got that message on an other machine.. and I don't remember
how it disappeared

-
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 and xalan2

2001-06-26 Thread Frans Thamura

It is not work, you have to used xalan 1.1,

But you can cojoin it with several application that
used xalan 2, like JetSpeed 1.3a2

Frans

--- Thorsten Mauch <[EMAIL PROTECTED]> wrote:
> Hi 
> I using Coocon 1.8.2 with Xalan2. I use
> the XalanTransformer privided by Rick Knowles. I'am
> not sure if it's the best way to do so, coz in the
> actual 
> source distribution the patch is not included. 
> Anyway i found a small bug in the class.
> xsl:include doesn't work for relative pathes:
> 
> i changed the line
>   s.setSystemId(sheetBase);   
> in
>   s.setSystemId("file:///"+inBase);
> 
> I'am not sure if this doesn't have undesired side
> efectts, coz
> my knoewlage about xalan tends to sero. But it works
> :)
> 
> To avoid naming confilics i renamed the
> XalanTransformer 
> to Xalan2Transformer.
> 
> If this is still the best way to use Xalan2 with
> cocoon 
> maybe somebody can commit this class to the CVS.
> 
> Thanx Thorsten
>  <> 
> 
> 

> ATTACHMENT part 2 application/octet-stream
name=Xalan2Transformer.java
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
<[EMAIL PROTECTED]>


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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




Cocoon 1.82 + JetSpeed 1.3a2 + Tomcat 322 + Cimande

2001-06-26 Thread Frans Thamura

Hi All,

I upload the file with cocoon 1.82 + JetSpeed 1.3a2 +
Tomcat 322 + Cimande in
blueoxygen.linuxindonesia.com/project/cimande

Have a nice try..

Frans

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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




[C2]How to get the serialized result ?

2001-06-26 Thread Ling Kok Choon

hi,

   May i know how to get the serialized result from Cocoon2. For example, when i 
request a xsp 
from the cocoon2, the cocoon2 will serialize a HTML response and send back to my 
browser. But 
now, is it posible to store / save the result HTML file to the server, so that other 
person can 
just request for the html file but not the xsp file ?

  The purpose is to reduce the request time, because request for the HTML file is 
faster then 
request for the xsp file.


Thank you.


>From Kok Choon




Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/27/01
Time: 05:22:07

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


-
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] How to connect to mysql server ?

2001-06-26 Thread tom . klaasen

Hi,

Have a look at your cocoon.xconf file. There is a node there that looks like
this:

  

  
  @database-url@
  @database-user@
  @database-password@

  

You just have to fill in the right parameters. 

Don't forget to create the tables as specified in
webapp\docs\samples\sql\sql-pate.xml.sql

hth,

tomK

-Original Message-
From: Ling Kok Choon [mailto:[EMAIL PROTECTED]]
Sent: maandag 25 juni 2001 16:53
To: [EMAIL PROTECTED]
Subject: [C2] How to connect to mysql server ?


hi,

  May i know how to connect my cocoon web application to the mySQL server ?

Thank.


>From Kok Choon.


Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/25/01
Time: 22:53:03

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

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

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

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




AW: SV: ident and spaces (Netscape problem)

2001-06-26 Thread Jörn Heid

Is it the same problem as mine in '[C2] Bug in HTML-Serializer?'


-Ursprüngliche Nachricht-
Von: Sergio Carvalho [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. Juni 2001 12:28
An: [EMAIL PROTECTED]
Betreff: Re: SV: ident and spaces (Netscape problem)



As a general rule, when removing the DOCTYPE removes a 'bug' on mozilla,
it's just that mozilla is behaving correctly as per the standard (the one
DOCTYPE refers to!), and reverts to quirk-mode when there's no DOCTYPE.

I had the same problem with image layout (which was introducing spurious
space). In my case, I solved it with a CSS stylesheet changing image layout
to block.

Can you give specifics as to what layout problem are you having?

Sérgio

On Mon, 25 Jun 2001 14:16:26 +0200
Pål Wester <[EMAIL PROTECTED]> wrote:

> I found out that if i remove the DOCTYPE definition
> on top of the produced page, I get rid of the problem.
>
> Is there any way to keep the formatting and get rid of
> the DOCTYPE at the first line? I've tried changing it to
> loose, but thats not good either.
>
> mvh: Pål Wester
> høgskoleingenør/programmerer
>
>
> never.no as, stortingsgt 30, 0161 Oslo
> direkte: 22 01 66 34, 906 900 62
> tlf: 22 01 66 34, fax: 22 01 66 21
> http://never.no - icq:103476059
>
>
>
>   -Opprinnelig melding-
>   Fra: Pål Wester [mailto:[EMAIL PROTECTED]]
>   Sendt: 25. juni 2001 12:57
>   Til: Cocoon
>   Emne: ident and spaces
>
>
>   HI there...
>
>   I'm having problems with the fact that cocoon pages
>   removes spaces, tabs and linefeed. It seems that
>   Netscape 6 parse the pages differently...
>
>   How can I preserve the spaces on the output??
>   mvh: Pål Wester
>   høgskoleingenør/programmerer
>
>
>   never.no as, stortingsgt 30, 0161 Oslo
>   direkte: 22 01 66 34, 906 900 62
>   tlf: 22 01 66 34, fax: 22 01 66 21
>   http://never.no - icq:103476059
>
>
>
>
>

-
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: SV: ident and spaces (Netscape problem)

2001-06-26 Thread Sergio Carvalho


As a general rule, when removing the DOCTYPE removes a 'bug' on mozilla, it's just 
that mozilla is behaving correctly as per the standard (the one DOCTYPE refers to!), 
and reverts to quirk-mode when there's no DOCTYPE.

I had the same problem with image layout (which was introducing spurious space). In my 
case, I solved it with a CSS stylesheet changing image layout to block. 

Can you give specifics as to what layout problem are you having?

Sérgio

On Mon, 25 Jun 2001 14:16:26 +0200
Pål Wester <[EMAIL PROTECTED]> wrote:

> I found out that if i remove the DOCTYPE definition
> on top of the produced page, I get rid of the problem.
> 
> Is there any way to keep the formatting and get rid of
> the DOCTYPE at the first line? I've tried changing it to
> loose, but thats not good either.
> 
> mvh: Pål Wester
> høgskoleingenør/programmerer
> 
> 
> never.no as, stortingsgt 30, 0161 Oslo
> direkte: 22 01 66 34, 906 900 62
> tlf: 22 01 66 34, fax: 22 01 66 21
> http://never.no - icq:103476059
> 
> 
> 
>   -Opprinnelig melding-
>   Fra: Pål Wester [mailto:[EMAIL PROTECTED]]
>   Sendt: 25. juni 2001 12:57
>   Til: Cocoon
>   Emne: ident and spaces
> 
> 
>   HI there...
> 
>   I'm having problems with the fact that cocoon pages
>   removes spaces, tabs and linefeed. It seems that
>   Netscape 6 parse the pages differently...
> 
>   How can I preserve the spaces on the output??
>   mvh: Pål Wester
>   høgskoleingenør/programmerer
> 
> 
>   never.no as, stortingsgt 30, 0161 Oslo
>   direkte: 22 01 66 34, 906 900 62
>   tlf: 22 01 66 34, fax: 22 01 66 21
>   http://never.no - icq:103476059
> 
> 
> 
> 
> 

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

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




AW: [C2] Bug in HTML-Serializer?

2001-06-26 Thread Jörn Heid


First, the resulting page is smaller so it's not nicely formatted but it's
faster.

Second, not all browser will ignore that newline. E.g. NN 4.x will add more
space between the tables than the 10 pixels...

Ain't here anybody who can say to me if it is a bug? In C1 I think it would
work...


-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. Juni 2001 11:08
An: [EMAIL PROTECTED]
Betreff: RE: [C2] Bug in HTML-Serializer?


Why is this a problem?
Do you want to make the html human-readable? If not, don't care about it too
much. Your browser will ignore the newline.

hth,

tomK

-Original Message-
From: Jörn Heid [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 26 juni 2001 9:13
To: [EMAIL PROTECTED]
Subject: AW: [C2] Bug in HTML-Serializer?


Nobody understands me ;( My fault, of course.
The problem is that there's a newline in the ouput (that's my problem):

> BUT I get this with the html serializer (see the newline)
>
> 
> mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. Juni 2001 09:00
An: [EMAIL PROTECTED]
Betreff: Re: [C2] Bug in HTML-Serializer?


Hi

I don't think it's a bug, it's HTML.


To: Cocoon-Users <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 8:59 PM
Subject: [C2] Bug in HTML-Serializer?


> With this stylesheet
>
>  border="1"/>
> I get this with the xml serializer
>
>  src="/images/empty.gif"/>
> BUT I get this with the html serializer (see the newline)
>
> 
> 
>
> Is it a bug or a feature I don't want?
>
> Please help.
>
> In my stylesheet I do have
>
>
>
> BTW, how can I remove all those spaces between > and 
> JOERN_HEID
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


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

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


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

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

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

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


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

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




RE: [C2] Bug in HTML-Serializer?

2001-06-26 Thread tom . klaasen

Why is this a problem?
Do you want to make the html human-readable? If not, don't care about it too
much. Your browser will ignore the newline.

hth,

tomK

-Original Message-
From: Jörn Heid [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 26 juni 2001 9:13
To: [EMAIL PROTECTED]
Subject: AW: [C2] Bug in HTML-Serializer?


Nobody understands me ;( My fault, of course.
The problem is that there's a newline in the ouput (that's my problem):

> BUT I get this with the html serializer (see the newline)
>
> 
> mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. Juni 2001 09:00
An: [EMAIL PROTECTED]
Betreff: Re: [C2] Bug in HTML-Serializer?


Hi

I don't think it's a bug, it's HTML.


To: Cocoon-Users <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 8:59 PM
Subject: [C2] Bug in HTML-Serializer?


> With this stylesheet
>
>  border="1"/>
> I get this with the xml serializer
>
>  src="/images/empty.gif"/>
> BUT I get this with the html serializer (see the newline)
>
> 
> 
>
> Is it a bug or a feature I don't want?
>
> Please help.
>
> In my stylesheet I do have
>
>
>
> BTW, how can I remove all those spaces between > and 
> JOERN_HEID
>
>
> -
> 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: Handler:java.io.FileNotFoundException: /sitemap.xmap (No such fil e or directory)

2001-06-26 Thread tom . klaasen

Have a look at the cocoon.xconf file. Near the end, there is a line that
looks something like this:



My guess is that this has somehow changed on your machine to



(note the slash).

Try removing the slash.

hth,

tomK



-Original Message-
From: Apostolou, Kostantinos
[mailto:[EMAIL PROTECTED]]
Sent: dinsdag 26 juni 2001 9:26
To: '[EMAIL PROTECTED]'
Subject: Handler:java.io.FileNotFoundException: /sitemap.xmap (No such
fil e or directory)


Hi I got the following problem

java.io.FileNotFoundException: /sitemap.xmap (No such file or
directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:68)
at
org.apache.cocoon.environment.Source.getInputStream(Source.java:116)
at
org.apache.cocoon.environment.Source.getInputSource(Source.java:165)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:230)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:158)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:224)
at java.lang.Thread.run(Thread.java:479)

It seams that it can't find the sitemap.xmap file.
1.My $TOMCAT_HOME/webapps/cocoon dir looks like this

META-INF  WEB-INF  cocoon.xconf  docs  i18n  protected  resources
sitemap.xmap  stylesheets  sub  templates

I am using an ALPHA server 400 with REDHAT 6.2

JDK1.2

In my CLASS PATH I have the jar files of the following

nis1_2_1
jndi1_2_1
jndi1_1ea2_demo
rmregistry1_2_1
jaf-1.0.1
fscontext1_2beta3
cosnaming1_2_1

I got the Cocoon-2.0b1.tar.gz 
And I got a tomcat-3.2.1
My $TOMCAT_HOME/lib directory looks like 
ant.jar  jasper.jar  servlet.jar  test  webserver.jar  xerces_1_4_0.jar

I attatched the log file 

 <> 


Does anybody have any suggestion?

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




ndash problem Netscape 4.7

2001-06-26 Thread Mark van Dijk

Hi All,

I have a problem displaying a ndash in Netscape 4.7.

I tried to edit the Xerces HTMLEntities.res file, but nothing worked:

Display browser
ndash 8211   -> IE: –, NN: –
#8211 8211   -> IE: ?, NN: ? (no translation by xerces)
\#8211 8211  -> IE: &\#8211;, NN: &\#8211;
"#8211" 8211 -> IE: &"#8211";, NN: &"#8211";
– 8211  -> IE: &–, NN: &–
shy 8211 -> IE: ?, NN: ?
minus 8211   -> IE: ?, NN: ?

Netscape can understand the entities – and –. The ampersand and
semi-colon will be added automatically, so if I can let xerces translate
8211 into #8211 Netscape will understand and show the proper character.
Unfortunately the # is used in the HTNLEntities.res file as a remark
character.

My question: Is there an escape character that I can use in the
HTMLEntities.res file so I can add an # in the translation output? (example:
'escape char'#8211 8211 will be translated into –)

Best regards,

Mark


-
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 precompile the xsp ?

2001-06-26 Thread tom . klaasen

An XSP is only compiled the first time it is called. Each subsequent time,
this compiled version is used. So the way to "pre-compile" an XSP is to call
it in your browser.

hth,

tomK


-Original Message-
From: Ling Kok Choon [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 26 juni 2001 16:32
To: [EMAIL PROTECTED]
Subject: how to precompile the xsp ?


hi,

   I am developing a web application with Cocoon 2. But the xsp's
performance is not very good ( 
very slow ), so is it posible to precompile the xsp file ? and may i know
how to do it ?

Thank you.


>From Kok Cho0n.


Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 06/26/01
Time: 22:32:02

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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




Handler:java.io.FileNotFoundException: /sitemap.xmap (No such file or directory)

2001-06-26 Thread Apostolou, Kostantinos

Hi I got the following problem

java.io.FileNotFoundException: /sitemap.xmap (No such file or
directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:68)
at
org.apache.cocoon.environment.Source.getInputStream(Source.java:116)
at
org.apache.cocoon.environment.Source.getInputSource(Source.java:165)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:230)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:158)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:224)
at java.lang.Thread.run(Thread.java:479)

It seams that it can't find the sitemap.xmap file.
1.My $TOMCAT_HOME/webapps/cocoon dir looks like this

META-INF  WEB-INF  cocoon.xconf  docs  i18n  protected  resources
sitemap.xmap  stylesheets  sub  templates

I am using an ALPHA server 400 with REDHAT 6.2

JDK1.2

In my CLASS PATH I have the jar files of the following

nis1_2_1
jndi1_2_1
jndi1_1ea2_demo
rmregistry1_2_1
jaf-1.0.1
fscontext1_2beta3
cosnaming1_2_1

I got the Cocoon-2.0b1.tar.gz 
And I got a tomcat-3.2.1
My $TOMCAT_HOME/lib directory looks like 
ant.jar  jasper.jar  servlet.jar  test  webserver.jar  xerces_1_4_0.jar

I attatched the log file 

 <> 


Does anybody have any suggestion?

 cocoon.log

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