views:

30

answers:

1

Hi everyone,

I am new to Spring (formerly a Struts guru) and I've decide to change all my code to Spring for the reason being that Spring is more Service-Oriented (and the possibility that I might also include a RESTful application form the same project is a possible option).

As for now, in Struts, there was an SSL plugin to create a secure HTTPS form. How do I do that in Spring? I've read Spring Security but to no avail.

Thanks in advance.

A: 

Take a look at the SpringSecurity reference - Section 2.3.2. Adding HTTP/HTTPS Channel Security. This gives you a simple way to declare that a URL or set of URLs must be accessed via HTTPS. (IIRC, this works by configuring a ChannelProcessingFilter which will automatically redirect requests to the appropriate protocol if necessary.)

Stephen C
It's a start, I'll try and see how to do this for secure online transaction such as credit card purchasing.
The Elite Gentleman