You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Loup <Da...@performgroup.com> on 2008/03/04 11:25:46 UTC

redirect-action to https

Hi,

 

I'm trying to have Struts 2 redirect over HTTPS protocol.

 

On submit of a form calling editPerson.action (on a page already on
HTTPS), the following redirects to HTTP. 

 

<action name="editPerson" class="persons.EditPersonAction"
method="update">

                <interceptor-ref name="standardStack"/>

                <result name="success"
type="redirect-action">listPersons</result> 

                <result name="input">/pages/viewPerson.jsp</result>

</action>

 

Is there any configuration I can add to redirect over https ?

 

Thanks


________________________________________________________________________

CONFIDENTIALITY - This email and any files transmitted with it, are confidential, may be legally privileged and are intended solely for the use of the individual or entity to whom they are addressed. If this has come to you in error, you must not copy, distribute, disclose or use any of the information it contains. Please notify the sender immediately and delete them from your system.

SECURITY - Please be aware that communication by email, by its very nature, is not 100% secure and by communicating with Perform Group by email you consent to us monitoring and reading any such correspondence.

VIRUSES - Although this email message has been scanned for the presence of computer viruses, the sender accepts no liability for any damage sustained as a result of a computer virus and it is the recipient�s responsibility to ensure that email is virus free.

AUTHORITY - Any views or opinions expressed in this email are solely those of the sender and do not necessarily represent those of Perform Group.

COPYRIGHT - Copyright of this email and any attachments belongs to Perform Group, Companies House Registration number 6324278.

Re: redirect-action to https

Posted by Nuwan Chandrasoma <my...@gmail.com>.
Hi,

take a look at this plug-in and code, it may be helpful to you.

http://code.google.com/p/struts2-ssl-plugin/

Thanks,

Nuwan

David Loup wrote:
> Hi,
>
>  
>
> I'm trying to have Struts 2 redirect over HTTPS protocol.
>
>  
>
> On submit of a form calling editPerson.action (on a page already on
> HTTPS), the following redirects to HTTP. 
>
>  
>
> <action name="editPerson" class="persons.EditPersonAction"
> method="update">
>
>                 <interceptor-ref name="standardStack"/>
>
>                 <result name="success"
> type="redirect-action">listPersons</result> 
>
>                 <result name="input">/pages/viewPerson.jsp</result>
>
> </action>
>
>  
>
> Is there any configuration I can add to redirect over https ?
>
>  
>
> Thanks
>
>
> ________________________________________________________________________
>
> CONFIDENTIALITY - This email and any files transmitted with it, are confidential, may be legally privileged and are intended solely for the use of the individual or entity to whom they are addressed. If this has come to you in error, you must not copy, distribute, disclose or use any of the information it contains. Please notify the sender immediately and delete them from your system.
>
> SECURITY - Please be aware that communication by email, by its very nature, is not 100% secure and by communicating with Perform Group by email you consent to us monitoring and reading any such correspondence.
>
> VIRUSES - Although this email message has been scanned for the presence of computer viruses, the sender accepts no liability for any damage sustained as a result of a computer virus and it is the recipient’s responsibility to ensure that email is virus free.
>
> AUTHORITY - Any views or opinions expressed in this email are solely those of the sender and do not necessarily represent those of Perform Group.
>
> COPYRIGHT - Copyright of this email and any attachments belongs to Perform Group, Companies House Registration number 6324278.
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: redirect-action to https

Posted by oscar perez <os...@gmail.com>.
I don't know if struts 2 provides functionality for that but I've used acegi
for a scenario such as the one you described.

Oscar

On Tue, Mar 4, 2008 at 12:25 PM, David Loup <Da...@performgroup.com>
wrote:

> Hi,
>
>
>
> I'm trying to have Struts 2 redirect over HTTPS protocol.
>
>
>
> On submit of a form calling editPerson.action (on a page already on
> HTTPS), the following redirects to HTTP.
>
>
>
> <action name="editPerson" class="persons.EditPersonAction"
> method="update">
>
>                <interceptor-ref name="standardStack"/>
>
>                <result name="success"
> type="redirect-action">listPersons</result>
>
>                <result name="input">/pages/viewPerson.jsp</result>
>
> </action>
>
>
>
> Is there any configuration I can add to redirect over https ?
>
>
>
> Thanks
>
>
> ________________________________________________________________________
>
> CONFIDENTIALITY - This email and any files transmitted with it, are
> confidential, may be legally privileged and are intended solely for the use
> of the individual or entity to whom they are addressed. If this has come to
> you in error, you must not copy, distribute, disclose or use any of the
> information it contains. Please notify the sender immediately and delete
> them from your system.
>
> SECURITY - Please be aware that communication by email, by its very
> nature, is not 100% secure and by communicating with Perform Group by email
> you consent to us monitoring and reading any such correspondence.
>
> VIRUSES - Although this email message has been scanned for the presence of
> computer viruses, the sender accepts no liability for any damage sustained
> as a result of a computer virus and it is the recipient's responsibility to
> ensure that email is virus free.
>
> AUTHORITY - Any views or opinions expressed in this email are solely those
> of the sender and do not necessarily represent those of Perform Group.
>
> COPYRIGHT - Copyright of this email and any attachments belongs to Perform
> Group, Companies House Registration number 6324278.