Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wasp-dev] Review request: Register page and tag imports in ELContext ImportHandler (PR #95)

Hello WaSP

May I ask for a review of PR #95, which fixes issue #94?

Currently, classes and packages imported via `<%@ page import="..."
%>` or `<%@ tag import="..." %>` are not registered with
`ELContext.getImportHandler()` at runtime, causing static field and
method references on imported types to evaluate to null in Expression
Language.

The PR introduces `JspSourceImports` (mirroring `JspSourceDependent`)
on generated JSP servlets and tag handlers, populates the respective
`ImportHandler` in `PageContextImpl` and `JspContextWrapper` (while
keeping tag file `ELContext` instances isolated), and includes
unit/end-to-end tests (as well as an external/manual integration
verification on GlassFish 8.0.5.)

If this looks good, it would also be great to include it alongside PR
#93 in the upcoming 4.0.5 release.

[1] https://github.com/eclipse-ee4j/wasp/pull/95
[2] https://github.com/eclipse-ee4j/wasp/issues/94

Thanks,
Piotrek


Back to the top