[Stripes-users] switch to https

2013-04-19 Thread Chris Cheshire
How do I tell a stripes:link or stripes:form that I want it to switch to https? Eg. Start at a non-secure page and switch to https on login. Do I have to use url rewrite rules, or is there something in Stripes I can use? Thanks Chris

Re: [Stripes-users] switch to https

2013-04-19 Thread Adam Stokar
I had to deal with this a long time ago. The best solution was to make all pages use https. When you switch from http to https, a new session id is created and it complicates everything. Is there a reason you need http? On Fri, Apr 19, 2013 at 10:13 AM, Chris Cheshire

Re: [Stripes-users] switch to https

2013-04-19 Thread Chris Cheshire
No, I want to know how to switch from http to https without using url rewriting (apache, tomcat filter) if possible. I'm fine with everything being https once the switch is made, I just need to know how to make the switch when building links via stripes:link or stripes:form where possible. On

Re: [Stripes-users] switch to https

2013-04-19 Thread Joaquin Valdez
This is how I do it in an ActionBean: @DefaultHandler @DontValidate public Resolution form() { if (getContext().getRequest().isSecure()) { return new ForwardResolution(WELCOME); } else { return new

Re: [Stripes-users] switch to https

2013-04-19 Thread Chris Cheshire
On Fri, Apr 19, 2013 at 11:55 AM, Stone, Timothy tst...@barclaycardus.comwrote: This seems to me to be a solved problem that is not directly a Stripes problem or a problem needing to be found in a Stripes solution. ** ** **1. **You can do this in Apache (not so much direct

Re: [Stripes-users] switch to https

2013-04-19 Thread Janne Jalkanen
I just simply inherited StripesFormTag to provide my own SecureStripesFormTag which is smart enough to force SSL in form submission if it's not enabled before. The code looks like this public class SecureFormTag extends FormTag { @Override protected String buildAction() {