[Stripes-users] change status code of forward resolution
I am doing some location aware pages for a website where they are available only to specific countries. When they aren't available I'd like to forward to my restricted.jsp page with the status code set to forbidden (403). How do I go about setting the status code? Thanks Chris -- How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] change status code of forward resolution
I guess that's what you need : http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/ErrorResolution.html HTH Rémi 2013/6/4 Chris Cheshire > I am doing some location aware pages for a website where they are > available only to specific countries. When they aren't available I'd like > to forward to my restricted.jsp page with the status code set to forbidden > (403). > > How do I go about setting the status code? > > Thanks > > Chris > > > -- > How ServiceNow helps IT people transform IT departments: > 1. A cloud service to automate IT design, transition and operations > 2. Dashboards that offer high-level views of enterprise services > 3. A single system of record for all IT processes > http://p.sf.net/sfu/servicenow-d2d-j > ___ > Stripes-users mailing list > Stripes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/stripes-users > > -- How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] change status code of forward resolution
Close. I'd rather render a page with my own stylesheet than see the ugly tomcat standard error page. However, if I use the tag in my web.xml and send it off to my page, I can't find where the actual message sent in the error resolution is hiding. Any ideas? Chris On Tue, Jun 4, 2013 at 1:42 PM, VANKEISBELCK Remi wrote: > I guess that's what you need : > > http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/ErrorResolution.html > > HTH > > Rémi > > > 2013/6/4 Chris Cheshire > >> I am doing some location aware pages for a website where they are >> available only to specific countries. When they aren't available I'd like >> to forward to my restricted.jsp page with the status code set to forbidden >> (403). >> >> How do I go about setting the status code? >> >> Thanks >> >> Chris >> >> >> -- >> How ServiceNow helps IT people transform IT departments: >> 1. A cloud service to automate IT design, transition and operations >> 2. Dashboards that offer high-level views of enterprise services >> 3. A single system of record for all IT processes >> http://p.sf.net/sfu/servicenow-d2d-j >> ___ >> Stripes-users mailing list >> Stripes-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/stripes-users >> >> > > > -- > How ServiceNow helps IT people transform IT departments: > 1. A cloud service to automate IT design, transition and operations > 2. Dashboards that offer high-level views of enterprise services > 3. A single system of record for all IT processes > http://p.sf.net/sfu/servicenow-d2d-j > ___ > Stripes-users mailing list > Stripes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/stripes-users > > -- How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] change status code of forward resolution
My google-fu needs some work. I finally stumbled across the solution I needed ${requestScope['javax.servlet.error.message']} so all is good. Chris On Tue, Jun 4, 2013 at 7:24 PM, Chris Cheshire wrote: > Close. I'd rather render a page with my own stylesheet than see the ugly > tomcat standard error page. However, if I use the tag in my > web.xml and send it off to my page, I can't find where the actual message > sent in the error resolution is hiding. > > Any ideas? > > Chris > > > On Tue, Jun 4, 2013 at 1:42 PM, VANKEISBELCK Remi wrote: > >> I guess that's what you need : >> >> http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/ErrorResolution.html >> >> HTH >> >> Rémi >> >> >> 2013/6/4 Chris Cheshire >> >>> I am doing some location aware pages for a website where they are >>> available only to specific countries. When they aren't available I'd like >>> to forward to my restricted.jsp page with the status code set to forbidden >>> (403). >>> >>> How do I go about setting the status code? >>> >>> Thanks >>> >>> Chris >>> >>> >>> -- >>> How ServiceNow helps IT people transform IT departments: >>> 1. A cloud service to automate IT design, transition and operations >>> 2. Dashboards that offer high-level views of enterprise services >>> 3. A single system of record for all IT processes >>> http://p.sf.net/sfu/servicenow-d2d-j >>> ___ >>> Stripes-users mailing list >>> Stripes-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/stripes-users >>> >>> >> >> >> -- >> How ServiceNow helps IT people transform IT departments: >> 1. A cloud service to automate IT design, transition and operations >> 2. Dashboards that offer high-level views of enterprise services >> 3. A single system of record for all IT processes >> http://p.sf.net/sfu/servicenow-d2d-j >> ___ >> Stripes-users mailing list >> Stripes-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/stripes-users >> >> > -- How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users