Re: Web Site Construction Patterns?

2002-06-18 Thread Joseph Jupin

I believe the author was interested in design patterns.  not 
specifically L&F designs...  just my take on his posting...

peace.  JOe...

On Thu, 6 Jun 2002 15:56:24 -0700
  "Robert Koberg" <[EMAIL PROTECTED]> wrote:
>I think you want this site:
>
>http://www.oswd.org
>
>-Rob
>
>- Original Message -
>From: "daniel robinson" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, June 06, 2002 2:24 PM
>Subject: Re: Web Site Construction Patterns?
>
>
>> Argyn,
>>
>> Thanks for the link.  I had forgotten about ServerSide.  They're 
>>patterns
>are
>> pretty specific to Client/Server-J2EE-EJB apps.  I did find *some*
>patterns
>> for the web after poking around.  However, I think there 
>>could/should be a
>> better repository.
>>
>> Regards,
>>
>> Dan
>>
>> Argyn Kuketayev wrote:
>>
>> > check www.theserverside.com
>> >
>> > they have many patterns there.
>> >
>> > unfortunately, they are biased towards J2EE too heavily. their Web 
>>site
>is
>> > build with EJBs, btw, you can feel that with it performance :)
>> >
>> > > -Original Message-
>> > > From: daniel robinson [mailto:[EMAIL PROTECTED]]
>> > > Sent: Thursday, June 06, 2002 1:54 PM
>> > > To: [EMAIL PROTECTED]
>> > > Subject: Web Site Construction Patterns?
>> > >
>> > >
>> > > All,
>> > >
>> > > I hope this is the right place for this topic,  Please let me 
>>know if
>> > > not.
>> > >
>> > > I have just completed a basic framework (high-level) for a
>> > > Website that
>> > > I am working on.  I am an experienced programmer but this is the 
>>first
>> > > time that I have done any extensive work in
>> > > HTML/XML/XSLT/Servelets.  I
>> > > am impressed by Cocoon and it seems like a great product to
>> > > be building
>> > > my site with.
>> > >
>> > > It occurs to me as I work on this project that there everything 
>>I am
>> > > doing has been done before, lots of times.  Of course that is 
>>what
>> > > Cocoon is addressing - at different levels.  I am finding
>> > > myself haviing
>> > > to make many decisions as I move ahead.  Since I am a
>> > > complete Newbie I
>> > > have little or no reference point for making these decisions.
>> > >  What I'm
>> > > wondering is whether or not Patterns could help?
>> > >
>> > > Let me give an example.  I have to have user
>> > > sessions/authentication/permissions/profiles.  Nothing new
>> > > here.  I have
>> > > even done extensive work on this in other realms.  I am
>> > > familiar with a
>> > > number of Patterns for accomplishing this in my experience and I 
>>can
>> > > plow ahead and see what works.  I know, for example, that there 
>>is
>> > > extensive ongoing work within the Cocoon project (Sunshine?)
>> > > that works
>> > > on this.  So from my experience so far with Cocoon what it
>> > > will mean is
>> > > that I have to jump into a description of the features that
>> > > are offered
>> > > and a descirption of how it works.  Then I will have to make
>> > > a decision
>> > > to use it or not based on what I understand my requirements
>> > > to be.  What
>> > > I would really like would be a mid to high level collection
>> > > of Patterns
>> > > for dealing with these features and then a mapping of those 
>>Patterns
>> > > onto what Cocoon offers and doesn't offer.
>> > >
>> > > My premise is that if I could access this knowledge base it 
>>would make
>> > > my work easier as well as serving as a guidepost for Cocoon
>> > > itself.  (We
>> > > have implemented parts of x Pattern for the following 
>>reasons)
>> > >
>> > > Does anyone know of an effort to capture these sorts of
>> > > "Patterns of Web
>> > > Development" in an organized manner?
>> > >
>> > > Thanks,
>> > >
>> > > Dan
>> > >
>> > >
>> > > 
>>-
>> > > Please check that your question has not already been answered in 
>>the
>> > > FAQ before posting. 
>> > >
>> > > To unsubscribe, e-mail: 
>><[EMAIL PROTECTED]>
>> > > For additional commands, e-mail: 
>><[EMAIL PROTECTED]>
>> > >
>> >
>> > 
>>-
>> > Please check that your question has not already been answered in 
>>the
>> > FAQ before posting. 
>> >
>> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>> > For additional commands, e-mail: 
>><[EMAIL PROTECTED]>
>>
>>
>> -
>> Please check that your question has not already been answered in the
>> FAQ before posting. 
>>
>> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional comma

Re: pls confirm: cocoon won't work on OSX

2002-05-30 Thread Joseph Jupin

I don't know why, but for client Mac OS X - I needed to remove all of 
that stuff and any references in the sitemap to the "svg" calls...  It 
may have to do with the way java handles the windowing stuff through 
Apple's interface...  not for sure.  anyway, once that was removed, it 
works like a charm.

Haven't tried to update to 2.0.1 or higher yet - nor have I tried 
tomcat 4.03 or higher - those are to be evaulated later on after the 
current phase of my projects are completed.

Though, I would like to see you comments on noticing anything else 
different for the server side of Mac OS X - that's where everything 
will eventually reside.  cool!

peace.  JOe...


On Wed, 29 May 2002 17:36:17 -0500
  "Zack Angelo" <[EMAIL PROTECTED]> wrote:
>That's strange. C2 is running fine under OS X Server for me with all 
>of
>the Batik stuff installed. 
>
>-Zack
>
>> -Original Message-
>> From: Paul Kelly [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, May 29, 2002 3:46 PM
>> To: [EMAIL PROTECTED]
>> Cc: Gary Lawrence Murphy
>> Subject: Re: pls confirm: cocoon won't work on OSX
>> 
>> Thanks JOe and everyone else who responded. For the record here's 
>>what
>I
>> did:
>> 
>> 1) Re-installed tomcat 4.0.1 as per:
>> 
>> http://developer.apple.com/internet/macosx/tomcat1.html
>> 
>> 2) Re-installed cocoon 2.0 as per:
>> 
>> http://xml.apache.org/cocoon/installing/index.html
>> 
>> 3) Looked in the archives for clues regarding "remove all batik
>> stuff" and found:
>> 
>> http://www.mail-archive.com/cocoon-users@xml.apache.org/msg12913.html
>> 
>> Thanks Bert Van Kets
>> 
>> 4) Removed all xml branches in webapps/cocoon/sitemap.xmap 
>>containing
>> the strings "svg", "pdf" and "fop".
>> 
>> 5) Removed batik-libs.jar and fop-0_20_1-dev.jar from
>> webapps/cocoon/WEB-INF/lib/
>> 
>> 6) Started up Tomcat, went to localhost:8080/cocoon/ and it worked!
>> 
>> Only problem I noticed is that the docs can't be accessed from the
>> cocoon welcome page. Must have svg/fop/pdf-realted stuff in there?
>> 
>> Hopefully this mail will take care of this for other OS X newbie
>> users. Typing OS X into the archive serach engine doesn't do much.
>> 
>> Thanks
>> Paul
>> 
>> 
>> >currently have Tomcat 4.0.1 and Cocoon 2.0 running on Mac OS X
>> >10.1.4...  just make sure you remove all the batik stuff and you
>> >should be golden...
>> >
>> >peace.  JOe...
>> >
>> >On Tue, 28 May 2002 17:50:39 -0400
>> >  Paul Kelly <[EMAIL PROTECTED]> wrote:
>> >>I've tried the following:
>> >>
>> >>Tomcat 4.0.1 w/ cocoon 2.0
>> >>Tomcat 4.0.1 w/ cocoon 2.0.2
>> >>Tomcat 4.0.4b1 w/ cocoon 2.0
>> >>Jetty 4 w/ cocoon 2.0
>> >>Tomcat 4.0.4b1 w/ cocoon 1.8
>> >>
>> >>Each time the servlet container works fine, cocoon does not. The
>> >>only luck I've had is with Murray Todd's old pkg file which is no
>> >>longer available and is one year out of date.
>> >>
>> >>I am about ready to give up. Has anyone out there actually
>> >>installed cocoon 2 on OS X? That's all I need to know.
>> >>
>> >>--paul
>> >>
>>
>>>-
>> >>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]>
>> >>
>> >
>> >peace.  JOe...
>> >
>> >-
>> >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]>
>> 
>> 
>> other keywords: apple macintosh crash crashes
>> 
>> 
>> 
>> 
>> -
>> 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]>
>

peace.  JOe...

-
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: pls confirm: cocoon won't work on OSX

2002-05-29 Thread Joseph Jupin

currently have Tomcat 4.0.1 and Cocoon 2.0 running on Mac OS X 
10.1.4...  just make sure you remove all the batik stuff and you 
should be golden...

peace.  JOe...

On Tue, 28 May 2002 17:50:39 -0400
  Paul Kelly <[EMAIL PROTECTED]> wrote:
>I've tried the following:
>
>Tomcat 4.0.1 w/ cocoon 2.0
>Tomcat 4.0.1 w/ cocoon 2.0.2
>Tomcat 4.0.4b1 w/ cocoon 2.0
>Jetty 4 w/ cocoon 2.0
>Tomcat 4.0.4b1 w/ cocoon 1.8
>
>Each time the servlet container works fine, cocoon does not. The only 
>luck I've had is with Murray Todd's old pkg file which is no longer 
>available and is one year out of date.
>
>I am about ready to give up. Has anyone out there actually installed 
>cocoon 2 on OS X? That's all I need to know.
>
>--paul
>
>-
>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]>
>

peace.  JOe...

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




anyone else seen this?

2002-03-24 Thread Joseph Jupin

just posted on the serverSide connection...

== begin included ==

Announcing WebWork 1.0 Web Application Framework 
Posted By: Rickard Oberg on March 22, 2002  

I'm proud to announce the release of WebWork 1.0! WebWork is a HMVC 
web application framework in Java, developed as Open Source (BSD 
license) and designed to help create dynamic websites using minimal 
effort and maximum flexibility. WebWork is also being primarily used 
in the upcoming new release of TheServerSide.com. 

It's architecture is easy to learn and understand, yet has features 
that allow for complex applications to be built. 

For more information, read the entire release message or download 
WebWork (including documentation) from: 
http://sourceforge.net/projects/webwork 

One of the main features is it's total separation between the 
controller and view aspects of an application, thus allowing for a 
multitude of view technologies to be utilized. Out of the box WebWork 
has support for JSP (and comes with an extensive tag library that 
covers most needs), XSLT, and the template engine Velocity. Adding 
support for more such tools is very easy (the velocity "integration" 
was done in hours), allowing you to have maximum flexibility with 
regard to how you structure your application. 


http://www.theserverside.com/home/thread.jsp?thread_id=12593

== end included ==

any thoughts or comments?

peace.  JOe...

-
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: XUL ?

2002-03-19 Thread Joseph Jupin

take a look at jxul and luxor (www.luxor.org)...
we're looking at doing the same thing only in terms of 
generating the XUL like language and then parsing it in a 
Swing-based app afterwards...

jxul merely tries to emulate the XUL stuff - but is still 
tied to the mozilla components - so may not be what you 
want.  

luxor is attempting to write a language to define the user 
interface so that it can generate all the jtables, 
jbuttons, etc based on that spec.  unfortunately, he's 
mixed in some things that are superfluous - so look at it 
carefully.  but he gives a good starting point for 
creating you own XUL based language - after that, if you 
need to parse it into something else, you need to write 
your own XSL stylesheet to handle that...

cool.

peace.  JOe...


On Tue, 19 Mar 2002 09:47:12 +0100
  TREGAN Fabien <[EMAIL PROTECTED]> 
wrote:
>>I don't know anything abou XUL but
>
>It's the XML based GUI-definition used by Mozilla.
>
>>you may be interested in
>>Web Services User Interface consortium
>>http://www.wsui.org/
>
>I've hade a look at this, interesting !
>It's not what I was looking for :
>-wsui allow to map a component to a web services calls.
>-What I'm looking for (and what XUL is) is a standard 
>langauge to describe
>the GUI. My probleme is that actually, in (x)HTML, you 
>can easily tell that
>you want a text input, and let the CSS define how the 
>input will look like
>BUT you have no way to say that you want a menu, and let 
>the CSS define if
>it's a drop-down menu, a treeview, ...
>
>So what i'd like to have in my cocoon project is a SIMPLE 
>transformation of
>my XML datas in a standardized, easy to generate, 
>gui-describing-xml stream,
>and a re-usable layer for gui-description to XHTML 
>transformation.
>
>There are still several question for wich I do not have 
>any answer :
>-Should I define my own 'xgui' set of component or should 
>I use (extend ?)
>xul or uiml ?
>-Is a standard gui-def -> XHTML transformer out of C2 
>scope ?
>-What are the url I should start reading before trying to 
>answer this
>questions by myself ?
>
>Any suggestion is, of course, welcome !
>
>fabien.
>
>
>-
>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: Security/encryption

2002-03-18 Thread Joseph Jupin

I'm going to answer this in terms of an SSL connection 
from a client to your webserver (Apache or Tomcat, etc)... 
 In the Tomcat documentation it states that when an SSL 
connection is made, the connection is encrypted from the 
client to the webserver as in any normal webserver 
situation.  The server itself is responsible for taking 
the encrypted stream, un-encrypting them and then 
forwarding them on to the respective called for agent (in 
this case Cocoon)...  So, Cocoon would only be as secure 
as the level of SSL encryption employed by your container 
webserver (128 bit, for example)...

Please look at the Tomcat startup page and click on their 
Security-HOW-TO section...  cool.

peace.  JOe...

On Sat, 16 Mar 2002 19:30:49 +
  Peter Robins <[EMAIL PROTECTED]> wrote:
>On Friday 15 Mar 2002 11:07 pm, Vadim Gritsenko wrote:
>>
>> How do you handle plain text DB password in the 
>>weblogic's config.xml
>> file? Or in the JRun server's local.properties file? Or 
>>Tomcat's
>> server.xml?
>
>I don't. I don't use weblogic or jrun, nor do I have 
>passwords in server.xml
>
>> I guess that you can apply same technique to the 
>>Cocoon's cocoon.xconf.
>>
>> PS Cocoon uses Avalon's JDBC pools, so you may want to 
>>ask this on
>> Avalon list.
>
>the question wasn't specific to DB, but a general 
>question as to whether 
>Cocoon handles encrypted data elements. However, looks 
>like I have the answer 
>- no :-)
>
>-
>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: Pizza

2002-03-15 Thread Joseph Jupin

Actually, guys, try the following:

StringBuffer sb = new StringBuffer();
sb.append("");
sb.append("three);
sb.append("trhee);
sb.append("");

String s = sb.toString();

that way, he can keep the breakout he wanted - and 
stringBuffer can add as many return ("\n") as you want by 
merely appended.  cool.

peace.  JOe...
ps -> btw, java has always maintained that it's more 
efficient to work with stringbuffers when manipulating 
non-static items...

On Fri, 15 Mar 2002 10:26:03 +1100
  "Faulkner, Perry" <[EMAIL PROTECTED]> wrote:
>Ed,
>
>The alternate, for readability would be:
>
>  String s =
>" " +
>" three" +
>" three" +
>" ";
>
>or a variation!
>
>The lang spec says - no embedded line terminators, 
>unfortunately for your
>original!
>
>Perry
>
>-Original Message-
>From: Ed Jenkins [mailto:[EMAIL PROTECTED]]
>Sent: Friday, 15 March 2002 10:22
>To: [EMAIL PROTECTED]
>Subject: RE: Pizza
>
>
>I tried that.  I put the xml all on one line (without \n) 
>and it compiled.  
>But I liked having it split up because it was readable.
>
>Ed
>
>---
>
>From: "Faulkner, Perry" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" 
><[EMAIL PROTECTED]>
>Subject: RE: Pizza
>Date: Fri, 15 Mar 2002 09:55:26 +1100
>
>Hi Ed,
>
>Will
>
>  String s = 
>"\nthree\nthree\n";
>
>solve the problem?
>
>Perry
>
>-Original Message-
>From: Ed Jenkins [mailto:[EMAIL PROTECTED]]
>Sent: Friday, 15 March 2002 9:20
>To: [EMAIL PROTECTED]
>Subject: Pizza
>
>
>Yesterday, we upgraded to Cocoon 2.0.2dev.  In that 
>version, in
>cocoon.xconf, the default compiler was switched from 
>Javac to Pizza.
>
>Pizza is reporting some compilation errors in my XSP 
>files that were OK when
>
>compiled with Javac.  Also, I believe the JLS would not 
>consider this to be
>an error.
>
>Here is a small example of the code:
>
>
>  private void setSomething()
>  {
>  String s =
>  "
>  
>  three
>  three
>  
>  ";
>  request.getSession().setAttribute("something", 
>s);
>  }
>
>
>Here are the errors I'm getting:
>
>Line 106, column 13:  unclosed character literal
>Line 106, column 12:  illegal start of expression
>Line 139, column 14:  unclosed character literal
>
>When I change it to this, the errors go away:
>
>String s = "";
>
>I think it doesn't like it when a string literal is split 
>up into multiple
>lines.  What's up with that?
>
>I see that Pizza is made by SourceForge.  Who should I 
>contact there to ask
>about this?  www.sf.net is currently down.
>
>Ed
>
>
>_
>Get your FREE download of MSN Explorer at 
>http://explorer.msn.com/intl.asp.
>
>
>-
>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]>
>
>
>
>
>
>_
>Join the world's largest e-mail service with MSN Hotmail. 
>http://www.hotmail.com
>
>
>-
>Please check that your question has not already been 
>answered in the
>FAQ before posting. 
>
>
>To unsubscribe, e-mail: 
><[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><[EMAIL PROTECTED]>
>
>-
>Please check that your question has not already been 
>answered in the
>FAQ before posting. 
>
>
>To unsubscribe, e-mail: 
><[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><[EMAIL PROTECTED]>
>


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

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




Re: StreamGenerator: Could not get parser

2002-02-14 Thread Joseph Jupin

h...  something else weird happened- your emails never 
it made it to my base account.  and you have the correct 
email address - strange...  anyway, answered your question 
in an earlier post - let me know that you got it okay...

peace.  JOe...

On Wed, 13 Feb 2002 19:11:40 -0500
  "Steven Caswell" <[EMAIL PROTECTED]> wrote:
>I did the search on your name and did not find what 
>looked like the
>posting.  I did get things working yesterday but I'd 
>still be interested
>in seeing your solution.  My problem was with how I was 
>building the
>form field content.
>
>TIA
>
>-Original Message-
>From: Joseph Jupin [mailto:[EMAIL PROTECTED]] 
>Sent: Tuesday, February 12, 2002 11:58 AM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: Re: StreamGenerator: Could not get parser
>
>
>Hi, Steve...
>
>I did detail the solution out in another post to this 
>newsgroup.  I don't have a reference to the exact post - 
>but search for my last name and see if it returns from 
>that.  If not, I'll search the archives tonite and 
>forward 
>it to you.  In it, I detail what I did with the sitemap 
>and what I had to write in my servlet to get this to 
>work.
>
>cool.
>
>peace.  JOe...
>ps -> last name is :  jupin
>
>On Mon, 11 Feb 2002 12:36:32 -0500
>   "Steven Caswell" <[EMAIL PROTECTED]> wrote:
>>Joe, could you share your solution.  I am having the same
>>problem.
>>  
>>TIA
>>
>>-Original Message-
>>From: Steven Caswell [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, February 11, 2002 12:07 PM
>>To: [EMAIL PROTECTED]
>>Subject: 
>>
>>
>>
>>Actually, that was a fat-finger on my part, Kinga...  I
>>typed in the sitemap by hand - but it really is going to 
>>request2...  Also, I changed the variable name in the 
>>sitemap and form accordingly - removed the 
>>capitalization...  it appears that when setting a request 
>>attribute on the URLConnection class - it converts it all 
>>to lower case on the way out - thus, I had to make the 
>>change... 
>>
>>But, I solved my problem which I'll detail in another
>>message... 
>>
>>many thanx for your help!
>>
>>peace.  JOe...
>>
>>On Thu, 31 Jan 2002 06:03:12 -0800 
>>   "DZIEMBOWSKI,KINGA (HP-NewJersey,ex2)"
>><[EMAIL PROTECTED]> wrote: 
>>> 
>>>Hi,
>>>The expected form name is "Foo" it looks like you have 
>>>"foo". 
>>>I assume you are sending the xml document using the form 
>>>similar to 
>>>OrderPage. 
>>>I like point to you that the request you are sending is 
>>>REQUEST: 
>>>/cocoon/request2 and the sitemap entry you are showing 
>>>references request1. 
>>>Kinga 
>>
>
>
>
>_
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>-
>Please check that your question has not already been 
>answered in the
>FAQ before posting. 
><http://xml.apache.org/cocoon/faqs.html>
>
>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. <http://xml.apache.org/cocoon/faqs.html>

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




Re: Cocoon1 -> Cocoon2

2002-02-13 Thread Joseph Jupin

In our design, we were trying to keep a clear delineation 
(sp?) from our transforming engine (cocoon) and our 
requestor - in the case of the code I provided, this was 
to show how a servlet from another web server could call 
cocoon and get the transformed results - we also have a 
swing client that calls the cocoon server to help 
dynamically generate our user interfaces (cocoon generates 
our version of XUL)...  you get idea...

We never meant for everything to be contained within one 
sole process/webserver...  just my $0.02 (US)

peace.  JOe...

On Wed, 13 Feb 2002 15:20:29 +0100
  <[EMAIL PROTECTED]> wrote:
>> But you have to look at the memory aspect too...
>> A new instance of the generator is created at each 
>>request and so the 
>> amount of memory allocated keeps increasing.
>
>:( Too bad. 
>
>> With cocoon2 you can also use a servlet as a generator. 
>>It's 
>> certainly not 
>> the best solution neither but since you have already a 
>>servlet...
>
>How can I do that ? Should I implement the Generator 
>interface too
>in my servlet, or do the HTTP request thing what Jupin 
>suggested ? 
>Or is there any other way to do that ? I saw plenty of 
>exapmles 
>which use JSP, HTML, XSP and other thing as a generator, 
>but nowhere
>a simple Java (servlet) code. 
>
>-
>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: StreamGenerator: Could not get parser

2002-02-12 Thread Joseph Jupin

Hi, Steve...

I did detail the solution out in another post to this 
newsgroup.  I don't have a reference to the exact post - 
but search for my last name and see if it returns from 
that.  If not, I'll search the archives tonite and forward 
it to you.  In it, I detail what I did with the sitemap 
and what I had to write in my servlet to get this to work.

cool.

peace.  JOe...
ps -> last name is :  jupin

On Mon, 11 Feb 2002 12:36:32 -0500
  "Steven Caswell" <[EMAIL PROTECTED]> wrote:
>Joe, could you share your solution.  I am having the same 
>problem.
>  
>TIA
>
>-Original Message-
>From: Steven Caswell [mailto:[EMAIL PROTECTED]] 
>Sent: Monday, February 11, 2002 12:07 PM
>To: [EMAIL PROTECTED]
>Subject: 
>
>
>
>Actually, that was a fat-finger on my part, Kinga...  I 
>typed in the sitemap by hand - but it really is going to 
>request2...  Also, I changed the variable name in the 
>sitemap and form accordingly - removed the 
>capitalization...  it appears that when setting a request 
>attribute on the URLConnection class - it converts it all 
>to lower case on the way out - thus, I had to make the 
>change... 
>
>But, I solved my problem which I'll detail in another 
>message... 
>
>many thanx for your help! 
>
>peace.  JOe... 
>
>On Thu, 31 Jan 2002 06:03:12 -0800 
>   "DZIEMBOWSKI,KINGA (HP-NewJersey,ex2)" 
><[EMAIL PROTECTED]> wrote: 
>> 
>>Hi, 
>>The expected form name is "Foo" it looks like you have 
>>"foo". 
>>I assume you are sending the xml document using the form 
>>similar to 
>>OrderPage. 
>>I like point to you that the request you are sending is 
>>REQUEST: 
>>/cocoon/request2 and the sitemap entry you are showing 
>>references request1. 
>>Kinga 
>


-
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: servlets & C2

2002-02-12 Thread Joseph Jupin

please look for my posts from several days ago.  I 
specifically show how to modify the sitemap to use the 
stream generator to capture output from a servlet to send 
to cocoon and capture the results.  I also show the 
specific java code in the servlet to fire off to cocoon...

sorry, but I don't remember the title of my post - but 
look for my last name :  jupin
(It's almost always guaranteed to be unique...)

peace.  JOe...

On Sun, 10 Feb 2002 09:17:46 +0100
  "Stefani L." <[EMAIL PROTECTED]> wrote:
>To anyone who can help me,
>
>I have recently installed C2 and it works well with 
>tomcat 4.0.1. However, I have a java servlet that outputs 
>XML and would like to have C2 take this and transform it 
>to the appropriate format as defined by the XML file 
>(i.e. with the appropriate stylesheet).
>
>I read the email sent a few days ago regarding how to do 
>this, but couldn't figure out exactly how to implement 
>this.
>
>Could anyone write specific examples on how to do this? 
>How do you call cocoon from a java servlet? what 
>modifications must be made to the sitemap? Which 
>component of the javadocs is appropriate to look at?
>
>I did not find any documentation regarding this issue.
>
>Many thanks,
>Stefani L.
>
>
>Radon--
>
>
>
>
>_
>Chat with friends online, try MSN Messenger: 
>http://messenger.msn.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]>




AW: Having Servlet call Cocoon and then capturing results...

2002-02-08 Thread Joseph Jupin

Hey, All,

Since I posted that response of having a serlvet talk to 
cocoon and capture the results, I've had several requests 
on how to do this.  First off, let me give the reason why 
we chose this way:

We have a state machine that is sending xml documents of 
activities across the net.  The result can be renderer in 
either xml, wml, pager-format or even XUL for swing.  The 
issue for is that we wanted just a fronting servlet to 
handle the request that we all talk to and then separate 
the transformations (using cocoon) into it's own separate 
process.  That why, since the xml is dynamic, we can 
easily switch on parameters, etc.

So, on to how I solved this:

first off, I have a sub-sitemap and in it, I have the 
following pipeline segment.  Notice that my servlet passes 
in several parameters, but for now, I'm only interested in 
the "xml" parameter and "style" parameter.  (this assumes 
that you set up the request selector as shown in the 
cocoon sitemap.xmap section of selectors.)

   

   

  
 
  

  
 
  
  
  
  
  
  
 
 



So, what does this say?  It states that take whatever is 
streamed in as the xml parameter and then select the 
transform based on the "style" parameter and serialize the 
results as html.

In my servlet, I have the following (which calls cocoon - 
the results from cocoon are then sent to the httpResponse 
writer (note:  I have a sub-site called "zodiac" - and no, 
I haven't mapped the root of cocoon yet in tomcat - we're 
still in development and that will come later when we go 
production)...

   StringBuffer uri = new 
StringBuffer("http://localhost:8080/cocoon/zodiac/request1";); 
BufferedReader br = null;

try {

   //
   // setup my url connection stuff to be sent to 
cocoon...
   //

   URL miurl = new URL(uri.toString());
   URLConnection con = miurl.openConnection();
   con.setDoOutput(true);
   con.setDoInput(true);
   con.setUseCaches(false);
   con.setRequestProperty("Content-
type","application/x-www-form-urlencoded ; 
charset=ISO-8859-1");

   String params = "&mode=" + mode + "&style=" + 
style + "&lang=" + lang + "&action=" + action;

   // 
   // note:  here, s is passed in as the string of
   //of xml data (properly formed).
   //Now, you need to figure the length of
   //of the data being sent since the 
stream
   //won't be able to figure out how to 
stop
   //reading for parameters!  <---  VERY
   //important!!!
   //
   String length = 
Integer.toString((URLEncoder.encode(s.toString())+ 
params).length());
  
   //  computed my length, now, set that request
   //  property and start writing to the stream!

   con.setRequestProperty("Content-length", 
length);
   DataOutputStream dos = new 
DataOutputStream(con.getOutputStream());
   dos.writeBytes("xml=" + 
URLEncoder.encode(s.toString()) + params);
   dos.close();

   sb = new StringBuffer();

// done.
// read any results.
// and handle them accordingly in your 
results.
//  I just capture it all in a stringBuffer
//  and then do any manipulation in other 
//  methods...
//

InputStreamReader isr = new 
InputStreamReader(con.getInputStream());
br = new BufferedReader(isr);

String aline;
while ((aline=br.readLine()) != null)
sb.append(aline);

br.close();

} catch (MalformedURLException mfe) {
   System.out.println("mfe: " + mfe.toString());
} catch (IOException ioe) {
   System.out.println("ioe: " + ioe.toString());
} catch (Exception e) {
   System.out.println("e: " + e.toString());
}

return sb;


The returned string buffer (sb) is then sent to the writer 
for output - it works great as a fronting servlet that I 
can change paremeters to and get dynamic xml & html files 
back from.

hope this helps...

peace.  JOe...

-
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: javaservlet xml cocoon

2002-02-07 Thread Joseph Jupin

oh - I'm using Cocoon 2.0.1...  sorry.
peace.  JOe...

On Thu, 07 Feb 2002 11:22:52 -0700
  Vishal Khatnani <[EMAIL PROTECTED]> wrote:
>I am using cocoon 1.8 by the way.
>
>Vishal Khatnani wrote:
>> 
>> Hi,
>> 
>> The problem im having is with cocoon and java servlets. 
>>I am using
>> cocoon with iplanet web server and i can successfully 
>>view static xml
>> pages. The problem is that my java servlet prints xml 
>>output, and it
>> doesn't get passed to cocoon. All i get is a blank page. 
>>However, when i
>> go to "view source" on my browser, I can see the xml 
>>output but it's not
>> being passed to cocoon. I did a lot of searching over 
>>the net and found
>> something regarding a producer class that passes the out 
>>stream to
>> cocoon... but I couldn't really understand it.
>> 
>> Please email me with ideas, links to source code, etc.
>> 
>> Greatly appreciated...
>> 
>> Thanks in advance.
>> 
>> --
>> Vishal Khatnani  -- x74287
>> Applications Support/Sys Admin
>> Infrastructure Support Group (ESIT)
>> Sun Microsystems, Inc.
>> 
>> -
>> 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]>
>
>-- 
>Vishal Khatnani  -- x74287
>Applications Support/Sys Admin
>Infrastructure Support Group (ESIT)
>Sun Microsystems, Inc.
>
>-
>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: javaservlet xml cocoon

2002-02-07 Thread Joseph Jupin

are you calling the servlet first and having it talk to 
cocoon?  If so, then you need to use the  pipeline to capture the output and then 
have it processed by the rest of the pipeline - this is 
what I do with my stuff  (plus some other URLConnection 
setup stuff in the servlet)...  If you need an example, 
please let me know...

peace.  JOe...

On Thu, 07 Feb 2002 11:20:09 -0700
  Vishal Khatnani <[EMAIL PROTECTED]> wrote:
>Hi,
>
>The problem im having is with cocoon and java servlets. I 
>am using
>cocoon with iplanet web server and i can successfully 
>view static xml
>pages. The problem is that my java servlet prints xml 
>output, and it
>doesn't get passed to cocoon. All i get is a blank page. 
>However, when i
>go to "view source" on my browser, I can see the xml 
>output but it's not
>being passed to cocoon. I did a lot of searching over the 
>net and found
>something regarding a producer class that passes the out 
>stream to
>cocoon... but I couldn't really understand it.
>
>Please email me with ideas, links to source code, etc.
>
>Greatly appreciated... 
>
>Thanks in advance.
>
>-- 
>Vishal Khatnani  -- x74287
>Applications Support/Sys Admin
>Infrastructure Support Group (ESIT)
>Sun Microsystems, Inc.
>
>-
>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: Installing Cocoon2 on MacOSX

2002-02-04 Thread Joseph Jupin

MacOSX Cocoon works perfectly fine with the standard 
distribution.  The only problem I had was with compiling 
the classes, the zip tool cut off the characters of file 
names after a certain point.  So, I had to traverse the 
directory and put the names back in for the source files. 
 Then, compilation worked like a charm - same command as 
they use for the solaris build.  Just stick everything 
under /usr/local and you should be golden.

peace.  JOe...
ps -> I have cocoon running on both a graphite g4 and my 
titanium powerbook - one is MacOS X server the other is 
just standard MaxOS X.

On Sat, 2 Feb 2002 18:21:40 +0100
  M. Reck <[EMAIL PROTECTED]> wrote:
>Hello all!
>
>Does anybody know where i can find instructions how to 
>install Cocoon 2 on MacOSX?
>
>Any help appreciatet,
>Martina
>
>
>-
>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: StreamGenerator: Could not get parser

2002-01-31 Thread Joseph Jupin

Actually, that was a fat-finger on my part, Kinga...  I 
typed in the sitemap by hand - but it really is going to 
request2...  Also, I changed the variable name in the 
sitemap and form accordingly - removed the 
capitalization...  it appears that when setting a request 
attribute on the URLConnection class - it converts it all 
to lower case on the way out - thus, I had to make the 
change...

But, I solved my problem which I'll detail in another 
message...

many thanx for your help!

peace.  JOe...

On Thu, 31 Jan 2002 06:03:12 -0800
  "DZIEMBOWSKI,KINGA (HP-NewJersey,ex2)" 
<[EMAIL PROTECTED]> wrote:
>
>Hi,
>The expected form name is "Foo" it looks like you have 
>"foo".
>I assume you are sending the xml document using the form 
>similar to
>OrderPage.
>I like point to you that the request you are sending is 
>REQUEST:
>/cocoon/request2 and the sitemap entry you are showing 
>references request1.
>Kinga
>
>> -Original Message-
>> From: Joseph Jupin [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, January 30, 2002 7:21 PM
>> To: [EMAIL PROTECTED]
>> Subject: StreamGenerator: Could not get parser
>> 
>> 
>> Hey, All...
>> 
>> Does anyone know how to handle that error listed above? 
>>  It's in my cocoon.log file and is the result of my 
>> posting to cocoon via the Stream...
>> 
>> Here's the sitemap entry:
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> And yes, the stylesheet is there in the correct place, 
>> etc...  Here's the messages in the log (WARNING:  LONG!)
>> 
>> Many thanx for any help...
>> 
>> peace.  JOe...
>> 
>> === begin included ===
>> 
>> DEBUG   (2002-01-30) 19:07.49:207   [cocoon  ] 
>> (/cocoon/request2) HttpProcessor[8080][4]/Cocoon: 
>> DEBUGGING INFORMATION:
>> REQUEST: /cocoon/request2
>> 
>> CONTEXT PATH: /cocoon
>> SERVLET PATH: /request2
>> PATH INFO: null
>> 
>> REMOTE HOST: 172.30.25.117
>> REMOTE ADDRESS: 172.30.25.117
>> REMOTE USER: null
>> REQUEST SESSION ID: null
>> REQUEST PREFERRED LOCALE: en_US
>> SERVER HOST: localhost
>> SERVER PORT: 8080
>> 
>> METHOD: GET
>> CONTENT LENGTH: -1
>> PROTOCOL: HTTP/1.1
>> SCHEME: http
>> AUTH TYPE: null
>> 
>> CURRENT ACTIVE REQUESTS: 1
>> MAXIMUM ACTIVE REQUESTS: 1
>> 
>> REQUEST PARAMETERS:
>> 
>> PARAM: 'style' VALUES: '[generic]'
>> PARAM: 'mode' VALUES: '[html]'
>> PARAM: 'lang' VALUES: '[en]'
>> PARAM: 'foo' VALUES: '[> encoding="UTF-8"?>
>> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >
>>  
>>   123 
>>  
>>  
>>  
>>   1 
>>   String 
>>  
>>   Company 
>>  
>>   String 
>>   Maersck 
>>  
>>  
>>  
>>   Cargo 
>>  
>>   String 
>>   Rocks 
>>  
>>  
>>  
>>   Container ID 
>>  
>>   String 
>>   XYX123 
>>  
>>  
>>  
>>   Berth 
>>  
>>   String 
>>   100-Z 
>>  
>>  
>>  
>>  
>>  
>> 
>> ]'
>> HEADER PARAMETERS:
>> 
>> PARAM: 'user-agent' VALUES: '[Java1.3.1]'
>> PARAM: 'host' VALUES: '[localhost:8080]'
>> PARAM: 'accept' VALUES: '[text/html, image/gif, 
>> image/jpeg, *; q=.2, */*; q=.2]'
>> PARAM: 'connection' VALUES: '[keep-alive]'
>> 
>> SESSION ATTRIBUTES:
>> 
>> 
>> DEBUG   (2002-01-30) 19:07.49:211   [cocoon  ] 
>>

StreamGenerator: Could not get parser

2002-01-30 Thread Joseph Jupin

Hey, All...

Does anyone know how to handle that error listed above? 
 It's in my cocoon.log file and is the result of my 
posting to cocoon via the Stream...

Here's the sitemap entry:



   





And yes, the stylesheet is there in the correct place, 
etc...  Here's the messages in the log (WARNING:  LONG!)

Many thanx for any help...

peace.  JOe...

=== begin included ===

DEBUG   (2002-01-30) 19:07.49:207   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/Cocoon: 
DEBUGGING INFORMATION:
REQUEST: /cocoon/request2

CONTEXT PATH: /cocoon
SERVLET PATH: /request2
PATH INFO: null

REMOTE HOST: 172.30.25.117
REMOTE ADDRESS: 172.30.25.117
REMOTE USER: null
REQUEST SESSION ID: null
REQUEST PREFERRED LOCALE: en_US
SERVER HOST: localhost
SERVER PORT: 8080

METHOD: GET
CONTENT LENGTH: -1
PROTOCOL: HTTP/1.1
SCHEME: http
AUTH TYPE: null

CURRENT ACTIVE REQUESTS: 1
MAXIMUM ACTIVE REQUESTS: 1

REQUEST PARAMETERS:

PARAM: 'style' VALUES: '[generic]'
PARAM: 'mode' VALUES: '[html]'
PARAM: 'lang' VALUES: '[en]'
PARAM: 'foo' VALUES: '[
http://www.w3.org/2001/XMLSchema-instance"; >

 123 



 1 
 String 

 Company 

 String 
 Maersck 



 Cargo 

 String 
 Rocks 



 Container ID 

 String 
 XYX123 



 Berth 

 String 
 100-Z 






]'
HEADER PARAMETERS:

PARAM: 'user-agent' VALUES: '[Java1.3.1]'
PARAM: 'host' VALUES: '[localhost:8080]'
PARAM: 'accept' VALUES: '[text/html, image/gif, 
image/jpeg, *; q=.2, */*; q=.2]'
PARAM: 'connection' VALUES: '[keep-alive]'

SESSION ATTRIBUTES:


DEBUG   (2002-01-30) 19:07.49:211   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/DefaultPool: 
Retrieving a 
org.apache.cocoon.components.pipeline.CachingEventPipeline 
from the pool
DEBUG   (2002-01-30) 19:07.49:212   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/DefaultPool: 
Retrieving a 
org.apache.cocoon.components.pipeline.CachingStreamPipeline 
from the pool
DEBUG   (2002-01-30) 19:07.49:226   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/sitemap_xmap: 
Matched wildcardmatcher_wildcard_N4004B8 pattern:request2
DEBUG   (2002-01-30) 19:07.49:227   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/AbstractSitemap: 
Current Sitemap Parameters:
PARAM: '0' VALUE: 'request2'

DEBUG   (2002-01-30) 19:07.49:227   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/sitemap_xmap: 
Component generator:stream(param)
DEBUG   (2002-01-30) 19:07.49:228   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/DefaultPool: 
Retrieving a org.apache.cocoon.generation.StreamGenerator 
from the pool
DEBUG   (2002-01-30) 19:07.49:228   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/sitemap_xmap: 
contains_view("", "null")
DEBUG   (2002-01-30) 19:07.49:229   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/sitemap_xmap: 
Component transformer:xslt(emptyParam)
DEBUG   (2002-01-30) 19:07.49:230   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/sitemap_xmap: 
Source=stylesheets/generic.xsl
DEBUG   (2002-01-30) 19:07.49:231   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/DefaultPool: 
Retrieving a 
org.apache.cocoon.transformation.TraxTransformer from the 
pool
DEBUG   (2002-01-30) 19:07.49:231   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/sitemap_xmap: 
contains_view("", "null")
DEBUG   (2002-01-30) 19:07.49:232   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/sitemap_xmap: 
Component serializer:html(emptyParam)
DEBUG   (2002-01-30) 19:07.49:232   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/DefaultPool: 
Retrieving a 
org.apache.cocoon.serialization.HTMLSerializer from the 
pool
DEBUG   (2002-01-30) 19:07.49:232   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/sitemap_xmap: 
contains_view("", "null")
DEBUG   (2002-01-30) 19:07.49:234   [cocoon  ] 
(/cocoon/request2) HttpProcessor[8080][4]/URLFactoryImpl: 
Making URL from 
file:/usr/local/jakarta-cocoon/webapps/cocoon/stylesheets/generic.xsl
DEBUG   (2002-01-30) 19:07.49:235   [coc

Re: problems with StreamGenerator...

2002-01-30 Thread Joseph Jupin

Hi, Kinga...

Thanx for taking time to talk about this.  But so far, 
that solution's not working either.  Just a quick question 
- does the contents of the postData need to be of the form 
"?foo=data" and does the data segment need to be url 
encoded?

I've put your suggestions in and so far, the server hangs 
- it never responds back - and doesn't even act like it's 
been queried...  kinda strange...

again, many thanx...

peace.  JOe...

On Wed, 30 Jan 2002 11:11:53 -0800
  "DZIEMBOWSKI,KINGA (HP-NewJersey,ex2)" 
<[EMAIL PROTECTED]> wrote:
>Hi,
>
>As a first step you should specify the Content-type HTTP 
>header.
>StreamGenerator do not accepts all mime types.
>connect.setRequestProperty( "Content-type", "text/xml" );
>
>As a second the StreamGenerator sample is showing one of 
>the aspects of
>StreamGenerator - ability to process the data coming from 
>the form. I such
>case it expects the payload to be a value of the "Foo" 
>parameter. This is
>not the main reason for existence of this generator. The 
>main reason is the
>ability to process POST requests where the payloads is in 
>InputStream. This
>is typical scenario for the clients implemented using 
>HttpURLConnection. (By
>the way be careful, HttpURLConnection has a bug. If the 
>response has
>statusCode >400 you will be unable to retrieve the 
>response payload,
>exception is thrown...)
>
>The code sample to do that can be similar to:
>   Assuming you have a xml contents in String postData
>
>   connect.setRequestMethod("POST"); 
>   connect.setAllowUserInteraction(false); 
>   connect.setDoOutput(true); 
>
>   // Sets the default Content-type and content length for 
>POST
>requests 
>   connect.setRequestProperty( "Content-type", "text/xml" 
>); 
>   connect.setRequestProperty( "Content-length",
>Integer.toString(postData.length()));
>   // Gets the output stream and POSTs data 
>   OutputStream POSTStream = connect.getOutputStream(); 
>   PrintWriter POSTWriter = new PrintWriter(POSTStream); 
>   POSTWriter.println(postData); 
>   POSTWriter.flush(); 
>   POSTWriter.close(); 
>I hope this will help
>Kinga
>
>> -Original Message-
>> From: Joseph Jupin [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, January 30, 2002 12:47 PM
>> To: [EMAIL PROTECTED]
>> Subject: problems with StreamGenerator...
>> 
>> 
>> Hey, All...
>> 
>> I've been using Cocoon 2.0 for about a month & 1/2 now 
>>and 
>> I've run into the following problem:
>> 
>> First off, refer to the Order example that comes with 
>> cocoon which when you hit the submit, it will return the 
>> xml typed into the textarea.  Now, for testing, I've 
>>taken 
>> my xml doc, modified the stream pipeline to use my 
>> transform and then output html.  Using the same form, 
>> entered my xml text (cut & Paste from my text file) - 
>>hit 
>> submit and it works like a charm - the generated HTML 
>> comes back after the transform.
>> 
>> Now, the problem is in an application I'm writing that 
>> needs to send the XML data as a parameter call to the 
>> cocoon server and capture the resulting HTML.  Using the 
>> URL class and URLConnection class, I have to pass the 
>> parameter (say "Foo") and the URLEncoder.encode value of 
>> the parameter (URLEncoder.encode(some text))...  The 
>> problem is that the stream or cocoon doesn't see the 
>> parameter passed in.  Any ideas on how to get it to 
>> understand the URLEncoded parameter.
>> 
>> Here's some example code:
>> 
>> StringBuffer uri = new 
>> StringBuffer("http://localhost:8080/cocoon/request1";);
>> 
>> try {
>> URL url = new URL(uri.toString());
>> HttpURLConnection u_connect = 
>> (HttpURLConnection)url.openConnection();
>> u_connect.setRequestMethod("POST");
>> u_connect.setDoOutput(true);
>> u_connect.setRequestProperty("Foo", 
>> URLEncoder.encode(some text));
>> 
>> u_connect.connect();
>> 
>> // print out some results...
>> 
>> } catch (exceptions...) {}
>> 
>> Now, here's some of the output:
>> 
>> content length:  12341
>> content type  :  text/html
>> content encode:  null
>> request method:  POST
>> response code :  500
>> response mssg :  Internal Server Error
>> e:java.lang.NullPointerException
>> 
>> So, in other words

problems with StreamGenerator...

2002-01-30 Thread Joseph Jupin

Hey, All...

I've been using Cocoon 2.0 for about a month & 1/2 now and 
I've run into the following problem:

First off, refer to the Order example that comes with 
cocoon which when you hit the submit, it will return the 
xml typed into the textarea.  Now, for testing, I've taken 
my xml doc, modified the stream pipeline to use my 
transform and then output html.  Using the same form, 
entered my xml text (cut & Paste from my text file) - hit 
submit and it works like a charm - the generated HTML 
comes back after the transform.

Now, the problem is in an application I'm writing that 
needs to send the XML data as a parameter call to the 
cocoon server and capture the resulting HTML.  Using the 
URL class and URLConnection class, I have to pass the 
parameter (say "Foo") and the URLEncoder.encode value of 
the parameter (URLEncoder.encode(some text))...  The 
problem is that the stream or cocoon doesn't see the 
parameter passed in.  Any ideas on how to get it to 
understand the URLEncoded parameter.

Here's some example code:

StringBuffer uri = new 
StringBuffer("http://localhost:8080/cocoon/request1";);

try {
URL url = new URL(uri.toString());
HttpURLConnection u_connect = 
(HttpURLConnection)url.openConnection();
u_connect.setRequestMethod("POST");
u_connect.setDoOutput(true);
u_connect.setRequestProperty("Foo", 
URLEncoder.encode(some text));

u_connect.connect();

// print out some results...

} catch (exceptions...) {}

Now, here's some of the output:

content length:  12341
content type  :  text/html
content encode:  null
request method:  POST
response code :  500
response mssg :  Internal Server Error
e:java.lang.NullPointerException

So, in other words it gets there and then returns the 
nullPointerException afterwards.  Now, remember the text 
is pure XML so that's why it needs encoding - the 
URLConnection nor URL will accept it due to illegal 
characters otherwise...

any help would be greatly appreciated...

peace.  JOe...


-
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: Install Question

2002-01-11 Thread Joseph Jupin

need to set it in your script.  you probably have an 
overriding definition like:

#!/usr/bin/sh

JAVA_HOME=""

...

This will override your outside declaration.
Just remove that variable or tell it export from
the outside - or better yet, change it to:

JAVA_HOME=/blah/blah/blah...

you get the idea...  I've had this problem several times 
with scripts ignoring environment settings...

good luck...

peace.  JOe...

On 11 Jan 2002 08:47:35 -0800
  David McInnis <[EMAIL PROTECTED]> wrote:
>Can anyone explain this to me.  I have set the JAVA_HOME 
>variable but it
>is not working.   It is making me crazy.
>
>
>Here is my JAVA_HOME info (This is the path to my sun 
>java2 sdk)
>
>echo $JAVA_HOME
>/usr/java/j2sdk1.4.0/bin/
>
>When I run this:
>
>./build.sh -Dinclude.webapp.libs=yes webapp
>
>I get this:
>
>Apache Cocoon 2 Build System
>
>Warning: JAVA_HOME environment variable is not set.
>   If build fails because sun.* classes could not be 
>found
>   you will need to set the JAVA_HOME environment 
>variable
>   to the installation directory of java.
>
>
>/usr/xml-cocoon2/bin/and: java: command not found
>
>Thanks,
>
>David McInnis
>
>
>-
>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]>