昨天,有网友提问:<form action="changeGoalStateAction.do;jsessionid=<%= request.getSession().getId() %>?currentGoalState=3&pageNum=1&goalID=<%= anGoal.getArticleID() %>" method="POST">
代码中的 ;jsessionid=<%= request.getSession().getId() %>是做什么的?传递session的id有什么目的?
我答复如下:那个sessionid是用于当用户禁止了session,而当struts的自动重写url机制不起作用时跟踪用户session的。
也许还有其它更科学的办法,不过我到现在还没有发现。我也是一个初学者。