Hi everyone . I have something like the following line in my jsp page.
<c:if test="${object.class.name == 'ObjectClassName'}">
Now i want to change the test so that it verifies that
object.class.name starts with the string 'ObjectClassName'. In other
words, the equivalent of the operator LIKE in SQL, if such a thing may
exist in JSP
Tnx in advance,
icocico
On Tue, 28 Feb 2006 20:45:03 +1100, hristo.ganev wrote:
> Hi everyone . I have something like the following line in my jsp page.
>
[quoted text clipped - 6 lines]
> Tnx in advance,
> icocico
JSP lets you use any standard Java code. In this case you could simply
use the String method "startsWith()".
object.class.name.startsWith("ObjectClassName")

Signature
Sean
If you want it real bad, you can get it *real bad*.