Hello,
Is it possible to get hold of the ObjectModel or Context from within a
Java class implementing ActionListener? If so, how?
Thanks.
Scott.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Yes, I already suggested this option; the fact that the user
has reposted (frequently) with the same problem would
suggest that he/she has tried this already but there has
been little feedback from him/her despite the many
responses...
[EMAIL PROTECTED] 2004/08/10 07:22:06 PM
sounds like
Could you please provide the full call stack?
-Mensaje original-
De: JACOB, ERIC [mailto:[EMAIL PROTECTED]
Enviado el: martes, 10 de agosto de 2004 21:47
Para: [EMAIL PROTECTED]
Asunto: Custom transformer
Hi all,
I'm writing a custom transformer that need to parse an entire
How would one install Cocoon 2.1 on Tomcat 5.x. I have looked for documentation but couldn't find any?
thanks
M
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
I
suppose like any standard web app, by placing the contents of build/webapp in a
directory inside the webapps directory of Tomcat 5.
I work
in this way for Tomcat 4.1.
-Mensaje original-De: malikan jones
[mailto:[EMAIL PROTECTED]Enviado el: miƩrcoles, 11 de agosto de
2004
malikan jones dijo:
How would one install Cocoon 2.1 on Tomcat 5.x. I have looked for
documentation but couldn't find any?
Use the same aproach as for tomcat 4.1.x:
In short: Copy endorsed libs, deploy cocoon and run tomcat...
Best Regards,
Antonio Gallardo.
Hi,
I need to set cookie path to something easy to get back like /. I use
cookie stylesheet in XSP
(xmlns:xsp-cookie=http://apache.org/xsp/cookie/2.0;)
I didn't find something like xsp-cookie:setPath
Hoe could i do this ?
Regards,
Phil
In this particular case, I (humbly and personnaly) only see the solution of using 2 separate execute-query, maybe with collecting
the results and render them separately outside the queries, in this case, the render code is not duplicated. But if the results
are numerous, it is not performant.
Or to directly use the DataSource, Connection, PreparedStatement, and
ResultSet in a xsp:logic block.
I strongly recommend against manually escaping the parameters because
different databases may need to escape other sequences and employ other
syntax. The JDBC driver should know best ;-)
Thomas Zehetbauer wrote:
Or to directly use the DataSource, Connection, PreparedStatement, and
ResultSet in a xsp:logic block.
So in this case, you would better doing it in flow with a DAO... :)
I strongly recommend against manually escaping the parameters because
different databases may need to
On Mit, 2004-08-11 at 11:57 +0200, Olivier Billard wrote:
Additionally some databases (not postgresql) support prepared statements
that are much faster because the SQL is parsed and optimized only once
and uses dynamic parameters thereafter.
Isn't that true only if you're using your
Carl Yestrau wrote:
Hello all,
I am currently building and web application that follows a content
hieararchy:
sitemap matcher:
map:match pattern=*/**/*.html
example url(s):
/en/superstars/david_hasselhoff.html
/en/one_hit_wonders/neil_patrick_harris.html
The problem I am running into relates to
Hi,
I have this definition file :
fd:widgets
fd:class id=widgetClass
fd:widgets
fd:union id=union default= case=type
fd:datatype base=string/
fd:widgets
fd:struct id=simpleList
fd:widgets
fd:multivaluefield id=list
The problem is not really the error... I just need some suggestions on how I
could parse an entire xml file (generate by the xml generator) before doing
some action with it (I don't care about what is inside the xml document, I
just want to sent it).
I'm not very familiar with the SAX event and
Dear Cocoonists,
I'm trying to pass sitemap parameters to an XSP page:
map:match pattern=data/language-entry/*
map:generate src=sources/language-entry.xsp type=serverpages
map:parameter name=id value={1} /
/map:generate
map:serialize type=xml /
xsp:page
String id = parameters.getParameter(id, defaultvalue);
/xsp:page
Kind Regards,
Jan
Lars Huttar wrote:
Dear Cocoonists,
I'm trying to pass sitemap parameters to an XSP page:
map:match pattern=data/language-entry/*
map:generate src=sources/language-entry.xsp type=serverpages
Hi Lars,
Lars Huttar wrote:
Dear Cocoonists,
I'm trying to pass sitemap parameters to an XSP page:
map:match pattern=data/language-entry/*
map:generate src=sources/language-entry.xsp type=serverpages
map:parameter name=id value={1} /
/map:generate
Hi Joerg
Many thanks for your tip. Calling the servlet within a jsp-file ends in the
same session.
The jsp-file constists of only on line: jsp:forward
page=/v2?action=callSGenericveAction=redirectoutput=.xml/
The problem that I have now is that the returned XML data misses two chars.
at the end.
Hi,
I have like
fd:form
fd:validation
fd:javascript
if (email.value == null amp;amp; phone.value == null) {
email.setValidationError(new
Packages.org.apache.cocoon.forms.validation.ValidationError(Atleast
another one, false));
and it works..
But how can I make that
On Wed, Aug 11, 2004 at 01:32:35PM +0200, Stephane Delort wrote:
snip/
I would like to fill it with values from a bean, in a flowcsript so I did ;
var model = form.getModel();
var p = form.lookupWidget(widgetClass);
var f = p.lookupWidgetWidget(union).getChild(simpleList).lookupWidget
Additional information:
if false - true, it does i18n -message..
but how do I define catalogue which it uses? I would like to leave
default forms message in one place and custom stuff in another..
- Joose
11.8.2004 kello 15:50, Joose Vettenranta kirjoitti:
Hi,
I have like
fd:form
fd:validation
Seems like
src\blocks\forms\java\org\apache\cocoon\forms\validation\ValidationError
.java
has to be changed to accept catalogue with it, so it can work.
public ValidationError(String errorMessageKey, String catalogue) {
this.saxFragment = new I18nMessage(errorMessageKey,
Thank you, Jan and Olivier.
Lars
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Olivier Billard
Sent: Wednesday, August 11, 2004 7:24 AM
To: [EMAIL PROTECTED]
Subject: Re: passing sitemap parameters to XSP?
Hi Lars,
Lars Huttar wrote:
Dear Cocoonists,
Thanks a lot for this helpful answer.
Now I have problems with the fb:union
I have :
fd:new id=a_class !-- If I well understood what you told I shouldn't
put this here but in a fd:x --
fd:class id=a_class
fd:repeater id=a_repeater
fd:union id=a_union
datatype base=string
On Wed, Aug 11, 2004 at 04:18:28PM +0200, Stephane Delort wrote:
Thanks a lot for this helpful answer.
Now I have problems with the fb:union
[Just for the sake of anyone googling this thread...]
Since this is the form definition, fd:union.
There is a fb:union, but that goes in the form
Bitte antworten an [EMAIL PROTECTED]
Gesendet von: [EMAIL PROTECTED]
An: [EMAIL PROTECTED]
Kopie:
Thema:Re: Antwort: Re: [cforms] struct and class access in flowscript
I have :
fd:new id=a_class !-- If I well understood what you told I
shouldn't
put this here but in a fd:x
Hi All,
I am trying to generate PDFs like everyone using Cocoon.. I am stuck at a
place and would be very happy if someone could guide me..
These are my execution steps
1. User clicks on a link in a webpage, invokes my servlet running on
weblogic.
2. In the servlet, I read data from oracle
OK, I'm still struggling... I'm not used to putting raw
Java code in an XSP page.
I tried:
xsp:page language=java xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;
xmlns:esql=http://apache.org/cocoon/SQL/v2;
String id = parameters.getParameter(id, -1);
Hi all,
I have in my template page this jxtemplate code, the problem is that the
do some thing action and do other thing action are the two performed.
jx:set var=role
value=#{getAttribute($session,'user-role-id')}/
jx:choose xmlns:jx=http://apache.org/cocoon/templates/jx/1.0;
jx:when
You must surroud your Java code with xsp:logic. Without it, it is considered to be
output.
HTH,
--
Olivier
Lars Huttar wrote:
OK, I'm still struggling... I'm not used to putting raw
Java code in an XSP page.
I tried:
xsp:page language=java xmlns:xsp=http://apache.org/xsp;
Try this:
xsp:page language=java xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;
xmlns:esql=http://apache.org/cocoon/SQL/v2;
language-entry
xsp:logicString id = parameters.getParameter(id, -1);/xsp:logic
classLanguage
Try Jan's solution, I forgot the root element...
Olivier Billard wrote:
You must surroud your Java code with xsp:logic. Without it, it is
considered to be output.
HTH,
--
Olivier
Lars Huttar wrote:
OK, I'm still struggling... I'm not used to putting raw
Java code in an XSP page.
I tried:
Thanks Jan. It worked!
Yes, I had looked at the wiki pages you mentioned, although
at the time I was searching particularly for how to access
sitemap parameters.
You're right, XSPSyntax in particular is helpful in figuring
out how to use raw Java in XSP.
Maybe I should put up a little wiki page
Noureddine BEKRAR dijo:
Hi all,
I have in my template page this jxtemplate code, the problem is that the
do some thing action and do other thing action are the two
performed.
jx:set var=role
value=#{getAttribute($session,'user-role-id')}/
jx:choose
FYI, I have updated http://wiki.apache.org/cocoon/XSPEnvironment
showing this example, which I think should be helpful to some.
Lars
-Original Message-
From: Lars Huttar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 11, 2004 10:55 AM
To: '[EMAIL PROTECTED]'
Subject: RE: passing
oh Sorry,
i did a mistake when i wrote the email,
My code is like you say but the two actions are performed.
jx:set var=role
value=#{getAttribute($session,'user-role-id')}/
jx:choose xmlns:jx=http://apache.org/cocoon/templates/jx/1.0;
jx:when test=${role == 'admin'}
do something
/jx:when
OK.
Can you check what is the value for:
value=#{getAttribute($session,'user-role-id')}
Also, please try to not mix between #{$...} and ${...} syntax.
In the below case you use for set one syntax and for test another syntax.
I am not telling this is why both statements are executed. If both
Antonio,
this is a complete XSP page that i tested, it's perfom the two actions
admin and not admin, is any thing wrong in it?
the value of value=#{getAttribute($session,'user-role-id')} is right.
- Original Message -
From: Antonio Gallardo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Noureddine BEKRAR dijo:
Antonio,
this is a complete XSP page that i tested, it's perfom the two actions
admin and not admin, is any thing wrong in it?
the value of value=#{getAttribute($session,'user-role-id')} is right.
How we can use XSP and JXTemplate Generator?
AFAIK, the only idea
I already have cocoon.xconf and web.xml set. Using a variation of the Java
code sent by Edward Rayl I was able to create a java file to test the jdbc
connection. The test was successful, that is the Oracle jdbc connection
works. I still can't get it to work with Cocoon.
When running via SQL
To update my application using 2.1.4 I have
made the change in logkit.xconf. Then do I just replace the jars in the lib
folder with the 2.1.5.1 lib/jars?
Craig Christophersen(406)496-6421[EMAIL PROTECTED]
On 06.08.2004 20:22, birdy wrote:
I have read http://www.developer.com/open/article.php/10930_3348311_1
(spinning code with XSLT and JSF with Cocoon) and think it is an
excellent method to bring the benefits of two great technologies.
My question to all, is has any one else done this. If so how?
Il giorno 11/ago/04, alle 19:59, Schultz, Gary - COMM ha scritto:
Has anyone gotten Cocoon to work with Oracle through the jdbc
connection? If
so, did you use any special environmental variable settings? Anything
different with placement of classes12.jar? Anything special to
cocoon.xconf,
Hi,
I wish to install cocoon-2.1.5.1 on my system and I'm running tomcat
4.1.27 however in the installation instructions there doesn't seem to
be anything related to installing for this tomcat version. It covers
the following versions:
# Installing on Tomcat 3.3.X
# Installing on Tomcat 3.2.X
#
Thanks to all who provided advice. I finally have it working. Here are two
things I did discover:
= I had to try different classpath settings before I finally got it to work.
= I was using the wrong table name referencing, a hold over from my ASP/PHP
scripting experience.
I still need to clean
Don't need any modification to source. You can use:
ValidationError err = new ValidationError(new
I18nMessage(msg.key, catalogue));
this uses the ValidationError(XMLizable) constructor in the
class you mention.
[EMAIL PROTECTED] 12/08/2004 1:47:06 a.m.
Seems like
Millo Magnocavallo wrote:
Hi,
I wish to install cocoon-2.1.5.1 on my system and I'm running tomcat
4.1.27 however in the installation instructions there doesn't seem to
be anything related to installing for this tomcat version. It covers
the following versions:
# Installing on Tomcat 3.3.X
#
Umm.. running cocoon.session.getAttribute(...) creates a session???
If not just test for an attribute stored in the session to see whether
they have one or not. If so, I'd also like to hear the answer :)
- Brent
On Wed, 11 Aug 2004 21:46:16 +0200, defe [EMAIL PROTECTED] wrote:
hi,
I have
48 matches
Mail list logo