I've been trying to test 6.4.3 for jsp and am starting to think that OWB does not support web beans in EL in jsp pages at all. I have a jsp like this...
<%...@page contentType="text/html" pageEncoding="UTF-8" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <link href="./css/default.css" rel="stylesheet" type="text/css"/> <title>Expression test</title> </head> <body> <table> <tr> <td>${expressionBean}</td> </tr> <tr> <td>${expressionBean.value == expressionBean.value}</td> </tr> </table> </body> </html> with an ExpressionBean... @Named public class ExpressionBean { private Counter counter; @Inject public void initialize(Counter counter) { counter.create(); this.counter = counter; } public String getValue() { return "foo"; } @PreDestroy public void destroy() { counter.destroy(); } public Counter getCounter() { return counter; } public String getStatus() { return counter.getStatus(); } public String toString() { return "ExpressionBean: status:" + getStatus(); } } and an app-scoped counter. The output from my jsp seem to indicate that EL is not finding or creating an ExpressionBean. Am I doing something obviously stupid? Is there an example of EL + OWB + jsp working? thanks david jencks
