|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Using SSL with JSFSorry if this is a dumb question, but what is the proper way in jsf navigation rules to direct to a secure page. I already have all of the certificates setup on the server, and can access any page using https. The question is, how do I make sure the navigation rule uses https ? I guess I could put a fully qualified url in the config, but what is the correct way of doing this? I would also need to redirect back to regular http after a couple of forms.
Thanks in advance. |
|
|
Re: Using SSL with JSFHi Scott,
Normally, its not a business of JSF framework - HTTPS is implemented on webserver side, e.g. apache/tomcat. 2009/6/27 Scott Carter <carterdevlists@...> Sorry if this is a dumb question, but what is the proper way in jsf navigation rules to direct to a secure page. I already have all of the certificates setup on the server, and can access any page using https. The question is, how do I make sure the navigation rule uses https ? I guess I could put a fully qualified url in the config, but what is the correct way of doing this? I would also need to redirect back to regular http after a couple of forms. |
|
|
Re: Using SSL with JSFFor example, the following code (from web.xml) makes tomcat use SSL when the resources under "/CadastrarServico/" are requested:
... <security-constraint> <web-resource-collection> <web-resource-name>cadastrar servico resources</web-resource-name> <description> This collection bundles all pages and resources as well as the actions called in the "cadastrar servico" use-case </description> <url-pattern>/CadastrarServico/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>Autoridade</role-name> <role-name>Administrador</role-name> <role-name>Gerente</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENT</transport-guarantee> </user-data-constraint> </security-constraint> ... Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br On Sat, Jun 27, 2009 at 6:59 AM, Anton Gavazuk <antongavazuk@...> wrote: Hi Scott, |
| Free embeddable forum powered by Nabble | Forum Help |