I'm trying to redirect index.jsp to a page determined by a runtime
expression. I'm using html's meta refresh tag as shown below. This
solution works, but, only when the jsessionid is not appended to the url,
i.e. it doesn't work at the beginning of a session (affecting a significant
portion of index.jsp loads)
I've never had a problem losing parameter info when jsessionid was appended,
but i've only recently begun using <c:url>, and this tag, in this situation,
seems to be affected by the jsessionid parameter. oh wise ones, how can I
forward to the correct page?
---------here's the index.jsp code-block--------------
<logic:iterate name="categories" id="cat">
<c:if test='${(cat.name =="home") ||(cat.name =="Home")}'>
<c:url var="url" value="/display.do?">
<c:param name="action" value="cat"/>
<c:param name="ID" value="${cat.ID}"/>
</c:url>
<META HTTP-EQUIV="Refresh" CONTENT="10; URL=<c:out value='${url}'/>">
</c:if>
</logic:iterate>
---------end of code-block--------------
This .jsp block creates two different html pages, depending on whether the
jsessionid is appended
1) the resulting html page when jsessionid isn't appended - this works -
2) the resulting html page with jsessionid appended - doesn't work -
1) <META HTTP-EQUIV="Refresh" CONTENT="10;
URL=/insite/display.do?action=cat&ID=cat*Home25&">
1a) reloads page
http://localhost:8080/insite/display.do?action=cat&ID=cat*Home25&
2)
<META HTTP-EQUIV="Refresh" CONTENT="10;
URL=/insite/display.do;jsessionid=F4CBB740279DCA1ECC493B2BA8FBA184?action=ca
t&ID=cat*Home25&">
2a) reloads page http://localhost:8080/insite/display.do (loses action and
ID data)
What can i do to ensure i will not lose the parameters 'action' and 'ID'
thanks,
Loren
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]