I run into a weird problem in regarding of JSTL usage.

In servlet, I have the following code:

        String ref = req.getHeader("Referer");
        session.removeAttribute("PageOfList");
        if(ref.endsWith("validate-quicksearch.jsp")) {
                session.setAttribute("PageOfList"), req.getContextPath() + 
"/jsp/quicksearchlist/page.jsp");    
        
        } else if(ref.indexOf("quicksearchlist/page.jsp") != -1) {
                session.setAttribute("PageOfList"), ref);                       
        }

In a JSP file, I have the followings:

        <c:if test="${!empty sessionScope.PageOfList}">
                        <td bgcolor="#FFFFFF">
                                <a href='<c:out value="${SessionScope.PageOfList}" 
escapeXml="false" />' >
                                        <fmt:message key="menuItem.backtolist"/>
                                </a>            
                        <br>
                        </td>
        </c:if>

The link on the JSP is the context path, but not the result saved in servlet. What 
happens here?

Thanks.

Vernon



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to