Exception in JSP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • soumy sou
    New Member
    • Nov 2010
    • 1

    Exception in JSP

    Hi,


    I am a new in jsp.I have included a jsp file into a zul file. I get an exeception while the jsp page is loaded.
    "Failed to load /test.jsp
    Cause: org.apache.jasp er.JasperExcept ion: Exception in JSP"
    It seems that the function Drawline is called while the attributes "com.positi ons" is not yet defined.
    How to solve this probleme.
    Following is a piece of my jsp code.

    Code:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    
    <script type="text/javascript">
    
    load = function() {
    				
    		......
    		  }
    		  
    function Drawline () {
    			 
     <%
     String[] storeposition = (String[]) session.getAttribute("com.positions");%>	
    
    	.......		
     </script>	
     
    </head>
    <body onload="load()">
    
    </body>
    </html>
Working...