Is "HttpStatus" Jetty-specific? I'm unable to resolve the class. I'll see if I can somehow piece this together on the Glassfish side.
Thanks. On Tue, Jan 5, 2010 at 9:10 AM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > In WicketApplication.init() > > 2010/1/5 VGJ <zambi...@gmail.com>: > > You'll have to forgive my ignorance - where in your app do you do this? > > > > On Tue, Jan 5, 2010 at 8:55 AM, Martin Makundi < > > martin.maku...@koodaripalvelut.com> wrote: > > > >> This is what we do with jetty: > >> > >> try { > >> // Force 302 redirect status code into 301 'permanent redirect' > >> Field statusField = > >> HttpStatus.class.getDeclaredField("__responseLine"); > >> statusField.setAccessible(true); > >> Buffer[] responseLine = (Buffer[]) > statusField.get(HttpStatus.class); > >> byte[] bytes = responseLine[302].toString().replace("302", > >> "301").getBytes(); > >> responseLine[302] = new > >> ByteArrayBuffer(bytes,0,bytes.length,Buffer.IMMUTABLE); > >> } catch (Exception e) { > >> Utils.errorLog(getClass(), e); > >> } > >> > >> > >> 2010/1/5 VGJ <zambi...@gmail.com>: > >> > Along with all of the SEO stuff I'm working on these days - I'm being > >> asked > >> > to use 301 redirects on the sites we're optimizing. How would this be > >> done > >> > in with Wicket? Are there alternatives, if not? > >> > > >> > Thanks! > >> > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >