Re: xsp-formval how get results

2001-08-20 Thread Christian Haul

On 20.Aug.2001 -- 11:29 AM, cib wrote:
> Hi,
> 
> my form's target goes to do-register2, and here is the sitemap.
> 
> 
>  
>  
>  
>  
>  
>   
> 
> 
> 
> 
> 
> The errot.xsp has a namespace on formval: 
> 
> 
>language="java"
>   xmlns:xsp="http://apache.org/xsp";
>   xmlns:esql="http://apache.org/cocoon/SQL/v2";
>xmlns:xsp-formval="http://apche.org/xsp/form-validator/2.0";>
>   
> 
> Your error messages:
> 
> 
>   
> 
> 
> But here is the error page 's source I get.
> 
> 
> Your error messages:
> http://apche.org/xsp/form-validator/2.0"/>
> 

Cib,

your code looks OK to me. However, the result you get indicates, that
the formval taglib is not applied to your XSP. Check if the namespaces
and prefixes are correct and if the taglib is declared in
cocoon.xconf.

One thing though, "results" requires to be used within xsp logic or
expr. Besides the output is not really digestable but only suitable
for debugging.

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: xsp-formval:results exception '}' expected

2001-08-20 Thread Christian Haul

On 20.Aug.2001 -- 10:39 PM, cib wrote:
>   
> 
> les messages d'erreur.
> 
> 
> 
>   

Hi cib,

actually, "results" was meant to be used for complex processing since
it returns a map. It's not really suitable to print it's result
directly. Therefore it is not automatically enclosed in . I
will change that but until then you'll need to put  around
it.

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




Live Sites powered by Apache Cocoon 1.X

2001-08-20 Thread Christian Kissner

http://www.efonds24.de/ - a (german) closed funds counselling application and catalog 


-
Please check that your 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: Type and Identifier errors

2001-08-20 Thread Mamadou Bobo Sylla

Thank you christopher,
I didn't know that the line refers to the generated java code upon XSP
compilation. I have compiled the generated code and it has helped me to fix
some java syntax error. At the end I was getting one error which is
identifier error. The identifier error persists because I happen to put my
document root inside the  tag. But it was impossible for cocoon
to clearly point where the error is situated. I had to keep guessing!!
It will help if cocoon way of pointing error could be enhanced.
Bobo
- Original Message -
From: "Christopher Painter-Wakefield" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 8:37 PM
Subject: Re: XSP: Type and Identifier errors


>
> Bobo,
>
> the line numbers actually refer to the generated Java code, which is in a
> repository directory as defined by your cocoon.properties file.  I think
> your first error here is missing semicolons on the lines
>  String fname = request.getParameter("fname")
> ...//some more request.getParameter()
>  String email = request.getParameter("email")
>
> -Christopher
>
>
>
>
> Please respond to [EMAIL PROTECTED]
>
> To:   <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> cc:
>
> Subject:  XSP: Type and Identifier errors
>
>
> Hello,
> I am receiving this error:
> java.lang.Exception: XSP Java Compiler: Compilation failed for
> _newUser.java
> 72: Type expected.
>  Class.forName("org.gjt.mm.mysql.Driver").newInstance();
>^
> 240: Identifier expected.
> xspParentNode = xspCurrentNode;
> -^
> The ligne 72: points to isIDduplicate()
>  function while the line 240 points to  if-else.
> I am using cocoon 1.8.2 and Tomcat3.2.1
>
> Here is my code (this program is for form handling):
>
> 
> 
> 
> 
> http://www.apache.org/1999/XSP/Core";>
>   
> java.lang.*
> java.sql.*
>java.sql.Date
> java.sql.DriverManager
> java.sql.SQLException
>java.sql.Connection
>java.sql.ResultSet
>java.sql.Statement
>  
>   
>  String fname = request.getParameter("fname")
> ...//some more request.getParameter()
>  String email = request.getParameter("email")
>
> Class.forName("org.gjt.mm.mysql.Driver").newInstance();
>  String serverName =request.getServerName();
>  String
> URL="jdbc:mysql://"+serverName+"/ILSDB?user=Bobo&password=BoboPassword";
>  Connection con  = DriverManager.getConnection(URL, "", "" );
>  Statement stmt1=
>
con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATAB
>
> LE);
>  Statement stmt2=
>
con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATAB
>
> LE);
>
>
> 
>
> -
> I need your help.
> Thank you.
> Bobo,
>
>
>
>
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


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

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




AW: esql, get-xml and xsp:logic

2001-08-20 Thread Stefan Seifert

Take a look at the generate Java class behind the XSP page - and you
will see the problem. get-xml does not an xml string, but a xml dom
element object (or sax events in cocoon 2). In your second case there
was just the .toString()-Method of org.w3c.dom.Element called.

I can see not much sense in putting the xml fragment in a string (i
think you had some misleading thinking here), but if you really need it,
just use get-string instead of get-xml, this returns the plain text of
the column.

Stefan

> -Ursprüngliche Nachricht-
> Von: Brent L Johnson [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 21. August 2001 01:16
> An: Cocoon-Users
> Betreff: esql, get-xml and xsp:logic
> 
> 
> I've been using  root="fragment"/> and it's
> been working perfectly.  But, I've found a problem when 
> trying to set a
> String inside an  tag to that.  Make any sense?  
> Here's the code
> that works...
> 
> 
> TEST: 
> 
> 
> But, I want to set a string to that value.. e.g.
> 
> String myval = ;
> 
> 
> Doing this I get the following error:
> Incompatible type for =. Can't convert org.w3c.dom.Element to
> java.lang.String.
> 
> Then I tried this (which ALMOST works):
> 
> String myval = "" + ;
> 
> 
> Unfortunately - this only gives me the string "[fragment: 
> null]".  Does this
> have something to do with the order that the XSP and XSL is 
> processed???
> 
> Thanks,
> 
> - Brent

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

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




esql, get-xml and xsp:logic

2001-08-20 Thread Brent L Johnson

I've been using  and it's
been working perfectly.  But, I've found a problem when trying to set a
String inside an  tag to that.  Make any sense?  Here's the code
that works...


TEST: 


But, I want to set a string to that value.. e.g.

String myval = ;


Doing this I get the following error:
Incompatible type for =. Can't convert org.w3c.dom.Element to
java.lang.String.

Then I tried this (which ALMOST works):

String myval = "" + ;


Unfortunately - this only gives me the string "[fragment: null]".  Does this
have something to do with the order that the XSP and XSL is processed???

Thanks,

- Brent


-
Please check that your 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-formval:results exception '}' expected

2001-08-20 Thread cib

Sorry, 
I'm an idiot,
I've been searching docs in my c2.0b1, 
forgetting I had just upgraded to b2.
*There* is the documentation.
Sorry again.
Cib

France, Bordeaux, xml and gay pride.

- Original Message - 
From: "cib" <[EMAIL PROTECTED]>
To: "Cocoon User Mail List" <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 10:39 PM
Subject: xsp-formval:results exception '}' expected


> Hi;
> here is what I get:
> 
> org.apache.cocoon.components.language.LanguageException: Error compiling
> error_xsp:
> Line 154, column 91:  '}' expected.
> 
> 
> 
>language="java"
>   xmlns:xsp="http://apache.org/xsp";
>   xmlns:esql="http://apache.org/cocoon/SQL/v2";
>xmlns:xsp-formval="http://apche.org/xsp/form-validator/2.0";>
>   
> 
> les messages d'erreur.
> 
> 
> 
>   
> 
> 
> I guess my syntax is not correct.
> If someone could help me.
> I've read the Patch text from Christian Haul , the only text I could find
> for this (appart from the apidoc on Formvalidation, same author), but
> nothing on the exact syntax to use with xsp-formval:results.
> 
> Thanks
> Cib
> 
> France, Bordeaux, xml and gay pride.
> 
> 
> -
> Please check that your 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]>




sax error at start in c2.0b2

2001-08-20 Thread cib

hi all,
I've just upgraded to C2.0b2, to use the formval tag lib, but I get this
error at start, and even if cocoon works, I'm not sure if some other errors
I get are not due to this first error on startup.
Here is what I get.

G:\Tomcat\bin>G:\Tomcat\bin\startup.bat
Using CLASSPATH: g:\Tomcat\bin\bootstrap.jar;G:\jdk1.3.1\lib\tools.jar;
Starting service Tomcat-Standalone
Apache Tomcat/4.0-b5
PARSE error at line 181 column -1
org.xml.sax.SAXParseException: org.apache.crimson.parser/V-036 web-app
init-para
m
Starting service Tomcat-Apache
Apache Tomcat/4.0-b5

If someone knows where that comes from, I couldn't find anything in doc.
Thanks
Cib

France, Bordeaux, xml and gay pride.



-
Please check that your 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-formval:results exception '}' expected

2001-08-20 Thread cib

Hi;
here is what I get:

org.apache.cocoon.components.language.LanguageException: Error compiling
error_xsp:
Line 154, column 91:  '}' expected.



http://apache.org/xsp";
  xmlns:esql="http://apache.org/cocoon/SQL/v2";
   xmlns:xsp-formval="http://apche.org/xsp/form-validator/2.0";>
  

les messages d'erreur.



  


I guess my syntax is not correct.
If someone could help me.
I've read the Patch text from Christian Haul , the only text I could find
for this (appart from the apidoc on Formvalidation, same author), but
nothing on the exact syntax to use with xsp-formval:results.

Thanks
Cib

France, Bordeaux, xml and gay pride.


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

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




can't get cocoon 2 running (MOSX/Darwin)

2001-08-20 Thread Noah Mittman

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm getting an error running cocoon2, just trying to hit the 
default index.
I had Tomcat 3.2.3 and Cocoon 1.8.2 running perfectly. A friend in 
my office sent me the cocoon2 .war file and the list of jars I'd 
need in the tomcat lib directory to upgrade. It should have been a 
simple swap since I'd already added the context to cocoon in the 
tomcat configs.
However, I now get the following error for every sample that was 
stored in the .war. Can anyone help?:

> Cocoon 2 - Internal server error
>
> type internal-server-error
>
> message Language Exception
>
> description org.apache.cocoon.ProcessingException: Language 
> Exception:org.apache.cocoon.components.language.LanguageException: 
> Could not load class for program 
> 'org/apache/cocoon/www/sitemap_xmap' due to a 
> java.lang.ClassNotFoundException: 
> org.apache.cocoon.www.sitemap_xmap
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
> request-uri
>
> /cocoon/
>
> embedded exception
>
> org.apache.cocoon.components.language.LanguageException: Could not 
> load class for program 'org/apache/cocoon/www/sitemap_xmap' due to 
> a java.lang.ClassNotFoundException: 
> org.apache.cocoon.www.sitemap_xmap
>

Thanks!

- ---
Noah Mittman  [ Interaction Designer ]
sputnik7 -- chronic online entertainment
GPG Public Key available @ www.keyserver.net
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see http://www.gnupg.org

iD8DBQE7gR2mp8Wr0KkRSsMRAqfCAKC/bH2yR5yEO0HVSYzjeyF5wMHwtgCgqtvS
KE1XCwsw+efLGXDxHi41YD4=
=SI5E
-END PGP SIGNATURE-

-
Please check that your 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: MS Word serializer

2001-08-20 Thread Chris Bermillo

The challenge with converting XML to Word lies in the serializer's ability
to interpret the tags into Word "objects".  How does a serializer interpret
the tag, ?  Is it a paragraph? Is it a field?  Is it a bookmark?  Is
it bold?  Is it italic?  etc...  These are the questions that the serializer
must answer and in all likelihood the XML will not provide any answers to.

The answer lies in a transformation of the XML into output XML that the
serializer can understand and interpret.  This does put the burden on the
intermediate transformation, but it allows the serializer to convert any and
all XML to Word.

BTW, we do have a product that converts XML to Word, Author wX.  It uses the
same concept I described above to do this.

Regards,

Chris
www.b-bop.com

-Original Message-
From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 5:52 AM
To: [EMAIL PROTECTED]
Subject: Re: MS Word serializer


David Brunkow wrote:
>
> Can anyone tell me if there are any plans to write an MS Word serializer?
I
> want to conver XML to Word, not Word to XML.

You have two alternatives (something I had to do in a previous job):

1) Learn MS Word XP's XML markup (probably the best solution)
2) Use word to open simple HTML files.

I chose the second because we had a formatted text output that needed to be
reformatted to a Word document.  The first solution was all Visual Basic for
Applications (VBA), and loaded the text in and made all the transformations
in no less than 72 passes.  That was an 8 hour process.

The second solution used C++ to convert the text to HTML in one pass, load
the
HTML document in Word, and apply a much simpler VBA routine.  The whole
process
was down to a couple of minutes (the text 2 html was 5 seconds).

Check this out with a regular HTML file, but try changing the extention to
".doc" and open the page.  (Nothing fancy, just a couple  and  tags).
If it opens correctly, you have your solution:  output HTML, with a Word
mime-type.

-
Please check that your 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: Getting read of the X server dependency

2001-08-20 Thread Marcus Crafter

Hi Jeremy,

The xvfb solution is in the FAQ. Have a look at
xml-cocoon2/xdocs/faq.xml around line 588.

The only problem with the PJA toolkit is that it's licenced under the
GPL (not LGPL), which has implications:

http://www.fsf.org/licenses/gpl-faq.html#TOCIfLibraryIsGPL
http://www.fsf.org/licenses/gpl-faq.html#TOCIfInterpreterIsGPL (last
paragraph)

I'm not a lawyer, but reading those links above say that if a library
is licenced under the GPL, the program using it must be too.

Cheers,

Marcus

On Mon, 20 Aug 2001, Jeremy Crosbie wrote:

> After a week of head scratching and the help of a nice person name Juerg
> Lehni I got an alternative to Xvfb working. My problem was that I wanted
> Apache + Tomcat 4.0 + Cocoon to startup at bootup on my laptop. Using Xvfb
> is not really an option in this setup.
> 
> Searching through the mail archives I found a reference to the PJA toolkit
> which replaces the native Java AWT tools with non-X dependent hooks to
> render components. I finally got this setup to work and it works great.
> 
> A concern I have is that neither setting up Xvfb or PJA is in the Cocoon
> FAQ. Is this something that should be added? This question, from my perusal
> of the mail archives, comes up a lot. I would be willing to write the PJA
> part. Is anyone interested in this?
> 
> Jeremy Michael Crosbie
> 
> 
> 
> > -Original Message-
> > From: Jon Peterson [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 16, 2001 5:33 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Getting read of the X server dependency
> > 
> > 
> > Xvfb is what you need.  If you're running Linux, you may 
> > already have it
> > available (do which Xvfb or slocate Xvfb to check).  If not, go to
> > Xfree86.org and download either the Xvfb component of X (if 
> > you have XServer
> > installed) or grab the entire X Server and run Xinstall.sh.  If you're
> > running Solaris, go to
> > http://tmap.pmel.noaa.gov/home/ferret/FAQ/graphics/Solaris_Xvf
> > b.html for the
> > binaries.
> > 
> > Once installed, on the command-line run
> > 
> > /usr/X11R6/bin/Xvfb :1 -screen 0 1152x900x8 &
> > 
> > and then set the DISPLAY variable to :1.0
> > 
> > This should take care of your problem and allow you to keep batik's
> > functionality.
> > 
> > Regards,
> > Jon
> > 
> > - Original Message -
> > From: "Carlos" <[EMAIL PROTECTED]>
> > To: "cocoon users xml.apache.org" <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 15, 2001 4:49 PM
> > Subject: Getting read of the X server dependency
> > 
> > 
> > > A while back some people gave solutions as to how to remove 
> > the dependency
> > > on a running X server. Some of them included removing all 
> > the references
> > to
> > > Batik from the site map, others included downloading a 
> > library that would
> > > make X unnecessary, what's the name of the library and where can I
> > download
> > > it from?
> > >
> > >
> > > TIA
> > > Carlos
> > >
> > > --
> > > ---
> > > P  |Carlos Araya
> > > _  |WebCT Administrator/Trainer
> > > G  |California Virtual Campus, Region 1
> > >  C/O De Anza College
> > > 10650 Bubb Road
> > > Cupertino, CA 95014
> > >
> > > mail:   [EMAIL PROTECTED]
> > > web:http://www.cvc1.org (work)
> > > http://www.silverwolf-net.net (personal)
> > > PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 
> > 0CE7 DFE7 1756
> > >
> > > Don't let the fact that you can't do all you want to do 
> > Keep you from
> > > doing what you can do.
> > >
> > > And oftentimes, excusing of a fault doth make the fault the 
> > worse by the
> > > excuse; As patches set upon a little breach discredit more in
> > > hiding of the fault than did the fault before it was so patched.
> > > --Wm. Shakespeare
> > >
> > >
> > >
> > > 
> > -
> > > Please check that your 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]>
> 
> 

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   Open Software Assoc

RE: Getting read of the X server dependency

2001-08-20 Thread Jeremy Crosbie

After a week of head scratching and the help of a nice person name Juerg
Lehni I got an alternative to Xvfb working. My problem was that I wanted
Apache + Tomcat 4.0 + Cocoon to startup at bootup on my laptop. Using Xvfb
is not really an option in this setup.

Searching through the mail archives I found a reference to the PJA toolkit
which replaces the native Java AWT tools with non-X dependent hooks to
render components. I finally got this setup to work and it works great.

A concern I have is that neither setting up Xvfb or PJA is in the Cocoon
FAQ. Is this something that should be added? This question, from my perusal
of the mail archives, comes up a lot. I would be willing to write the PJA
part. Is anyone interested in this?

Jeremy Michael Crosbie



> -Original Message-
> From: Jon Peterson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 16, 2001 5:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Getting read of the X server dependency
> 
> 
> Xvfb is what you need.  If you're running Linux, you may 
> already have it
> available (do which Xvfb or slocate Xvfb to check).  If not, go to
> Xfree86.org and download either the Xvfb component of X (if 
> you have XServer
> installed) or grab the entire X Server and run Xinstall.sh.  If you're
> running Solaris, go to
> http://tmap.pmel.noaa.gov/home/ferret/FAQ/graphics/Solaris_Xvf
> b.html for the
> binaries.
> 
> Once installed, on the command-line run
> 
> /usr/X11R6/bin/Xvfb :1 -screen 0 1152x900x8 &
> 
> and then set the DISPLAY variable to :1.0
> 
> This should take care of your problem and allow you to keep batik's
> functionality.
> 
> Regards,
> Jon
> 
> - Original Message -
> From: "Carlos" <[EMAIL PROTECTED]>
> To: "cocoon users xml.apache.org" <[EMAIL PROTECTED]>
> Sent: Wednesday, August 15, 2001 4:49 PM
> Subject: Getting read of the X server dependency
> 
> 
> > A while back some people gave solutions as to how to remove 
> the dependency
> > on a running X server. Some of them included removing all 
> the references
> to
> > Batik from the site map, others included downloading a 
> library that would
> > make X unnecessary, what's the name of the library and where can I
> download
> > it from?
> >
> >
> > TIA
> > Carlos
> >
> > --
> > ---
> > P  |Carlos Araya
> > _  |WebCT Administrator/Trainer
> > G  |California Virtual Campus, Region 1
> >  C/O De Anza College
> > 10650 Bubb Road
> > Cupertino, CA 95014
> >
> > mail:   [EMAIL PROTECTED]
> > web:http://www.cvc1.org (work)
> > http://www.silverwolf-net.net (personal)
> > PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 
> 0CE7 DFE7 1756
> >
> > Don't let the fact that you can't do all you want to do 
> Keep you from
> > doing what you can do.
> >
> > And oftentimes, excusing of a fault doth make the fault the 
> worse by the
> > excuse; As patches set upon a little breach discredit more in
> > hiding of the fault than did the fault before it was so patched.
> > --Wm. Shakespeare
> >
> >
> >
> > 
> -
> > Please check that your 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: MS Word serializer

2001-08-20 Thread Max Dunn

>> Excuse me, but is there *anything* in Word XP that will facilitate
>> importing XML?  I haven't noticed such a feature.

> Word XP is _supposed_ to have XML integration.  Try exporting 
> (or saving as...) a regular Word Document as XML and examine the 
> contents.

> Keep in mind this solution is only for Word XP.

There is no "export to XML" or "Save as XML" in Word XP.  There is
output to HTML, which does contain a ton of pseudo-XML metadata, but
that is no different from Word 2000.

Back to Cocoon...

Max


-
Please check that your 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: MS Word serializer

2001-08-20 Thread Berin Loritsch

Max Dunn wrote:
> 
> >
> >> Can anyone tell me if there are any plans to write an MS Word
> >> serializer?  I want to conver XML to Word, not Word to XML.
> 
> > You have two alternatives (something I had to do in a previous job):
> 
> > 1) Learn MS Word XP's XML markup (probably the best solution)
> 
> Excuse me, but is there *anything* in Word XP that will facilitate
> importing XML?  I haven't noticed such a feature.

Word XP is _supposed_ to have XML integration.  Try exporting (or
saving as...) a regular Word Document as XML and examine the contents.

Keep in mind this solution is only for Word XP.

> I think the question was how to go from XML to Word, and I don't believe
> there is anything in Word XP that does this.  Of course you could code
> VBA to write out the Word document, mapping XML context to Word styles,
> but that would be no different with the new version of Word.  Or are you
> suggesting something else?
> 
> I apologize for persisting the off-topic subject.
> 
> Max
> 
> -
> Please check that your 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: MS Word serializer

2001-08-20 Thread Max Dunn

> 
>> Can anyone tell me if there are any plans to write an MS Word 
>> serializer?  I want to conver XML to Word, not Word to XML.

> You have two alternatives (something I had to do in a previous job):

> 1) Learn MS Word XP's XML markup (probably the best solution)

Excuse me, but is there *anything* in Word XP that will facilitate
importing XML?  I haven't noticed such a feature.  

I think the question was how to go from XML to Word, and I don't believe
there is anything in Word XP that does this.  Of course you could code
VBA to write out the Word document, mapping XML context to Word styles,
but that would be no different with the new version of Word.  Or are you
suggesting something else?

I apologize for persisting the off-topic subject.


Max


-
Please check that your 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: MS Word serializer

2001-08-20 Thread Jon Peterson

I've recently run across a similar requirement and thought about writing to
Rich Text Format.  After looking around a bit, I saw that C1 actually had a
3rd party formatter (http://sourceforge.net/projects/jfor/) that would
transform fo to rtf.  I haven't seen any references for a port to C2, but
that would be the next step (it's been regisered as a feature request).
Until then, I'll look into what's been recommended below.

Jon


- Original Message -
From: "Berin Loritsch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 8:51 AM
Subject: Re: MS Word serializer


> David Brunkow wrote:
> > n

> > Can anyone tell me if there are any plans to write an MS Word
serializer?  I
> > want to conver XML to Word, not Word to XML.
>
> You have two alternatives (something I had to do in a previous job):
>
> 1) Learn MS Word XP's XML markup (probably the best solution)
> 2) Use word to open simple HTML files.
>
> I chose the second because we had a formatted text output that needed to
be
> reformatted to a Word document.  The first solution was all Visual Basic
for
> Applications (VBA), and loaded the text in and made all the
transformations
> in no less than 72 passes.  That was an 8 hour process.
>
> The second solution used C++ to convert the text to HTML in one pass, load
the
> HTML document in Word, and apply a much simpler VBA routine.  The whole
process
> was down to a couple of minutes (the text 2 html was 5 seconds).
>
> Check this out with a regular HTML file, but try changing the extention to
> ".doc" and open the page.  (Nothing fancy, just a couple  and 
tags).
> If it opens correctly, you have your solution:  output HTML, with a Word
> mime-type.
>
> -
> Please check that your 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: RegExp Matcher not working?

2001-08-20 Thread java guru

Hi.,
  I am not sure how/what way you are testing this but
the regexp stuff is working for me...

Here is how i tested it on protected sub sitemap..

  



  

and following urls result in login2

http://localhost:8080/protected/l2
http://localhost:8080/protected/log2
http://localhost:8080/protected/login2

and following url resulted in normal login(as per
protected example)

http://localhost:8080/protected/login

Now, please note that i dont have "cocoon" in url
thats 'coz i made the cocoon as main app in
tomcat..and we can neglect that factor..

>From this, it defintely looks like the regexp is
WORKING...


 --- Max Larsson <[EMAIL PROTECTED]> wrote: >
Hi,
> 
> if i use the default matcher wildcard the sitemap
> part below
> works fine. But if i change the default matcher from
> wildcard
> to regexp it does not work. Everthing is match equal
> as 'login'.
> 
> Does anyone knows why???
> 
> Max
> 
>   
>   
>src="login/login.xsp"/>
>   
>   
>   
>   
>src="login/{login_page}.xsp"/>
>src="stylesheets/page2html.xsl"/>
>   
>   
>   
>   
> 
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
>  

=
Thanks and have great day
srini


Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit 
http://in/ groups.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: RegExp Matcher not working?

2001-08-20 Thread java guru

Hi.,
  I am not sure how/what way you are testing this but
the regexp stuff is working for me...

Here is how i tested it on protected sub sitemap..

  



  

and following urls result in login2

http://localhost:8080/protected/l2
http://localhost:8080/protected/log2
http://localhost:8080/protected/login2

and following url resulted in normal login(as per
protected example)

http://localhost:8080/protected/login

Now, please note that i dont have "cocoon" in url
thats 'coz i made the cocoon as main app in
tomcat..and we can neglect that factor..

>From this, it defintely looks like the regexp is
WORKING...


 --- Max Larsson <[EMAIL PROTECTED]> wrote: >
Hi,
> 
> if i use the default matcher wildcard the sitemap
> part below
> works fine. But if i change the default matcher from
> wildcard
> to regexp it does not work. Everthing is match equal
> as 'login'.
> 
> Does anyone knows why???
> 
> Max
> 
>   
>   
>src="login/login.xsp"/>
>   
>   
>   
>   
>src="login/{login_page}.xsp"/>
>src="stylesheets/page2html.xsl"/>
>   
>   
>   
>   
> 
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
>  

=
Thanks and have great day
srini


Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit 
http://in.groups.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]>




RegExp Matcher not working?

2001-08-20 Thread Max Larsson

Hi,

if i use the default matcher wildcard the sitemap part below
works fine. But if i change the default matcher from wildcard
to regexp it does not work. Everthing is match equal as 'login'.

Does anyone knows why???

Max
















-
Please check that your 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: MS Word serializer

2001-08-20 Thread Stefan Seifert


> David Brunkow wrote:
> > 
> > Can anyone tell me if there are any plans to write an MS 
> Word serializer?  I
> > want to conver XML to Word, not Word to XML.
> 
> You have two alternatives (something I had to do in a previous job):
> 
> 1) Learn MS Word XP's XML markup (probably the best solution)
> 2) Use word to open simple HTML files.
> 
> I chose the second because we had a formatted text output 
> that needed to be
> reformatted to a Word document.  The first solution was all 
> Visual Basic for
> Applications (VBA), and loaded the text in and made all the 
> transformations
> in no less than 72 passes.  That was an 8 hour process.
> 
> The second solution used C++ to convert the text to HTML in 
> one pass, load the
> HTML document in Word, and apply a much simpler VBA routine.  
> The whole process
> was down to a couple of minutes (the text 2 html was 5 seconds).
> 
> Check this out with a regular HTML file, but try changing the 
> extention to
> ".doc" and open the page.  (Nothing fancy, just a couple  
> and  tags).
> If it opens correctly, you have your solution:  output HTML, 
> with a Word
> mime-type.

In my experiences the last one (HTML file with extension changed to
.doc) does work only with Word 2000 and above, not with prior versions
(displays plain HTML instead). You have to use some VBA macro code for
this one too (three lines).

Stefan

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

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




Internal redirects

2001-08-20 Thread Michael Homeijer

I am working an a mechanism to have annotated pages in my web portal (like
the pages in the pet store).

The pipeline to get this working looks like this:

   

 
 



   

This way, when i have a page, say "portal", cocoon loads the portal page and
it loads the annotation page. 
The problem I have that all my images in my portal page, now refer to
annotated/image.gif instead of image.gif.

For normal images until now I duplicated the pipeline, but I also have
generated images (svg2jpeg).
And i'd like to have an internal redirect for this, something like:

   

   

Is this possible?

TIA,
Michael Homeijer

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

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




RequestParameters for HTMLGernerator

2001-08-20 Thread Gerd Mueller


Hi,

Is there a way to pass the request parameters from the cocoon sitemap through 
to the HTMLGernerator ? At the moment it seems only to support the 
'xpath'-parameter and does nothing with the rest of the parameters.


Best Regards,
Gerd

-
Please check that your 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: MS Word serializer

2001-08-20 Thread Berin Loritsch

David Brunkow wrote:
> 
> Can anyone tell me if there are any plans to write an MS Word serializer?  I
> want to conver XML to Word, not Word to XML.

You have two alternatives (something I had to do in a previous job):

1) Learn MS Word XP's XML markup (probably the best solution)
2) Use word to open simple HTML files.

I chose the second because we had a formatted text output that needed to be
reformatted to a Word document.  The first solution was all Visual Basic for
Applications (VBA), and loaded the text in and made all the transformations
in no less than 72 passes.  That was an 8 hour process.

The second solution used C++ to convert the text to HTML in one pass, load the
HTML document in Word, and apply a much simpler VBA routine.  The whole process
was down to a couple of minutes (the text 2 html was 5 seconds).

Check this out with a regular HTML file, but try changing the extention to
".doc" and open the page.  (Nothing fancy, just a couple  and  tags).
If it opens correctly, you have your solution:  output HTML, with a Word
mime-type.

-
Please check that your 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: Type and Identifier errors

2001-08-20 Thread Christopher Painter-Wakefield


Bobo,

the line numbers actually refer to the generated Java code, which is in a
repository directory as defined by your cocoon.properties file.  I think
your first error here is missing semicolons on the lines
 String fname = request.getParameter("fname")
...//some more request.getParameter()
 String email = request.getParameter("email")

-Christopher




Please respond to [EMAIL PROTECTED]

To:   <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
cc:

Subject:  XSP: Type and Identifier errors


Hello,
I am receiving this error:
java.lang.Exception: XSP Java Compiler: Compilation failed for
_newUser.java
72: Type expected.
 Class.forName("org.gjt.mm.mysql.Driver").newInstance();
   ^
240: Identifier expected.
xspParentNode = xspCurrentNode;
-^
The ligne 72: points to isIDduplicate()
 function while the line 240 points to  if-else.
I am using cocoon 1.8.2 and Tomcat3.2.1

Here is my code (this program is for form handling):





http://www.apache.org/1999/XSP/Core";>
  
java.lang.*
java.sql.*
   java.sql.Date
java.sql.DriverManager
java.sql.SQLException
   java.sql.Connection
   java.sql.ResultSet
   java.sql.Statement
 
  
 String fname = request.getParameter("fname")
...//some more request.getParameter()
 String email = request.getParameter("email")

Class.forName("org.gjt.mm.mysql.Driver").newInstance();
 String serverName =request.getServerName();
 String
URL="jdbc:mysql://"+serverName+"/ILSDB?user=Bobo&password=BoboPassword";
 Connection con  = DriverManager.getConnection(URL, "", "" );
 Statement stmt1=
con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATAB

LE);
 Statement stmt2=
con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATAB

LE);




-
I need your help.
Thank you.
Bobo,







-
Please check that your 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: Possible to assign SQL query result to XSP variable?

2001-08-20 Thread Chris Newland

Thanks Max,

It was that and the fact that I'd forgotton the  around the
.

This code works for retrieving a value or null if it does not exist in the
DB:

checking for username = username

String got_uname = "dummy";

  
lh_jdbc


  select id from enduser where enduser.id =
username



FOUND RESULTS

got_uname = ;




NO RESULTS

got_uname = null;



  

got value from db uname = got_uname


Best Regards,

Chris

> -Original Message-
> From: Max Larsson [mailto:[EMAIL PROTECTED]]
> Sent: 20 August 2001 12:24
> To: [EMAIL PROTECTED]
> Subject: AW: Possible to assign SQL query result to XSP variable?
>
>
> Hi,
>
> try to wrap it in a xsp:logic block:
>
> ...
>  
>   
>   
>   got_uname = ;
>   
>  
>  
> ...
>
> Max
>
> > -Ursprngliche Nachricht-
> > Von: Chris Newland [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 20. August 2001 13:21
> > An: Cocoon-Users
> > Betreff: Possible to assign SQL query result to XSP variable?
> >
> >
> > Hi All,
> >
> > I'm trying to test for the presence of a key in an SQL table
> > by performing
> > an SQL query and having the result (or null) set in an XSP variable:
> >
> > checking for username = username
> >
> > String got_uname = "dummy";
> >
> >   
> > my_jdbc
> > 
> > 
> >   select id from enduser where enduser.id =
> > username
> > 
> > 
> > got_uname = ;
> > 
> > 
> >   
> >
> > got value from db uname = got_uname
> >
> > where 'id' is the primary key column in the enduser table.
> >
> > Is this even a rational thing to try and do?
> >
> > When the page executes, the value for got_uname is "dummy"
> > and the Java code
> > created from the page does not attempt to assign the
> > got_uname variable to
> > the SQL result.
> >
> > Can somebody let me know if it is actually
> > possible/reasonable to try and
> > assign XSP variables from SQL queries?
> >
> > Thanks for your help,
> >
> > 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]>
> >
> >
>
>
> -
> Please check that your 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: [ANNOUNCE] XSLT-process 2.1 available

2001-08-20 Thread Gritsenko

Thank you Ovidiu,

I think this is an XSL  WYSIWYG editor we all are looking for. Am I correct?

Viktor


- Original Message -
From: "Ovidiu Predescu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 12:01 AM
Subject: [ANNOUNCE] XSLT-process 2.1 available


> What's new?
> ===
>
> This release adds few improvements to the previous release:
>
> - the ability to process the result of an XSLT transformation through
> the Apache FOP processor.
>
> - initial integration with the DocBook-XSL project; HTML and PDF
> generation and viewing from within Emacs of DocBook documents is
> supported.
>
> - support for specifying proxies and additional arguments to the
> supporting Java VM.
>
>
> What is it?
> ===
>
> XSLT-process is a minor mode for GNU Emacs/XEmacs which transforms it
> into a powerful editor with XSLT processing and debugging
> capabilities. With this mode you can:
>
> - run an XSLT processor on the Emacs buffer you edit, and view the
> results either in another Emacs buffer or in a browser.
>
> - run an XSLT processor in debug mode and view what happens during the
> XSLT transformation. You can set breakpoints, run step by step into
> your stylesheet, view global and local XSLT variables and many
> more. In this mode you effectively use GNU Emacs/XEmacs as an XSLT
> debugger.
>
> - when used with the DocBook-XSL package, GNU Emacs/XEmacs becomes a
> powerful DocBook processing system.
>
> Currently the Saxon and Xalan Java XSLT processors, and Apache FOP are
> supported, and the mode comes out of the box configured to use them.
>
> The package has been tested on XEmacs, versions 21.1.14 and 21.4.3,
> and GNU Emacs 20.7.1, under both Linux and Windows 2000.
>
> The package is free software and is distributed under GPL. The home
> page of XSLT-process is located at:
>
> http://xslt-process.sourceforge.net/
>
> Enjoy,
>
> --
> Ovidiu Predescu <[EMAIL PROTECTED]>
> http://orion.nsr.hp.com/ (inside HP's firewall only)
> http://sourceforge.net/users/ovidiu/ (my SourceForge page)
> http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other
stuff)
>
> -
> Please check that your 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: Dreaded: Sitemap handler's sitemap is not available

2001-08-20 Thread java guru

Hi Ted.,
  
1. By "restart", I mean, tomcat. Since cocoon is
webapp which lives inside a servlet engine, there is
no "restart" for cocoon by itself..

2. The sitemap is recompiled at the startup
automatically unless you use something like
pre-compile stuff(forget it for now)..

3. Earlier, you or someone mentioned about FAQ..but
again IMHO, the sitemap could have compile problems
'coz of zillion thingies...so there is no one
particular stuff to blame...

4. You may have posted the log before..sorry if i
missed it...if ur problem persists, please send ME zip
log and i shall have look at it..


Cheers

 --- Ted Mead <[EMAIL PROTECTED]> wrote: > Srini,
> 
> Thanks for your thoughts.  May I ask some clarifying
> questions?
> 
> Regarding Sitemap... is there instructions on how to
> compile Sitemap on C2
> startup?  I am not sure I know what do do here? 
> This could be the watershed
> event.
> 
> When you say restart the server... I assume you mean
> Tomcat or Cocoon?  If
> you mean Cocoon, how do you do that?  Incidently, I
> sent log excerpts doing
> exactly what you said.  Did they not have useful
> information?
> 
> Thanks!
> Ted
> 
> 
> -Original Message-
> From: java guru [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, August 19, 2001 5:20 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Dreaded: Sitemap handler's sitemap is
> not available
> 
> 
> Hi.,
>   I hate to say "search the mail archive" but here
> is
> simple explanation...
> 
> 1. Sitemap is one BIG java program to be compiled on
> c2 startup...
> 
> 2. Any problem resulting from sitemap compilation
> could result in sitemap being NOT compiled and hence
> "component for hint: sitemap not found"..
> 
> 3. Now the reasons could range to anything and
> everything..
> 
> 4. Please note that JDBC problem reported is little
> mis-leading as this does NOT pose any threat to
> sitemap compilation and hence can be ignored for
> now..
> 
> 5. Please delete the c2 log, restart the server, try
> to access the main page ONLY once...stop the
> server...read the log from BOTTOM UP...
> 
> 6. 95% of the time, you get the clue..but if still
> same..then zip the log and post it here...
> 
> 7. As i hate to suggest, but you may want to search
> mailing list archive..
> 
> good luck
> 
> 
> =
> Thanks and have great day
> srini
> 
>

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

=
Thanks and have great day
srini


Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit 
http://in/ groups.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: [C2] mysql and auto-increment

2001-08-20 Thread Orgalist

doesn't work.
send back 0 for each row there is in the table

C.

-Message d'origine-
De : Alen Milkovic [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 20 août 2001 12:00
À : [EMAIL PROTECTED]
Objet : Ang: [C2] mysql and auto-increment


>>> "Orgalist" <[EMAIL PROTECTED]> 20.08.01 11:54 >>>
>hello,
>I have a mysql database with a table 'listes' which has
>a column 'id' auto increment.
>How can I get the last inserted row's id ?
>(except using select max(id) from  )
>thanks.

Just use the LAST_INSERT_ID() function.

SELECT LAST_INSERT_ID() will return the latest inserted id.




*
This footnote confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
*

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

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


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

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




AW: Possible to assign SQL query result to XSP variable?

2001-08-20 Thread Max Larsson

Hi,

try to wrap it in a xsp:logic block:

...
 


got_uname = ;

 
 
...

Max

> -Ursprüngliche Nachricht-
> Von: Chris Newland [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 20. August 2001 13:21
> An: Cocoon-Users
> Betreff: Possible to assign SQL query result to XSP variable?
>
>
> Hi All,
>
> I'm trying to test for the presence of a key in an SQL table
> by performing
> an SQL query and having the result (or null) set in an XSP variable:
>
> checking for username = username
>
> String got_uname = "dummy";
>
>   
> my_jdbc
> 
> 
>   select id from enduser where enduser.id =
> username
> 
>   
>   got_uname = ;
> 
> 
>   
>
> got value from db uname = got_uname
>
> where 'id' is the primary key column in the enduser table.
>
> Is this even a rational thing to try and do?
>
> When the page executes, the value for got_uname is "dummy"
> and the Java code
> created from the page does not attempt to assign the
> got_uname variable to
> the SQL result.
>
> Can somebody let me know if it is actually
> possible/reasonable to try and
> assign XSP variables from SQL queries?
>
> Thanks for your help,
>
> 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]>
>
>


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

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




Possible to assign SQL query result to XSP variable?

2001-08-20 Thread Chris Newland

Hi All,

I'm trying to test for the presence of a key in an SQL table by performing
an SQL query and having the result (or null) set in an XSP variable:

checking for username = username

String got_uname = "dummy";

  
my_jdbc


  select id from enduser where enduser.id =
username


got_uname = ;


  

got value from db uname = got_uname

where 'id' is the primary key column in the enduser table.

Is this even a rational thing to try and do?

When the page executes, the value for got_uname is "dummy" and the Java code
created from the page does not attempt to assign the got_uname variable to
the SQL result.

Can somebody let me know if it is actually possible/reasonable to try and
assign XSP variables from SQL queries?

Thanks for your help,

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: Content aggregation and serializers

2001-08-20 Thread Morrison, John

Theres a better way - put all your 'internal' pipelines in one and mark it
as internal...


 
  
 
 
  
 


> -Original Message-
> From: Michael Homeijer [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 20 August 2001 11:17 am
> To: '[EMAIL PROTECTED]'
> Subject: Content aggregation and serializers
> 
> 
> To my understanding, pipelines without serializers could be used in an
> aggregator without exposing url of the aggregate part to the 
> outside world.
> In the nightly build from thursday, each pipeline (also the 
> ones used in an
> aggregator) requires a serializer.
> 
> Should I define internal pipelines in another way or was I on 
> the right way?
> 
> TIA,
> Michael Homeijer
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

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

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




Content aggregation and serializers

2001-08-20 Thread Michael Homeijer

To my understanding, pipelines without serializers could be used in an
aggregator without exposing url of the aggregate part to the outside world.
In the nightly build from thursday, each pipeline (also the ones used in an
aggregator) requires a serializer.

Should I define internal pipelines in another way or was I on the right way?

TIA,
Michael Homeijer

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

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




Ang: [C2] mysql and auto-increment

2001-08-20 Thread Alen Milkovic

>>> "Orgalist" <[EMAIL PROTECTED]> 20.08.01 11:54 >>>
>hello,
>I have a mysql database with a table 'listes' which has
>a column 'id' auto increment.
>How can I get the last inserted row's id ?
>(except using select max(id) from  )
>thanks.

Just use the LAST_INSERT_ID() function.

SELECT LAST_INSERT_ID() will return the latest inserted id.




*
This footnote confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
*

-
Please check that your 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] mysql and auto-increment

2001-08-20 Thread Orgalist

hello,
I have a mysql database with a table 'listes' which has
a column 'id' auto increment.
How can I get the last inserted row's id ?
(except using select max(id) from  )
thanks.

C.

-
Please check that your 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-formval how get results

2001-08-20 Thread cib



Hi,
 
my form's target goes to do-register2, and here is 
the sitemap.
 
    
      
    
    
 
    
The errot.xsp has a namespace on formval: 
 

  
language="java"  
xmlns:xsp="http://apache.org/xsp"  
xmlns:esql="http://apache.org/cocoon/SQL/v2"   
xmlns:xsp-formval="http://apche.org/xsp/form-validator/2.0">  

 
Your error messages:
  
 
But here is the error page 's source I get.
 

Your error messages:
http://apche.org/xsp/form-validator/2.0"/>

 
I guess either I haven't got the correct syntax, or my C2.0b1 doesn't have 
the latest class files for formval.
 
Any clue,
Thanks for answering.
 
Cib
 
France, Bordeaux, xml and gay pride.


Re: Wildcard Parameters in Sitemap

2001-08-20 Thread Piroumian, Konstantin

Hi!



> 
> 
>   
> value="context://mmsc//descriptors/login-params.xml"/>
> value="username"/>
> 
>
>
> 
> 
>   
> 
> 
>   
>   
> 
> 
> 
>
>
> Question 2:
> In the above example what would be the difference in using a single '*'
> instead of '**', I tried both and they seem to do the same thing.

Not exactly. ** goes down by the directory tree and * does not. E.g.:
*.jpg matches all JPG files in the current directory
**.jpg matches all JPG files in the current and sub-directories

>
> Question 3:
> In the above example the line:
>
>  value="context://mmsc//descriptors/login-params.xml"/>
>
> The value string as to have the prefix :'//mmsc//' which is actually the
> root application name. I don't think it should have to appear anywhere
> in this sitemap. Why can't I say:
>
>   value="descriptors/login-params.xml"/>
>
> or is there something like 'context:' that gives me
> 'context://mmsc//' ?

There's something wrong. You don't need the application name when you are
using context:// protocol. Try this:

 

I use a rather old version of C2 and this works for me too:

 

'descriptors' directory must be in the context root (in your case:
%TOMCAT_HOME%\webapps\mmsc).

>
>
> Thanks,
>
> --
> Mark Miller
> Web Architect
> Logica
> 819-3646
>
>

Best regards,

Konstantin Piroumian
Sr. Software engineer

Protek Flagship LLC
Phone: + 7 095 795 0520 (add. 1288)
Fax: + 7 095 795 0525
E-mail: [EMAIL PROTECTED]
http://www.protek.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]>