There's not one native to Struts. You can use the sslext package on SourceForge, 
though. This will allow you to declare an Action to be secure via your 
struts-config.xml file; any references to that Action will be automagically 
prepopulated with the appropriate protocol.

Ex:
<action path="/mySecureAction"
        type="org.whatever.MySecureAction">
        <set-property property="secure" value="true">
</action>

Then when you reference this action in your JSP using the appropriate tags everything 
will happen for you.

<sslext:form action="/mySecureAction">

will generate

<form name="whateverTheFormIs" method="get" 
action="https://www.myserver.com/appRoot/mySecureAction.do";>

-= J

> -----Original Message-----
> From: Bryan Field-Elliot [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 20, 2003 9:09 PM
> To: Struts Users Mailing List
> Subject: c:url or html:link from http to https?
> 
> 
> Is there a simple way (e.g. standard tag with some oddball parameter),
> which will let me do a standard "<c:url>" or "<html:link>", except,
> rewrite the leading "http://"; as "https://";?
> 
> I don't want to insert a hack scriptlet every time I want to do this..
> Would rather use a tag. But I can't seem to find it....
> 
> Thanks,
> 
> Bryan
> 
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to