[jboss-user] [JBoss Seam] - Re: Injection problem

koriel do-not-reply at jboss.com
Thu Aug 10 08:53:05 EDT 2006


You are refering to the packaging configuration? If yes all my classes are in the jar archive but I don't have the ejb-jar.xml there. I'll try that. Now I have another issue. I want to use utf-16 by default so I wrote a class filter and I put those lines in my web.xml


  | 	<filter>
  | 		<filter-name>Charset Filter</filter-name>
  | 		<filter-class>uai.utilities.CharsetFilter</filter-class>
  | 		<init-param>
  | 			<param-name>requestEncoding</param-name>
  | 			<param-value>UTF-16</param-value>
  | 		</init-param>
  | 	</filter>
  | 
  | 
  | 	<filter-mapping>
  | 		<filter-name>Charset Filter</filter-name>
  | 		<url-pattern>/*</url-pattern>
  | 	</filter-mapping>	
  |  

my filter class 


  | public class CharsetFilter implements Filter
  | {
  |  private String encoding;
  | 
  |  public void init(FilterConfig config) throws ServletException
  |  {
  |   encoding = config.getInitParameter("requestEncoding");
  | 
  |   if( encoding==null ) encoding="UTF-16";
  |  }
  | 
  |  public void doFilter(ServletRequest request, ServletResponse response, FilterChain next)
  |  throws IOException, ServletException
  |  {
  |   request.setCharacterEncoding(encoding);
  |   next.doFilter(request, response);
  |  }
  | 
  |  public void destroy(){}
  | }
  | 

then when I deploy my app and hit the register button is like method is never called and no messages with h:messages. If I replace the UTF-16 with UTF-8 everything works fine. That means that UTF-16 is not supported? And also when I check the character encoding in my page it is UTF-16

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964350#3964350

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964350



More information about the jboss-user mailing list