Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 97765 invoked by uid 500); 19 Feb 2002 14:00:40 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 97747 invoked from network); 19 Feb 2002 14:00:39 -0000 Date: Tue, 19 Feb 2002 15:00:34 +0100 (MET) From: reinhard_poetz@gmx.net To: cocoon-dev@xml.apache.org Cc: dims@yahoo.com MIME-Version: 1.0 References: <20020219131103.84080.qmail@web12805.mail.yahoo.com> Subject: Re: HTTPHTMLGenerator X-Priority: 3 (Normal) X-Authenticated-Sender: #0000521741@gmx.net X-Authenticated-IP: [193.81.161.130] Message-ID: <20045.1014127234@www16.gmx.net> X-Mailer: WWW-Mail 1.5 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I think so ... but I havn't had the time of thinking it through. In my opinion I only have to check whether the src starts with "http" or not. If this is true I use my way of reading the src otherwise I will use the SourceResolver. The second thing is making it Cachable ... Maybe someone could help me! After solving those two problems I'll post the diff at http://nagoya.apache.org Regards, Reinhard > Reinhard, > > Can we replace the existing HTMLGenerator with this one? The objective is > that we should enhance > the code with what we learn from our experiences :) > > Can you please check existing samples with this Generator and then post a > diff to existing > HTMLGenerator at Bugzilla (http;//nagoya.apache.org). > > Thanks, > dims > > --- Reinhard_P�tz wrote: > > I had the same problem as described in bug #6520 > > (http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101402671004632&w=2). > I > > solved this problem using the HTTPClient > (commons-httpclient-20011012.jar). > > > > The use of the HTTPClient makes it possible to use the POST-paramters > and > > HEADER-parameters of the client/cocoon-connection. > > > > Browser ---> Cocoon ---> HTTP-Resource > > Request HTTPHTMLGenerator > > using HEAD & POST of > > the Request > > > > I called this generator (based on the HTML-Generator) HTTPHTMLGenerator. > > > > Using this generator solved my problem posted last december (using > Cocoon2 > > as Proxy): > > - http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=100758023726189&w=2 > > - http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=100763795331083&w=2 > > > > The HTTPHTMLConnector makes it very easy to integrate existing web > > applications into cocoon. > > > > Attached you find the sources (HTTPHTMLGenerator.java) - tested with > Cocoon > > 2.0.1/Tomcat4.0.1/Win2K-Prof > > > > Reinhard P�tz > > > > > ATTACHMENT part 2 application/octet-stream name=HTTPHTMLGenerator.java > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > > For additional commands, email: cocoon-dev-help@xml.apache.org > > > ===== > Davanum Srinivas - http://jguru.com/dims/ > > __________________________________________________ > Do You Yahoo!? > Yahoo! Sports - Coverage of the 2002 Olympic Games > http://sports.yahoo.com > -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org