RE: Too much java in xsp

2003-02-12 Thread Ray Martin
Yes, Sir. Absolutely use an action and remove JAVA as much as possible from the xsp. When you do this and know how to pass a STRING ARRAY into the XML/XSL without the need of the XSP - please let me know - it is the only thing that i still rely on an XSP for. > -Original Message- > From:

handing an XML doc (in memory) to the sitemap

2003-01-31 Thread Ray Martin
Using the SunRise instructions found at http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunriseComponent s.html The example has a pipeline named foo-authuser In this pipeline, i call an action named checkCredentials. This action accesses several tables in a database. If a match is fo

RE: How do I read files inside an Action?

2002-12-19 Thread Ray Martin
object to determine > the flow of control. > > Sreedhar > > > -Original Message- > From: Ray Martin [mailto:[EMAIL PROTECTED]] > Sent: Wed 12/18/2002 2:42 PM > To: [EMAIL PROTECTED] > Cc: > Subject: RE: How do I read files inside an Action? > Sir

RE: How do I read files inside an Action?

2002-12-18 Thread Ray Martin
Sir, Just like any other file called from java. In the action class you would need: import java.io.File; // cocoon has some defaults - this could be one of them //nothing special here, just an example. however, this directory is where cocoon places uploaded files by default. make yours wherev

RE: problem in writing Actions

2002-12-18 Thread Ray Martin
Ant is a great thing.  However, Ant is not an absolute 'must' to be able to build actions.  There are four steps.  1) From your JAVA package directory structure, run JAVAC on the action file(s).  2) Copy the resultant class(es) to the appropriate place. 3) Run JAR.  4) Copy the resultant

RE: Writing output of pipeline to a file

2002-12-18 Thread Ray Martin
I agree.  Writing to a file is best done in an action.  Allow the XSL to do styling of presentation.  Allow actions to perform - well, actions - like writing to a file - JAVA is a beautiful thing - has great file streams.   Ray -Original Message-From: Ludovic de Beaurepaire [ma

RE: XSP/ESQL - separation of concerns?

2002-12-18 Thread Ray Martin
Sir, Have you looked at Torque, which is an Apache Software Foundation project. Torque maps objects to relational databases. Torque provides all the set/gets to access table fields. In Cocoon, you would write an action that would call the appropriate Torque classes to perform the database access

RE: How can i have both upload and saving to Xindice on click of a button?

2002-12-12 Thread Ray Martin
Sir, Cocoon places the uploaded file into a default directory. The default directory is C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\upload-dir. I use a Cocoon action to "pick up" the uploaded file from the default directory and place it where ever i wan

RE: Sendmail serial email

2002-12-02 Thread Ray Martin
Sir, I too experienced that no one would give any answers. But, i am wondering if the cocoon-users mail list server is always behaving correctly. i am subscribed to the cocoon-users list, but this is the first time that i have seen your message. i did not receive any of your previous postings on

RE: xsp !!!

2002-11-27 Thread Ray Martin
Sirs,   For a place to put 'common things', I suggest a descriptor file - XML not XSP.  The tutorial that comes with Cocoon shows (slightly) how to use the descriptor file.   The descriptor file is the place to put parameters that you want to share between the web page designers on one side a

RE: File upload with Cocoon

2002-11-08 Thread Ray Martin
Sir, Someone pointed out to me that Cocoon handles file uploading for you. I was rather skeptical - but, i just tried it and it works. On client machine, i used a browser and my form with an enctype="multipart/form-data", an HTML INPUT tag of type file, and an HTML INPUT of type submit. Of cour

mark one up for cocoon

2002-11-07 Thread Ray Martin
Ladies and gentlemen, dear users of cocoon, I am an idiot. When i do things correctly, Cocoon works just marvelous. If I cannot type, of course, Cocoon seems to have problems with my failure to type. Let me tell you where i failed to save anyone else from stumbling in the same pit - of course,

my history with cocoon

2002-11-07 Thread Ray Martin
1) Authentication - DOESN'T WORK - cannot logout - insufficient information. 2) LDAP - DOESN'T WORK - insufficient information. 3) Form Validation - DOESN'T WORK - toosmall and toolarge work, but the other tags write true and false on the form - insufficient information. 4) FileUpload - DOESN'T WOR

RE: Ldap authentication

2002-11-05 Thread Ray Martin
Dear Friend, I read your post with enthusiasm - like a thirsty man receiving a bottle of water!!! What did it say? "... look at the authenticate resource."; "...anything else..."; "...you can..."; "...can be.."; "...you could..." - WOW!!! The water bottle was empty. What do i know from the pos

RE: authentication frustration

2002-10-31 Thread Ray Martin
Sir, I understand your frustration. We have been trying to get authentication using that sunRise stuff for over a month now. One goes down the primrose path only to find absolutely nothing - that is called frustration. Actually, I believe that there is something that we have set incorrectly. But

FormValidatorAction

2002-10-29 Thread Ray Martin
using a descriptor file like employee-form.xml in the tutorial directory. have FormValidatorAction called from the sitemap. a line in core.log states "All form params successfully validated" - written by FormValidatorAction. no other lines from FormValidatorAction. therefore, neither the 'valida

never gonna make it to a butterfly

2002-10-21 Thread Ray Martin
I came into the Cocoon2 stronghold not just because I was caught in the hype. But, also, because I liked the principles on which Cocoon was founded. The fact that Cocoon is based on Avalon is a good thing. I am a fan of Avalon not only because it has the best written white paper on the subject o

no war file

2001-11-24 Thread Ray Martin
Background: Have downloaded Cocoon2 on an MS-2000 box. Ran ANT got the resultant cocoon.war. Took the downloaded Cocoon2 to another site where i am producing a web service on an Intranet with no Internet connectivity. The platform at this site is a Sun420R with Solaris 8. Ran ANT. The buil