[JBoss-user] [JBoss Portal] - modifying the content type interceptor doesn't work
Hi mholzner! i've tried the content type interceptor ,but it fails. when i changed the MIME_GENERAL_HTML = text/html -- text/html;charset=utf-8, and built the source again then it gives error that content type not accepted! , so i think it's related to setContentType method of RenderResponseImpl.java : public void setContentType(String contentType) { int index = contentType.indexOf(';'); if (index != -1) { contentType = contentType.substring(0, index); } String responseContentType = resp.getContentType(); if (!responseContentType.equals(contentType)) { throw new IllegalArgumentException(Content type not accepted); } result.setContentType(contentType); } it extracts only text/hmtl from content type (which is text/html;charset=utf-8) and in turn it check against isAcceptedContentType method of ContentTypeInterceptor.java public static final boolean isAcceptedContentType(String contentType) { return MIME_GENERAL_HTML.equalsIgnoreCase(contentType) | MIME_WML.equalsIgnoreCase(contentType); } so eventually it doesn't match of course, you mentioned creating my own plugin, but i've no idea how to create that, i just want to allow jboss portal to support asian language which require utf-8 encoding (actually mongolian language) . if there are developers who supported asian language , please let me khow how to. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3879117#3879117 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3879117 --- SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate online with coworkers and clients while avoiding the high cost of travel and communications. There is no equipment to buy and you can meet as often as you want. Try it free.http://ads.osdn.com/?ad_id=7402alloc_id=16135op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - how did you changed JBossRenderResponse ContentType to UTF-8
Hi martingi! how did you changed JBossRenderResponse ContentType to UTF-8? I've changed all my jsp's page directive so that they have %@ page contentType=text/html; charset=UTF-8 pageEncoding=UTF-8 % , but i couldn't display any mongolian character, all the character were broken. when i checked the page info of FireFox browser then the Encoding was ISO-8859-1.I thinks it seems that no matter you change your jsp's enconding or character set , the result remains same because all the jsp pages are parsed by a servlet or something which has a default encoding ISO-8859-1. So now I've no clue how to build multilingual portal site. is there any body with some solution on the utf problem? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3878718#3878718 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3878718 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - forum is strange!
i can't believe that there's no back link or any link to the previous portlet in the forum portlet! doesn't it? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3877609#3877609 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3877609 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: forum is strange!
yeah think so :-) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3877730#3877730 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3877730 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user