Francois Armand schrieb:
Kristian Marinkovic a écrit :
havent tried myself, but it should work this way...
you could create a Dispatcher and inject the Request service.
by analyzing the http headers you can determine the client and set
the content-type of the response accordingly
I think
Kristian Marinkovic a écrit :
havent tried myself, but it should work this way...
you could create a Dispatcher and inject the Request service.
by analyzing the http headers you can determine the client and
set the content-type of the response accordingly
I think that the problem here is if
havent tried myself, but it should work this way...
you could create a Dispatcher and inject the Request service.
by analyzing the http headers you can determine the client and
set the content-type of the response accordingly
g,
kris
Christian Gorbach <[EMAIL PROTECTED]>
07.03.2008
l+xml") is only respected by Mozilla
Browsers. IE doesnt know how to handle responses of this content type.
Same behavior for "text/xml".
Content negotation also isn't an option, because the annotation is too
static and applies to all user agents. For IE et al. my markup sho
On Nov 28, 2007 3:50 PM, Kristian Marinkovic wrote:
> hi lars,
>
> return an instance of StreamResponse:
>
> StreamResponse onActivate(String context) {
> return new StreamResponse() {
> // implement interface
> public String getContentType() {
>
On Nov 28, 2007 7:46 PM, Josh Canfield wrote:
> You can use: @Meta("tapestry.response-content-type=text/xml") on your page
> class.
Thanks, that seems to work for me.
> Although XML is not fully supported by tapestry at the moment. You may run
> into problems with invalid
You can use: @Meta("tapestry.response-content-type=text/xml") on your page
class.
Although XML is not fully supported by tapestry at the moment. You may run
into problems with invalid xml being generated if one of your elements
matches an HTML element such as link or img which will
-file";
}
}
}
g,
kris
"Lars Kühne" <[EMAIL PROTECTED]>
28.11.2007 15:33
Bitte antworten an
"Tapestry users"
An
users@tapestry.apache.org
Kopie
Thema
T5: Controlling the content type in a page render request
Hi,
I'm trying to use a tml templ
Hi,
I'm trying to use a tml template to serve an XML file that has dynamic
content (in fact, a Java Web Start JNLP file):
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";
spec="1.5+"
...
The content itself is rendered correctly, but I'm having problems
setting
You might like to report this to the commons-upload guys
We basically wrap their
org.apache.commons.fileupload.FileItem class
On the other hand, I believe this to be the correct behavior.
As mentioned in the docs, the MIME type returned is
the one specified when the file was uploaded, i.e. what t
Hello,
The method getContentType() from IUploadFile doesnt check the mime type
of the file, like it describes
String getContentType()
Returns the MIME type specified when the file was uploaded.
Instead, it only checks the extension of the file.
So, the methode will for exa
It also works with 5.0.4, but to use 5.0.5-SNAPSHOT you might need:
true
tapestry-snapshots
http://people.apache.org/~hlship/tapestry-snapshot-repository/
Cheers,
Nick.
Davor Hrg wrote:
I tried it but had trouble with getting 5.0.5-SNAPSHOT in my pom...
what is co
ield and an expansion showing the value from
> the text field. If i enter some random characters not included in
> iso-8895-1 then tapestry just displays "?" instead.
>
> Traditionally I have solved problems like this by setting the response
> Content-Type to utf-8.
>
>
by setting the response
Content-Type to utf-8.
To change the default behavior of all pages I replaced the following
line in org.apache.tapestry.internal.services.PageResponseRendererImpl
PrintWriter pw = response.getPrintWriter("text/html);
with
PrintWriter pw = response.getPrintWriter(&qu
t; instead.
Traditionally I have solved problems like this by setting the response
Content-Type to utf-8.
To change the default behavior of all pages I replaced the following
line in org.apache.tapestry.internal.services.PageResponseRendererImpl
PrintWriter pw = response.getPrintWriter("te
Should i put this code on the PageBeginRender method?
Hermann Yesid Redondo Eslava
Ingeniería de Sistemas
IT-GROUP
-- Original Message ---
From: Andreas Bulling <[EMAIL PROTECTED]>
To: Tapestry users
Sent: Tue, 16 May 2006 17:54:05 +0200
Subject: Re: Content Type
> O
On 16. Mai 2006 - 10:21:13, yesidredondo wrote:
| Can anyone tell me how to put the content type of a page in tapestry, if i
| want a page to be of xml or xls format?
HttpServletResponse response =
getRequestCycle().getRequestContext().getResponse();
try
Can anyone tell me how to put the content type of a page in tapestry, if i
want a page to be of xml or xls format?
Hermann Yesid Redondo Eslava
Ingeniería de Sistemas
IT-GROUP
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
18 matches
Mail list logo