tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Peremsky <mperem...@yahoo.com>
Subject jsp includes not compiling
Date Sun, 03 Jun 2007 23:12:55 GMT
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.GlobalConsts" %>
<%@ page import="com.drafthappy.dataobject.LoginObject" %>
  <%
  LoginObject loginobj = (LoginObject)session.getAttribute("<%= GlobalConsts.SO_LOGIN_OBJ
%>");
%>
   
   
   
  The error I am getting is the following:
   
  org.apache.jasper.JasperException: Unable to compile class for JSP: 
  An error occurred at line: 5 in the jsp file: /include/JspVariables.inc
String literal is not properly closed by a double-quote
2: <%@ page import="com.drafthappy.dataobject.LoginObject" %>
3: 
4: <%
5:   LoginObject loginobj = (LoginObject)session.getAttribute("<%= GlobalConsts.SO_LOGIN_OBJ
%>");
6: %>

  I also get other strange errors on other inc files, but am not yet sure if it is related
to the fact that this variable is not being declared.
   
  - Mike

 
---------------------------------
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message