Register / Login
Win a copy of
The Way of the Web Tester: A Beginner's Guide to Automating Tests
this week in the
checking the request path, state management, refactor
posted 9 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 ]
JSP to Excel - beginner
url matching doubt
Type errors with collections