Register / Login
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
checking the request path, state management, refactor
posted 10 years ago
I have to know, in the
include, if the requestURI matches something.
I don't want to have scriptlet, and c-rt seems to be deprecated now.
Basically, I need to refactor. This code worked with
4 but needs to be cleaned up.
<c-rt:choose> <c-rt:when test='<%=Page.isInSection(request, "/foo/bar/test/")%>'> <jsp:include page="/run/includes/apple.jsp"/> </c-rt:when> <c-rt:otherwise> <a href='/foo/bar/test/'>Test some Foo</a> </c-rt:otherwise> </c-rt:choose>
It's a menu system. If the user "isInSection", show the menu, otherwise, show a link.
What is a good way to approach this problem?
[ May 09, 2007: Message edited by: Garrett Smith ]
Boost this thread!
JSP to Excel - beginner
url matching doubt
Type errors with collections