It depends on the content-type of your POST. If it is
"application/x-www-form-urlencoded", the servlet engine will consume it. You
will get nothing. Otherwise your tapestry service will get the inputstream.
On 3/18/06, Jean-Eric Cuendet <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I have a tapestry servic
Well, you should keep reading up on Filters and how they can replace the
request/response objects, they are very useful.
You'll want to create your own Request object ( extending
HttpServletRequestWrapper ). In its constructor you absorb the
inputstream into a byte[]. Then you create another
After some investigations, I understand that I should subclass
servlet.Filter and override doFilter() in it. Then put some config in my
Tomcat config to let it call MyFilter.doFilter()
Is that right?
Then, I can do request.getInputStream() and read the stream, put it in
a request.setParameter
Yup, you can't, this is how webapps work in general, sorry. But you can
create a filter to get what you want, read on.
The problem is that if it's a POST request, someone (webapp container,
request object) has already digested the whole body of the request and
convert it into properties of
:
This should maybe go into an FAQ or on the Wiki somewhere. I've seen
this
same question 3 times since I joined this list (not too long ago).
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Raul Raja Martinez
Sent: Saturday, March 18, 2006 6:32 PM
To: tapestry
Hi Raul
Being a bit of a newbie I would very much appreciate you doing so.
Tapestry is excellent, but the more documentation the better..
Regards
Alan Chaney
Raul Raja Martinez wrote:
Yes in fact it has been answered by me an other people like 5 or 6
times already.
I can write a howto f
3 times since I joined this list (not too long ago).
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Raul Raja Martinez
Sent: Saturday, March 18, 2006 6:32 PM
To: tapestry-user@jakarta.apache.org
Subject: Re: Getting raw POST data
Just provide this:
private Htt
bject: Re: Getting raw POST data
Just provide this:
private HttpServletRequest request;
public void setHttpServletRequest(HttpServletRequest request) {
this.request = request;
}
Hivemind will autowire the request to your service so that you can use
it like if you were dealing with a Se
-user@jakarta.apache.org
Subject: Re: Getting raw POST data
Just provide this:
private HttpServletRequest request;
public void setHttpServletRequest(HttpServletRequest request) {
this.request = request;
}
Hivemind will autowire the request to your service so that you can use
it like if you
Just provide this:
private HttpServletRequest request;
public void setHttpServletRequest(HttpServletRequest request) {
this.request = request;
}
Hivemind will autowire the request to your service so that you can use
it like if you were dealing with a Servlet.
best regards.
Raul Raja.
Je
Hi,
I have a tapestry service but would like to access the raw data from the
POST http request. Is that possible?
If I do
getRequest().getInputStream() then inputStream.available() returns 0 ...
I tried reset() on IS but it throw an exception saying it's not supported...
Thanks for any info.
-je
11 matches
Mail list logo