Title: Filedownload
Hi,
I
think the ResourceReader should do what you want.
Regards,
Elmar
-Ursprüngliche Nachricht-Von: Kavita Bansal
[mailto:[EMAIL PROTECTED]Gesendet: Freitag, 28. Februar
2003 07:12An: [EMAIL PROTECTED]Betreff:
Filedownload
Hi
How can I download a
of the Cocoon framework, but only with IE, not with Netscape. Any
suggestions/comments are continuously appreciated.
Best regards,
Elmar
-Ursprüngliche Nachricht-
Von: Sternath Elmar [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 14. Februar 2003 11:40
An: '[EMAIL PROTECTED]'
Betreff
Hello,
meanwhile I traced also the HTTP traffic between browser and cocoon and recognized
that surprisingly - at least for me - even there the HTTP GET request was sent twice.
So, it must be an IE problem.
Regards,
Elmar
-Ursprüngliche Nachricht-
Von: Sternath Elmar [mailto:[EMAIL
Hello,
I use cocoon 2.0.4 on tomcat 4.1.12 and recognize an extremely strange behaviour of
ResourceReader:
The problem occurs only in IE (5.5), not at all in Netscape (7).
The problem occurs only with pdf files.
The browser behaviours differ in that way that IE tries to open AcrobatReader
I used WildcardSessionAttributeMatcher to get session attributes:
map:match type=sessionstate pattern=*
map:parameter name=attribute-name value=YourParam/
map:generate type=YourGenerator src=YourSource
map:parameter name=YourParam value={1} /
Here is
public Map act( Redirector
redirector, SourceResolver resolver, MapobjectModel, String
src,Parameters parameters ) throws
Exception{
String aFileId = parameters.getParameter( "fileid" );...
}
Regards,
Elmar
-Ursprüngliche Nachricht-Von: Nils Leßmann
[mailto:[EMAIL
Hello,
I use DatabaseAuthenticatorAction and Update/AddDatabaseAction for my login/user
administration procedure. All user info including password is stored as clear text in
the database. Is there any solution for password encryption in this context?
Mit freundlichen Grüßen/ Best regards
Hi
Anna,
the .java file
has to be compiled into a class file. Cocoon then accesses the class file to
execute the desired functionality. For compilation, you need an appropriate
tool, for instance ant. I would recommend to get familiar with ant. Ant provides
functionality to compile .java
into the
cocoon
directory? I don't need to put the
class into some subdirectory of cocoon?
And can you tell me where can I get
this Ant?
Thanks for help.
Anna
- Original Message -
From:
Sternath Elmar
To: '[EMAIL PROTECTED]'
Sent: Wednesday
Hi
Anna,
you could
implement an action which takes your HTTP request parameter as input parameter,
then execute some JAVA code inside the action getting the last character,
incrementing it or whatever elseand let the action return the result.
Inside the act tags in your sitemap, you can
Hi
Anna,
if no cocoon
standard solution exists for this problem, you could implement your own
Transformer inheriting from Cocoon's AbstractTransformer.The transformer
processes all elements of your XML streamin corresponding methods like
startElement, etc. You could redefine these methods
Instead of your perl script, you could use aggregation:
map:aggregate element=site
map:part src=cocoon:/xml-file1.xml/
map:part src=cocoon:/xml-file2.xml/
/map:aggregate
and then transform the aggregated XML stream with your stylesheet.
Regards,
Elmar
-Ursprüngliche
Hello,
after cocoon-2.0.4 upgrade the following check inside my self-implemented
UploadGenerator (transfers an uploaded multipart file to a backend server, receives an
XML response from the backend server and transforms it into HTML) does not become true
any more:
if
about their meaning. I didn't think the default setting was
changed, although it probably should be.
Does the file upload sample still work?
Geoff Howard
-Original Message-
From: Sternath Elmar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 10:47 AM
To: '[EMAIL PROTECTED
Hello,
my cocoon application runs very slowly with the new version 2.0.4. Furthermore, my log
files are full with the following exception:
ERROR (2002-12-09) 10:05.41:273 [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Cocoon servlet threw an Exception while trying to close
stream.
Hi Braun,
I wrote an action to encode the request params before accessing them in the sitemap:
public class RequestEncodedParamAction extends ComposerAction implements ThreadSafe {
public final static String MAP_URI = requestURI;
public final static String MAP_QUERY =
Ludovic is right, ParameterSelector only works if you use
name=parameter-selector-test as parameter. Take a look at the source code! What you
could do to solve the problem is writing the action return value by use of
SessionPropagatorAction into session and then use SessionAttributeSelector to
Hi Josema,
where does the 'page' parameter come from? Don't forget that you're inside an action
when accessing it. So if it is a request parameter, you have to access it using
{../page}.
-Ursprüngliche Nachricht-
Von: Josema Alonso [mailto:alonso;aafunky.com]
Gesendet: Donnerstag, 7.
maybe the problem is that there are blanks in your
tomcatinstallation path.
-Ursprüngliche
Nachricht-Von: Richard Reyes
[mailto:[EMAIL PROTECTED]]Gesendet: Montag, 21. Oktober 2002
11:01An: C2 dev; C2 usersBetreff: latest cocoon cvs
version
Hi Guys,
I am using tomcat
are you sure that org.apache.cocoon.transformation is the correct package path of your
Transformer? If so, check if the Transformer is contained in
webapps/cocoon/WEB-INF/lib/cocoon.jar. However I would recommend to use a specific
package path for your own components, generate also your
Title: Action example
In the
cocoon docs there is a nice example how to create AND use
actions:
http://xml.apache.org/cocoon/userdocs/concepts/actions.html
Inside
an action, you put key/value pairs into a hashmap which you can then access
inside the corresponding act/act tags in your
Hello,
I already read some posts concerning ampersand encoding here in the mailing list. But
I have not yet found a solution for the following problem: I want to pass a request
parameter (Title) containing an ampersand (or any other reserved XML char) to a
self-implemented generator. Inside
I think what you need is RequestParamAction:
map:act type="request-encoded"
map:parameter name="parameters" value="true"/
!-- access request parameter by {request-param-name} --
/map:act
-Ursprungliche Nachricht-
Von: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]]
Gesendet:
Hi Barbara,
I already spent a couple of time about this problem and found the following,
suboptimal solution:
I created an XSP, called the xsp-request:get-parameter-values name=foo/ and filled
all the parameter name/value pairs in a loop into an XML element. Then I used the
aggregate tag in
Hello,
is it possible in Cocoon to define and set some kind of global variable which I can
access from all currently running sessions in parallel?
Regards,
Elmar
-
Please check that your question has not already been
not work. Do you have any idea how to solve this
problem??
Thanks,
Elmar
-Ursprüngliche Nachricht-
Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 26. Juli 2002 15:24
An: [EMAIL PROTECTED]
Betreff: RE: caching strategy
From: Sternath Elmar [mailto:[EMAIL PROTECTED
Title: Blank
This usually occurs if one of the components
used in thepipelines is not defined in the sitemap or if no class is found
for the component used.
Regards,
Elmar
-Ursprüngliche Nachricht-Von: Markus Alin
[mailto:[EMAIL PROTECTED]]Gesendet: Montag, 29. Juli 2002
Are you sure that you put your mydate param into a HashMap and that you also return
this HashMap inside your act method. If you don't return at least an empty HashMap,
nothing will be done inside the action tags. Your pipeline entries seem to be correct,
it should work with {1}.
Regards,
wrong with that ?
Have another question now : how can my action put something in a sunrise
context (mycontext), or else will use parameter associated with
redirect-to :-/
Thanks, gotta dig for it.
Barbara
- Original Message -
From: Sternath Elmar [EMAIL PROTECTED]
To: [EMAIL PROTECTED
Hello,
I wrote an application reading data from another application server and sending
requests to this application server which manipulate these data and reread the
manipulated data. All this is done inside one pipeline using URLMatchers.
CIncludeTransformer is used to concatenate multiple
Hi Barbara,
try this inside your act method:
if (true.equalsIgnoreCase(param.getParameter(parameters, null))){
Enumeration e = request.getParameterNames();
while(e.hasMoreElements()){
String name = (String) e.nextElement();
String value =
Hi Barbara,
try to use the selector like this:
map:select type=request-parameter
map:parameter name=parameter-name value=platform/
map:when test=All
Good luck,
Elmar
-Ursprüngliche Nachricht-
Von: Barbara Post [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 23. Juli
Hello,
Can anyone tell me when during pipeline processing it is possible to delete an
uploaded file stored in {tomcat}/work/.../upload-dir. After upload, we access the file
inside a self-implemented UploadGenerator which uploads the file to another J2EE
server. We're using cocoon2.0.2 in
Hello,
I have the impression that the sitemap variable given as mime-type parameter to reader
is not correctly expanded. At least my browser tries to open an application with
mime-type ../docformat (cocoon2.0.1). As soon as I put the same variable into the
src parameter, it is expanded
Hi,
I would like to know if it's possible to use self-implemented generators inside an
aggregation, something like:
map:aggregate element=SCWPage
map:part type=UploadGenerator
src=http://scw_de:[EMAIL PROTECTED]:/BOLServlet/ProductService.uploadDocument;
/map:aggregate
Regards,
Hi,
I noticed that, when I set up another pipeline inside an aggregator, the order of
execution of map:part entries is changed:
map:aggregate element=AddNewFileOK
map:part
entered in a form field or
is that a separate error?
-Original Message- From:
Sternath Elmar [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 9:03 AM To: [EMAIL PROTECTED] Subject:
RequestParmAction does not work with blanks in form input field
Hello,
as soon as I
Hello,
as soon as I put some blanks into an INPUT text/textarea field, I get the following
output in my browser (cocoon2.0.1/tomcat4.0.1)
My pipeline looks as follows (works fine without blanks):
map:pipeline
map:match pattern=SCW/addNewFileOK
map:select
URLConnection) perspective,
https does not differ from http if it configured correctly. Please read
link provided before criticizing.
Vadim
At 12:05 PM 6/1/2002 -0400, you wrote:
From: Sternath Elmar [mailto:[EMAIL PROTECTED]]
Hello,
I try to get files using ResourceReader
Hello,
I try to get files using ResourceReader/FileGenerator
(cocoon2.0.2/tomcat4.0.3/jdk1.4.0) :
map:pipeline
map:match pattern=elster/testhtmls
map:read mime-type=text/html
src=https://139.21.207.160:8443/elster/OTTest.html/
/map:match
/map:pipeline
Cocoon
40 matches
Mail list logo