String variable with a number s:if test

2023-05-24 Thread Greg Huber
If I have a bean with a variable of type of String ie public String getType() { return type; } AND it has a number, eg 2. In my jsp Does not work: I must use this: Is this how it should work? Some old code uses .equals('2'), as the bean is a string, and is not working as expected.🙁

Re: String variable with a number s:if test

2023-05-24 Thread Lukasz Lenart
śr., 24 maj 2023 o 11:23 Greg Huber napisał(a): > > If I have a bean with a variable of type of String > > ie public String getType() { return type; } > > AND it has a number, eg 2. > > In my jsp > > Does not work: > > > > I must use this: > > > > Is this how it should work? > > Some old cod