Hello ,
Have anyone
of you come across some implementation that scrapes content from website and
formulates them into meaningful xml docs.
Basically, analyse the html
content scraped and convert it into meaningful XML document.
Regds,
Chiths
Hello Vadim...
If you might explain the upload functionality ...
1. Form with multipart data is submitted to upload.xsp
2. The form parameters have to be processed. I changed the form variable
name from uploaded_file to files and still it works.
3. If I have to do additional processing like
not understand
From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
Hello Vadim...
If you might explain the upload functionality ...
1. Form with multipart data is submitted to upload.xsp
2. The form parameters have to be processed. I changed the form
variable
name from uploaded_file to files
Create a new Servlet by name say InitServlet. Deploy this in the web.xml
of cocoon webApp.
Have the parameter
load-on-startup1/load-on-startup set to 1 as depicted.
Instantiate all the classes and store it the Servlet context. In the
init() function of InitServlet...
ServletContext
Hello All,
Has
anyone come up with a standard approach where one can specify an Form to the
user and the form data has to be inserted or updated into database.
For eg:
A
XML which represents the underlying table structure (or a database view) .
The XML data has to be presented to
The source is in the main distribution. Its no longer called as
sunrise...
org.apache.cocoon.webapps.authentication.*
-Original Message-
From: yuryx [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 2:55 AM
To: [EMAIL PROTECTED]
Subject: Re: SunRise authefication
Hi Guido!
where
You can do the following
Encompass the pipeline with an action say
map:pipeline
!-- Specific XSP generation pipeline --
map:act type =parametersSet
map:parameter name=global-context-root
value=/accordianew /
Use a reader
If you use map:match, it will use the XML generator, implying that your
source calendar,htc, should be xml
map:read.
Regds,
Chiths
-Original Message-
From: Kelly Cole [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 4:20 PM
To: '[EMAIL PROTECTED]'
Subject: RE:
Title: XML in actions
These are the following options
Store the XML in the request object (request.setAttribute(xml,
xmlStr);
return the XML in the hashmap. This xml can be accesses as sitemap
parameters in XSP.
Also can be stored in Session (not advised)
Regds,
.
.
-Original Message-
From: William Brogden [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 12:58 PM
To: [EMAIL PROTECTED]
Subject: RE: Very Important: Deploy Servlets in the Cocoon Context
-Original Message-
From: Chitharanjan Das [mailto:[EMAIL PROTECTED
developing on I use an MVC architecture where
servlets forward to JSPs which are processed by cocoon.
If you want to process the servlets from cocoon the thread you are
thinking of could have been Servlets to XSL and Servlet to XSL
possible.
...Peter
Chitharanjan Das writes:
IIRC
Hello All,
I am in process of developing an automated client and server
side form validation processing.
I need to know how to invoke a Servlet in cocoon.
The Servlet needs to be in the same context of cocoon (i.e. should be
able to access the session and request objects with other
Hello there,
This seems very interesting...
Andrew, could u please guide me to the necessary documentation for
setting up the pipeline entries for cocoon and MS Excel.
The sitemap entries
Samples
and Some documentaion.
That would be awesome
Thanks in advance..
Regds,
Chiths
Hello All,
Is there any technology(open src or free), that would help me
parse a PDF file and extract information ...
I have a requirement to do PDF - XML conversion depending upon some
rules...
Thanks in advance,
Chiths
Hello,
I
had a brief stint with the XSP which invokes Google
Search via SOAP.
Thanks to the author.
Is there any documentation to support the SOAP logic sheet..
I was wondering how to invoke a remote method with no
parameters.
Any link to documentation regarding the syntax will be
Hello,
I had raised this issue before.
I am using sunrise authentication for our application. I had to change
the code in 2 files to make the application work properly. I will attach
the 2 files, please scrutinize it and apply these changes in CVS , if
deemed right
I HAVE THE LATEST
Hello,
Heard about
SAP Integration and all?
Is there any one who
has implemented / implementing/ specing RosettaNet PIP Implementations ..
Regds,
Chiths
Thanks for the effort...
1 question though, did U have to register the servlet in the web.xml.
Id so could U hust show the listing of your web.xml as well..
Regds,
Chiths
-Original Message-
From: Franosch, Heike [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 1:56 AM
To:
Hello Andre,
Thanks for the input
I do not need to process the Data ..
Let me re-iterate the problem..
User is presented with a HTML form to upload a data file (XML or not).
The user then browses for the file on his m/c (client) and presses the
submit button..
Now this file has
Hello
Has anyone accomplished
to upload files from html forms to the server to a specific directory
..
Regds,
Chiths
This will help U
xsl:template match=gvsdb:list-people
xsl:variable name=class
xsl:choose
xsl:when test=string(@class)
util:include-expr
util:expr
xsp:expr
(XMLGenerator.toXML(xsl:value-of
Hello All,
I have the following requirement
I have created a set of pipelines (resources) that execute a set of
logic and spit out XMLs (results)
Now What I want is that somehow get hold of that XML as a String and do
further manipulations like sending the result to
provision in the Basic Cocoon package to do this
functionality
Regds,
Chiths
-Original Message-
From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 2:05 PM
To: [EMAIL PROTECTED]
Subject: Urgent: Requirement - Ability to extract o/p from resources -
SunShine
Copy batiks*.jar xmlapis.jar and xercer*.jar into TomCat's library from
Cocoon/WEB-INF/lib directory
And then restart
Regds,
Chiths
-Original Message-
From: Rajput, Ashish S [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 12:34 PM
To: '[EMAIL PROTECTED]'
Subject: Error
Hello,
I am using cocoon 2.0.3 from CVS..
In XSP's , if I defined a function which o/p's data, it gives an error
in compilation
Variable xspAttr is not defined, because the XSP generator defines the
variable only for the method
public void generate() throws SAXException,
Purely an XSL related question..
Please find some time and help me out in this...
I have a XML file , which is analogous to say a table containing parts
information .
Items
Item id=1234
property1value1/property1
.
/Item
Item id=1235
, kind a make it slightly unattractive isn't
it
Regds,
Chiths
-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 7:55 PM
To: [EMAIL PROTECTED]
Subject: RE: Urgent:Error in XSP Generation...
From: Chitharanjan Das [mailto:[EMAIL
Hello,
Whwn the logout action is activated a NullPointer
exception is thrown. Upon investigation the error occurs in the following line
of code in SunRise.java
Please look into the generated java code. There
should be no space between util:expr
and xsp:expr.
The reason is that the whitespace
is not ignored and during compilation of the XSP, the method calls that gets
generated from util:expr
xsp:expr will erroneous.
Regds,
Chiths
Hello,
The following are my questions; I did not get much help from the
user docs:
1. Is there a possibility to define global parameters for the Sitemap?
For eg: set a value say $global-context-root = /cocoon
2. In the generators like XSP's and File, how does one refer to the
Hello All,
Has
anybody used sunrise authentication for pipelines.
I have tried playing around with it for quite a while now.
These are my observations
SunRise
authentication works good only for Login
If used
for pipelines (urls
with request parameters) with
How do I forward requests from one sub-sitemap to another?
I have 2 submaps under coicoon
Sub1
Sub2
Whenerver I get a pattern
Sub1/resource1/**
I need to forward it to say
Sub2/resource2/**
I do not want to do a map:redirect
because this will cause any of the request
If u use just xsp:expr,
it will treat the o/p as parsed
string , if you require the contents to be treated as a XML fragment,
you need to do as listed below
Include util logic sheet and use the
util:* tags
===
?xml
version=1.0?
xsp:page xmlns:xsp=http://apache.org/xsp
My original mail bounced back and hence I am resending it
-Original Message-
From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 3:49 PM
To: '[EMAIL PROTECTED]'
Subject: Issues with sunRise authentication
Hello,
I am running cocoon 2.0.1 on my machine
Hello,
In Handler .java in the method Configure, there is a section of
code, which is trying to build a fully referenced URI for the redirect
URI. This
Should not be done, the redirector takes care of this.
I have commented out the section and this has the label
/** Commented by Chiths
Hello,
Use
the fully qualified path for the JSP file
i.e not just sample.jsp
but from the context root
for eg:
map:generate type=jsp src=/omc/docs/jsp/sample.jsp/
where
/ = context directory
omc = mount
Hello Matthew,
Let me start my commending U on the well written article, however I have
some questions
I have played around with the sunshine basic authentication and it works
, however my requirements are the following..
Please advise whether this can be achieved with the
Hello,
I am using cocoon 2.0,2 Tomcat 4.0.1 JDK 1.3.1
My match entry for my XSP reads like this ..
map:match pattern=xsp/compare
map:act set=accordia
map:generate type=serverpages
src=docs/samples/xsp/compare.xsp/
1. From Object Model get the request object
2. String ctxRoot = request.getContextPath()
-Original Message-
From: Andrey Demchenko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 5:49 AM
To: [EMAIL PROTECTED]
Subject: getRootContext in Action
Hi,
How can I get RootContext in
.
--
Konstantin Piroumian
[EMAIL PROTECTED]
-Original Message-
From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 23, 2002 1:08 AM
To: [EMAIL PROTECTED]
Subject: RE: [HELP]SAXException JspGenerator.generate() -
Using Tom Cat 4.0.1 and latest Cocoon build JDK 1.3.1
.
--
Konstantin Piroumian
[EMAIL PROTECTED]
-Original Message-
From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 23, 2002 1:08 AM
To: [EMAIL PROTECTED]
Subject: RE: [HELP]SAXException JspGenerator.generate() -
Using Tom Cat 4.0.1 and latest Cocoon build JDK 1.3.1
Just another thought
If you have the handle to the Transformer object, you could parse or
obtain the parameters and then set use the setParameter() method on the
Transformer object to set the parameters for the XSL...
To do the above, you may have to write your own generator (refer Stream
Tom Cat
4.0.1 and latest Cocoon build JDK 1.3.1
-Original Message-
From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
Hello Peter,
Interestingly there are no errors in the core.log., whatsoever...
There are no errors in error.log
The only error was in sitemap.log***
Does Cocoon
version under
/TOMCAT/work/cocoon/ directory at all
Thanks in advance,
Chiths
-Original Message-
From: Peter Schwenke [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 11:32 PM
To: Chitharanjan Das
Subject: RE: [HELP]SAXException JspGenerator.generate() - Using Tom Cat
4.0.1
Hello Ashish
For marshalling and unmarshaling XML into java objects using
XSD's ,
Use CASTOR ..
Regds,
Chiths
-Original Message-
From: Rajput, Ashish S [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 10:54 AM
To: '[EMAIL PROTECTED]'
Subject: Help with
JspGenerator.generate() - Using Tom Cat
4.0.1 and latest Cocoon build JDK 1.3.1
Check your cocoon log. They'll be an exception thrown when when your
JSP was running.
...Peter
Chitharanjan Das writes:
Hello all,
I just synchronized the latest
this
$CATALINA_HOME/cocoon/WEB-INF/logs/core.log.0?
...Peter
Chitharanjan Das writes:
Hello,
The Exception being thrown is
Also attached is the function where the exception occurs...
Please , we are in midst of our evaluation
Hello all,
I just synchronized the latest source from archive and deployed
the cocoon and upon invocation of the JSP files, I am getting a SAX
error.
Has anybody faced this and if yes, is there any remedy for this..
Thanks in advance.
Chiths
Hello,
Installed
Tomcat 4.0.3 and deployed cocoon.war.
Upon invoking coccon, I got a classnotfound error on a XML class
I then copied xerces.jar and xmlapis.jar from cocoons WEB-INF/lib to TomCats WEB-INF lib.
Restarted TomCaT and I got a sitemap
error , upon log files
Can we control the execution of Actions in an Adtion Set from within
Actions.
Let us assume we have the following sitemap defn
map:action-set name=actionset
map:act type=locale
map:parameter name=LOCALE value=de_DE /
/map:act
Hello All,
I have the following requirement, I am trying to plot some graphs using
SVG.
The input for the graphs's are some XML documents, which are generated
from some queries to the database.
I have already implemented java code to retrieve the data in XML.
I have also created sitemap entry
,
Chiths
-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 02, 2002 7:51 AM
To: 'Chitharanjan Das'
Subject: RE: Urgent: Execution of pipeline at startup
You could write own ThreadSafe, Runnable, Startable Component. It will
be loaded and started
.2002 -- 11:04 PM, Chitharanjan Das wrote:
Hello,
I had raised this issue earlier...
Please confirm if this is possible at all.
I need to cache some data structures and some schema elements.
Is there a way to execute a pipeline or any other possibilities to
cache
the information
Hello,
I had raised this issue earlier...
Please confirm if this is possible at all.
I need to cache some data structures and some schema elements.
Is there a way to execute a pipeline or any other possibilities to cache
the information at COCOON'S startup.
Currently, I am performing
Hello,
Is
there a mechanism in Cocoon 2.0, where one can execute something and cache it.
For
eg: Read all the Users and cache it an object, to do
User authentication or cache the schema of objects to execute queries etc.
The
alternative is to cache the information after the first
Hello Mathew,
Could you please provide sitemap entries for Sunlets and some
examples to demonstrate sunlets.
Thanks in advance,
Chiths
Hi Alessandro,
thanks for the feedback. Just a couple of remarks:
Please, allow me to congratulate Matthew Langham and all the involved
people at
Approach 1:
Why don't you modify the existing Xml serializer to write it to the
disk and return a OK or a failure message?
You have the handle to the output stream anyways...
Haven't tried it but do let us know..
Approach 2:
I have created a new Transformer (AbstractStringTransformer
How do I disable caching for the transformers?
I am experimenting with transformers and I am not able to remove objects
cached for transformers.
To disable caching I did the following..
In cocoon.xcomf, I enabled the non caching event pipeline
event-pipeline
How do I disable caching for the transformers?
I am experimenting with transformers and I am not able to remove objects
cached for transformers.
To disable caching I did the following..
In cocoon.xcomf, I enabled the non caching event pipeline
event-pipeline
Hello All,
You are right as always,
There was a problem in my ant script...
Transformers are not cached...
Sorry for creating any confusion
Regds,
Chiths
Vadim
From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
How do I disable caching for the transformers?
I am
Hello,
Shouldn't your generator point to JSP pages
map:generate type=jsp src=../../{1}.jsp/
Regds,
Chiths
-Original Message-
From: MOODAD (Shadi LB Soft) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 10:55 PM
To: cocoon-dev; [EMAIL PROTECTED]
Subject:
Hello All,
I am planning to provide the user authentication procedure via
an Action.
How do I access the datasource from JAVA code, to obtain a
connection?
Please include datasource example for oracle and sample code in
JAVA to access the named datasource.
Hello,
I am planning to include all my javacscripts for the my pages in
my XSL stylesheets.
What is the mime type and pattern description for javascripts.
For eg to represent images we have
map:match pattern=jsp/stylesheet/**.gif
map:read
Hello Konstantin,
The following is the match description in site-map..
map:match pattern=file map:generate src={1}/ map:transform type=i18n parameter name=available_lang_1 value=en/ parameter name=available_lang_2 value=ru/ parameter name=src value=translations/dictionary.xml/
Hello,
My env is
Platform Win2K
Cocoon 2.0
TomCat 4.01
The following is my i18n transformer definition
map:transformer
name=i18n src=org.apache.cocoon.transformation.I18nTransformer
catalogue-namemessages/catalogue-name
Hello,
The JSP Generator problem.
Has anybody tried jsp:include and made it work.
The standalone JSPs work
(without includes).
With inclusion of jsp:include,
I get the IllegalStateException with
Both
the flush variable set to true or false.
Calling jsp
Test.jsp
%@ page
Hello,
Is the package information for the servlet classes
testcocoonproject ?
I think just by copying the class files into a subdirectory of
WEB-INF classes is not sufficient, the servlet classes should have the
necessary package info ...
Regds,
Chiths
I saw this message in the
Hello
I am trying to understand the functionality of Action, Selector
and resources. Could any one of you Cocooners, direct me to any kind of
helpful documentation regarding it.
Regds,
Chiths
-Original Message-
From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
Sent: Friday
David,
Thanx a lot
Regds,
Chiths
-Original Message-
From: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 12:37 PM
To: [EMAIL PROTECTED]
Subject: RE: Cocoon User guide/ Developer doc - Urgent
At 09:54 AM 1/25/02 -0800, you wrote:
Hello
I am
Title: Help with cocoon actions
Hello,
Following is the listing of an actionset.
Could anyone of you help me in retrieving the value of src inside the Action code for
the entry map:act type=screen-navigator src="{1}/
Please note that this action name has no specified action it is
Title: RE: actions using XML
Do the following
Create a actionset
map:action-sets
map:action-set name=handle-requests
map:act type=htmlReqHandler action=HTML/
map:act type=flashReqHandler action=FLASH/
/map:action-set
/map:action-sets
Use this action set in Ur pipeline
Try the following
map:match pattern=eBiz/*
map:generate
src=http://lanester:80/tamino/execLog?_xql=//wes:HISTORY[@ino:id={1}]/
map:transform src=eBizMonitor/journalFR.xsl/
map:serialize type=html/
/map:match
The pattern will have to be modified to indicate eBiz/{id}. This will
There is on major drawback though,
If the application have jsps and Servlets. The Context for both
JSP and Servlets have to be the same , if they are using session
management.
In the example depicted below, the Context of servlets and JSP's would
be different, making the session
73 matches
Mail list logo