JSP: Jasper Error.....NullException
Hey guys, im trying to retrieve a database listing of items and then build a combo box from that. But I get a error when trying to load the data from the bean.
Error:
java.lang.NullPointerException
org.apache.jsp.administrator.testingdelete_jsp._jspService(testingdelete_jsp.java:57)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
Code:
<%@ page language="java" import="java.util.*,beans.*,utilities.*,java.sql.*"%>
<%@ taglib uri="/WEB-INF/lib/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/lib/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/lib/struts-logic.tld" prefix="logic" %>
<html>
<head></head>
<body>
<% TextLogger.debug("this is gay");
itemsManager theItems = (itemsManager)session.getAttribute("theItems");
itemsBean aTemp; %>
TextLogger.debug("more gayness 3");
<form action='testingdelete.do' method= 'post'>
<table>
<tr>
<td>Item: </td>
<td>
<select name = 'items'>
theItems.firstRecord();<%
while (theItems.nextRecord())
aTemp = theItems.record();%>
<option value="<%=aTemp.getItemID()%>"><%=aTemp.getItemName()%></option>
<%}%>
</select>
</td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="deleteSelectedItem" value="DeleteME!"></td>
</tr>
</table>
</form>
</body>
</html>
if anyone can help, please let me know
im using Tomcat, there is no more information about it, here is the full error page:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.lang.NullPointerException
org.apache.jsp.administrator.testingdelete_jsp._jspService(testingdelete_jsp.java:57)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
note The full stack trace of the root cause is available in the Tomcat logs.
Apache Tomcat/5.0.16
Similar Messages
-
How to see JSP compilation errors - Tomcat 4.1.18- JDK 1.4
Hi There,
I'm kind of new to JSP world, so once in while I forget to put a ; or I put a variable name wrong (I usualy use Eclipse to do my coding in JAVA, but the existing plugins for JSP development are still in their early stages, so there's isn't any plugin that indicates errors on JSP before deploying them).
When I try to see a JSP, if it has an error (compilation-time error), I get this message:
<--->
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
<--->
This doesn't help me a lot to fix the problem, I would like to, at least, see from what line the error came from.
Help anyone?
Thank You
PinhoThis kind of errors often come from syntax error in
the jsp page.
Tomcat is not very friendly with this kind of errors.
A trick is to open the java file under the 'work'
directory and checkIsn't there any way to show the error on a page, just like a run-time error?
Maybe changing some log setting? -
This is my Programe
<html>
<head>
<title>JSP JavaMail Example </title>
</head>
<body>
<%@ page import="java.util.*" %>
<%@ page import="p1.*" %>
<%@ page import="javax.mail.*" %>
<%@ page import="javax.mail.internet.*" %>
<%@ page import="javax.activation.*" %>
<%
out.println("hello");
String host="smtp.gmail.com";
String to = request.getParameter("to");
String from = request.getParameter("from");
String subject = request.getParameter("subject");
String messageText = request.getParameter("body");
out.println("hello");
boolean sessionDebug = false;
Properties props = System.getProperties();
props.put("mail.host", host);
props.put("mail.smtp.auth", "true");
props.put("mail.transport.protocol", "smtp");
props.put("mail.smtp.starttls.enable","true");
Session mailSession = Session.getDefaultInstance(props, "");
mailSession.setDebug(sessionDebug);
Message msg = new MimeMessage(mailSession);
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject(subject);
msg.setSentDate(new Date());
msg.setText(messageText);
Transport.send(msg);
out.println("Mail was sent to " + to);
out.println(" from " + from);
out.println(" using host " + host + ".");
%>
</body>
</html>
When I Run this It gives following error
Please help me
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Session cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Session cannot be resolved
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Message cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
MimeMessage cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
InternetAddress cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
InternetAddress cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Message.RecipientType.TO cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Transport cannot be resolved
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Session cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Session cannot be resolved
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Message cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
MimeMessage cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
InternetAddress cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
InternetAddress cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Message.RecipientType.TO cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Transport cannot be resolved
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logsMaybe print out from the exceptions in the conexionBD directly, even do a printStackTrace. Since the exceptions are encapulated it is hard to tell. Your setup for the database looks good. Not sure about class loading this way and how it will pool. I would suggest using the JNDI capability available from the context administration of Tomcat.
-
Jsp:useBean error.
Under webapps\CustSys\web-inf\classes, I have save my CIS.class file. Is this the rite way to access the java class file : doReport() is a function inside the class file.
Inside test2.jsp:
<jsp:useBean id="report" scope="application" class="CIS"/>
<html>
<%report.doReport();%>
</html>
the following error appear:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 0 in the jsp file: /test2.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\Tomcat4129\work\Standalone\localhost\CustSys\test2_jsp.java:41: cannot resolve symbol
symbol : class CIS
location: class org.apache.jsp.test2_jsp
CIS report = null;
^
An error occurred at line: 0 in the jsp file: /test2.jsp
Generated servlet error:
C:\Tomcat4129\work\Standalone\localhost\CustSys\test2_jsp.java:43: cannot resolve symbol
symbol : class CIS
location: class org.apache.jsp.test2_jsp
report = (CIS) pageContext.getAttribute("report", PageContext.APPLICATION_SCOPE);
^
An error occurred at line: 0 in the jsp file: /test2.jsp
Generated servlet error:
C:\Tomcat4129\work\Standalone\localhost\CustSys\test2_jsp.java:46: cannot resolve symbol
symbol : class CIS
location: class org.apache.jsp.test2_jsp
report = (CIS) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "CIS");
^
3 errors
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:534)
pls help identify wat's the error. thanksYou will have to put the CIS class in a package and provide the fully qualified class name pkg.CIS in your useBean defintion
cheers,
ram. -
Hi!
After I configure /tomcat/conf/server.xml to point jsp and source code path for tomcat server, so I can run jsp in IE with "http://localhost:8080/ebis/jsp". But when I click login path to run login screen there occur error as below:
Error: 500
Location: /ebis/jsp/Login/index.jsp
Internal Servlet Error:
javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at jsp.Login._0002fjsp_0002fLogin_0002findex_0002ejspindex_jsp_0._jspService(_0002fjsp_0002fLogin_0002findex_0002ejspindex_jsp_0.java:517)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.ArrayIndexOutOfBoundsException
at HK.com.hit.ebis.sys.SQLConnectionManager.getConnection(SQLConnectionManager.java:105)
at HK.com.hit.ebis.sys.SQLConnectionManager.getConnection(SQLConnectionManager.java:97)
at HK.com.hit.ebis.entity.UserDetails.getVerify(UserDetails.java:366)
at jsp.Login._0002fjsp_0002fLogin_0002findex_0002ejspindex_jsp_0._jspService(_0002fjsp_0002fLogin_0002findex_0002ejspindex_jsp_0.java:281)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
My web.xml configuration is below:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<servlet>
<servlet-name>
R00005Servlet
</servlet-name>
<servlet-class>
HK.com.hit.ebis.servlet.R00005Servlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
R00005Servlet
</servlet-name>
<url-pattern>
/R00005Servlet
</url-pattern>
</servlet-mapping>
<!-- Default login configuration uses BASIC authentication -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Example Basic Authentication Area</realm-name>
</login-config>
<!-- If you want to experiment with form-based logins, comment
out the <login-config> element above and replace it with
this one. Note that we are currently using a nonstandard
authentication method, because the code to support form
based login is incomplete and only lightly tested. -->
<!--
<login-config>
<auth-method>EXPERIMENTAL_FORM</auth-method>
<realm-name>Example Form-Based Authentication Area</realm-name>
<form-login-config>
<form-login-page>/jsp/security/login/login.jsp</form-login-page>
<form-error-page>/jsp/security/login/error.jsp</form-error-page>
</form-login-config>
</login-config>
-->
</web-app>
Who know the reason, please tell me.
Regards,
dsjflsdjfput <security-constraint> tag also in your web.xml defining the <web-resource-collection>, <web-resource-name>, <url-pattern> and the
<role-name>manager</role-name> inside <auth-constraint>, This role-name is important and you have to add this role in your tomcat-users.xml also. See sample web.xml in ..\webapps\manager\WEB-INF
Dont know if this is the reason why ur problem is coming though,
Regards,
Padmanava -
JSP : Tiles Error �tag.getAsString� : component context is not defined
JSP : Tiles Error �tag.getAsString� : component context is not defined
I�m working with Struts 1.1 and Tiles, under Tomcat 5.0.16
My application works fine using Struts 1.1 alone, however, when attempting to run the application in a �Tiles� environment, I get an error:
�
javax.servlet.jsp.JspException: Error - tag.getAsString : component context is not defined. Check tag syntax
�
I have �defined� this in my �tiles-defs.xml� file, and as far as I can tell, everything else is configured properly (I have looked over the included Struts document examples, and others on the web, and I seem to have everything configured identically).
What am I missing???
I have created a series of �mostly� empty JSP files, for simplicity sake.
JSP FILES:
- header.jsp
- footer.jsp
- menu.jsp
- rootLayout.jsp
- user.jsp
- show_user.jsp
- error.jsp
- defaultContentPage.jsp
All JSP files contain:
<%@ taglib uri="/WEB-INF/lib/struts-tiles.tld" prefix="tiles" %>
and
�
<title>
<tiles:getAsString name="title"/>
</title>
�
My �tiles-defs.xml�: =================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<tiles-definitions>
<!-- ================ RootLayout ======================= -->
<definition name=".root.layout" path="/jsp/rootLayout.jsp" >
<put name="title" value="Default title"/>
<put name="header" value="/jsp/header.jsp"/>
<put name="menu" value="/jsp/menu.jsp"/>
<put name="content" value="/jsp/defaultContentPage.jsp"/>
<put name="footer" value="/jsp/footer.jsp"/>
</definition>
<!-- ================ Extentions ======================= -->
<!-- User -->
<definition name=".view.user" extends=".root.layout">
<put name="title" value="Welcome to the User Form."/>
<put name="content" value="/jsp/user.jsp"/>
</definition >
<!-- Save -->
<definition name=".view.save" extends=".root.layout">
<put name="title" value="Welcome to the Show User Form."/>
<put name="content" value="/jsp/show_user.jsp"/>
</definition >
<!-- Error -->
<definition name=".view.error" extends=".root.layout">
<put name="title" value="Error Message."/>
<put name="content" value="/jsp/error.jsp"/>
</definition >
</tiles-definitions>
My �struts-config.xml�: ==============================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<!-- ========== FormBeans =================================== -->
<form-beans>
<form-bean name="userForm" type="biz.seamrog.strutstest.model.state.UserForm"/>
</form-beans>
<!-- ========== Action Mapping Definitions=================== -->
<action-mappings>
<!-- Action using normal forward syntax...
<action path="/user"
forward="/jsp/user.jsp">
</action>
-->
<!-- Action using a "Tiles" forward syntax...
The "forward" path mappings are defined in a file named
"../WEB-INF/tiles-defs.xml
-->
<action path="/user"
forward=".view.user">
</action>
<!-- Action using normal forward syntax...
<action path="/save"
type="biz.seamrog.strutstest.model.logic.SaveAction"
name="userForm" scope="request"
input="/jsp/user.jsp">
<forward name="success" path="/jsp/show_user.jsp"/>
<forward name="failure" path="/jsp/error.jsp"/>
</action>
-->
<!-- Tiles syntax -->
<action path="/save"
type="biz.seamrog.strutstest.model.logic.SaveAction"
name="userForm" scope="request"
input="/jsp/user.jsp">
<forward name="success" path=".view.show_user"/>
<forward name="failure" path=".view.error"/>
</action>
</action-mappings>
<!-- ============== Global Forwards ======================== -->
<global-forwards>
<!-- NOTE: paths with "." syntax are Tiles defined paths,
all other paths follow conventional "/path/to/file.jsp syntax
-->
<forward name="user" path=".view.user"/>
<forward name="show_user" path=".view.show_user"/>
<forward name="error" path=".view.error"/>
<forward name="cssBase" path="/stylesheets/common.css"/>
</global-forwards>
<!-- ============= Plug-ins =============== -->
<!-- Tiles Plug-in -->
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
<set-property property="definitions-parser-validate" value="true" />
<set-property property="moduleAware" value="true" />
</plug-in>
</struts-config>
My �web.xml�: =====================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
<web-app>
<servlet>
<!--
MyController extends org.apache.struts.action.ActionServlet
NOTE: The servlet could also be specified specifying the
default Struts ActonServlet...
<servlet-name>controller</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
...I have chosen to extend here just for practice sake.
-->
<!--
<servlet-name>MyController</servlet-name>
<servlet-class>biz.seamrog.strutstest.controller.MyController</servlet-class>
-->
<servlet-name>MyController</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<!--
Point to Struts configuration file(s)
-->
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<!-- Tiles config -->
<init-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles-defs.xml</param-value>
</init-param>
<!-- This is the added Application parameter: -->
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResource</param-value>
</init-param>
<!-- end -->
<load-on-startup>5</load-on-startup>
</servlet>
<!--
All incoming requests that end in .do, send to MyController.
-->
<servlet-mapping>
<servlet-name>MyController</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!--
Send initial requests to the login page for this application
-->
<welcome-file-list>
<welcome-file>/jsp/user.jsp</welcome-file>
</welcome-file-list>
<!--
Make all of the necessary related Struts JSP custom tag libraries
available and define where to find them.
-->
<taglib>
<taglib-uri>/WEB-INF/lib/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/lib/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/lib/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/lib/struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-tiles.tld</taglib-location>
</taglib>
</web-app>
My �rootLayout.jsp�: ================================================
<%@page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/lib/struts-tiles.tld" prefix="tiles" %>
<html>
<header>
<title>
<tiles:getAsString name="title" />
</title>
<body>
<tiles:get name="header"/>
<tiles:get name="menu"/> <tiles:get name="content"/>
<tiles:get name="footer"/>
</body>
</html>I found an entry in the Mail Archive for Struts. I got it working. My working code is below. You need to in the base JSP import the header and put the 'title' out to it.
tiles:def file:
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<tiles-definitions>
<definition name=".petstore.Base" path="/common/petstorecommon.jsp">
<put name="title" value ="${title}"/>
<put name="header" value="/common/header.jsp"/>
<put name="message" value="/common/message.jsp"/>
<put name="content" value="${content}"/>
<put name="navbar" value="/common/navbar.jsp"/>
</definition>
<definition name="petstore.Login" extends=".petstore.Base" >
<put name="title" value="Login Page" />
<put name="content" value="/Logon.jsp"/>
<put name="test1" value="test1value"/>
</definition>
base tile def:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ page contentType="text/html;charset=windows-1252"%>
<html:html>
<head>
<html:base/>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>pet store common (jsp)</title>
</head>
<body>
<tiles:insert attribute="header">
<%-- both of these attributes are accessible from header.jsp It works!!! --%>
<tiles:put name="title" beanName="title" beanScope="tile" />
<tiles:put name="test1" beanName="test1" beanScope="tile" />
</tiles:insert>
<%-- <tiles:get name="header" /> --%>
<tiles:get name="message" />
<tiles:get name="content" />
<tiles:get name="navbar" />
</body>
</html:html>
Getting access to the title value in the header.jsp file:
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<html>
<head>
<tiles:getAsString name="title" />
<tiles:getAsString name="test1" />
</head>
<body>
</body>
</html> -
JSP compilation errors in weblogic 6.1
I'm getting these JSP compilation errors in weblogic 6.1 on Solaris. Please help.
Full compiler error(s):
error: Invalid class file format:
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:34: Class
com.ford.redherring.model.PropertiesAttributesModel not found in import.
import com.ford.redherring.model.PropertiesAttributesModel; <file://[>
/web/jsp/event/eventForm.jsp; Line: 64]
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:38: Class com.ford.redherring.util.DialogHeader
not found in import.
import com.ford.redherring.util.DialogHeader; <file://[> /web/jsp/event/eventForm.jsp;
Line: 68]
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:39: Class com.ford.redherring.util.DialogFooter
not found in import.
import com.ford.redherring.util.DialogFooter; <file://[> /web/jsp/event/eventForm.jsp;
Line: 69]
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:40: Class com.ford.redherring.model.DDContainer
not found in import.
import com.ford.redherring.model.DDContainer; <file://[> /web/jsp/event/eventForm.jsp;
Line: 70]
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:41: Class
com.ford.redherring.model.DDValidationModel not found in import.
import com.ford.redherring.model.DDValidationModel; <file://[>
/web/jsp/event/eventForm.jsp; Line: 71]
This appears to be a CLASSPATH problem (you are missing references to
'com.ford.redherring.model.*' and 'com.ford.redherring.util.*'). The
CLASSPATH may be set in the server startup script. Hope this helps.
Wade.
"Katri Alur" <[email protected]> wrote in message news:<[email protected]>...
> I'm getting these JSP compilation errors in weblogic 6.1 on Solaris. Please help.
>
> ----------------------------------------------------------------------------
> ----
> Full compiler error(s):
> error: Invalid class file format:
>
>
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:34: Class
> com.ford.redherring.model.PropertiesAttributesModel not found in import.
> import com.ford.redherring.model.PropertiesAttributesModel; <file://[>
> /web/jsp/event/eventForm.jsp; Line: 64]
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:38: Class com.ford.redherring.util.DialogHeader
> not found in import.
> import com.ford.redherring.util.DialogHeader; <file://[> /web/jsp/event/eventForm.jsp;
> Line: 68]
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:39: Class com.ford.redherring.util.DialogFooter
> not found in import.
> import com.ford.redherring.util.DialogFooter; <file://[> /web/jsp/event/eventForm.jsp;
> Line: 69]
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:40: Class com.ford.redherring.model.DDContainer
> not found in import.
> import com.ford.redherring.model.DDContainer; <file://[> /web/jsp/event/eventForm.jsp;
> Line: 70]
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:41: Class
> com.ford.redherring.model.DDValidationModel not found in import.
> import com.ford.redherring.model.DDValidationModel; <file://[>
> /web/jsp/event/eventForm.jsp; Line: 71]
-
JSP Debbuging -Error: 'class' or 'interface' expected-
Hi,
Does anybody know why am I getting the following error when trying to either debug or run a JSP?
Error: 'class' or 'interface' expected
This happens with JDeveloper 9.0.2.829
It was running just OK, when running from the Navigator Panel (Right click -> Run test.jsp)
But, when I tried to run the JSP from the Debug Icon -that debugs the whole project-, I got the error I already mentioned.
Thanks in advance for your help
AgutinHi,
Does anybody know why am I getting the following error when trying to either debug or run a JSP?
Error: 'class' or 'interface' expected
This happens with JDeveloper 9.0.2.829
It was running just OK, when running from the Navigator Panel (Right click -> Run test.jsp)
But, when I tried to run the JSP from the Debug Icon -that debugs the whole project-, I got the error I already mentioned.
Thanks in advance for your help
Agutin -
Hello Everyone,
I've a some JSP's that work some times and fail sometime with
<head>
<title>Javelin JSP compilation error</title>
</head>
<body>
<b>Compilation of JSP File '/jsp/temp/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
<pre>
I tried restarting the server, removing .wlnotdelete and couple of other things.
Why the JSP is compiled everytime(even if the server is not restarted) and Why a good looking no error JSP failis loading everytime.
Can anyone please help.
~ALAPATII'm using bea weblogic 8.1 SP5.
Java - jrockit81sp5_142_08
<head>
<title>Javelin JSP compilation error</title>
</head>
<body>
<b>Compilation of JSP File '/jsp/output/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
<pre>
Errors found in <PATH TO THE FILE>/Index.jsp:
Error at line 397 column 55:
Description: Type <MyClass> contains no field with this name.
Error at line 399 column 13:
Description: Type <Another Class> contains no methods with this name.
Found 2 error(s) and 0 warning(s).
</pre>
</body></html>
>
weblogic.servlet.jsp.CompilationException: Failed to compile JSP /jsp/output/Index.jsp<html>
<head>
<title>Javelin JSP compilation error</title>
</head>
<body>
<b>Compilation of JSP File '/jsp/output/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
<pre>
Errors found in <PATH TO FILE>/Index.jsp:
Error at line 397 column 55:
Description: Type <MyClass> contains no field with this name.
Error at line 399 column 13:
Description: Type <Another Class> contains no methods with this name.
Found 2 error(s) and 0 warning(s).
</pre>
</body></html>
at weblogic.servlet.jsp.WlwJspStub.compilePage(WlwJspStub.java:208)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:598)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:406)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:265)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
2 errors javelin complaining is because of this.
1) I'm trying to access MyClass.SHOW_ME_TEXT
2) I'm trying to create an object of AnotherClass by new AnotherClass();
Please let me know if you want more details. -
JSP - prefix error - need resolution
Hi all (Charles, Todd, Mike & others),
@ the ND4 to iPlanet migration project, we have failed to get the JSP
loaded in iPlanet. The exception displayed in the KJS follows below.
We are not sure what this implys and how to resolve it (Does it
require a setting in the deployment tool? or maybe something
completely different). So, if you could help us better interprete it..
Thanks,
Ali..
Consultant,
iRise Inc.
[25/Oct/2000 20:06:52:0] error: Exception: SERVLET-compile_failed:
Failed in compiling template:
/aria/ariaTest/CreditCard/pgGWPayFeeCustomer.jsp, JSP Error:
Descriptor not found for prefix : {0}
Exception Stack Trace:
java.lang.Exception: JSP Error: Descriptor not found for prefix : {0}
at com.netscape.jsp.JSP.addTagprefix(Unknown Source)
at com.netscape.jsp.JSP.parseAt(Unknown Source)
at com.netscape.jsp.JSP.parseNext(Unknown Source)
at com.netscape.jsp.JSP.parseBlock(Unknown Source)
at com.netscape.jsp.JSP.parse(Unknown Source)
at com.netscape.jsp.JSP.compile(Unknown Source)
at com.netscape.server.servlet.jsp.JSPCompiler.JSPtoJava
(Unknown Source)Thanks for the info.
I made necessary modifications and it worked!
Ali..
P.S: I'd confused between /WEB-INF.. & WEB-INF...
--- In [email protected], "Charles Beckham"
<charles.beckham@s...> wrote:
Ali,
I have seen this error before, it means that it can not resolve the taglibs,
make sure you
are not including the jato package (which also includes the taglib
classes)..the jato package
should be copied to the APPS directory...also make sure you specified the
taglib info in the
war descriptor....the description should be uri : /WEB-INF/jato.tld and
Loacation: /WEB-INF/jato.tld..
and finally make sure when you added the jato.tld to the war file it is in
the root of WEB-INF or in
other words it should resolve to WEB-INF/...
If you have any more questions I could have a look at you war file and give
you some ideas...let me know
and I'll give you an upload ftp site...
Cheers
Charles Beckham
-----Original Message-----
[Charles Beckham]
From: Todd Fast [mailto:<a href="/group/SunONE-JATO/post?protectID=101233080150035167169232031248066208071048">Todd.Fast@S...</a>]
Sent: Wednesday, October 25, 2000 9:10 PM
Subject: Re: [iPlanet-JATO] JSP - prefix error - need resolution
Ali--
@ the ND4 to iPlanet migration project, we have failed to get
the JSP
loaded in iPlanet. The exception displayed in the KJS follows below.
We are not sure what this implys and how to resolve it (Does it
require a setting in the deployment tool? or maybe something
completely different). So, if you could help us better interprete it..
>>
[25/Oct/2000 20:06:52:0] error: Exception: SERVLET-compile_failed:
Failed in compiling template:
/aria/ariaTest/CreditCard/pgGWPayFeeCustomer.jsp, JSP Error:
Descriptor not found for prefix : {0}
Exception Stack Trace:
java.lang.Exception: JSP Error: Descriptor not found for prefix : {0}
at com.netscape.jsp.JSP.addTagprefix(Unknown Source)
at com.netscape.jsp.JSP.parseAt(Unknown Source)
at com.netscape.jsp.JSP.parseNext(Unknown Source)
at com.netscape.jsp.JSP.parseBlock(Unknown Source)
at com.netscape.jsp.JSP.parse(Unknown Source)
at com.netscape.jsp.JSP.compile(Unknown Source)
at com.netscape.server.servlet.jsp.JSPCompiler.JSPtoJavaI don't have any significant application deployment experience in iAS, but
it looks like the taglib descriptor declared in the JSP isn't being found.
I believe the error message should be "Descriptor not found for prefix:
jato".
I can't offer any specific help other than to refer you to Appendix B of
the
Migration Survival Guide, which has a walkthrough of deployment of an app
in
iAS.
Todd
Todd Fast
Senior Engineer
Sun/Netscape Alliance
todd.fast@e...
eGroups Sponsor
[email protected]
[Non-text portions of this message have been removed] -
Hi All,
I am getting this error at this step of tutorial. Please help.
To apply the workflow to the Product of the Day page:
1.Open the Product of the Day page in edit mode. If the page is still open from a previous procedure, reload it.
2. In Sidekick, click the Workflow tab and select the Product of the Day workflow. Click Start Workflow.
3. Open the Inbox page. (http://localhost:4502/libs/cq/workflow/content/inbox.html)
4. Select the Step 1 item for the Product of the Day content, and click Open.The form1 page opens.
At this step i am getting the below error.
javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script body.jsp
Please helpNot sure which workflow tutorial you are reffering. The stack trace in log should tell you what is exactly wrong.
-
JSP Compile Error when using dynamic ID in logic:iterate and bean:size
Hello,
I try to create a dynamic table with logic:iterate and bean:size tag. Dynamic means the attributes are written by scriptlet. Eg.:
<logic:iterate id="customerBean" name="<%= formName %>" property="<%= propertyName%>" length="<%= sRowSize%>">When I replace the id Attribute with propertyName I get compile errors, such as
the compiler doesn't know the value at runtime:
Unable to compile class for JSP An error occurred at line: 179 in the jsp file: /pages/formContent.jsp Generated servlet error: _newCustomer.java:1046: Missing term. java.lang.Object <%= propertyName %> = null; ^
Whats wrong ?
Thanks for your helpSolution: don't use a runtime expression for the id attribute.
The id attribute is used to declare
- an attribute in scope
- a scriptlet variable on the page
These are only available for the duration of the <logic:iterate> tag
The "id" is only used in your programming. You don't need to make it dynamic. -
Hi
I have deployed a WAR file successfully on
standalone( win os) / 10AS server Rel2 ( Linux )
But some times I get this Error ONLY on 10AS server Rele 2
"javax.servlet.jsp.JspException: Error: IOException while writing to client!"
Plz can some body tell me why am i getting this error.
Is this a J2ee Container Problem?
with regards
KarthikHi Form
Plz some body explain me why am i getting this error not so frequently
with regards
Karthik -
Deployment Error -- JSP Compilation Error: java.lang.OutOfMemoryError -- nu
When I deploy WAR files with the precompile jsp option, I receive the following error:
Deployment Error -- JSP Compilation Error: java.lang.OutOfMemoryError -- null
Is there a way for me to precompile my jsp's without using this process? Once this blows up, the admin server gets hosed. This is very frustrating. Any suggestions would be appreciated.
Regards,
JoshuaYou need little more memory :-), use java param -mx512M.
You can adjust it in OC Server properties
AS > OC4J_home(demo) > Server Properties
section Multiple VM Configuration, Command Line Options
Java Options: -mx512M
Zajo -
Weblogic 9 and JSP compiler errors
Hello everyone,
I am having problems with my Jsps in my EAR file deployed on WL 9.0.
I have a Jsp called upms.jsp that contains the following code snippets:
After my import statements, I have some code that creates a resource bundle that accesses a properties file:
<%!
ResourceBundle bundle = null;
public void jspInit() {
bundle = ResourceBundle.getBundle("conf.properties");
%>
I get an error from the above code:
upms.jsp:3:11: 'try' statement has neither 'catch' nor 'finally' clause
import="java.util.ResourceBundle"
^----------------------^
I am totally clueless as to what that error means.
Next I declare a bean I use in the jsp:
<jsp:useBean
id="userPrefsManagerBean"
class="controllers.beans.UserPreferencesManagerBean"
scope="session">
</jsp:useBean>
<jsp:setProperty name="userPrefsManagerBean" property="*" />
I get these errors from the above portion:
upms.jsp:27:3: The qualifier of this name is a package, which cannot contain fields.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: The qualifier of this name is a package, which cannot contain fields.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Expression expected (found '.' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Syntax error: expected ) (found 'class' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Syntax error: expected <identifier> (found ')' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
Has anyone encountered these before?
This jsp worked perfectly well when I deployed my EAR file on JBoss...no such luck using Weblogic.
Is there something I am missing here? I appreciate any help.
Cheers, :-)
M.Mildred,
Two suggestions:
1) use option weblogic.jspc's "-keepgenerated", you can keep the generated
servlet's source code.
Please paste it here.
2) Can you create a simple reproducer(e.g. a war), and put it here, so that
we can debug it and give more clues.
To reproduce your issue, I write a simple a simple
UserPreferencesManagerBean classs below :
package controllers.beans;
public class UserPreferencesManagerBean {
private int p1;
public void setP1(int p)
p1 = p;
public int getP1()
return p1;
But it works(oh, I run it under 910MP1).
We cannot tell too much without your further information
Thanks
Leon
<Mildred A> wrote in message news:[email protected]...
I am still fighting with this issue.. Dang!
I don't know what to change in my JSP because the WL JSP compiler errors are
so out there..
Here is the first portion of the JSP file:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
session="true"
pageEncoding="ISO-8859-1"
import="java.util.ArrayList"
import="java.util.HashSet"
import="java.util.Date"
import="java.util.Collections"
import="java.util.ResourceBundle"
%>
<%!
ResourceBundle bundle = null;
public void jspInit() {
bundle = ResourceBundle.getBundle("conf.properties");
%>
<jsp:useBean
id="userPrefsManagerBean"
class="controllers.beans.UserPreferencesManagerBean"
scope="session">
</jsp:useBean>
<jsp:setProperty name="userPrefsManagerBean" property="*" />
Below is the error I get from this section alone (after precompiling):
upms.jsp:3:11: 'try' statement has neither 'catch' nor 'finally' clause
import="java.util.ArrayList"
^-----------------^
upms.jsp:27:3: The qualifier of this name is a package, which cannot contain
fields.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: The qualifier of this name is a package, which cannot contain
fields.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Expression expected (found '.' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Syntax error: expected ) (found 'class' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Syntax error: expected <identifier> (found ')' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Expression expected (found 'catch' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Illegal use of an expression as a statement.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: No variable or field with this name could be found at this
location.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: No variable or field with this name could be found at this
location.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Syntax error: expected ) (found '__ee' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Illegal use of an expression as a statement.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Syntax error: expected ; (found ')' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: No variable or field with this name could be found at this
location.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: No variable or field with this name could be found at this
location.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Syntax error: expected } (found 'EOF' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
Can anyone see what I am doing wrong here? ?:| ?:|
Cheers,
M
Maybe you are looking for
-
I think i may have 2 itunes accounts can i merge them?
I have Itunes on my PC for music and when i got my iphone i managed somehow to get a second Itunes address not sure how i did that...it is confusing is there and advantage of hhaving just one account and how do i merge them now?
-
Why the buttons created by Acrobat XI in window do not work in android mobile or ipod touch?
Why the buttons created by Acrobat XI in window do not work in android mobile or ipod touch?
-
Set margin of in the page setup
hai everybody i have a problem to set the margin of a table in the spreadsheet. can any one give me an idea on how to set the margin in the page setup...
-
cannot activate wifi
-
Apple Care & ATT insurance doesn't cover shattered phone - why?
Purchased iPhone 4S + Apple Care $99 + AT&T insurance but when I shattered the phone into 8 pieces after 11 months (hit concrete on top corner with Speck case on), Apple said this is not covered and AT&T wants $200 for a refurbished replacement. Wha