To change the Foreground color go to Window > Preferences > General > Editors > Text Editor > Appearance color options > Foreground color. Uncheck the System Default and choose the color of your choice.
Thank you for the response. I’ve already resolved the issue. All settings were correct, and everything works good. I just was misled by preview window for JSP Source, since it keeps showing scripting elements in black color, even when it’s set to white. After actually applying the settings on my source code I got exactly what I’ve expected to see – white text on black background