Hi buddies!
I read about the auth-document in
http://xml.apache.org/cocoon/developing/webapps/authentication.html
Its a very nice authentication framework!
I have just one question after read that:
Given 4 pages to authenticate:
a) create-category
b) edit-category
c) create-product
d)
Hello Antonio, you have somewhere a database, ldap directory or (for tests)
an xml file storing ID, password, permissions for each user, and then the
authentication simply happens the way you prefer, with an action etc.
All the pages are protected by the same handler.
Have a nice day,
Babs
Hi Antonio,
an interesting scenario - are you serious? :-)
The authentication framework allows you to pass additional data back from
the authentication pipeline. One solution would be to use the same handler
for all the different pipelines but to pass back additional values that
contain the
Hi Barbara I see you posting always! ;) Thanks,
So Do you mean the best approach is to put the permission to every file
into the data element of the auth-protect action? Then check this
permission into each page?
The auth-session data will return something like:
authentication
Hello everybody and Hello to specially
Ivelin,
i have a problem to create dynamic selectOnes in
my
XMLForms with the xf:repeat.I looked
on the source of
XMLForm-Transformer and it seemsto be not
possible
with this Version. But this is importent to create
powerfull
forms. I solved this
Antonio, this is my approach since I have many pages/rights to check... and
it seems that it's secure and (maybe too ?) simple to write... But maybe
your further processing will work better with another approach. In my case
xsl checks the right (indeed from session:getxml) and then displays one
I've done mine as Carsten proposed, by using the parameters returned by
the AuthAction in the pipeline. Works great for protecting multiple pages!
But if you want to show different things for different users, you will
have to use the SessionTransformer.
It can be done inside a xsp-page too, but
Now with cocoon 2.1, when I hit control and F5 to force reload of page after
modification of the sitemap the page doesn't want to reload, cocoon has
cached it and seems to ignore that sitemap has changed... I use Internet
Explorer 5.5. If I modify the url sitemap changes are effective.
With
1. What is this is cocoon.xconf ? Session timeout ? :
continuations time-to-live=3600/
2. and what (when) is this component used for ? :
org.apache.cocoon.components.ExtendedComponentSelector
Thanks...
-
Please check that
Dear Cocooners
I wonder what would be the most efficient aggregation of many small xml
documents in a directory. My present approach is very slow:
1. use directory-generator to make an index of documents
2. generate a document containing xincludes with help of a stylesheet
3. perform all
Hello Martin,
have you ever use the map:aggregation inside the sitemap? It is easy
to handle!
dirk
Dear Cocooners
I wonder what would be the most efficient aggregation of many small xml
documents in a directory. My present approach is very slow:
1. use directory-generator to make an index
Barbara Post wrote:
1. What is this is cocoon.xconf ? Session timeout ? :
continuations time-to-live=3600/
Continuations are, in effect, a type of session and so I would expect
this to be the session timeout - ie. the no. seconds that cocoon keeps
the suspended flow program state
On Thursday 05 September 2002 11:21, Martin Lüthi wrote:
I
want to aggregate all files in a directory, which is not possible with
map:aggregate afaik.
You'll have to use CInclude or XInclude for this, along with a
DirectoryGenerator to get the list of files.
--
Bertrand Delacrétaz
On Thu, 2002-09-05 at 10:37, Martin Lüthi wrote:
Dear Cocooners
I wonder what would be the most efficient aggregation of many small xml
documents in a directory. My present approach is very slow:
1. use directory-generator to make an index of documents
2. generate a document containing
Hi All
It seems to me that the following code will not work in Cocoon 2. I believe it works
in Cocoon 1, but for some reason the request and response objects available within XSP
for Cocoon 2 are not HttpServletRequest and HttpServletResponse objects, but rather
some cocoon equivalents,
Michael Edge wrote:
Hi All
It seems to me that the following code will not work in Cocoon 2.
I believe it works in Cocoon 1, but for some reason the request
and response objects available within XSP for Cocoon 2 are not
HttpServletRequest and HttpServletResponse objects, but rather
http://outerthought.net/wiki/Wiki.jsp?page=Redirecting
--
Nicola Ken Barozzi [EMAIL PROTECTED]
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
-
Can you reach these links:
http://localhost:8080/cocoon/samples/welcome
http://localhost:8080/cocoon/samples/xmlform/wizard
- Original Message -
From: Gerry Reno [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 03, 2002 5:46 PM
Subject: XMLForm - Howto - Mailing List -
Hi all,
I'm trying to test the value of a hidden parameter
sent via an htmlform...
Here is the test :
xsp:logic
if(xsp-request:get-parameter
name="todo"/=="search")
{
xsp:contentThat's ok
!/xsp:content
}
xsp:logic
The test never returns true... What's wrong
???
Thank you,
Gan.
Title: Message
Try
to use "search".equals(xsp-request .../) instead.
--
Konstantin
Piroumian [EMAIL PROTECTED]
-Original Message-From: Ganael LAPLANCHE
[mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002
5:49 PMTo: [EMAIL PROTECTED]Subject: "if" not
working
use
the .equals("todo") operator on the string comparison
-Original Message-From: Ganael LAPLANCHE
[mailto:[EMAIL PROTECTED]]Sent: Thursday, 5 September 2002
11:49 PMTo: [EMAIL PROTECTED]Subject: "if" not
working
Hi all,
I'm trying to test the value of a hidden
I intend to write a SessionContextSelector and
tried to use a SessionManager just like the SessionTransformer does. But it
seems that there is no SessionManager provided to a Selector while a Transformer
gets one.
Am I right?
Why is that so?
And: Has anybody a suggestion for a
workaround?
That's perfect, thank you very much :)
- Original Message -
From:
Rob
Grundel
To: '[EMAIL PROTECTED]'
Sent: Thursday, September 05, 2002 3:50
PM
Subject: RE: "if" not working
use
the .equals("todo") operator on the string comparison
-Original
This should work, you can get a SessionManager from the
ComponentManager.
What/how do you exactly try?
PS: Please send plain text mails and not html.
Carsten
-Original Message-
From: Jan Bromberger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 3:47 PM
To: [EMAIL
I prefer the search.equals(xsp-request:get-parameter name=todo/)
form, since it will never throw a NullPointerException.
The reason ``=='' doesn't work is because ``=='' is identity, not
equality check. It will only return true if the two operands are the
same object, not two different
Many thanks !
- Original Message -
From: Ilya A. Kriveshko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 05, 2002 3:53 PM
Subject: Re: if not working
I prefer the search.equals(xsp-request:get-parameter name=todo/)
form, since it will never throw a
Thank you for your hint. I just tried out XPathDirectoryGenerator (scratchpad)
which essentially does what I need, but is a lot less messy than my initial
approach. However, also these results seem not to get cached... Presumably I
should save the result with something like a
This should work, you can get a SessionManager from the
ComponentManager.
What/how do you exactly try?
public void compose(final ComponentManager componentManager) throws
ComponentException {
this.componentManager = componentManager;
this.sessionManager = (SessionManager)
Ok, I'm not sure, but I think you can't lookup the SessionManager
in your compose() method. Try it in your select() method of
the Selector Interface.
That should work (I hope).
Carsten
-Original Message-
From: Jan Bromberger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05,
Ok, I'm not sure, but I think you can't lookup the SessionManager
in your compose() method. Try it in your select() method of
the Selector Interface.
That should work (I hope).
Yes, thanks. That helps.
But: The session that is provided is not the same as the one that I get
with:
Please help me:
I am using Cocoon 2.1:
In the sitemap I have:
map:action-set name=process
map:act action=Crear Categoria type=form-validator
map:parameter name=validate-set value=add/
map:act type=dbAdd/
/map:act
map:action-set
The actions are
Hi Antonio,
You must also set the for-descriptor for form validation
map:parameter name=form-descriptor value=docs/cat-form.xml/
The descriptor is only for the action dbAdd
Klaus
-Original Message-
From: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September
Hi Antonio,
This bug was reported from Ivan Luzyanin quite a long time ago. There is
a bug report under
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9835
Please, confirm this bug, I hope someone will investigate this issue.
This bug is the reason I can't switch to 2.1 (and still use
When is your session context created?
Carsten
-Original Message-
From: Jan Bromberger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 4:30 PM
To: [EMAIL PROTECTED]
Subject: Re: No SesionManager provided for Seleector?
Ok, I'm not sure, but I think you can't lookup
Hi all,
I have to task to convert lots of html documents
downloaded with the URLConnection class
URL url = new URL("http://host/document.htm");URLConnection
urlConnection = url.openConnection();
...into plain text document to be written on
When is your session context created?
It should normaly be created only once on the first page request. At the
moment for test purposes there is the following pipe:
map:match pattern=sessiontest
map:generate src=foo.xml/
map:transform type=session/
map:select type=context
...
/map:select
Title: Message
Cocoon
allowsto setup a pipeline that will retrieve remote HTML documents,
transform them and write to the HD.
I think
you'll have to run Cocoon from command line and provide the list of all the
documents you need.
Though, I'm
not so sure that Cocoon's command line
-Original Message-
From: Jan Bromberger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 4:59 PM
To: [EMAIL PROTECTED]
Subject: Re: No SesionManager provided for Seleector?
When is your session context created?
It should normaly be created only once on the first
Gerhard:
Many thanks, I put to it 3 points in the bugzilla ;)
I hope it will be soon resolved.
Regards
Antonio Gallardo
El Jueves, 05 de Septiembre de 2002 08:46, Gerhard Hipfinger escribió:
Hi Antonio,
This bug was reported from Ivan Luzyanin quite a long time ago. There is
a bug report
Yeh, that's very strange, I'd like to find the answer... If someone can
help...
- Original Message -
From: Lorenzo De Sio [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 30, 2002 2:42 PM
Subject: R: REPOST: Uploaded file name problem
You must be right... but, if so, why
No, sorry - it is not. Actions, Matchers and Selectors are executed during
processing of the sitemap immediately - generators, transformers and
serializers
are executed after the complete xml pipeline is established.
So, first your selector is tested and at that time no context exists and
Title: Nachricht
Sascha,
Could you post the mod plz ?
- Original Message -
From:
Sascha Kulawik
To: [EMAIL PROTECTED]
Sent: Tuesday, August 27, 2002 8:38
PM
Subject: RE: Upload problem :( Windows
related (again...)
I
know that problem and have
Thanks for the suggestion Nicola. Could you point me in the direction of an example on
how to do this? I've spent hours searching for information on redirects, and as with
most Cocoon documentation, it's pretty vague.
Thanks
Michael
Michael Edge wrote:
Hi All
It seems to me that the
Thanks for the suggestion Nicola. Could you point me in the direction of an example on
how to do this? I've spent hours searching for information on redirects, and as with
most Cocoon documentation, it's pretty vague.
Thanks
Michael
Michael Edge wrote:
Hi All
It seems to me that the
I am using Cocoon 2.1. I have the following ESQL:
esql:query
SELECT cat_id, cat_nombre, cat_habilitado
FROM categoria
WHERE cat_nombre LIKE esql:parameter%xsp-request:get-parameter
name=nombre/%/esql:parameter
AND cat_habilitado LIKE
My humbles apologies for replying to a message and attaching the entire cocoon users
digest to it. I know it's irritating. Sorry about that, an accident caused by me not
checking that Lotus Notes had correctly deleted the rest of the digest.
Regards
Michael
--
This e-mail may contain
Is it possible to plug xsltc into 2.0.3?
I tried substituting in sitemap.xmap:
map:transformer name=xslt
src=org.apache.cocoon.transformation.TraxTransformer
logger=sitemap.transformer.xsltc
pool-max=32 pool-min=8 pool-grow=2
Gerhard:
You are right!
This simple action is working fine:
map:act action=Borrar type=dbDel/
but:
map:act action=Crear Categoria type=form-validator
map:parameter name=validate-set value=add/
map:act type=dbAdd/
/map:act
map:act action=Actualizar type=form-validator
Redirect from an sub-sitemap to the login page does
not seem to be working in authentication framework.
i.e
If you have a protected page in subsitemap.
The redirection in sub-sitemap (in case of not
authenticated) is not able to go to login page (in
sitemap)
map:match pattern=protected
-Original Message-
From: Stephen Ng [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 5:56 PM
To: [EMAIL PROTECTED]
Subject: Xsltc and 2.0.3
Is it possible to plug xsltc into 2.0.3?
I tried substituting in sitemap.xmap:
map:transformer name=xslt
Hello, evening here...
In c2.1, do the global parameters respect the stack created by actions ?
So, if I have pipeline 1 and 3 nested actions in it, in the latest one I
want to access foo1 global-parameter, do I use {../../../foo1} ?
In pipeline 2, with one action, {../foo1} ?
Thanks, where
Cheers, Mates,
deploying Cocoon2 on Websphere is no problem, as we have seen during our
project; we run it on WSAD 4.0.3/Win2k (using the build in Websphere 4.0.2)
all the time. The problem is now, to bring Cocoon2 to AIX.
We use WAS 4.0.3 AE on IBM AIX (RS/6000) to deploy our webapplication,
Error while evaluating 'http://{../../../../../../foo}/...' : not so many
levels
I have an application that ran fine under 2.0.3 and now I use 2.1 so I
replace some hard-coded parameters by global parameters.
I here need to access a global parameter at level 6. I double-checked the
syntax and
Is it possible to plug xsltc into 2.0.3?
I tried substituting in sitemap.xmap:
map:transformer name=xslt
src=org.apache.cocoon.transformation.TraxTransformer
logger=sitemap.transformer.xsltc
pool-max=32 pool-min=8 pool-grow=2
I have a very strange problem and do not quite know what is the cause so I
post here as I think this is the most responsive group I've ever seen. So:
1. I have a simple xsp page that collects data from request body, parses it to
DOM structure and uses it later:
?xml version=1.0
On Thu, Sep 05, 2002 at 07:47:17PM +0200, Leszek Gawron wrote:
I have a very strange problem and do not quite know what is the cause so I
post here as I think this is the most responsive group I've ever seen. So:
1. I have a simple xsp page that collects data from request body, parses it to
At work I have to handle really bad written HTML (they used some really bad HTML
generator):
html
body
h1Hello, world!/H1
Hi there.
p
This is plain wrong.
p
But it works in certain browsers
/body
/html
I thought by using the HTMLGenerator, the Tidy-thing should take care of this. In my
site
Hi guys,
I am trying to get used to cocoon 2, and I'm not sure about how to do
this. But I have a jsp file that references two other jsp files:
main.jsp contains:
framesrc=header.jsp
framesrc=body.jsp
To create two frames.
header.jsp and body.jsp outputs into a xml file.
Do I
I was wondering if anyone had addressed the problem of getting the data from
an XMLForm wizard into a database? Any ideas would be helpfull.
Thanks,
Phil Craven
-
Please check that your question has not already been answered
Cocoon 2.1 supports an extra attribute in the pipeline,
which specifies the expiration header in the http response.
This should allow temporary caching of the result.
I am not sure where this is documented though.
- Original Message -
From: Martin Lüthi [EMAIL PROTECTED]
To: [EMAIL
Just found the answer to my first question: the improved http/1.1
connector is in Tomcat 4.04:
[B2] Coyote: This release include a completely new HTTP/1.1 connector and
connector API, called Coyote. This connector provides much improved
performance and robustness over the default HTTP/1.1
Since the form is kept in the request or session, you can access it through
the InputModules.
I don't remember, Do we have the JXPath extension for request and session
input modules?
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 04, 2002
Looks promising.
Is there a more complex demo than the one in the download.
I would be interested to see line items, images, nested tables.
- Original Message -
From: Michael Wechner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, September 04, 2002
What we can do with this problem? :(
I need to end forms to the next thursday :(
How I can help?
Antonio Gallardo.
El Jueves, 05 de Septiembre de 2002 09:11, Antonio Gallardo Rivera escribió:
Gerhard:
Many thanks, I put to it 3 points in the bugzilla ;)
I hope it will be soon resolved.
This feature has been requested multiple times before.
I was holding on an implementation until the W3C XForms spec it out.
Now it is available at:
http://www.w3.org/TR/xforms/slice9.html#ui-common-elements-itemset
It should be relatively easy to implement provided the xf:repeat tag is
very
If you are in a hurry and solution will take time.
A) Do your coding another way
B) Switch back to 2.0.3. until problem is solved (yeah I know sounds stupid,
but maybe it is possible in your environment)
Solution A) is probably better :-)
Not a Cocoon answer, just general IT problem solving.
66 matches
Mail list logo