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.jasper.JasperException: Exception in JSP"
It seems that the function Drawline is called while the attributes "com.positions" is not yet defined.
How to solve this probleme.
Following is a piece of my jsp code.
Expand|Select|Wrap|Line Numbers
- <%@ 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>