File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes sslext with tiles. URL shows .jsp instead of .do Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "sslext with tiles. URL shows .jsp instead of .do" Watch "sslext with tiles. URL shows .jsp instead of .do" New topic

sslext with tiles. URL shows .jsp instead of .do


Joined: Apr 19, 2006
Posts: 2
Hi All,
I am Struts 1.2.8 with Tiles,Velocity Menu & sslext-1.2 .
Problem is :
1. I'm linking from one page to another page with as the following URL with https:
<a href="https://localhost:8443/web/"> SSL</a>
2. That is Action with ".do".
3. struts-config.xml
<action path="/formAction" type="test.ssl.NullAction">
<set-property property="secure" value="false"/>
<forward name="success" path="/form.jsp" />
This is just forward to the required form (form.jsp). So, if we activate hit the URL as http://localhost:8080/web/ - (No https)
the form will show properly (No URL Change)

4.But in form.jsp, if we add the following lines:
<%@ taglib uri="/WEB-INF/StrutsConfig/sslext.tld" prefix="sslext" %>
<sslext ageScheme secure="false"/>

Because the page should be load as non https. Logic is posting of data is https after forawarding to another page is non https.

5. Using https link if we click, moving as security alert, then once again moving to non secured page.
But the URL is
Instead of http://localhost:8080/web/ .

What is the problem how we can resolve this?. Becuse of this is , template based tiles is not working properly.

All Suggestions are welcomes and my advance thanks

This is very urgend. Once again my thanks.

you can reach me

I agree. Here's the link:
subject: sslext with tiles. URL shows .jsp instead of .do
jQuery in Action, 3rd edition