Re: Problem with 'request parameters'

2003-03-12 Thread mleroux

   Hi !


I think you can try this :

 
 http://{1}{requestQuery}"; type="html"/>
 
 
   
 


if you have this in your sitemap

  



{requestQuery} will contain the string "?id=15".


Michael



> Hi all
> I have a pipeline that processes some url.
> http://{1} type="html"/>
>   
>   
> 
>
> I.e. I get some html page, generate it, run an xsl and serialize.
> Nothing complicated. I can make a request
> localhost:8080/cocoon/testing/www.cnn.com/search.html (or whatever) and
> it works fine. The problem arises when the requested URL contains
> question marks, as in www.some.com/index.asp?id=15 If I provide this URL
> for the above pipeline, it generates the URL www.some.com/index.asp,
> ignoring everything after the ?. I understand that this is because
> Cocoon treats everything after ? as request parameters to the pipeline,
> but this is not the case here.
>
> So my question is how can I define Cocoon to take into the generator the
> full URL including the ? and everything after it. Is it at all possible?
>
> I would appreciate any input.
> Thank you very much for help.
>
> Anna




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



Precisions: Problem getting parameters with POST method and a File input

2003-03-10 Thread mleroux
Hi !


I've recently posted an issue, and I've got new elements.
My problem is :
I can't pass a request parameter through the sitemap when I put a file
path in an HTML FILE input and send it as POST multipart/form-data to a
Cocoon 2.0.4 servlet.

When I don't try to upload any file, I can pass the parameter value.
When I try to upload a file, I can't get the parameter value anymore.
Actually, it's as if there are no parameters in the request.


Can somebody tell me if he can reproduce this problem on his environment ?


 Michael.



My last message was :

Hi !

I've recently upgraded to Cocoon 2.0.4 and something doesn't work
anymore : I now can't get a parameter value in the sitemap with the
RequestParamAction and the POST method.


Here's my configuration :
Cocoon 2.0.4, JDK 1.3, Jetty, Jboss
MultipartRequestFactoryImpl (defined in a web.xml file)


Here's the way I use it :
I want to get a parameter named 'actiontype' and defined in a form and I
want to pass its value through the sitemap to an action.

I've got a sitemap.xmap file :


  

  


...


And I've got an HTML form (this page is dynamicly generated, here's an
instance) :  
  
  
...


And I've got a cocoon action of my own with a logger showing me the
value of the parameter named 'actiontype'.


With cocoon 2.0.3, everything works fine.
With cocoon 2.0.4 : when method="post" the logs say actiontype = '' when
method="get" the logs say actiontype = 'main' Everything would be
alright in the best world if i didn't need to use the POST method (in
order to have a FilePartFile object in the request).

I'm sure the only difference is the version of cocoon that I'm using
although there's still the possibility that I forgot some other change
of mine.



Would anybody help me ?


 Michael




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



Problem getting parameters with POST method, multipart/form-data, and RequestParamAction

2003-03-06 Thread mleroux
Hi everybody !


I've recently upgraded to Cocoon 2.0.4 and something doesn't work
anymore : I now can't get a parameter value in the sitemap with the
RequestParamAction and the POST method.


Here's my configuration :
Cocoon 2.0.4, JDK 1.3, Jetty, Jboss
MultipartRequestFactoryImpl (defined in a web.xml file)


Here's the way I use it :
I want to get a parameter named 'actiontype' and defined in a form and I
want to pass its value through the sitemap to an action.

I've got a sitemap.xmap file :


  

  


...


And I've got an HTML form (this page is dynamicly generated, here's an
instance) :  
  
...


And I've got a cocoon action of my own with a logger showing me the
value of the parameter named 'actiontype'.


With cocoon 2.0.3, everything works fine.
With cocoon 2.0.4 : when method="post" the logs say actiontype = '' when
method="get" the logs say actiontype = 'main'
Everything would be alright in the best world if i didn't need to use
the POST method (in order to have a FilePartFile object in the request).

I'm sure the only difference is the version of cocoon that I'm using
although there's still the possibility that I forgot some other change
of mine.



Would anybody help me ?


 Michael




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



How may I get the FilePart object ?

2002-12-04 Thread mleroux

Hi !


I'm trying to use automatic upload with cocoon 2.0.3 (with jboss, jetty,
Linux red hat).
I've read that cocoon uploads the file and puts a FilePart object inside the
request.

So my question is :
How can I get this object inside my Java code ?


   Michael




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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