Skip to main content

import "static" in a JSP page ...

2 replies [Last post]
km
Offline
Joined: 2005-10-28

I know this is not a GlassFish question. So, any help is appreciated.

In a JSP page, how do I do import static? (The static import, the new Java SE 5.0 feature).

How should I declare the "page" directive?

Regards,
Kedar

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kchung
Offline
Joined: 2004-05-06

You can do this:

<%@ page import="static foo.*" %>

km
Offline
Joined: 2005-10-28

Thank you!