PDA

View Full Version : jsp & servlet redirect question




Howiieque
Jul 7, 2009, 10:13 AM
hi
part of my web.xml (deployment descriptor of tomcat)
<security-constraint>

<web-resource-collection>
<web-resource-name>sslsource</web-resource-name>
<url-pattern>/SSL/*</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>

<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>

</security-constraint>

as it defined, things in SSL folder require ssl connection.
for example, there is a checkOut.jsp inside /SSL. so the connection to checkOut.jsp is using https protocol.
my question is: if use response.sendRedirect("basketController.servlet"); inside that jsp, the connection would still via ssl(https). and i just want to connect to basketController.servle via http protocol.
how can i do that? and i don't want to use absolute path, like "http://www.apple.com"