You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Srinivas.N." <ns...@yahoo.com> on 2007/08/16 09:29:29 UTC
[S2] How to use https on form submissions?
Struts 2 - Is there a way by which I can configure a form submission to use
https?
Thanks
SN
--
View this message in context: http://www.nabble.com/-S2--How-to-use-https-on-form-submissions--tf4277986.html#a12176662
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] How to use https on form submissions?
Posted by Jeromy Evans <je...@blueskyminds.com.au>.
Option 1.
Use <s:form href="https://fqdn/context/myaction.action">
Option 2.
In struts.xml put your login form into a package with a different
namespace. eg "/secure".
Then setup a security-constraint in web.xml so that access to resources
in that namespace ("eg /secure/*") requires HTTPS (a CONFIDENTIAL
transport guarantee). You'll find examples of this everywhere.
If you need automatic HTTP<->HTTPS redirection you'll need a redirect
interceptor. Another user contributed their version in a prior
discussion but I can't find the link.
regards,
Jeromy Evans
Srinivas.N. wrote:
> I dont directly specify any URL with the <s:form> tag - I use the <s:form>
> tag with an action parameter as in <s:form action="login"...>
>
> I want the login action to be invoked via https.
>
> For example, the <s:url> tag has a parameter called scheme, which can be be
> set to https - I dont see anything similar in the <s:form> tag.
>
> I am sure I am missing something. Requiring a login form to be submitted via
> https seems like a basic need for which there has to be a simple solution.
>
> Thanks
> SN
>
>
> yitzle wrote:
>
>> On 8/16/07, Srinivas.N. <ns...@yahoo.com> wrote:
>>
>>> Struts 2 - Is there a way by which I can configure a form submission to
>>> use
>>> https?
>>>
>>> Thanks
>>> SN
>>>
>> You should be able to specify the <s:form > url to point to any URL,
>> including https
>> I am using Axis, though, and it doesn't nativaly support https. It can
>> be done, but I found it to be a pain
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] How to use https on form submissions?
Posted by "Srinivas.N." <ns...@yahoo.com>.
I dont directly specify any URL with the <s:form> tag - I use the <s:form>
tag with an action parameter as in <s:form action="login"...>
I want the login action to be invoked via https.
For example, the <s:url> tag has a parameter called scheme, which can be be
set to https - I dont see anything similar in the <s:form> tag.
I am sure I am missing something. Requiring a login form to be submitted via
https seems like a basic need for which there has to be a simple solution.
Thanks
SN
yitzle wrote:
>
> On 8/16/07, Srinivas.N. <ns...@yahoo.com> wrote:
>>
>> Struts 2 - Is there a way by which I can configure a form submission to
>> use
>> https?
>>
>> Thanks
>> SN
>
> You should be able to specify the <s:form > url to point to any URL,
> including https
> I am using Axis, though, and it doesn't nativaly support https. It can
> be done, but I found it to be a pain
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/-S2--How-to-use-https-on-form-submissions--tf4277986.html#a12194498
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] How to use https on form submissions?
Posted by yitzle <yi...@users.sourceforge.net>.
On 8/16/07, Srinivas.N. <ns...@yahoo.com> wrote:
>
> Struts 2 - Is there a way by which I can configure a form submission to use
> https?
>
> Thanks
> SN
You should be able to specify the <s:form > url to point to any URL,
including https
I am using Axis, though, and it doesn't nativaly support https. It can
be done, but I found it to be a pain
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
[S2] static content
Posted by Laszlo Borsos <bl...@freemail.hu>.
My static content does not get served by Tomcat, either with relative or
absolute paths:
<link href="css/alap.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/prototype.js"></script>
...
<img src="/minta3/img/check.gif">
Struts 2 filter is configured for /* url pattern and there are no
servlets. Does the filter eat up the static requests? What should I do?
kuvera
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org