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
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
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
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
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
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