Image upload

2008-05-06 Thread Kamal Bhatt

Hi,
I was wondering if someone can give me information on the file upload 
usage described here:


http://wiki.apache.org/cocoon/FileUploadsWithFlow

Namely, what this does:

org.apache.cocoon.components.upload.FileUploadManager

Is it a class? Where can I find information about this?


--
Kamal Bhatt


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Memory Leak - Cocoon 2.1.9

2008-05-06 Thread Edward S
All,

Has anyone observed any memory leaks in 2.1.9?
Our client got an 'OutOfMemoryException' ...the log also said 'out of swap
space'

If I monitor the VM Size and the Mem Usage on the task manager for the
Tomcat process, after using our cocoon app, i see that both  grow in size.

Env: Win 2003
Tomcat 5.0.28
Cocoon 2.1.9

thanks

Ed.


Re: SSF and URL Encoding

2008-05-06 Thread Robin Wyles

Hi Rainer,

Thanks very much for your reply... shortly after writing my post I  
thought about using an input module, and wrote my own url encoding  
input module, not realising there was one already included with  
Cocoon - after all these years using Cocoon I've never seen it!  
However, I'm under the impression that input modules will be replaced  
by the expression languages at some point [1]... Perhaps someone else  
might care to comment how this may be achieved in the new C2.2 way.


Robin

[1] http://cocoon.apache.org/2.2/core-modules/expression-language- 
impl/1.0/1407_1_1.html



On 6 May 2008, at 12:59, Rainer Pruy wrote:


Hi Robin

Robin Wyles schrieb:

Hi All,
[...]

So, my questions are

a) Should ServletSource be encoding the URL it receives ? I would've
thought probably not...


just my personal opinion: No. It would cause SSF to treat URLs  
different from other protocols.
matching happens on de-coded URLS. Thus it is quite natural to  
expect some special treatment being necessary for matched strings when

being used as part of newly built URLs.


a) How can I re-encode the part of the URL I am passing as a request
param to my servlet service call within the sitemap?


You can use url-encode module. in your example, probably:

value="servlet:exist:/db/feeds/{url-encode:{1}}/entries? 
terms={url-encode:{2}}"/>





Many thanks,

Robin


Rainer

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





smime.p7s
Description: S/MIME cryptographic signature


Re: SSF and URL Encoding

2008-05-06 Thread Rainer Pruy
Hi Robin

Robin Wyles schrieb:
> Hi All,
> [...]
> 
> So, my questions are
> 
> a) Should ServletSource be encoding the URL it receives ? I would've
> thought probably not...

just my personal opinion: No. It would cause SSF to treat URLs different from 
other protocols.
matching happens on de-coded URLS. Thus it is quite natural to expect some 
special treatment being necessary for matched strings when
being used as part of newly built URLs.
> 
> a) How can I re-encode the part of the URL I am passing as a request
> param to my servlet service call within the sitemap?

You can use url-encode module. in your example, probably:




> 
> Many thanks,
> 
> Robin

Rainer

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SSF and URL Encoding

2008-05-06 Thread Robin Wyles

Hi All,

Consider this pipeline matcher:




  




... when called using the following URL...

/xq/testfeed/-/one%7Ctwo

... results in the following exception...

 java.net.MalformedURLException: Invalid URI syntax. Illegal  
character in opaque part at index 74: servlet:exist:/db/feeds/ 
testfeed/entries?terms=one|two
at  
org.apache.cocoon.servletservice.components.ServletSource.createServletC 
onnection(ServletSource.java:142)

[...]

So, my questions are

a) Should ServletSource be encoding the URL it receives ? I would've  
thought probably not...


a) How can I re-encode the part of the URL I am passing as a request  
param to my servlet service call within the sitemap?


Many thanks,

Robin

smime.p7s
Description: S/MIME cryptographic signature


RegexpRequestParameterSelector unable to get working.

2008-05-06 Thread Gordore

Hi,

I want to use the 'RegexpRequestParameterSelector' as I need to apply a
regular expression to a request parameter to dictate how the pipeline
operates.

Unfortunately when I apply a pattern or use the given examples it seems to
ignore the pattern and goes to the otherwise.

  
 
   ^$
   ^[0-9]+$
   ^.+$
   admin|manager
 
  
 























http://server/cocoon/test?group=admin
arg = false

http://server/cocoon/test?group=user
arg = false

Could anyone help?

Matt. Beaumont

-- 
View this message in context: 
http://www.nabble.com/RegexpRequestParameterSelector-unable-to-get-working.-tp17079274p17079274.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]