[JBoss-user] [JBoss Portal] - Re: preferences from non authenticated user
That's exactly what i need - a small set (couple of strings) of preferences per user, so I was thinking that a Cookie store would be acceptable. Kev View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918179#3918179 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918179 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: preferences from non authenticated user
Hello, I am interested in finding a way to solve this problem. I couldn't find the PreferencesInterceptor.java class you mention in the 2.2.0 code - has this changed recently? I would like to know what you suggest for solving this kind of issue. Basically we have our own authentication (not using JBoss Portal users) and we'd like to store some simple values for each of our users (what would normally go in a Cookie). So like you suggest, a Cookie based storage system for the preferences may be the most appropriate solution. If you can point me to general place(s) in the code I need to be aware of to do this that would be very useful! Thanks, Kevin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918124#3918124 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918124 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: UTF-8 form support not working Jboss portal?
So any other interested parties know, I have fixed the issue. I modified the file: org.jboss.portal.server.servlet.AbstractMainServlet and changed this method thus: |protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException |{ | log.info("Setting character encoding to UTF-8..."); | req.setCharacterEncoding("UTF-8"); | PortalServer container = getContainer(); | ServerManager manager = container.getManager(); | InvocationFactory ctx = manager.getInvocationContext(); | Invocation invocation = ctx.decode(req, resp); | invoke(invocation); |} | This fixed the issue and Form characters are now correctly handled as UTF-8 in the portal pages. Thanks, Kevin -- http://www.alfresco.org View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3895778#3895778 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3895778 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: UTF-8 form support not working Jboss portal?
"fheldt" wrote : You have to submit the form with the right charset | | | Yes I'm already doing that as I said in my previous message: >So now I attempt to enter UTF-8 characters in my FORM, the HTML FORM has the >following attribute: acceptCharset="UTF-8"... The issue appears to in the portal, as the same webapp run plain in TomCat (and in Jboss) does not have these issues. Kev -- http://www.alfresco.org View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894933#3894933 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894933 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - UTF-8 form support not working Jboss portal?
To get the display of UTF-8 characters to work correctly, I added the following to all of our portlet JSP pages: <%@ page contentType="text/html;charset=UTF-8" %> We found that JBoss Portal will display UTF-8 characters fine - BUT we have not found a why to submit them correctly in a FORM yet... I am looking for a solution for that now. I have tried adding acceptCharset="UTF-8" to all HTML FORM tags but that hasn't worked. And I have also tried changing the line in the theme index.jsp: to But that didn't work either :( However I say a forum post reply by Julian: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=64828 I have tried making these changes as suggested by Julian: org.jboss.portal.core.invocation.ContentTypeInterceptor line 113 | // Set content type | response.setContentType(mimeType); | response.setCharacterEncoding("UTF-8"); | So the pages are showing UTF-8 encoding in both IE and FireFox. This is fine and UTF-8 multi-byte characters are displaying ok. This image shows that working: http://www.kevs3d.co.uk/dev/jboss_utf8.png So now I attempt to enter UTF-8 characters in my FORM, the HTML FORM has the following attribute: acceptCharset="UTF-8" this image shows the input form: http://www.kevs3d.co.uk/dev/jboss_forminput.png As you can see it's working fine allowing you to input the characters. Now we submit the form. At this point if I check the value of the fields submitted to my bean in the debugger the values are a mess of characters and incorrect :( As can be seen on the next screen shot where we output the submitted characters back to the browser: http://www.kevs3d.co.uk/dev/jboss_formoutput.png Exactly the same web-application, running out of the Jboss Portal (still inside JBoss - but running as a TomCat web-app) works fine and the characters are submitted correctly back to the web-server. Does anyone have any idea what I need to do in JBoss Portal to fix this? Thanks, Kevin -- http://www.alfresco.org View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894864#3894864 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894864 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user