I get the error shown below. It is repeated twice more for lines 27 and 28. I use these exact same three lines of code in various other places in my jsp pages. The only difference is these particular lines are include in a subroutine (<%! ... %>) whereas the others are in-line in the jsp page. What is my problem??!! I'm so confused!
An error occurred at line: 26 in the jsp file: /include/email.inc
Unhandled exception type NamingException
24: if ((from == null) || (from.length() == 0))
26: Context ctx = new javax.naming.InitialContext();
27: Context env = (Context) ctx.lookup("java:comp/env");
28: replyAddr = (String) env.lookup("webUser");