Service Desk Practitioners Forum
cancel

SD Service Pages Customization

Highlighted
fgssl2
Respected Contributor.

SD Service Pages Customization

Hi all,

I'm editing the ListServiceCalls.jsp file so that it returns only the records of a certain category.. the thing is that I cannot get it to work! Inside the "for" that presents the list I putted an "if" that filters the category.

When I put an "out.print(category_text)" before the "if" it returns the category I want (catx). But it just won't enter the "if"!!

I'm sending the modified file in attach..

Does anybody have an idea why this is happening??

Thanks in advance!
1 REPLY
Gyula Matics_1
Acclaimed Contributor.

Re: SD Service Pages Customization

instead of
if (category_text == "catx")

use

if ("catx".equals(category_text))

That's how to compare strings.

Gyula