I think I understand that. When you call your application through index.html and then call Servlet. If you print header, you are not going to get JSessionID.
If you access through index.jsp, because of implicit variable in JSP, you will get that JSessionID.