jsp & servlet redirect question

Discussion in 'Mac Programming' started by Howiieque, Jul 7, 2009.

  1. macrumors regular

    Joined:
    Feb 1, 2009
    #1
    hi
    part of my web.xml (deployment descriptor of tomcat)
    Code:
    <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"
     

Share This Page