Re: jsp includes not compiling

2007-06-03 Thread David Smith
The visibility of scriptlet objects is not well defined in the jsp spec -- at least as far as I can tell. Someone will immediately correct me if I'm wrong :-). It'd probably be best to place code for retrieving the object closer to where it's used, preferably in the same scriptlet block. If

Re: jsp includes not compiling

2007-06-03 Thread Martin Gainty
TED]> To: "Tomcat Users List" Sent: Sunday, June 03, 2007 8:24 PM Subject: Re: jsp includes not compiling Hmm, I went back to look. That is the syntax I use with weblogic. If I remove the <% %> from the inc file Tomcat loads the files properly. But then I cannot us

Re: jsp includes not compiling

2007-06-03 Thread Mike Peremsky
Hmm, I went back to look. That is the syntax I use with weblogic. If I remove the <% %> from the inc file Tomcat loads the files properly. But then I cannot use logic in the inc file (e.g. if (obj != null) { } Mike Peremsky <[EMAIL PROTECTED]> wrote: Oops. I missed that. Thx Da

Re: jsp includes not compiling

2007-06-03 Thread Mike Peremsky
Oops. I missed that. Thx David Smith <[EMAIL PROTECTED]> wrote: You are already in a pair when you do GlobalConst.SO_LOGIN_OBJ %>. Why? Seems to me this would be a better expression: LoginObject loginobj = (LoginObject)session.getAttribute( GlobalConst.SO_LOGIN_OBJ ) %> --David Mike Peremsk

Re: jsp includes not compiling

2007-06-03 Thread David Smith
You are already in a <% ... %> pair when you do <%= GlobalConst.SO_LOGIN_OBJ %>. Why? Seems to me this would be a better expression: <% LoginObject loginobj = (LoginObject)session.getAttribute( GlobalConst.SO_LOGIN_OBJ ) %> --David Mike Peremsky wrote: I have used jsp includes with weblo

jsp includes not compiling

2007-06-03 Thread Mike Peremsky
I have used jsp includes with weblogic with no problems, I am using the same format of the code with Tomcat but am having issues. I include the jsp as follows: <%@ include file="/include/JspVariables.inc" %> The code in the inc file is: <%@ page import="com.drafthappy.Glob