Re: [Flow] Looking for docs!

2003-01-08 Thread Tony Collen
On Thu, 9 Jan 2003, Tony Collen wrote:

> Got it.  I assume any Java objects can be instantiated this way.  Where
> is the code that defines "Packages" however?  Is it part of Rhino, or is
> it being created elsewhere?  It seems like an odd automatic process...

Never mind about this part... found the docs at
http://www.mozilla.org/rhino/scriptjava.html where it says to use
Packages.*

Regards,

Tony



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

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




defining a global sitemap variable in terms of another?

2003-01-08 Thread icewind
Is it possible to define a global sitemap variable in
terms of another global sitemap variable? I am trying
it and it doesn't seem to work:

 
 /home/icewind0/cocoonfiles
 {global:base}/static
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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: [Flow] Looking for docs!

2003-01-08 Thread Tony Collen
On Wed, 8 Jan 2003, Ovidiu Predescu wrote:

> Unfortunately Tony, there isn't any documentation for the control flow.
> Yet!

I already started a Flow page on the Wiki... feel free to add whatever.

> I've started a project at work which uses the control flow. I'll
> document the control flow as part of explaining it to my colleagues. In
> the meantime, don't be shy and ask your questions on the mailing list.

Looking forward to reading it all! :)  More comments below...

> > var userRegistry =
> > Packages.samples.flow.prefs.logic.UserRegistry.getUserRegistry();
>
> UserRegistry is a class defined and used by the 'prefs'

Got it.  I assume any Java objects can be instantiated this way.  Where
is the code that defines "Packages" however?  Is it part of Rhino, or is
it being created elsewhere?  It seems like an odd automatic process...

> > and thinks like
> >
> > cocoon.createSession();
>
> 'cocoon' is a special object made available to JavaScript scripts by
> control flow engine. For a list of methods and attributes it has,
> checkout the org.apache.cocoon.components.flow.javascript.JSCocoon
> class.

Found it already.. I seem to be on the right track.  It's funny, I'll post
something to a list, and then two minutes later I'll track down where all
the stuff was... oh well :)

I've tracked down JSCocoon and JSLog.  I've already found how Rhino binds
the specially-named functions in the Java class to methods of the JS
objects.  I now see the a bunch of methods of cocoon such as:

cocoon.getEnvironment()
cocoon.getRequest()
cocoon.getSession()

Along with load(), createSession(), etc.  I'm also able to follow along
with the prefs.js sample.  I do have a few questions about a couple lines
I've found in prefs.js though:

login = cocoon.request.getParameter("login");
and
login = cocoon.request.get("login");

a) What's the difference between the two?

b) Where is cocoon.request being created?

> Besides JSCocoon, checkout the system.js file in the same directory
> with JSCocoon. It contains the "special" functions defined by the
> control flow engine.

Bingo.  I see sendPage(), etc.  Thanks for the help & pointers!

Regards,

Tony


-
Please check that your 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: [Flow] Looking for docs!

2003-01-08 Thread Ovidiu Predescu
Unfortunately Tony, there isn't any documentation for the control flow. 
Yet!

I've started a project at work which uses the control flow. I'll 
document the control flow as part of explaining it to my colleagues. In 
the meantime, don't be shy and ask your questions on the mailing list.

On Wednesday, Jan 8, 2003, at 18:10 US/Pacific, Tony Collen wrote:

Hi everybody,

I'm working on getting up to speed on the FlowScript in Cocoon.  
(Yeah, I
know I'm a slacker...)  I've been digging through the JavaScript in
samples/flow/examples, particularly the "prefs" sample.  I see all 
sorts
of interesting objects that are floating around that I'm not sure 
where to
find the documentation on, such as:

var userRegistry =
Packages.samples.flow.prefs.logic.UserRegistry.getUserRegistry();

UserRegistry is a class defined and used by the 'prefs' sample.


and thinks like

cocoon.createSession();


'cocoon' is a special object made available to JavaScript scripts by 
control flow engine. For a list of methods and attributes it has, 
checkout the org.apache.cocoon.components.flow.javascript.JSCocoon 
class.

are confounding me.  I notice that the UserRegistry.getUserRegistry()
corresponds with the code in the appropriate subdirectory.  I also see
sendPage() and sendPageAndWait(), which I have seen copious amounts of
discussion on the lists about.  Where would be a good place to see a
listing of all the "extra" objects that are available to use in the 
Flow
javascript?

Besides JSCocoon, checkout the system.js file in the same directory 
with JSCocoon. It contains the "special" functions defined by the 
control flow engine.

I of course will document any findings and information I happen to
aggregate as I go along.


They'll be surely appreciated.

Best regards,
Ovidiu


-
Please check that your 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 dtd

2003-01-08 Thread Ivelin Ivanov

Shah,

There is no DTD available at this point.
The goal is to eventually use the XForms DTD or a subset of it, once XForms
is finalized.

Ivelin



- Original Message -
From: "Yatin Shah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 2:20 PM
Subject: xmlform dtd


> Hello all,
> Anyone know where can I find the dtd for
xmlform(xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002";)?
> I'm interested in learning about all available
> UI types for use in the form xml files.
> [It's not included in src/documentation/xdocs/drafts,
src/documentation/xdocs/dtd/ or src/webapp/WEB-INF/entities]
>
> Thanks
> 
>
>
> --
> Yatin Shah, President   mailto:[EMAIL PROTECTED]
> Kripa Inc.  http://www.kripa.com
> Dayton, New Jersey USA  phone:  732.329.8303
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Developers of real time event driven distributed DB applications
>
>
>
> -
> Please check that your 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]>




[Flow] Looking for docs!

2003-01-08 Thread Tony Collen
Hi everybody,

I'm working on getting up to speed on the FlowScript in Cocoon.  (Yeah, I
know I'm a slacker...)  I've been digging through the JavaScript in
samples/flow/examples, particularly the "prefs" sample.  I see all sorts
of interesting objects that are floating around that I'm not sure where to
find the documentation on, such as:

var userRegistry =
Packages.samples.flow.prefs.logic.UserRegistry.getUserRegistry();

and thinks like

cocoon.createSession();

are confounding me.  I notice that the UserRegistry.getUserRegistry()
corresponds with the code in the appropriate subdirectory.  I also see
sendPage() and sendPageAndWait(), which I have seen copious amounts of
discussion on the lists about.  Where would be a good place to see a
listing of all the "extra" objects that are available to use in the Flow
javascript?

I of course will document any findings and information I happen to
aggregate as I go along.

Thanks,

Tony


-
Please check that your 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: How to get back XMLForm data to Cocoon

2003-01-08 Thread Kirchhoff, Lars
hello sylvain,

I'm using the page parameter, which is returned from the action 
class to separate the stylesheets for the forms and the one for 
the actual output. Below an example of the sitemap.

-- code 

  

  

  

  
  
  
   

  
  
   
-- /code 

to have different formats to be used I returned another parameter 
from the action called format, which is a databean property and 
can be choosen in one of my forms. 

Instead of return page( VIEW_SOMETHING ), I do the following:

-- code 
Map sitemapParams = new HashMap();
 
... some code .

sitemapParams.put( "page", VIEW_SOMETHING );

sitemapParams.put( "format", jBean.getFormat() );

return sitemapParams;   
-- /code 

ciao Lars


> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 8. Januar 2003 22:06
> An: [EMAIL PROTECTED]
> Betreff: How to get back XMLForm data to Cocoon
> 
> 
> Hello,
> 
> I'm using XMLForm to collect information.
> With these information I retrieve a result from a database 
> (with Java code in the Action file).
> 
> Now I want to take this result to display it on the screen. 
> And I want to use the Cocoon publication features.
> 
> My question is: how to get back this result to display it with Cocoon?
> 
> 
> Thank you
> Sylvain
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




XMLform JavaBean and Database Connection Pool

2003-01-08 Thread Kirchhoff, Lars
Hello,

hello I have a question related to xmlform and database connections.

I would like to know which would be the best way to implement database 
connections and querys. 
So far I tried to put all database connection into methods within the 
javabean. therefore I didn't used the cocoon database connection pool.
I run into several problems as I tried this.
I also tried to get a connection from the cocoon connection pool in 
the action class of the xmlform. after I got this I passed the connection
to the bean. this seemes to work, but causes sometimes system hangs and 
its in my opinion not a good solution. 

My question is now what would be a good way to feed the databean 
with data from a database?
Should be all database actions take place in the action class?

ciao Lars

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

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




[2.0.4] SQLTransformer and j2ee vs. jdbc datasource

2003-01-08 Thread Renaud Bruyeron

I am facing a weird problem with the SQLTransformer.
This happens with cocoon 2.0.4 on jdk1.3.1 running in Tomcat 4.1.12

I have a J2EE Datasource defined via Tomcat's JNDI (the db is MySQL) bound
at "java:comp/env/jdbc/Publisher"

I am trying to get cocoon to use that datasource via the
 element
in the cocoon.xconf:

...
  

  Publisher

  
...

(I guess this should be for the Avalon-Excalibur list, but here we go:
I had to read the source of Excalibur's J2eeDataSource to understand
that this component prepends "java:comp/env/jdbc" to what I put in the
...This is counter-intuitive, I must say. Either document it
or make it use the full JNDI name...)

I can't get the SQLTransformer to process the following xml using this
"publisher" datasource:

...

  
 SELECT publish.headline, publish.bodytext, publish.urllink,
publish.URLtitle, publish.imgloc, publish.imgALT, publish.section
FROM publish,publish_sections
WHERE publish_sections.section = 'homenews' AND
publish_sections.live_id = publish.id
  

...

It insists on turning this into http://apache.org/cocoon/SQL/2.0"; />

By modifying SQLTransformer with debug statements, I *know* that the SQL
query went through and did return a line at least. But the Transformer fails
to send the corresponding sax events down the pipe...

Even stranger, if instead of using the J2eeDataSource I use the
JdbcDataSource component (which defines a cocoon-internal connection pool)
with the same name and MySQL parameters, it all works:



  
  
  jdbc:mysql://localhost:3306/?autoReconnect=true
  
  

  

This is what really gets me: using the j2eedatasource, it does not work, but
using the jdbcdatasource, it works. and I *know* that even with the
j2eedatasource, the SQL part of the transformer works (i.e the ResultSet is
not empty). Weird...

Anyone has an idea? I am about to dive into SQLTransformer even further to
nail down this problem, but if anyone has an idea to put me on the right
track, I would be most grateful :)

To be fully complete, this is the output of the LogTransformer for the
 element:
[startPrefixMapping] prefix=,uri=http://apache.org/cocoon/SQL/2.0
[startElement] uri=http://apache.org/cocoon/SQL/2.0,local=rowset,raw=rowset
[] 1.
uri=http://apache.org/cocoon/SQL/2.0,local=nrofrows,qname=nrofrows,type=CDAT
A,valu
e=0
[] 2.
uri=http://apache.org/cocoon/SQL/2.0,local=name,qname=name,type=CDATA,value=
news
[endElement] uri=http://apache.org/cocoon/SQL/2.0,local=rowset,qname=rowset
[endPrefixMapping] prefix=

 - Renaud


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.437 / Virus Database: 245 - Release Date: 06/01/2003




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

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




trouble using xsp input logicsheet in cocoon 2.0.4

2003-01-08 Thread Timothy Larson
When I try to use the XSP Input logicsheet in cocoon-2.0.4 I get this error:
   /org/apache/cocoon/components/language/markup/xsp/java/input.xsl; Line 199; Column 
54;
   Could not find template named: get-string-attribute
Looking in the cocoon source, "get-string-attribute" is only mentioned in this 
input.xsl file,
but no template with this name is ever defined.

What am I missing?

Tim



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

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




trouble using xsp input logicsheet in cocoon 2.0.4

2003-01-08 Thread Timothy Larson
When I try to use the XSP Input logicsheet in cocoon-2.0.4 I get this error:
   /org/apache/cocoon/components/language/markup/xsp/java/input.xsl; Line 199; Column 
54;
   Could not find template named: get-string-attribute
Looking in the cocoon source, "get-string-attribute" is only mentioned in this 
input.xsl file,
but no template with this name is ever defined.

What am I missing?

Tim



-
Please check that your 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: Regexp matching

2003-01-08 Thread Geoff Howard
ah, that could be it as well - i'm using those in 2.1.  Same JVM, but I
don't
think that comes into play.  I'd do a diff on the regexp matcher from 2.0.4
to 2.1HEAD - maybe that will turn something up?

Geoff

> -Original Message-
> From: John R. Daily [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 08, 2003 1:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Regexp matching
>
>
> At (time_t)1042043581 "Geoff Howard" wrote:
>
> > I'm not sure why, but in the regexp matcher I'm using I have []
> around the
> > last slash, so try:
> > 
>
> That doesn't work either, unfortunately.  What version of cocoon
> are you using?
>
> I'm using 2.0.4, with Java 1.4.1 (beta).
>
> -John
>
> -
> Please check that your 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]>




xmlform dtd

2003-01-08 Thread Yatin Shah
Hello all,
Anyone know where can I find the dtd for xmlform(xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002";)?
I'm interested in learning about all available
UI types for use in the form xml files.
[It's not included in src/documentation/xdocs/drafts, src/documentation/xdocs/dtd/ or src/webapp/WEB-INF/entities]

Thanks



--
Yatin Shah, President   mailto:[EMAIL PROTECTED]
Kripa Inc.  http://www.kripa.com
Dayton, New Jersey USA  phone:  732.329.8303
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Developers of real time event driven distributed DB applications



-
Please check that your 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: Regexp matching

2003-01-08 Thread John R. Daily
At (time_t)1042043581 "Geoff Howard" wrote:

> I'm not sure why, but in the regexp matcher I'm using I have [] around the
> last slash, so try:
> 

That doesn't work either, unfortunately.  What version of cocoon
are you using?

I'm using 2.0.4, with Java 1.4.1 (beta).

-John

-
Please check that your 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 webpage in Arabic

2003-01-08 Thread Jeremy Quinn
Thanks everyone for your insightful replies.

regards Jeremy


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

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




Comparison in ESQL doesn't work

2003-01-08 Thread Johannes . Becker
Hi,

I have a strange problem. I'm trying to compare two values in the
""-Part with an if-compare, but somehow the if-construct
is never entered even if there are matches.
(I put the System.out's to see if there are matches. There are some.)


Here my XSP:

http://apache.org/xsp";
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
  xmlns:esql="http://apache.org/cocoon/SQL/v2";>




  
  
String report_id = ;
String service_id = ;
  

  


  

  
SELECT DESCRIPTION, ID
  FROM REPORT
   
  

  

  


  


  System.out.println("\'" + report_id + "\' ==
\'" +  +"\'");
  if(report_id == )
  {
System.out.println("Yipie");

  }



  
  
  
  
  

  


  





Thanks
Jonny



This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
information
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.




-
Please check that your 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 with Websphere V5, anyone?

2003-01-08 Thread Sree A Ratnasinghe




Hello,
I am new to cocoon and am porting a cocoon app from tomcat  4.1.1.8
to Websphere V5.0.

The app works for the most part after porting. I can successfully serve
html, jsp and xml pages.
However, whenever I try to serve an xsp page (sits in the war file),
I get the following error:

The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode
notifies that org.apache.cocoon.ProcessingException says:
Failed to execute pipeline.
More precisely:

org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
org.apache.cocoon.ProcessingException: Exception during processing of
file:/c:/ibm/was5/installedApps/sreeserver/coe_war.ear/coe.war/:
java.io.FileNotFoundException:
c:\ibm\was5\installedApps\sreeserver\coe_war.ear\coe.war (Access is denied)

The access is denied exception was interesting because java 2 security,
indeed all security is off.

If the same xsp page is renamed to a JSP it will at least attempt to parse
it rather than the access denied exception.

Has anyone run into this?

Thanks,
Sree


-
Please check that your 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: Output beautifier

2003-01-08 Thread Miles Elam
Luca Morandini wrote:


1) have you checked your XML serializer declaration has the "indent" element set to "yes" ? If it is set to "no", the indenting is stripped off while serializing

2) You should use the "exclude-result-prefixes" attribute of your "xsl:stylesheet" element to get rid of those unwanted namespaces

Best regards,


Best regards to you.  This was exactly what I was looking for.  Thank you.

And thank you Arjé for that Wiki reference.

- Miles



-
Please check that your 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: Regexp matching

2003-01-08 Thread Geoff Howard
I'm not sure why, but in the regexp matcher I'm using I have [] around the
last slash, so try:


Those cases _should_ be equivalent but mine's working and yours isn't.  I
don't remember if I did that to make the conditional match more clear at a
glance or because it didn't work without it.  I don't know which regexp
engine is being used under the covers - maybe it has some
bugs/idiosyncrasies, or has different opinions about regexp syntax than we
seem to have. ;)

HTH,
Geoff Howard

> -Original Message-
> From: John R. Daily [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 08, 2003 11:06 AM
> To: [EMAIL PROTECTED]
> Subject: Regexp matching
>
>
> I have a path that I'm matching with wildcards as:
>
> 
>
> Unfortunately, that doesn't match if another / is appended, so I
> switched to regexp matching:
>
> 
>
> ...which still doesn't work if a / is appended.
>
> I can't find any useful documentation on the regexp matching.  Am
> I doing something wrong?  Is there a way to do this with wildcard
> matching?
>
> --
> John R. Daily[EMAIL PROTECTED]
> Director of TechnologyProgeny Linux Systems
> Master of the ephemeral epiphany
>
> -
> Please check that your 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 building using new mail component.

2003-01-08 Thread Antonio Gallardo
Hi.

Sorry to point to the same thing again. ;-)

Still there is a build error based on

import javax.mail.internet.MimePart.

I know the problem is based on the missing mail.jar, but this can be fixed
in the build.xml.

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




Regexp matching

2003-01-08 Thread John R. Daily
I have a path that I'm matching with wildcards as:



Unfortunately, that doesn't match if another / is appended, so I
switched to regexp matching:



...which still doesn't work if a / is appended.

I can't find any useful documentation on the regexp matching.  Am
I doing something wrong?  Is there a way to do this with wildcard
matching?

--
John R. Daily[EMAIL PROTECTED]
Director of TechnologyProgeny Linux Systems
Master of the ephemeral epiphany

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

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




Slide/Cocoon Domain Sharing

2003-01-08 Thread Julian Klein
Hi all,

I am currently trying to integrate slide content with
the publishing content of Cocoon.  I have the built
the latest and greatest cocoon version on Red Hat 8,
java 1.4.  I was wondering if anyone has been able to
get the slide webapp and the webdav servlet to run all
in the same servlet container with cocoon.  I have set
up the slide-webdavservlet.jar in
$TC/webapps/cocoon/WEB-INF/lib
and added the servlet config to the web.xml in
$TC/webapps/cocoon/WEB-INF/.  I originally used the
slide-servlet and web.xml that came with cocoon
scratchpad, but then switched to my
slide-webdavservlet.jar from a recent slide 2.x build.
 I have tried changing settings in cocoon.xconf and
the web.xml, but I can never get both to  share the
same org.apache.slide.Domain instance...therefore they
do not run in unison...or at all.  Any suggestions
would be greatly appreciated.

-Julian

=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
"Entities should not be multiplied unneccesarily"
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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: Cocoon webpage in Arabic

2003-01-08 Thread Konstantin Piroumian
From: "Jeremy Quinn" <[EMAIL PROTECTED]>

> Dear All,
>
> I just found out yesterday that I have to have a page in Arabic on a
> site I am working on that is otherwise in English, with a bit of French
> and Spanish (using UTF-8).
>
> I have never worked in non-latin languages before!

Take a look at the i18n sample in Cocoon 2.1 - there a lot of non-latin
languages and it'd be fine to add arabic translation to it. You can start
experimenting there.

>
> Can anyone advise me what kind of issues I will face?
>
> Does utf-8 cover Arabic?

Yes. You'd better use Unicode (UTF-8, UTF-16) from scratch so you'll have
less problems in future.

> Are there different 'xml:lang' specifiers for different forms of Arabic?
> Do you have to do anything special in the generated HTML to reverse the
> text-flow?

I've seen several special tags in HTML for bi-directional content, see:
http://www.w3.org/TR/html4/intro/intro.html#h-2.3.1 - general information
about Internationalization in HTML
http://www.w3.org/TR/html4/charset.html - document representation (character
sets, etc.)
http://www.w3.org/TR/html4/struct/dirlang.html - Language information and
text direction

Regards,
  Konstantin

>
> Please excuse my extreme ignorance!
>
> Thanks for any help.
>
> regards Jeremy
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


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

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




Re: Cocoon webpage in Arabic

2003-01-08 Thread J.Pietschmann
Jeremy Quinn wrote:

Does utf-8 cover Arabic?

Yes. UTF-8 covers all of Unicode. Look the character codes
up in the Unicode character index
 http://www.unicode.org/charts/charindex.html
You can either use an Unicode-aware editor which allows you
to enter arabic directly, or use character references with
any text or XML editor.


Are there different 'xml:lang' specifiers for different forms of Arabic?

It should not be necesary to specify xml:lang, unless some
application *explicitely* requires it.


Do you have to do anything special in the generated HTML to reverse the 
text-flow?
It's a task for the browser to do the correct thing.
Mozilla/Netscape is known to work. IEx 5.5/6.0 ought to
work too, but I never tried myself. Note that the client
machine needs to have arabic or reasonably complete
Unicode fonts installed, and the browser must know
about them. This can be tricky for Unix platforms.
Win2k, WinXP and recent Linux releases work; WinME,
WinNT don't work out of the box.

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




AW: Cocoon webpage in Arabic

2003-01-08 Thread Ines Robbers
Hi Jeremy,

I found something on that in "Beginning XML" by D. Hunter on page 48, in
case you have it :-)
It sais that Unicode is designed to cover all of the characters in *any*
human language.
Also it is recommended to use UTF-16 for any other language that is not
English because the file size would be smaller.

These two arabic sites however use charset=windows-1256:
http://www.aljazeera.net/
http://news.bbc.co.uk/hi/arabic/news/ 

http://www.arabynet.com uses UTF-8:



Regarding the reverse flow:
"Unicode includes the default writing mode for each character. Thus,
Arabic is automatically presented right-to-left. If you want it
presented left-to-right, you need to use the bidi-overide attriute of
fo:inline. This also allows you to embed left-to-rigth text into
right-to-left data (e.g., English words embedded in an Arabic stream)."
http://www.biglist.com/lists/xsl-list/archives/200201/msg01289.html

This thread on a multilangauge experiment could be interesting too:
http://lists.xml.org/archives/xml-dev/24/msg00395.html

What international encodings are supported by Xerces-J?
ISO Latin Arabic (ISO-8859-6) 
EBCDIC Arabic (ebcdic-cp-ar1)
http://xml.apache.org/xerces2-j/faq-general.html#faq-6

And more...
جدول

Mapping:

   
   

http://xml.coverpages.org/unicode22-SampleAliases2.xml

This might be useful to you too:
This shows how to use the xml:lang attribute to indicate to a search
engine where to find the Arabic version of a document.
http://example.com/manual/arabic.html"/>
http://www.w3.org/TR/2002/WD-xhtml2-20021211/mod-link.html


http://lists.xml.org/archives/xml-dev/24/msg00445.html

Ok, exotic... SVG in arabic:
http://www.zvon.org/HowTo/Output/BEtestsuite_structure-lang-BE-08.php


Regards,

Ines



* -Ursprüngliche Nachricht-
* Von: Jeremy Quinn [mailto:[EMAIL PROTECTED]] 
* Gesendet: Mittwoch, 8. Januar 2003 13:04
* An: [EMAIL PROTECTED]
* Betreff: Cocoon webpage in Arabic
* 
* 
* Dear All,
* 
* I just found out yesterday that I have to have a page in Arabic on a 
* site I am working on that is otherwise in English, with a bit 
* of French 
* and Spanish (using UTF-8).
* 
* I have never worked in non-latin languages before!
* 
* Can anyone advise me what kind of issues I will face?
* 
* Does utf-8 cover Arabic?
* Are there different 'xml:lang' specifiers for different forms 
* of Arabic? Do you have to do anything special in the 
* generated HTML to reverse the 
* text-flow?
* 
* Please excuse my extreme ignorance!
* 
* Thanks for any help.
* 
* regards Jeremy
* 
* 
* -
* Please check that your question  has not already been answered in the
* FAQ before posting. 
* 
* To unsubscribe, e-mail: <[EMAIL PROTECTED]>
* For additional commands, e-mail:   <[EMAIL PROTECTED]>
* 
* 



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

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




How to get back XMLForm data to Cocoon

2003-01-08 Thread Sylvain.Thevoz
Hello,

I'm using XMLForm to collect information.
With these information I retrieve a result from a database (with Java code in the 
Action file).

Now I want to take this result to display it on the screen. And I want to use the 
Cocoon publication features.

My question is: how to get back this result to display it with Cocoon?


Thank you
Sylvain

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

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




cocoon login action

2003-01-08 Thread Charlene Mitchell
Here's an easy one (?)

I use form authentication in my web.xml and my login
page posts to j_security_check

When a user logs in I want to set some attributes in
the session.

How can I integrate my own login action to be called
after j_security_check has been carried out?

e.g. the flow will be

1. user accesses - http://localhost:8080/myPage.jsp
2. web.xml points to "/login"
3. Cocoon picks up "/login" and redirects to
"/login.html"
4. "login.html" posts credentials to
"j_security_check"
**5. login-action class gets values and sets them in
session
6. user redirected back to page requested, namely:
http://localhost:8080/myPage.jsp

I am missing step 5

Thanks (in advance and hope...)

Charlene

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.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]>




AW: Return value from Stored Procedure

2003-01-08 Thread Raffy
Hi Igor, 

try something like this:


Hope this helps.

Raffy

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Gesendet: Mittwoch, 8. Januar 2003 13:48
An: [EMAIL PROTECTED]
Betreff: Return value from Stored Procedure


Please, can you give me an example, 
how can i get the return-value of 3. "OUT"-parameter here: 
{call sp_add_user(,
userpass, 
)} 
 


I have always "no results", but my Stored Procedure returns always 888: 
procedure sp_add_user( 
name in varchar2 default null, 
pass in varchar2 default null, 
outer out number) 
as 
temp_int int; 
begin 
  temp_int :=888; 
  outer := temp_int; 
end sp_add_user; 
I use Oracle 8, Tomcat 4.0.16 and Cocoon 2.0.3. 
This is very important and i cannot find anything in internet about it. 
Thank you very much! 
Best regards. 


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.


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

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




Re: Problem expanding Cocoon.

2003-01-08 Thread Jacob Bager



Don't mind this question anymore... 
 
I figured it out .. i strangly had to 
use
 
export 
CATALINA_OPTS='-Xbootclasspath/a:/path/to/pja.jar \ 
-Dawt.toolkit=com.eteks.awt.PJAToolkit \ -        
Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment \ 
-Djava.awt.fonts=/usr/local/jdk/jre/lib/fonts/'
 
After restart the Tomcat, Cocoon seams to 
work...
 

  - Original Message - 
  From: 
  Jacob Bager 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, January 08, 2003 12:42 
  PM
  Subject: Problem expanding Cocoon.
  
  Hey..
   
  Im running Tomcat 4.1.18, with java1.4.1 on a 
  Linux Distribution.
   
  And can't get cocoon to run/expand.
  In the logs i get this.
   
  2003-01-08 11:59:38 HostConfig[localhost] 
  Exception while expanding web application archive 
  cocoon.warjava.io.FileNotFoundException: 
  /var/tomcat4/webapps/cocoon/META-INF/MANIFEST.MF (No such file or 
  directory)    at 
  java.io.FileOutputStream.open(Native 
  Method)    at 
  java.io.FileOutputStream.(FileOutputStream.java:176)    
  at 
  java.io.FileOutputStream.(FileOutputStream.java:131)    
  at 
  org.apache.catalina.startup.HostConfig.expand(HostConfig.java:813)    
  at 
  org.apache.catalina.startup.HostConfig.expand(HostConfig.java:768)    
  at 
  org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:500)    
  at 
  org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410)    
  at 
  org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)    
  at 
  org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)    
  at 
  org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) 
      at 
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)    
  at 
  org.apache.catalina.core.StandardHost.start(StandardHost.java:738)    
  at 
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)    
  at 
  org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)    
  at 
  org.apache.catalina.core.StandardService.start(StandardService.java:497)    
  at 
  org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)    
  at 
  org.apache.catalina.startup.Catalina.start(Catalina.java:512)    
  at 
  org.apache.catalina.startup.Catalina.execute(Catalina.java:400)    
  at 
  org.apache.catalina.startup.Catalina.process(Catalina.java:180)    
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
  Method)    at 
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    
  at 
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    
  at 
  java.lang.reflect.Method.invoke(Method.java:324)    
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
   
  What the h*** is wrong?
   
  Jacob 
  Bager[EMAIL PROTECTED]Developer 
  http://www.An-Concepts.dk


login action

2003-01-08 Thread Charlene Mitchell
Here's an easy one (?)

I use form authentication in my web.xml and my login
page posts to j_security_check

When a user logs in I want to set some attributes in
the session.

How can I integrate my own login action to be called
after j_security_check has been carried out?

e.g. the flow will be

1. user accesses - http://localhost:8080/myPage.jsp
2. web.xml points to "/login"
3. Cocoon picks up "/login" and redirects to
"/login.html"
4. "login.html" posts credentials to
"j_security_check"
**5. login-action class gets values and sets them in
session
6. user redirected back to page requested, namely:
http://localhost:8080/myPage.jsp

I am missing step 5

Thanks (in advance and hope...)

Charlene


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.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]>




Return value from Stored Procedure

2003-01-08 Thread Igor . Kozlov
Title: Return value from Stored Procedure





Please, can you give me an example,
how can i get the return-value of 3. "OUT"-parameter here:


{call sp_add_user(,

    userpass,
    )}




I have always "no results", but my Stored Procedure returns always 888:


procedure sp_add_user(
name in varchar2 default null,
pass in varchar2 default null,
outer out number)
as
temp_int int;
begin
  temp_int :=888;
  outer := temp_int;
end sp_add_user;


I use Oracle 8, Tomcat 4.0.16 and Cocoon 2.0.3.


This is very important and i cannot find anything in internet about it.
Thank you very much!
Best regards.



Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

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





Re: i18n catalogue and sql [act howto]

2003-01-08 Thread Konstantin Piroumian
From: "Cocoon User" <[EMAIL PROTECTED]>

>
> hi konstantin
>
> i plan to create an action that will create sitiemap variables for
> specific request-parameters not for use only with i18n

There is already such action in Cocoon:
src\java\org\apache\cocoon\acting\RequestParamAction.java

But I'd prefer to use already implemented input module, which looks much
better in the sitemap.

Konstantin

>
> is there any simple action or any howto create an action for cocoon?
> i need just a point to start form (something for example)
>
>
> thnx
> stavros
>
> On Wed, 8 Jan 2003, Konstantin Piroumian wrote:
>
> > From: "Cocoon User" <[EMAIL PROTECTED]>
> >
> > > hi martin this is a way to send a parameter inside your xsl file
(pretty
> > > good) but i need something else
> > >
> > > i want to use a request parameter as a variable inside my sitemap
> > >
> > > example
> > >
> > > if i have http://../...?locale=el
> > >
> > > src="{locale}_data.xml"
> > >
> > > point to el_data.xml
> > >
> > > (i have do something similar using a action just like in i18n example
from
> > > 2.1 version of cocoon but i'm wondering if there is another way to do
this
> > > without action)
> >
> > Another possibility is to create an InputModule that will act exactly
like
> > the LocaleAction, so you'll be able to use it like this:
> >
> > src="{i18n:locale}_data.xml"
> >
> > and even now you can use the 'request-param' module for that:
> >
> > src="{request-param:locale}_data.xml"
> >
> > Konstantin
> >
> > >
> > > thnx stavros
> > >
> > >
> > > On 5 Jan 2003, Martin Lüthi wrote:
> > >
> > > >
> > > > You can use the request parameter like this:
> > > >
> > > >   
> > > >  
> > > >  
> > > >   
> > > >
> > > > Cheers Martin
> > > >
> > > >
> > > > Cocoon User <[EMAIL PROTECTED]> writes:
> > > >
> > > > > i know how to make a src file selection based to requested url
using
> > > > > matches
> > > > >
> > > > > http://./el/test
> > > > > http://./en/test
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > > but how can do  something similar using parameter?
> > > > >
> > > > > http:///test?locale=el
> > > > > http:///test?locale=en
> > > > >
> > > > > using {1} or {2} i refer to first or second * in pattern
> > > > > but how can i refer to locale prameter value inside  ?
> > > >
> > > >
> >
> >
> > -
> > Please check that your 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: i18n catalogue and sql [act howto]

2003-01-08 Thread Cocoon User

hi konstantin

i plan to create an action that will create sitiemap variables for
specific request-parameters not for use only with i18n

is there any simple action or any howto create an action for cocoon?
i need just a point to start form (something for example)


thnx
stavros

On Wed, 8 Jan 2003, Konstantin Piroumian wrote:

> From: "Cocoon User" <[EMAIL PROTECTED]>
>
> > hi martin this is a way to send a parameter inside your xsl file (pretty
> > good) but i need something else
> >
> > i want to use a request parameter as a variable inside my sitemap
> >
> > example
> >
> > if i have http://../...?locale=el
> >
> > src="{locale}_data.xml"
> >
> > point to el_data.xml
> >
> > (i have do something similar using a action just like in i18n example from
> > 2.1 version of cocoon but i'm wondering if there is another way to do this
> > without action)
>
> Another possibility is to create an InputModule that will act exactly like
> the LocaleAction, so you'll be able to use it like this:
>
> src="{i18n:locale}_data.xml"
>
> and even now you can use the 'request-param' module for that:
>
> src="{request-param:locale}_data.xml"
>
> Konstantin
>
> >
> > thnx stavros
> >
> >
> > On 5 Jan 2003, Martin Lüthi wrote:
> >
> > >
> > > You can use the request parameter like this:
> > >
> > >   
> > >  
> > >  
> > >   
> > >
> > > Cheers Martin
> > >
> > >
> > > Cocoon User <[EMAIL PROTECTED]> writes:
> > >
> > > > i know how to make a src file selection based to requested url using
> > > > matches
> > > >
> > > > http://./el/test
> > > > http://./en/test
> > > >
> > > > 
> > > > 
> > > > 
> > > >
> > > > but how can do  something similar using parameter?
> > > >
> > > > http:///test?locale=el
> > > > http:///test?locale=en
> > > >
> > > > using {1} or {2} i refer to first or second * in pattern
> > > > but how can i refer to locale prameter value inside  ?
> > >
> > >
>
>
> -
> Please check that your 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 webpage in Arabic

2003-01-08 Thread Jeremy Quinn
Dear All,

I just found out yesterday that I have to have a page in Arabic on a 
site I am working on that is otherwise in English, with a bit of French 
and Spanish (using UTF-8).

I have never worked in non-latin languages before!

Can anyone advise me what kind of issues I will face?

Does utf-8 cover Arabic?
Are there different 'xml:lang' specifiers for different forms of Arabic?
Do you have to do anything special in the generated HTML to reverse the 
text-flow?

Please excuse my extreme ignorance!

Thanks for any help.

regards Jeremy


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

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



Re: i18n catalogue and sql

2003-01-08 Thread Konstantin Piroumian
From: "Cocoon User" <[EMAIL PROTECTED]>

> hi martin this is a way to send a parameter inside your xsl file (pretty
> good) but i need something else
>
> i want to use a request parameter as a variable inside my sitemap
>
> example
>
> if i have http://../...?locale=el
>
> src="{locale}_data.xml"
>
> point to el_data.xml
>
> (i have do something similar using a action just like in i18n example from
> 2.1 version of cocoon but i'm wondering if there is another way to do this
> without action)

Another possibility is to create an InputModule that will act exactly like
the LocaleAction, so you'll be able to use it like this:

src="{i18n:locale}_data.xml"

and even now you can use the 'request-param' module for that:

src="{request-param:locale}_data.xml"

Konstantin

>
> thnx stavros
>
>
> On 5 Jan 2003, Martin Lüthi wrote:
>
> >
> > You can use the request parameter like this:
> >
> >   
> >  
> >  
> >   
> >
> > Cheers Martin
> >
> >
> > Cocoon User <[EMAIL PROTECTED]> writes:
> >
> > > i know how to make a src file selection based to requested url using
> > > matches
> > >
> > > http://./el/test
> > > http://./en/test
> > >
> > > 
> > > 
> > > 
> > >
> > > but how can do  something similar using parameter?
> > >
> > > http:///test?locale=el
> > > http:///test?locale=en
> > >
> > > using {1} or {2} i refer to first or second * in pattern
> > > but how can i refer to locale prameter value inside  ?
> >
> >


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

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




Problem expanding Cocoon.

2003-01-08 Thread Jacob Bager



Hey..
 
Im running Tomcat 4.1.18, with java1.4.1 on a Linux 
Distribution.
 
And can't get cocoon to run/expand.
In the logs i get this.
 
2003-01-08 11:59:38 HostConfig[localhost] Exception 
while expanding web application archive 
cocoon.warjava.io.FileNotFoundException: 
/var/tomcat4/webapps/cocoon/META-INF/MANIFEST.MF (No such file or 
directory)    at 
java.io.FileOutputStream.open(Native 
Method)    at 
java.io.FileOutputStream.(FileOutputStream.java:176)    
at 
java.io.FileOutputStream.(FileOutputStream.java:131)    
at 
org.apache.catalina.startup.HostConfig.expand(HostConfig.java:813)    
at 
org.apache.catalina.startup.HostConfig.expand(HostConfig.java:768)    
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:500)    
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410)    
at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)    
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)    
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) 
    at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)    
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)    
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)    
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)    
at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)    
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)    
at 
org.apache.catalina.startup.Catalina.start(Catalina.java:512)    
at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)    
at 
org.apache.catalina.startup.Catalina.process(Catalina.java:180)    
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    
at 
java.lang.reflect.Method.invoke(Method.java:324)    
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
What the h*** is wrong?
 
Jacob 
Bager[EMAIL PROTECTED]Developer 
http://www.An-Concepts.dk


Re: ESQL and JavaScript

2003-01-08 Thread Johannes . Becker

Hi,

just like this:

...

function example()
  {
i=0;

  xxx
  

  SELECT description, service_id
  FROM report
  WHERE report_id
= report_id)
  ORDER BY display_order


  
document.getElementById
("SERVICE_ID").options[i++] = new Option("","");
  


  document.getElementById
("SERVICE_ID").options[i++] = new Option("","");


  ...

  


service_dropdown_change();
  }


...


Jonny



|-+>
| ||
|-+>
  
>--|
  |
  |
  
>--|




On 08.Jan.2003 -- 11:50 AM, [EMAIL PROTECTED] wrote:
>
> Hi,
>
> I know its not the (to be harmless)  nicest way, but my ESQL in
JavaScript
> works fine. I just wanted to know if it is possible in
Javascript-Functions
> to place passed parameters in ESQL-Statements.

I'm missing something here: how do you manage to have ESQL in
javascript? AFAIK there is no logicsheet for esql + javascript XSP.

 Chris.





-
Please check that your 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: i18n Transformation problem

2003-01-08 Thread Konstantin Piroumian
From: "Murari Dhoot" <[EMAIL PROTECTED]>

> Hello Friends,
> I am applying a i18n Transformation on the following button
>
>i18n:attr="value">
>
> Actually depending upon the value of Button i.e. "Search" , i am calling a
> method, but if i apply i18n transformaion the value of button changed and
i
> m not able to call that method.
> So what i need display value of button should change but passing value
> should always be "Search" using i18n???
> how to do this

Take a look at MultiAction and use this:
   

then use the name of the button and not the value to call a method.

Hope this helps.

Konstantin

> Thanks in advance
>
>
> Thanks and Regards,
> Murari Dhoot
>
>
>
> -
> Please check that your 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: ESQL and JavaScript

2003-01-08 Thread Christian Haul
On 08.Jan.2003 -- 11:50 AM, [EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> I know its not the (to be harmless)  nicest way, but my ESQL in JavaScript
> works fine. I just wanted to know if it is possible in Javascript-Functions
> to place passed parameters in ESQL-Statements.

I'm missing something here: how do you manage to have ESQL in
javascript? AFAIK there is no logicsheet for esql + javascript XSP.

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

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

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




Re: ESQL and JavaScript

2003-01-08 Thread Johannes . Becker

Hi,

I know its not the (to be harmless)  nicest way, but my ESQL in JavaScript
works fine. I just wanted to know if it is possible in Javascript-Functions
to place passed parameters in ESQL-Statements.

Jonny



This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
information
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.



|-+-->
| |   Christian Haul |
| |   <[EMAIL PROTECTED]|
| |   rmstadt.de>|
| |  |
| |   01/08/03 11:30 AM  |
| |   Please respond to  |
| |   cocoon-users   |
| |  |
|-+-->
  
>--|
  |
  |
  |   To:   [EMAIL PROTECTED]
  |
  |   cc:  
  |
  |   Subject:  Re: ESQL and JavaScript
  |
  
>--|




On 08.Jan.2003 -- 10:53 AM, [EMAIL PROTECTED] wrote:
> I have a Javascript-Function, which gets a parameter passed. I want this
> parameter now in my ESQL-Statement. Is there a way to do this?

Javascript (if client side) is completely unrelated to XSP and ESQL in
particular.

Server side Javascript (i.e. flow script) can pass parameters to the
XSP. See examples (e.g. calculator) for this and in particular
jpath.xsl. Passing values using request attributes is also possible.

For dynamic queries with ESQL please see the docs. Starting with 2.0.4
there is a section dedicated to this on the ESQL page.
http://xml.apache.org/cocoon/userdocs/xsp/esql.html

 Chris.

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

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

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

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






-
Please check that your 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: ESQL and JavaScript

2003-01-08 Thread Christian Haul
On 08.Jan.2003 -- 10:53 AM, [EMAIL PROTECTED] wrote:
> I have a Javascript-Function, which gets a parameter passed. I want this
> parameter now in my ESQL-Statement. Is there a way to do this?

Javascript (if client side) is completely unrelated to XSP and ESQL in particular.

Server side Javascript (i.e. flow script) can pass parameters to the
XSP. See examples (e.g. calculator) for this and in particular
jpath.xsl. Passing values using request attributes is also possible.

For dynamic queries with ESQL please see the docs. Starting with 2.0.4
there is a section dedicated to this on the ESQL page.
http://xml.apache.org/cocoon/userdocs/xsp/esql.html

Chris.

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

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

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

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




RE: calling "neighbour" sitemap

2003-01-08 Thread Arjé Cahn
Could you show me how you have mounted both sub-sitemaps?
If it's like this:

{root sitemap}







Then it would be src="cocoon://map2/other-resource" from within a matcher in map1.

Regards,

Arjé Cahn


-
Software Department
Hippo Webworks
Grasweg 35
1031 HW Amsterdam
The Netherlands
Tel  +31 (0)20 6345173 
Fax +31 (0)20 6345179
arje(at)hippo(dot)nl / www.hippo.nl



-Original Message-
From: Michael Wechner [mailto:[EMAIL PROTECTED]]
Posted At: 07 January 2003 23:52
Posted To: Cocoon User List
Conversation: calling "neighbour" sitemap
Subject: Re: calling "neighbour" sitemap


[EMAIL PROTECTED] wrote:
> Hi, you can call other resources also by scr="cocoon://other-resource"


right, this way you are able to call the "root-sitemap", but
not the neighbouring "sub-sitemap2" (or at least it doesn't work
in my case)

Thanks

Michael




> I think you can use that to use other sitemaps ..
> 
> 
> Citeren Michael Wechner <[EMAIL PROTECTED]>:
> 
> 
>>Hi
>>
>>Is it (would it be) possible to call a pipeline within a neighbouring
>>sitemap,
>>e.g.
>>
>>   root-sitemap
>>|
>> ---
>> |  |
>>  sub-sitemap1  sub-sitemap2
>>
>>sub-sitemap1 has a pipeline which wants to call a pipeline within
>>sub-sitemap2.
>>
>>TIA
>>
>>Michael
>>
>>
>>-
>>Please check that your question  has not already been answered in the
>>FAQ before posting. 
>>
>>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>>For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 



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

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


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

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




ESQL and JavaScript

2003-01-08 Thread Johannes . Becker
I have a Javascript-Function, which gets a parameter passed. I want this
parameter now in my ESQL-Statement. Is there a way to do this?

My (Example)-Function:

function insert(ID)
  {

  cdr
  

  SELECT *
  FROM table_1
  WHERE id_1 = < Here I want
the Parameter (ID) >


  
  ...
  


  ...


  ...

  

  }

Thanks
Jonny



This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
information
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.




-
Please check that your 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: Output beautifier

2003-01-08 Thread Arjé Cahn
Miles,

I would suggest using the XSL transformation that we always use to remove the 
namespaces:


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







 


To get the indenting right, use the following XML serializer definition:



true
UTF-8
1



For more information, take a look at some of the Cocoon Wiki pages:
http://wiki.cocoondev.org/Wiki.jsp?page=RemoveNamespaces

Regards,

Arjé Cahn


-
Content Management Department
Hippo Webworks
Grasweg 35
1031 HW Amsterdam
The Netherlands
Tel  +31 (0)20 6345173 
Fax +31 (0)20 6345179
arje(at)hippo(dot)nl / www.hippo.nl




-Original Message-
From: Luca Morandini [mailto:[EMAIL PROTECTED]]
Posted At: 08 January 2003 10:12
Posted To: Cocoon User List
Conversation: Output beautifier
Subject: RE: Output beautifier


Miles,

1) have you checked your XML serializer declaration has the "indent" element set to 
"yes" ? If it is set to "no", the indenting is stripped off while serializing

2) You should use the "exclude-result-prefixes" attribute of your "xsl:stylesheet" 
element to get rid of those unwanted namespaces

Best regards,

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

> -Original Message-
> From: Miles Elam [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 08, 2003 8:27 AM
> To: cocoon-users
> Subject: Output beautifier
> 
> 
> Hi all,
> 
> I'm looking for a way to neatly indent and otherwise clean up the output 
> of a XSLT transformation, but the usual method of
> 
>   
>   
> 
> does not appear to work when used with Cocoon.  I also want a easy way 
> of stripping all namespace declarations from the output except for
> 
>   xmlns="http://www.w3.org/1999/xhtml";
> 
> so that the output document will validate according to the W3C DTDs.  As 
> it stands, other namespaces that are used in intermediate parts of the 
> pipeline stick around despite the fact that no element in the output 
> document belongs to those namespaces.
> 
> All of the examples I have come across from Google and other resources 
> point me back to the same items which don't seem to work from within the 
> Cocoon framework.  I'd be thankful for any pointers you could give me.
> 
> - Miles
> 
> 
> 
> -
> Please check that your 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: Output beautifier

2003-01-08 Thread Luca Morandini
Miles,

1) have you checked your XML serializer declaration has the "indent" element set to 
"yes" ? If it is set to "no", the indenting is stripped off while serializing

2) You should use the "exclude-result-prefixes" attribute of your "xsl:stylesheet" 
element to get rid of those unwanted namespaces

Best regards,

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

> -Original Message-
> From: Miles Elam [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 08, 2003 8:27 AM
> To: cocoon-users
> Subject: Output beautifier
> 
> 
> Hi all,
> 
> I'm looking for a way to neatly indent and otherwise clean up the output 
> of a XSLT transformation, but the usual method of
> 
>   
>   
> 
> does not appear to work when used with Cocoon.  I also want a easy way 
> of stripping all namespace declarations from the output except for
> 
>   xmlns="http://www.w3.org/1999/xhtml";
> 
> so that the output document will validate according to the W3C DTDs.  As 
> it stands, other namespaces that are used in intermediate parts of the 
> pipeline stick around despite the fact that no element in the output 
> document belongs to those namespaces.
> 
> All of the examples I have come across from Google and other resources 
> point me back to the same items which don't seem to work from within the 
> Cocoon framework.  I'd be thankful for any pointers you could give me.
> 
> - Miles
> 
> 
> 
> -
> Please check that your 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]>




[ANN/OT] xreporter 1.0 release - Avalon/Cocoon-based database reporting

2003-01-08 Thread Steven Noels
Hi all,

yesterday, we've released the 1.0 version of xReporter, our open source 
Avalon/Cocoon-based database reporting framework, available from 
http://xreporter.cocoondev.org/

xReporter consists of 2 main components:

 * an Avalon Phoenix-based query server, which is configured through 
XML-based report definitions, and is accessible across an XML/HTTP interface
 * a Cocoon front-end generating configurable HTML, PDF, Excel and CSV 
renditions of your database reports, thanks to the wonders of FOP, POI 
and some custom Cocoon drudgery

Architectural diagram:
  > http://xreporter.cocoondev.org/en/my-images/architecture.png <

Most compelling features:

 - multiple datasources & report definitions
 - user/role-based report authorization, container-based authentication
 - column filtering & sorting, query by example
 - no programming required to define complex, multistep database reports
   - optionally using temporary tables
   - expression language & field validation
   - possibility to access non-SQL, 'Web Services' datasources
 - fully customizable look & feel using CSS and XSLT
 - flow control using XML and a ReST HTTP interface

xReporter is released under an Apache-style license, and we welcome 
contributions and patches as we try to grow this into a community-owned 
project. Currently, there is anonymous read-only cvs access and a 
downloadable tarball. There's a limited, live demo available on the 
project website, too.

We would like to sincerely thank the Avalon & Cocoon community for the 
creation of some wonderful toys to play with, and a great guy (you know 
who you are) who made all this possible.


--
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog athttp://blogs.cocoondev.org/stevenn/
stevenn at outerthought.orgstevenn at apache.org


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

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