[Installation, Configuration & Deployment] - UTF encoding in address field
by WatchCat
I have some problem. It not fatal, but i don't known how to eliminate it.
Jboss 4.0.5 GA ( with tomcat ).
Tomcat connector was configured this way:
| <Connector port="80" address="${jboss.bind.address}"
| maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
| emptySessionPath="true"
| useBodyEncodingForURI="true"
| URIEncoding="UTF-8"
| enableLookups="false" redirectPort="8443" acceptCount="100"
| connectionTimeout="20000" disableUploadTimeout="true"/>
|
And in ROOT.war i place some test jsp-file (testenc.jsp, UTF-8 codepage)
| <%@ page import="java.net.URLEncoder" %>
| <%@ page import="java.util.Enumeration"%>
| <%@ page contentType="text/html;charset=UTF-8" %>
| <html>
| <head>
| <title>testenc.jsp page</title></head>
| <meta http-equiv="pragma" content="no-cache" />
| <!meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
| <body>
| <%=request.getCharacterEncoding()%>
| <table>
| <% Enumeration pnms = request.getParameterNames();
| while (pnms.hasMoreElements()) {
| Object o = pnms.nextElement();
| String[] v = request.getParameterValues(o.toString());
| StringBuffer sb = new StringBuffer();
| for (int i = 0; i < v.length; i++) sb.append(v).append("|");
| %><tr><td><%=o.toString()%></td><td><%=sb.toString()%></td><td><%=request.getParameter(o.toString())%></td></tr><% }%>
| </table>
| <a href="testenc.jsp?param=<%=URLEncoder.encode("???????", "UTF-8")%>">???????</a><br/>
| </body>
| </html>
|
In bowser page showing normally, and reference working fine.
But if i manually type "/testenc.jsp?param=???????" in url-field then browser recode Russian symbols in form:
/testenc.jsp?param=%D0%F3%F1%F1%EA%E8%E9 (Windows-1251?)
instead of:
/testenc.jsp?param=%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9
although with wikipedia.org browser works correctly.
Sorry for my English. :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994382#3994382
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994382
19 years, 4 months
[JBoss Seam] - Re: Seam debug page with ICEfaces
by MarkCollette
Hmm, some random musings from me, about your question ... :)
I'm not aware of any other way of telling Facelets where to get at a resource, besides via the ResourceResolver. The thing is, I'm not sure that ResourceResolvers should be automagically configured anyway, since the web app developer would probably want to control the sequence of the chain of delegation.
And the problem with the SeamDebugPhaseListener approach is that anyone using their own ViewHandler, not just ICEfaces with its ViewHandlers, may have problems. And what if content is being rendered to some non-HTML front-end? Then they might not be able to access the debug page anyway with the existing approach.
Is there some way of faces-config.xml saving away some state somewhere, that the Facelets DefaultResourceResolver could then retrieve, that would then tell it how to find your debug.xhtml file? Alternatively, maybe your PhaseListener could programatically call some static method in Facelets, that could tell the DefaultResourceResolver about a Seam delegate that can find the debug.xhtml file. I guess that's more of a question for the Facelets Dev newsgroup, but maybe you'd have some clout with them to have that done?
Oh, and I should probably mention, that what I've described here in this thread won't actually make the debug page work with the ICEfaces 1.5.1 release, but should make the next release work.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994379#3994379
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994379
19 years, 4 months