<div>This is Lile.</div>
<div>My site runs on the i-model simulator2,using websphere as server,and because of the simulator doesn't support cookie,I met some problems.</div>
<div> </div>
<div>Accroding to the ibm site , it is said that </div>
<div>"
<p>An application that uses URL rewriting to track sessions must adhere to certain programming guidelines. The application developer needs to do the following:</p>
<ul>
<li>Program servlets to encode URLs
<li>Supply a servlet or JavaServer Pages (JSP) file as an entry point to the application </li></li></ul>
<p>Using URL rewriting also requires that you enable URL rewriting in the session management facility.</p>"</div>
<div><a href="http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.ejbfep.multiplatform.doc/info/ae/ae/rprs_sesd.html">http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.ejbfep.multiplatform.doc/info/ae/ae/rprs_sesd.html
</a></div>
<div> </div>
<div>Must i "adhere to certain programming guidelines"?</div>
<div>When i use tomcat as my application server, it runs well. The url ended with jsessionid, and it is automatically added.</div>
<div>So i wander if the "seasar + teeda" has already done it for us?(automatically rewrite url)</div>
<div> </div>
<div>If i must "adhere to certain programming guidelines", then what should i do ?</div>
<div>Like below?</div>
<div>public String doConfirm() {</div>
<div>...</div>
<div>...</div>
<div>response.sendRedirect (response.encodeRedirectURL(req.getContextPath() + "/view/m/cmn/login.html".toLowerCase()));</div>
<div>return null;</div>
<div>}</div>
<div> </div>
<div>Help!</div>