RE: JSP Server Page

2002-09-09 Thread Piroumian Konstantin
Title: Message



You need jasper-compiler.jar (jasper.jar won't help). 
And you should use paths starting with '/' as source for the JSPGenerator and 
JSPReader, e.g.:

-- 
Konstantin 
Piroumian 

  
  -Original Message-From: Sushil Bhattarai 
  [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 
  12:24 AMTo: [EMAIL PROTECTED]Subject: JSP 
  Server Page
  
  
  Hi
  I have been unable to run the JSP demo that comes with Cocoon2.0.2. I saw 
  in the discussion list that jasper.jar needs to be in WEB-INF/lib but that's 
  not helping either. I'm running Cocoon on Catalina (Tomcat 4.0.1).
  Sushil
  
  Join the world's largest e-mail service with MSN Hotmail. Click 
  Here- 
  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.1] How to get a favicon.ico in the browser.

2002-09-09 Thread Antonio Gallardo Rivera

I am trying to set the icon of the site with cocoon. My problem is I dont know 
what mime-type to set in the sitemap.xmap



 

The "favicon.ico" is in the directory: "/resources/images" and set in the 
stylesheet with the hardcoded string:





But the browser dont get it.

Please help me.

BTW, I am using: Tomcat 4.1.10, Cocoon 2.1 (last CVS) and J2SDK 1.4.1

Many thanks in advance ;)

Antonio Gallardo

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




avalon.excalibur ping of oracle fails

2002-09-09 Thread neil

Hi,
Has anyone using oracle already solved this one?

Although my app works OK, I'm getting debug messages (shown below) indicating that the 
database "ping" fails
so cocoon is dicarding the connection and creating a new one.
I guess its going slower than it could due to this.

I do have
  

  http://cvs.apache.org/viewcvs.cgi/jakarta-avalon-excalibur/datasource/src/java/org/apache/avalon/excalibur/datasource/AbstractJdbcCo
nnection.java?rev=1.16&content-type=text/vnd.viewcvs-markup



DEBUG   (2002-09-10) 13:54.51:787   [core.datasources.webtest_ora] 
(/cocoon/pinnacle/assetDetail.xsp)
HttpProcessor[8080][1]/ResourceLimitingPool: Got a 
org.apache.avalon.excalibur.datasource.Jdbc3Connection from the pool.
DEBUG   (2002-09-10) 13:54.51:787   [core.datasources.webtest_ora] 
(/cocoon/pinnacle/assetDetail.xsp)
HttpProcessor[8080][1]/AbstractJdbcConnection: Pinging database after 6910ms of 
inactivity.
DEBUG   (2002-09-10) 13:54.51:837   [core.datasources.webtest_ora] 
(/cocoon/pinnacle/assetDetail.xsp)
HttpProcessor[8080][1]/AbstractJdbcConnection: Ping of connection failed.
java.sql.SQLException: ORA-00923: FROM keyword not found where expected

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:643)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1674)
at 
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1870)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:363)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:314)
at 
org.apache.avalon.excalibur.datasource.AbstractJdbcConnection.isClosed(AbstractJdbcConnection.java:154)
at
org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcConnectionPool.validatePoolable(ResourceLimitingJdbcConnectionPool.java:1
08)
at 
org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.get(ValidatedResourceLimitingPool.java:99)
at 
org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource.getConnection(ResourceLimitingJdbcDataSource.java:174)
at
org.apache.cocoon.www.file_.C_.jakarta_tomcat_4_0_4_LE_jdk14.webapps.cocoon.pinnacle.oracle.locationAction_xsp.generate(C:\jakarta-t
omcat-4.0.4-LE-jdk14\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/file_/C_/jakarta_tomcat_4_0_4_LE_jdk14/weba
pps/cocoon/pinnacle/oracle\locationAction_xsp.java:335)


-
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: XMLForm data stored/retrieved via Session Transformer?

2002-09-09 Thread Ivelin Ivanov

Look at how the UserBean creates a DOM document.
Although it is created via the DOM API,
you can imagine how you could create the DOM from a file or another source.

- Original Message -
From: "Simon Price" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 4:56 PM
Subject: Re: XMLForm data stored/retrieved via Session Transformer?


> Ivelin Ivanov wrote:
>
> > XMLForm currently supports JavaBeans, DOM and mixed models.
> > You can look at the Feedback Wizard demo for example.
>
>
> I will look again, but it was not obvious to me how to pass a DOM model.
>
> > How do you mean that people will be using forms without writing Java
code.
> > We can write another Action to take as parameter a file name with the
XML
> > model, however how you you handle the input data once submitted. How
would
> > you implement the logic for handling the input data? This has been
requested
> > before, but noone has suggested a better replacement for Java when it
comes
> > to writing general purpose logic.
>
>
> Schematron could still be used to do validation. XSLT could operate on
> the model instance (built from the request) to so simple logic. I agree
> Java is better for complex logic, but XSLT would be a nice halfway
> between the modular database actions approach and the full XML Forms +
> JB approach.
>
> I'll try and work my ideas up into a full example to show what I'm
> thinking of.
>
> Another idea might be to use the flow engine to do some of the
> validation/processing. Although I don't think this would scale well, it
> would be a practical entry point for people moving from clientside to
> serverside - they could make use of their javascript skills and then
> later move on to java.
>
> Simon
>
>
> > Ivelin
> >
> >
> > - Original Message -
> > From: "Simon Price" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, September 08, 2002 2:45 PM
> > Subject: Re: XMLForm data stored/retrieved via Session Transformer?
> >
> >>Support for Alan's suggestion of a model in XML format
> >>
> >>I'm pretty certain that JXPath can be used with a DOM object so it
> >>should be possible for XMLForms to support both JBs and XML as the
model.
> >>
> >>Personally, I really like the idea of being able to create and
> >>manipulate the model without having to drop into Java. For many simple
> >>forms, its seems like complete overkill having to write beans.
> >>
> >>Irrespective of what I think, there's a strong argument for having an
> >>XML model: new Cocoon users and non-Java programmers will be able to
> >>take advantage of XML Forms.
> >>
> >>Cheers
> >>
> >>Simon
>
> ---
> Simon Price
> Institute for Learning and Research Technology
> University of Bristol
> 8-10 Berkeley Square
> Bristol BS8 1HH
> United Kingdom
>
> Direct: +44 (0)7071 226 720
> Office: +44 (0)117 928 7193
> Fax: +44 (0)117 928 7112
> [EMAIL PROTECTED]
> http://www.ilrt.bristol.ac.uk
>
>
> -
> 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: JSP Server Page

2002-09-09 Thread Lajos Moczar

Sushil -

You need to patch JSPGenerator and/or JSPReader in 2.0.2 in order to 
make it work. Or, much easier, upgrade to 2.0.3

Regards,

Lajos
galatea.com
Cocoon training, consulting & support


Sushil Bhattarai wrote:

> Hi
> 
> I have been unable to run the JSP demo that comes with Cocoon2.0.2. I 
> saw in the discussion list that jasper.jar needs to be in WEB-INF/lib 
> but that's not helping either. I'm running Cocoon on Catalina (Tomcat 
> 4.0.1).
> 
> Sushil
> 
> 
> 
> Join the world's largest e-mail service with MSN Hotmail. Click Here 
> 
> - 
> Please check that your question has not already been answered in the FAQ 
> before posting. To unsubscribe, e-mail: For additional commands, e-mail:


-- 



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

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




RE: XSP bug: can get generate() to skip elements using java 'if's

2002-09-09 Thread Per Kreipke

Note: in xsp.xsl, the topmost non-xsp element is handled specially but this
error still occurs if you nest like this:


  
if (...) {
  
  }
  else
  {

...

}

  


The culprit is the . If I comment it out, the error doesn't
happen.

Per


> The following XSP snippet will cause an ArrayIndexOutOfBoundsException in
> Cocoon 2.0.3 because the start of the outer element is never
> emitted to the
> SAX stream.
>
> XSP Snippet:
>
>
> 
>
>  
>   
> if (!request.isUserInRole("root"))
> {
>   Not authorized
> }
> else
> {
>   
> 
> 
>
>   
> }
>   
>  
>
> 
>
>
>
>
> Generated Java code:
>
> if (!request.isUserInRole("root"))
> {
>   xspAttr.addAttribute("", "security-error", "security-error",
> "CDATA", "Not
> authorized");
> }
> else
> {
>   this.contentHandler.startElement("", "page", "page", xspAttr);
>   xspAttr.clear();
>
> }
>
> this.contentHandler.endElement("", "page", "page");
>
>
>
> E.g. the start code for  isn't emitted. And I can't find a
> workaround:
> neither emitting characters or another element inside the 'if' makes it
> emit.
>
> Per
>
>
> -
> 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]>




XSP bug: can get generate() to skip elements using java 'if's

2002-09-09 Thread Per Kreipke

The following XSP snippet will cause an ArrayIndexOutOfBoundsException in
Cocoon 2.0.3 because the start of the outer element is never emitted to the
SAX stream.

XSP Snippet:




 
  
if (!request.isUserInRole("root"))
{
  Not authorized
}
else
{
  


  
}
  
 






Generated Java code:

if (!request.isUserInRole("root"))
{
  xspAttr.addAttribute("", "security-error", "security-error", "CDATA", "Not
authorized");
}
else
{
  this.contentHandler.startElement("", "page", "page", xspAttr);
  xspAttr.clear();

}

this.contentHandler.endElement("", "page", "page");



E.g. the start code for  isn't emitted. And I can't find a workaround:
neither emitting characters or another element inside the 'if' makes it
emit.

Per


-
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: XMLForm data stored/retrieved via Session Transformer?

2002-09-09 Thread Simon Price

Ivelin Ivanov wrote:

> XMLForm currently supports JavaBeans, DOM and mixed models.
> You can look at the Feedback Wizard demo for example.


I will look again, but it was not obvious to me how to pass a DOM model.

> How do you mean that people will be using forms without writing Java code.
> We can write another Action to take as parameter a file name with the XML
> model, however how you you handle the input data once submitted. How would
> you implement the logic for handling the input data? This has been requested
> before, but noone has suggested a better replacement for Java when it comes
> to writing general purpose logic.


Schematron could still be used to do validation. XSLT could operate on 
the model instance (built from the request) to so simple logic. I agree 
Java is better for complex logic, but XSLT would be a nice halfway 
between the modular database actions approach and the full XML Forms + 
JB approach.

I'll try and work my ideas up into a full example to show what I'm 
thinking of.

Another idea might be to use the flow engine to do some of the 
validation/processing. Although I don't think this would scale well, it 
would be a practical entry point for people moving from clientside to 
serverside - they could make use of their javascript skills and then 
later move on to java.

Simon


> Ivelin
> 
> 
> - Original Message -
> From: "Simon Price" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, September 08, 2002 2:45 PM
> Subject: Re: XMLForm data stored/retrieved via Session Transformer?
> 
>>Support for Alan's suggestion of a model in XML format
>>
>>I'm pretty certain that JXPath can be used with a DOM object so it
>>should be possible for XMLForms to support both JBs and XML as the model.
>>
>>Personally, I really like the idea of being able to create and
>>manipulate the model without having to drop into Java. For many simple
>>forms, its seems like complete overkill having to write beans.
>>
>>Irrespective of what I think, there's a strong argument for having an
>>XML model: new Cocoon users and non-Java programmers will be able to
>>take advantage of XML Forms.
>>
>>Cheers
>>
>>Simon

---
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom

Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
[EMAIL PROTECTED]
http://www.ilrt.bristol.ac.uk


-
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-timestamp | how to add a locale to the format attribute?

2002-09-09 Thread leo leonid

hi,
I've got this

and now I want to add a locale just like in
SimpleDateFormat(", d.  , h:mm a", Locale.US)

If it is possible to do this in XML, does anyone know the right syntax?
Thanks.
/Leo


-
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: german umlaut!

2002-09-09 Thread Vaskin Kissoyan

Check TOMCAT / CATALINA / APP Server settings: for example:

CATALINA_OPTS=-Dfile.encoding=ISO8859_1

I'm not sure if this over-rides the settings, I would assume the xml 
file or more specific config should over-ride, but you might want to 
check what your App Server is configured /defaulted to.


J.Pietschmann wrote:
> Wolle wrote:
> 
>> as soon as i try to get an output as txt-file (e.g. on a web-browser or
>> saving the content in a file) the german umlaut produced by the ue/oe 
>> keys
>> are produced wrong (e.g. ue as A1/4). but all encodings in the xml/xsl
>> file are correct. even the settings of the webbrowser are correct.
>>
>> the aim is to produce a proper text-output for latex.
>>
>> is the text-ouput of cocoon broken?
>>
> No. It is probably outputting UTF-8. I think you can choose the
> output encoding for the text serializer, check the default, and
> try to get the encoding you need (like ISO-8859-1).
> 
> J.Pietschmann
> 
> 
> -
> 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]>

-- 
Vaskin Kissoyan
Lokion Interactive
[EMAIL PROTECTED]
im (aol or yahoo): vkissoyan
voice:  301-588-0404
fax:  978-926-0515
http://www.lokion.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: german umlaut!

2002-09-09 Thread J.Pietschmann

Wolle wrote:
> as soon as i try to get an output as txt-file (e.g. on a web-browser or
> saving the content in a file) the german umlaut produced by the ue/oe keys
> are produced wrong (e.g. ue as A1/4). but all encodings in the xml/xsl
> file are correct. even the settings of the webbrowser are correct.
> 
> the aim is to produce a proper text-output for latex.
> 
> is the text-ouput of cocoon broken?
> 
No. It is probably outputting UTF-8. I think you can choose the
output encoding for the text serializer, check the default, and
try to get the encoding you need (like ISO-8859-1).

J.Pietschmann


-
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: german umlaut!

2002-09-09 Thread Wolle

hi!

thanks for the many suggestions.


i tried the following solution:

*
*4. Use a proper encoding declaration which matches the actual
*encoding of the file. For example, most platforms setup for
*a german language environment use ISO-8859-1, and usually
*editors use this as the default encoding. Placing
*   
*at the beginning of each XML file (XSLT is XML too) allows you
*to use native encoded umlauts.


this works great producing pdf.

but i still have a problem:

as soon as i try to get an output as txt-file (e.g. on a web-browser or
saving the content in a file) the german umlaut produced by the ue/oe keys
are produced wrong (e.g. ue as A1/4). but all encodings in the xml/xsl
file are correct. even the settings of the webbrowser are correct.

the aim is to produce a proper text-output for latex.

is the text-ouput of cocoon broken?


bye

wolfgang weigel


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




JSP Server Page

2002-09-09 Thread Sushil Bhattarai

Hi
I have been unable to run the JSP demo that comes with Cocoon2.0.2. I saw in the discussion list that jasper.jar needs to be in WEB-INF/lib but that's not helping either. I'm running Cocoon on Catalina (Tomcat 4.0.1).
SushilJoin the world’s largest e-mail service with MSN Hotmail. Click Here

-
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: german umlaut!

2002-09-09 Thread J.Pietschmann

Wolle wrote:
> has anybody a proper solution for involving german umlaute in a
> cocoon-framework?

You can read the XML spec for some hints, or check some other
publishing systems, like DocBook.

> i have some ideas like
> 
> 1. writing the umlauts in  unicode (so creating a pdf via fop will cause
> no problems)
> 2. writing them in tex-style like "u or "o an exchange them later in
> every xsl-file
> 3. using extra-markups like 

4. Use a proper encoding declaration which matches the actual
encoding of the file. For example, most platforms setup for
a german language environment use ISO-8859-1, and usually
editors use this as the default encoding. Placing
   
at the beginning of each XML file (XSLT is XML too) allows you
to use native encoded umlauts.
5. Use numerical character references, for example ” for ö.
You can place any unicode character in any XML file which has
an encoding which is a superset of ASCII.
The Unicode consortium has convenient tables for lookin up
characters online at
  http://www.unicode.org/charts/charindex.html
6. Get a DTD with entity definitions for some characters, like
a stripped down DocBook, or the HTML definitions (from
 http://www.w3.org/TR/html401/sgml/entities.html)
and use the aliases defined there, for example ö for ö.

J.Pietschmann


-
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: Xopus2 has been open sourced

2002-09-09 Thread Michael Wechner



Robert Koberg wrote:

> Hi Michael,
> 
> What are your thoughts on Xopus? Did you just need any client editor and Xopus
> was the best out of the choice(s)? Or do you believe Xopus to be an excellent
> product?


Well, both I think. Xopus has a very nice "architecture". It's really 
just W3C compliant XML, XSLT and XSD concerning what the CMS has to 
deliver to the client.

But if everything goes fine, then the Biflux Editor will also be
open sourced this week, which has a different architecture, but has
very nice features as well.


> 
> Have you compared it to the commercial version? Is it just 'less buggy' as they
> state or is there interesting functionality?


I guess you mean Q42's commercial version: I know their website is a bit
confusing about this point. It sounds like the Open Source version has 
more bugs than the commercial one. I don't know what the truth is, but
I guess they don't have different code bases. Maybe the Open Source 
version is just an older version. Maybe you can ask them on their 
mailing list. I am curious too.

The main difference seems that the commercial version has more
functionality than the OS version, such as for instance "Animations", 
which I think is very important with regard to usability.


> 
> It seems weird that they have the commercial version being sold as 'less buggy.'
> Is the OS version intentionally buggy to get people to buy the commercial
> version?


I really don't know, but I agree.


> 
> I am having trouble understanding this business model.


I agree, but I think they have the problem that they coded too
long without going Open Source. There is also a main difference between
a CMS and an Editor: With the CMS you can do a lot of integration work, 
but with the Editor there isn't much to do normally.

Michael



> 
> 
> -Rob
> 
> 
> 
> 
>>-Original Message-
>>From: Michael Wechner [mailto:[EMAIL PROTECTED]]
>>Sent: Sunday, September 08, 2002 9:51 PM
>>To: [EMAIL PROTECTED]
>>Cc: [EMAIL PROTECTED]
>>Subject: Re: Xopus2 has been open sourced
>>
>>
>>ok, Wyona now includes Xopus.
>>You can try it out at
>>
>>http://195.226.6.74:38080/wyona-cms/forum/authoring/index.html
>>
>>(login with "wyona" and "levi".)
>>
>>Note, that this publication is generating a RSS, which is XIncluded
>>by another publication:
>>
>>http://195.226.6.74:38080/wyona-cms/wyona.org/index.html
>>
>>I have also updated the documentation with regard to Xopus a bit:
>>
>>http://195.226.6.74:38080/wyona-cms/docs/xdocs/xopus2.html
>>
>>There you will find info on "Browser Requirements" to be able to use Xopus.
>>
>>In case you are interested in the code then just use the
>>CVS version:
>>
>>http://www.wyona.org/download/index.html
>>
>>The next step will be to get rid of the Wyona dependencies
>>and maybe move it to cocoon-apps or cocoondev
>>
>>Another step would be to further refactor it, for instance make
>>it work with arbitrary sources (for instance HSQLDB) or even
>>write a WebDAV driver for Xopus such that it can be used together
>>with Slide.
>>
>>Have fun
>>
>>Michael
>>
>>
>>
>>
>>
>>
>>Michael Wechner wrote:
>>
>>
>>>
>>>Marcelo F. Ochoa wrote:
>>>
>>>
Michael Wechner wrote:

>>>

I would like to include Xopus editor into DBPrism CMS.
But, probably we will meet at OSCOM San Francisco :) then I will use
this oportunity to know Xopus in deep.

>>>
>>>
>>>Sure. Yes, I am sure we will meet and we can connect it to DBPrism CMS
>>>just there on the spot if you like.
>>>BTW: Xopus will also give a presentation (we have to update the program
>>>though), quite probably on Thursday September 26 at 17:00.
>>>
>>>Michael
>>>
>>>
>>>
>
>Michael
>
>
  Best regards, Marcelo.


>>>
>>
>>--
>>OSCOM - Open Source Content Management Conference
>>September 25th - 27th 2002, Berkeley, California
>>http://www.oscom.org/conferences/berkeley2002/
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, email: [EMAIL PROTECTED]
>>
>>
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 


-- 
OSCOM - Open Source Content Management Conference
September 25th - 27th 2002, Berkeley, California
http://www.oscom.org/conferences/berkeley2002/


-
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: german umlaut!

2002-09-09 Thread Stefan Seifert

Just use a proper encoding for the XML file (i.e. UTF-8) and a UTF-8-able editor 
(under Windows i.e. XML Spy or JBuilder). Then you can just type the umlauts as any 
other chars in your document without problems.
The HTML Serializer by default will encode them when doing HTML output to iso encoding 
like ü etc.

Stefan

> -Original Message-
> From: Wolle [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 09, 2002 9:17 PM
> To: [EMAIL PROTECTED]
> Subject: german umlaut!
> 
> 
> hi cocooners!
> 
> has anybody a proper solution for involving german umlaute in a
> cocoon-framework?
> 
> i have some ideas like
> 
> 1. writing the umlauts in  unicode (so creating a pdf via fop 
> will cause
> no problems)
> 2. writing them in tex-style like "u or "o an exchange them later in
> every xsl-file
> 3. using extra-markups like 
> 
> i don't know. are there any solutions which had been tested already?
> 
> does anybody know a comfortable solution?
> 
> 
> 
> Auf bald
> 
> Wolfgang Weigel
> 
> 
> -
> 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]>




german umlaut!

2002-09-09 Thread Wolle

hi cocooners!

has anybody a proper solution for involving german umlaute in a
cocoon-framework?

i have some ideas like

1. writing the umlauts in  unicode (so creating a pdf via fop will cause
no problems)
2. writing them in tex-style like "u or "o an exchange them later in
every xsl-file
3. using extra-markups like 

i don't know. are there any solutions which had been tested already?

does anybody know a comfortable solution?



Auf bald

Wolfgang Weigel


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




XSP output: disable-output-escaping?

2002-09-09 Thread gv

Hi,

>From an XSP page, I am trying to output a Java
variable that contains the XML result of an external
script as XML, but my angle brackets are escaping to
character entities.

I have a Java String variable called 'scriptOutput'.
It's filled with a string of XML that comes from an
external script. My goal is have my XSP page output
this String as XML.

The results of my XSP looks something like this:

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


  

  




This is the result I want:

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


  

  




I tried fooling around with ,
, and  with no luck. I guess
I'm looking to do something similar to XSLT's
'disable-output-escaping'. Any ideas on if/how this
can be done?

Thanks,
John


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.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: Connecting to MS SQL Server

2002-09-09 Thread Christopher Watson

Lars

Assuming you're using the Microsoft 2000 JDBC driver,

1   Copy the three libraries from the unpacked distribution

msbase.jar
mssqlserver.jar
msutil.jar

to WEB-INF/lib

2   Add com.microsoft.jdbc.sqlserver.SQLServerDriver
to init-param in WEB-INF/web.xml, ending up with someting like ...


  load-class
  


com.mysql.jdbc.Driver


com.microsoft.jdbc.sqlserver.SQLServerDriver


  


3   Declare the datasource in cocoon.xconf, thus



jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mydb
myuser
mypassword


By the way, as far as I can gather, you CAN'T use windows authentication
with the JDBC driver,
so you must set the server to use mixed security. That might cause your
sysadmin to flutter!

Now you can use mypool as a pooled connection name, e.g. in esql as
  mypool

As for what you can do with esql, that's another story !

Christopher

> -Original Message-
> From: Lars Martinsen [mailto:[EMAIL PROTECTED]]
> Sent: 09 September 2002 11:02
> To: '[EMAIL PROTECTED]'
> Subject: Connecting to MS SQL Server
>
>
> Does anyone have a step-by-step on how to connect to a MS SQL
> Server and do
> SQL commands on it? I have tried to do it by reading all the help and
> how-tos that is bundeled with Cocoon, but I didn't manage.
>
> .lars martinsen
>
> -
> 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]>




New releases of Tomcat 4.1.10 and Pollo 0.35

2002-09-09 Thread Antonio Gallardo Rivera

Hi all,

Tomcat releases 4.1.10 stable release
http://jakarta.apache.org/site/news.html

Pollo releases 0.35
http://sourceforge.net/projects/pollo/

Regards,

Antonio Gallardo.

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




JSP and Cocoon

2002-09-09 Thread Shawn_McManus

Has anyone had success using the "include file" inside JSPs?

E.g.

<%@ include file="common/GeneralHeader.jsp" %>

If so, please give me some pointers?

Thanks,
Shawn


** CONFIDENTIALITY NOTICE **
THIS E-MAIL, INCLUDING ANY ATTACHED FILES, MAY  CONTAIN CONFIDENTIAL AND
PRIVILEGED INFORMATION  FOR THE SOLE USE OF THE INTENDED RECIPIENT(S).
ANY REVIEW, USE, DISTRIBUTION, OR DISCLOSURE BY  OTHERS IS STRICTLY
PROHIBITED.  IF YOU ARE NOT THE  INTENDED RECIPIENT (OR AUTHORIZED TO
RECEIVE  INFORMATION FOR THE RECIPIENT), PLEASE CONTACT  THE SENDER BY
REPLY E-MAIL AND REMOVE ALL COPIES  OF THIS MESSAGE.  THANK YOU.




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

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




NoSuchMethodException

2002-09-09 Thread Manish Shah

Hello,

I'm trying to use the evaluate() function in cocoon 2.0, which is a
saxon extension, but I get the following exception:

Error: java.lang.NoSuchMethodException: For extension function, could
not find method java.lang.String.evaluate([ExpressionContext,] ).;
SystemID:
file:/home/manish/cvs/ccimnet/app/src/web/console/profilers/agent/xsl/../../common/xsl/textfield.xsl;
 Line#: 46; Column#: -1



This used to work in cocoon 1.0. I am sure the latest saxon.jar file is
in my classpath. Any idea what else it could be?

Also: Ilya, thanks for the nullpointerexception suggestion. Turns out it
turns a nullpointerexception whenever there's any problem with the XSL
syntax.


Manish


-
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 do SOAP services work in 2.1?

2002-09-09 Thread Lajos Moczar

Quick question - I've tested out the hello.service example (in the 
samples/hello-world subproject from 2.1) from my SOAP client, and 
received back the expected XML content in the SOAP response. Then I 
created my own 'service', by simply having my own pipeline spit out XML. 
My question is: how does Cocoon know to encapsulate the response in 
SOAP? I've searched the source code and can't see where the logic is.

Any clues appreciated.

Regards,

Lajos
-- 
galatea.com
Cocoon training, consulting & support



-
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: Stylesheet selection by doctype?

2002-09-09 Thread Ben Young

Most impressive. 8o) I'm looking forward to giving it a try. Is it in the most recent 
snapshot?

Thanks again,
Ben

>>> Steven Noels <[EMAIL PROTECTED]> 09/07/02 13:40 PM >>>
On Sat, 7 Sep 2002, J.Pietschmann wrote:

> Vadim Gritsenko wrote:
> > Ben Young wrote:
> >> Is it possible to set up a sitemap that will select a different 
> >> stylesheet
> >> according to the XML Schema or doctype used in the content file?
> > No way that I'm aware of.
> 
> There is some talk on forrest-dev to implement exactly this.

It is already done, I'll commit it on Monday or when the kids allow during 
the weekend ;-)





-
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: Connecting to MS SQL Server

2002-09-09 Thread Leszek Gawron

On Mon, Sep 09, 2002 at 12:01:57PM +0200, Lars Martinsen wrote:
> Does anyone have a step-by-step on how to connect to a MS SQL Server and do
> SQL commands on it? I have tried to do it by reading all the help and
> how-tos that is bundeled with Cocoon, but I didn't manage.
For my development I'm using two drviers: Izmado (an ADO wrapper from
www.infozoom.de - quite slow for larger queries) and InetOpta
(www.inetsoftware.de)

to install the mssql server datasource:
1. download one of the drivers and put them into cocoon's web-xml/lib directory 
( for izmado you also have to copy a .dll file from driver zip file in to 
%WINDIR%/system32

2. in cocoon's web.xml file preload appropriate driver class:
 
  load-class
  



org.hsqldb.jdbcDriver
com.inzoom.jdbcado.Driver
com.inet.tds.TdsDriver

  


3. Add a datasource:
3a. for izmado it is:


false
jdbc:izmado:Provider=MSDASQL;Driver={Sql 
Server};Server=OUZO\CDN_OPTIMA;Database=CDN_Full;USER ID=SA;
sa


3b. for opta it is:


false

jdbc:inetdae7:localhost:1134?database=CDN_Full&charset=Cp1250
sa



tweak dburl for your needs and it will surely work 

I advice to use Inet Opta, but you'll have to pay ( 50 redistributable driver
licenses cost 3200$)

you can get trial versions of both drivers (with time and connection limit)
ouzo
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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

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




Need help with LuceneXMLIndexer

2002-09-09 Thread Ganael LAPLANCHE



Hi !I'd 
like to use this cocoon class to index XML pages...Where could I find 
examples of codes using this class ?Has anyone ever tried it 
?Thank you,Gan.


upload file-overwrite permission

2002-09-09 Thread Niket Anand

Hello All,
I am able to upload any file to /WEB-INF/work/image-dir directory as
specified in web.xml file.
If I want to upload same file again, it saves to directory with 1_image.gif
name(it saves with new file name by appending 1_ before actual file name).
I donot want to save it with new name but I want it to overwrite the
previous saved file.
How can I do this? as in CocoonServlet.java, it restrict the permission as
 private static final boolean ALLOW_OVERWRITE = false;

Please suggest any solution such that it can overwrite the file.
Thanks,
Niket



-
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: Xindice inside Xsp

2002-09-09 Thread John Moylan

You need to search the archives and google for information on how to use 
Xindice from Cocoon. It has been done many times before and is well 
documented. I myself use it. Have a look at the sitemap for 2.03 and 
grep for XMLDB.

John

fxp wrote:

>Thanks,
>but I really need to make xpath queries against my documents, and I thought
>Xindice was the key (it works fine). But if I can't  produce html pages from
>it within cocoon, it's useless.
>Exist seems to be ready for cocoon's users who don't know much about
>Java,(or haven't got time to invest much in it)
>(I've found th Exist xmldb.xsl (in the source), and its documentation.
>http://www.pm.tu-chemnitz.de:8080/cocoon/documents/apidocs/org/apache/cocoon
>/components/source/XMLDBSource.html
> I suppose it'll be a long job to apply it to xindice, even if the
>logicsheet is said to work with other xml db Api compliant database)
> I'll shift to exist.
>
>Thanks a lot for your Help.
>
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>  
>




**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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




Link: Guide: XSP Tutorial in German

2002-09-09 Thread Thomas Bayer

Germam: Einführung in die Erstellung von eXtensible Server Pages.

English: Introduction in the creation of eXtensible Server Pages.

Link: http://www.oio.de/public/xsp-grundlagen.htm

Orientation in Objects GmbH
Weinheimers Str. 68
68309 Mannheim
http://www.oio.de
Tel (0621) 71839-0


BEGIN:VCARD
VERSION:2.1
N:Bayer;Thomas;;Herr
FN:Thomas Bayer
TITLE:Geschäftsführer
TEL;WORK;VOICE:(0621) 71839-35
ADR;WORK:;;Weinheimer Str. 68;Mannheim;BW;68309;Deutschland
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Weinheimer Str. 68=0D=0AMannheim, BW 68309=0D=0ADeutschland
URL:
URL:http://www.oio.de
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010810T095047Z
END:VCARD



-
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: Connecting to MS SQL Server

2002-09-09 Thread Upayavira

Lars,

SQL Server 7 or 2000? To use SQL Server 7 you'll need to purchase a JDBC driver, as 
there are no free ones that I'm aware of. If you're using SQL Server 2000, then there 
is a 
JDBC driver supplied by Microsoft, that you can use. Once you've got your JDBC driver 
set up, getting it to work with Cocoon will be the same as connecting to any other 
database.

[note - haven't actually done the above, so I can't give you a more indepth howto].

Regards, Upayavira

> Does anyone have a step-by-step on how to connect to a MS SQL Server and do
> SQL commands on it? I have tried to do it by reading all the help and
> how-tos that is bundeled with Cocoon, but I didn't manage.
> 
> .lars martinsen
> 
> -
> 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: Connecting to MS SQL Server

2002-09-09 Thread David LAGARDERE

You first have to add your JDBC driver class in
the load-class section of your cocoon web.xml.
After that, add your JDBC source in cocoon.xconf like
the "personnel" datasource example which is given 
as an example.

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.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]>




Re: Stylesheet selection by doctype?

2002-09-09 Thread Steven Noels

Steven Noels wrote:

 >>> Ben Young wrote:

Is it possible to set up a sitemap that will select a different 
stylesheet
according to the XML Schema or doctype used in the content file?

> It is already done, I'll commit it on Monday or when the kids allow during 
> the weekend ;-)

Done. Kudos to <[EMAIL PROTECTED]> for implementing this.

http://outerthought.net/forrest/cap.html
http://cvs.apache.org/viewcvs/xml-forrest/src/scratchpad/src/java/org/apache/forrest/components/sourcetype/

ps: it requires the addition of nekopull.jar to your Cocoon classpath! 
(http://www.apache.org/~andyc/neko/doc/pull/)


-- 
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [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]>




Connecting to MS SQL Server

2002-09-09 Thread Lars Martinsen

Does anyone have a step-by-step on how to connect to a MS SQL Server and do
SQL commands on it? I have tried to do it by reading all the help and
how-tos that is bundeled with Cocoon, but I didn't manage.

.lars martinsen

-
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 2.0 and Content Aggregator Cacheability Troubles

2002-09-09 Thread David LAGARDERE

 Yes, everything is cacheable. When I test parts one
by one, it works fine and content is served from the
cache.
Any idea ?

Thanks.

DAvid

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.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]>




file-upload-overwrite permission

2002-09-09 Thread Niket Anand

Hello All,
I am able to upload any file to /WEB-INF/work/image-dir directory as
specified in web.xml file.
If I want to upload same file again, it saves to directory with 1_image.gif
name(it saves with new file name by appending 1_ before actual file name).
I donot want to save it with new name but I want it to overwrite the
previous saved file.
How can I do this? as in CocoonServlet.java, it restrict the permission as
 private static final boolean ALLOW_OVERWRITE = false;

Please suggest any solution such that it can overwrite the file.
Thanks,
Niket


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