Tomcat   发布时间:2022-05-15  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了jsessionid 导致重定向404的问题大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/http/httpServletResponse.html#encodeRedirectURL(java.lang.String)

 

public java.lang.String encodeRedirectURL(java.lang.String url)
  • Encodes the specified URL for use in the sendRedirect method or,if encoding is not needed,returns the URL unchanged. The implementation of this method includes the logic to determine whether the session ID needs to be encoded in the URl. Because the rules for making this determination can differ from those used to decide whether to encode a normal link,this method is separated from the encodeURL method.

    All URLs sent to the httpServletResponse.sendRedirect method should be run through this method. Otherwise,URL rewriTing cAnnot be used with browsers which do not support cookies.

     

      • Parameters:

      • url - the url to be encoded.

      • Returns:

      • the encoded URL if encoding is needed; the unchanged URL otherwise.

    大佬总结

    以上是大佬教程为你收集整理的jsessionid 导致重定向404的问题全部内容,希望文章能够帮你解决jsessionid 导致重定向404的问题所遇到的程序开发问题。

    如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

    本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
    如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
    标签: