[Resin-interest] alias-url-regexp
Hi, I'm trying to use the alias-url-regexp attribute introduced in Resin 4.0.22 to have multiple context paths to the same web app: web-app id=/foo alias-url-regexp=/foo-[^/]* root-directory=/x/y/z/foo/ When navigating to a page within the application (e.g. /foo-bar/welcome/user.html), the page is rendered correctly, but all the links within the page (generated by spring:url jsp tags) point to /foo/xyz instead of /foo-bar/xyz, so the context path is not maintained. However, in a servlet filter, request.getContextPath() does correctly return the actual context path used (e.g. /foo-bar), so I ended up wrapping the request and overriding getContextPath() to always return the initial value. Urls generated by the spring:url jsp tags then point to the correct context path, but this approach feels like a hack, and some redirects still cause a return to /foo/xyz instead of /foo-bar/xyz. Both with and without this filter in place, I'm experiencing strange behavior resolving the welcome page, where navigating to /foo-bar works, but /foo-bar/ results in a 404, while both /foo and /foo/ work correctly. I've tested with both 4.0.38 and 4.0.22 (where the feature was introduced), and their behavior appears to be identical. My goal is to encode the locale/language in the context path (e.g. /foo/en, /foo/nl, /foo/fr, ...), and alias-url-regexp seems perfect for that, but maybe I'm not using it correctly? Thanks, Tom ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] EL 2.2?
I'm trying to access a bean in request scope (in a JSP page) that takes a parameter. The method is getFieldError(String field); I'm trying to write EL like this: span${br.fieldError(email)}/span But it renders nothing. Note that the void parameter list version of the method works correctly (if I call it without an argument list). As I understand it, EL 2.2 should work this way. Do I need to do something to ensure the JSP page is executing EL 2.2? Does it need to be enabled in some way? Thanks! -- Rick signature.asc Description: Message signed with OpenPGP using GPGMail ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Any way to set jsp page-encoding with Servlet 3.0 Java-only configuration?
I apologize, since this isn't strictly a Resin issue, but: I used to have this in my web.xml: jsp-config jsp-property-group url-pattern*.jsp/url-pattern page-encodingUTF-8/page-encoding /jsp-property-group /jsp-config How do I duplicate that effect in Servlet 3.0/Spring Java-only configuration? Thanks! -- Rick signature.asc Description: Message signed with OpenPGP using GPGMail ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Any way to set jsp page-encoding with Servlet 3.0 Java-only configuration?
In Resin you should be able to specify that with character-encoding tag at web-app | host | cluster | resin level. http://www.caucho.com/resin-4.0/reference.xtp#characterencoding Thanks, Alex I apologize, since this isn't strictly a Resin issue, but: I used to have this in my web.xml: jsp-config jsp-property-group url-pattern*.jsp/url-pattern page-encodingUTF-8/page-encoding /jsp-property-group /jsp-config How do I duplicate that effect in Servlet 3.0/Spring Java-only configuration? Thanks! -- Rick ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Any way to set jsp page-encoding with Servlet 3.0 Java-only configuration?
Yeah, I've got this as the first line in my resin.xml: character-encodingUTF-8/character-encoding But it is insufficient. On Mar 11, 2014, at 16:45 , Alex Rojkov a...@caucho.com wrote: In Resin you should be able to specify that with character-encoding tag at web-app | host | cluster | resin level. http://www.caucho.com/resin-4.0/reference.xtp#characterencoding Thanks, Alex I apologize, since this isn't strictly a Resin issue, but: I used to have this in my web.xml: jsp-config jsp-property-group url-pattern*.jsp/url-pattern page-encodingUTF-8/page-encoding /jsp-property-group /jsp-config How do I duplicate that effect in Servlet 3.0/Spring Java-only configuration? Thanks! -- Rick ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- Rick signature.asc Description: Message signed with OpenPGP using GPGMail ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] EL 2.2?
Hmm, I tried again, and it does indeed seem to work. On Mar 11, 2014, at 18:56 , Rick Mann rm...@latencyzero.com wrote: I'm trying to access a bean in request scope (in a JSP page) that takes a parameter. The method is getFieldError(String field); I'm trying to write EL like this: span${br.fieldError(email)}/span But it renders nothing. Note that the void parameter list version of the method works correctly (if I call it without an argument list). As I understand it, EL 2.2 should work this way. Do I need to do something to ensure the JSP page is executing EL 2.2? Does it need to be enabled in some way? Thanks! -- Rick ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- Rick signature.asc Description: Message signed with OpenPGP using GPGMail ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest