Java Server Pages

Moderators: None (Apply to moderate this forum)
Number of threads: 306
Number of posts: 629

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
no pageEncoding Posted by h3rj4n on 26 May 2009 at 7:42 AM
I'm trying to give a program response with JSP but the program compaints about the give Charset.

The program sends a URL with paramaters to the JSP page and needs the content generated by the JSP page to work properly. The response is not allowed to have any kind of charset. So I need JSP to give a response to the program with no charset.

Is this possible? Can't find my answer with Google.


Report
Re: no pageEncoding Posted by freezea on 3 Dec 2009 at 11:27 PM
pageEncoding:The encoding used for the JSP page file, as well as
the response charset if no charset is specified by contentType.

If this attribute is omitted, but a charset is specified for contentType,
that charset is also used of the page; if contentType doesn't specify a charset, ISO-8859-1 is used for a regular JSP page, and UTF-8 is used for a JSP Document.

you can use response.setCharaterEncoding() to set the charset for jsp

hope it helps

RAQ Report---Enjoy Products and Services of RAQSOFT




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.