You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Gogte, Sushrut" <sg...@Corio.com> on 2003/01/28 18:54:57 UTC

Problem using SSL with Struts, Tomcat 4.1.12 on IIS

I am using Struts 1.0.2 with Tomcat 4.1.12 running on IIS 4.0 web server.

In my application, I am using a template which inserts a navigation menu on
the left hand side of the screen, using Struts.  This menu is composed of
links and images.
When I run my application in non-secure mode, it is running fine.  However,
when I try to use SSL, so that I access it with https://... instead of
http://..., the links are getting converted to http://...:443 (I am using
the standard 443 port for SSL connections).  The same is happening with the
images, and therefore, they are not showing up. I am using relative links,
because I have different environments (DEV, QA, PROD), and don't want to
hardcode the server name in my JSP pages.

This used to work fine with Struts on Tomcat 3.2, but after upgrading to
4.1.12, this is the behavior I am seeing.  Has anyone else seen anything
like this, and if so, how did you fix it?  

Thanks a lot,

Sushrut



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Problem using SSL with Struts, Tomcat 4.1.12 on IIS

Posted by Yakov Belov <yb...@brainresource.com>.
Maybe you need to define the resources which are accessed via SSL and the
ones which are not, something like in web.xml:

<security-constant>
    <web-resource-collection>
        <web-resource-name>xxx</web-resource-name>
        <url-pattern>/resources/*</url-pattern>
    </web-resource-collection>

    <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL or NONE</transport-guarantee>
    </user-data-constraint>
</security-constant>

Good luck,
Yakov

----- Original Message -----
From: "Gogte, Sushrut" <sg...@Corio.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, January 29, 2003 4:54 AM
Subject: Problem using SSL with Struts, Tomcat 4.1.12 on IIS


> I am using Struts 1.0.2 with Tomcat 4.1.12 running on IIS 4.0 web server.
>
> In my application, I am using a template which inserts a navigation menu
on
> the left hand side of the screen, using Struts.  This menu is composed of
> links and images.
> When I run my application in non-secure mode, it is running fine.
However,
> when I try to use SSL, so that I access it with https://... instead of
> http://..., the links are getting converted to http://...:443 (I am using
> the standard 443 port for SSL connections).  The same is happening with
the
> images, and therefore, they are not showing up. I am using relative links,
> because I have different environments (DEV, QA, PROD), and don't want to
> hardcode the server name in my JSP pages.
>
> This used to work fine with Struts on Tomcat 3.2, but after upgrading to
> 4.1.12, this is the behavior I am seeing.  Has anyone else seen anything
> like this, and if so, how did you fix it?
>
> Thanks a lot,
>
> Sushrut
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


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