Page compilation in jsp
Hi
when will be the jsp page is compiled and is there is any pipeline involvment for compiling the jsp files in atg
JSP pages will get compiled by the Application Server, compilation can be configured at the app server level.
In weblogic you can set the precompilation option in weblogic.xml file, for example
+<jsp-descriptor>+
+<jsp-param>+
+<param-name>precompile</param-name>+
+<param-value>false</param-value>+
+</jsp-param>+
+</jsp-descriptor>+
There is no ATG pipeline involvement in this
Cheers
R
Similar Messages
-
HI,I am using weblogic5.1 and I am unable to pre compile the jsp file. I used java weblgoic.jsc command to compile the files, but I am unable to complie some of the jsp files. Can you suggest me a better way to pre comile files and directories.Thanks,Prakash Appani
If you can compile some, but not others, then it is more than likely that
you have problems
with your JSP's. You may want to use the regular javac to compile them.
# WEBLOGIC JSP PROPERTIES
# Sets up automatic page compilation for JSP. Adjust init args for
# directory locations and uncomment to use.
weblogic.httpd.register.*.jsp=\
weblogic.servlet.JSPServlet
weblogic.httpd.initArgs.*.jsp=\
pageCheckSeconds=1,\
compileCommand=c:/jdk1.2.2/bin/javac.exe,\
workingDir=C:/weblogic/myserver/classfiles,\
verbose=true
"Mike Reiche" <[email protected]> wrote in message
news:3b3b91cd$[email protected]..
>
> What errors are you getting? The command is
>
> java weblogic.jspc <file>
>
> Can't tell if you had the wrong command or just bad typing.
>
> Mike
>
> Prakash Appani <[email protected]> wrote:
> >HI,I am using weblogic5.1 and I am unable to pre compile the jsp file.
> >I used java weblgoic.jsc command to compile the files, but I am unable
> >to complie some of the jsp files. Can you suggest me a better way to
> >pre comile files and directories.Thanks,Prakash Appani
>
-
Hi...I found following error during my jsp page compilation...I am using Tomcat Server 4.1.18 as a server.
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] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] C:\Tomcat-4.1.24\work\Standalone\localhost\webdav\new\ValidateUser_jsp.java:43: cannot resolve symbol
[javac] symbol : class LoginManager
[javac] location: class org.apache.jsp.ValidateUser_jsp
[javac] LoginManager loginManager = null;
[javac] ^
[javac] C:\Tomcat-4.1.24\work\Standalone\localhost\webdav\new\ValidateUser_jsp.java:45: cannot resolve symbol
[javac] symbol : class LoginManager
[javac] location: class org.apache.jsp.ValidateUser_jsp
[javac] loginManager = (LoginManager) pageContext.getAttribute("loginManager", PageContext.APPLICATION_SCOPE);
[javac] ^
[javac] C:\Tomcat-4.1.24\work\Standalone\localhost\webdav\new\ValidateUser_jsp.java:48: cannot resolve symbol
[javac] symbol : class LoginManager
[javac] location: class org.apache.jsp.ValidateUser_jsp
[javac] loginManager = (LoginManager) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "LoginManager");
[javac] ^
[javac] C:\Tomcat-4.1.24\work\Standalone\localhost\webdav\new\ValidateUser_jsp.java:58: cannot resolve symbol
[javac] symbol : class UserCredentials
[javac] location: class org.apache.jsp.ValidateUser_jsp
[javac] UserCredentials credentials = null;
[javac] ^
[javac] C:\Tomcat-4.1.24\work\Standalone\localhost\webdav\new\ValidateUser_jsp.java:60: cannot resolve symbol
[javac] symbol : class UserCredentials
[javac] location: class org.apache.jsp.ValidateUser_jsp
[javac] credentials = (UserCredentials) pageContext.getAttribute("credentials", PageContext.SESSION_SCOPE);
[javac] ^
[javac] C:\Tomcat-4.1.24\work\Standalone\localhost\webdav\new\ValidateUser_jsp.java:63: cannot resolve symbol
[javac] symbol : class UserCredentials
[javac] location: class org.apache.jsp.ValidateUser_jsp
[javac] credentials = (UserCredentials) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "UserCredentials");
[javac] ^
[javac] 6 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:2415)
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:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:534)This is my jsp file..i have also kept all my class files in respective folder..still i have this error...i have kept my class files into /WEB-INF/
-classes
com
chintan
webapps folder
<%@ page language="java" %>
<%@ page import="com.chintan.webapps.LoginManager" %>
<%@ page import="com.chintan.webapps.UserCredentials" %>
<jsp:useBean id="loginManager" class="com.chintan.webapps.LoginManager" scope="application" />
<jsp:useBean id="credentials" class="com.chintan.webapps.UserCredentials" scope="session" />
<jsp:setProperty name="credentials" property="*" />
<html>
<head>
<title>
User Validation JSP Page
</title>
</head>
<body>
<%! String nextPage; %>
<%
if(loginManager.login(credentials)){
nextPage = "Mainmenu.jsp";
}else if(loginManager.isLoggedIn(credentials)){
nextPage = "Duplicate.jsp";
}else{
nextPage = "loginFailure.jsp";
out.println(nextPage);
%>
<jsp:forward page="<%= nextPage %>" />
</body>
</html> -
Tags not recognized when compiling the jsp pages through appc
Hi:
I am trying to convert a web application from weblogic 9.1 to weblogic 10.3. However, when I try to build the ear file the page compilation fails with the error:
weblogic.utils.compiler.ToolFailureException: jspc failed with errors :weblogic.servlet.jsp.CompilationException: projectFinancials.jsp:10:2: The tag handler class was not found "jsp_servlet._tags.__projectJobCostingLayout_tag
However, the tag file is there.
The tags are referenced through this declaration:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<taglib>
<taglib-uri>http://name/app/tagfiles</taglib-uri>
<taglib-location>/WEB-INF/tags</taglib-location>
</taglib>
</web-app>
All the declarations in the jsp pages are fine. In weblogic 9.1 I don't have any problem. I also set the <backward-compatible>true</backward-compatible> in weblogic.xml.
Any idea?
Thanks!There is no need to use tld files with tag files when it comes to running the ear file through appc. When I do development I use a tld file that contains references to all the tag files, however my build process replaces that with the tag files directory:
So, during development I have:
web.xml:
<taglib>
<taglib-uri>http://name/cps/tagfiles</taglib-uri>
<taglib-location>/WEB-INF/tld/mytags.tld</taglib-location>
</taglib>
mytags.tld:
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<tlib-version>1.0</tlib-version>
<short-name>mytags</short-name>
<uri>mytaglib</uri>
<tag-file>
<name>agreementDetailsLayout</name>
<path>/WEB-INF/tags/agreementDetailsLayout.tag</path>
</tag-file>
During the build I have:
web.xml:
<taglib>
<taglib-uri>http://name/app/tagfiles</taglib-uri>
<taglib-location>/WEB-INF/tags</taglib-location>
</taglib>
If I don't do this appc will have a fit of even bigger proportions (more error messages etc.) -
Error in executing a process for compilation for jsp
We have an iView which has jsp pages in it. We deployed the par & try toaccess the iview & we get an exception. The issue is that the iview has a jsp page. At the run time, this jsp is converted into a .java file
without problem. But EP engine is having issues compiling this java fileinto .class file.
On the other hand this same iview works just fine on our windows installation. Only Solaris EP install is having problems. The version onwindows as well as on Solaris is EP6 SP9.
Here is the exact version on the solaris EP:
sap.com/SAP-JEECOR 6.40 SP9 (1000.6.40.9.0.20041119045253) 20041122132733
sap.com/SAP-JEE 6.40 SP9 (1000.6.40.9.0.20041119045409) 20041122132741
When I copy the .class file from windows to unix machine, the iView works fine. Here is the exception I am getting:
>>> JSPCompiler >>> error
[email protected]a188b
[EXCEPTION]
com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException:
Error in executing a process for compilation
at
com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.launchCompilerProcess(J2eeCompiler_6_30.java:574)
at
com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compileExternal(J2eeCompiler_6_30.java:370)
at
com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compile(J2eeCompiler_6_30.java:672)
at
com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2143)
at
com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
at
com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:122)
at
com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:279)
at
com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:129)
at
com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
at
com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
at
com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
at
com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
at
com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
at
com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
at
com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
at
com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at
com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at
com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at
com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at
com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at
com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at
com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
at
com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at
com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at
com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at
com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at
com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
at
com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
at
com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
at
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at
com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
at
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at
com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
I am having the same issue with another iview which has jsp page in it.
The web dynpro iview works fine.Hi, seems like there's some typo in your jsp. Check the .java file listed with a java editor (like eclipse or devstudio.). Maybe you'll find the typo this way faster.
Most often, a multiline page import hampers jsp compilation,
e.g.
<%@page import="java.util.List,
java.util.Map"%>
needs to be
<%@page import="java.util.List,java.util.Map"%>
Regards,
Armin -
Strange error in compiling a jsp in jdev
I tried to compile a jsp using a custom jsp tag. All the requried java libraries are set in project's library path and additional path. But I got a class name used by the tag as the compiling error. No any message regarding to it. I think this may be related to the jsp compiler checking the custom tag's attribute type and tld file, but don't know how to fix it in jdev environment. Any help will be appreciated.
This is what I set in web.xml:
<taglib>
<taglib-uri>http://xmlns.oracle.com/j2ee/jsp/tld/ordim/intermedia-taglib.tld</taglib-uri>
<taglib-location>/WEB-INF/intermedia-taglib.tld</taglib-location>
</taglib>
I set the path to the tag library jar file ordjsptag.jar in the additional path of the project. I think the compiler can find the jar file.
This tag library also uses another component of Oracle: ordim.jar and it is also in the library path of the project. I can import the class in ordim.jar from the project's jsp page. But when I compile the jsp that contains my custom tag, I got error message: "oracle.ord.im.OrdImage" which is a class name in ordim.jar. -
Hello,
I installed JDev 9.0.3 yesterday, it did compile my JSP pages, but today it won't, even after reinstalling it.
I get the following error messages for every page :
Error: method handlePageException(java.lang.Throwable) not found in class javax.servlet.jsp.PageContext
Error(16,45): method doAfterBody not found in class org.apache.struts.taglib.template.InsertTag
Error(16,93): variable EVAL_BODY_AGAIN not found in interface javax.servlet.jsp.tagext.BodyTag
Does anyone know what this could mean ? I have added all libraries in the project's "library" tag, to no avail.
Thanks.
P.Lynn -
I tried making a new page with JDev's wizard : File -> New -> Web Tier -> JSP -> JSP Page. This minimal page contains only a "hello world" message, and has got no taglib. I still get :
Error: method handlePageException(java.lang.Throwable) not found in class javax.servlet.jsp.PageContext
when I compile it.
j2ee.jar is in Path and libraries ; my libraries are "JDev Runtime, JSP Runtime, Oracle XML Parser v2" and a bunch of our libraries.
Any ideas ?
Thanks. -
Salam
How can i Compile & run JSP program?
SlamYou don't directly.
A JSP page runs on a java enabled webserver (eg Tomcat)
You need one of those to run JSP pages.
When you ask for a jsp page from the server, (eg http://localhost:8080/mySite/myjsp.jsp) the webserver translates and compiles it into a servlet and then runs it for you.
Cheers,
evnafets -
How to include a jsp page in another jsp jsp page
hi,
i m trying to include a jsp page name "header.jsp" into one jsp page name"selectattribute.jsp" i m using these commands in "selectattribute.jsp"
<%@include file "header.jsp"%> bcz both these jsp page are C:\program files\tomcat 4.0\webapps\examples\jsp\Poject\
but the problem is that , i m invoking this jsp page "selectattribute.jsp" from a servlet reportcontroller.java using REQUEST DISPATCHER.
the servlet is in
C:\Program files\tomcat 4.0\webapps\examples\WEB-INF\classes\Project\
i want to know how to include some other jsp page in a jsp page and how to invoke applet from jsp page when that particular jsp page is being invoked by servlet.
plz help
manishuse this for including in your selectattribute.jsp
<jsp:include page="header.jsp" flush="true"/>
I never tried calling an applet. I think you can write the code for calling the applet in a javabean method and call the method in the jsp -
Opening a seeded OAF page from custom JSP page.
Hi All,
We have requirement to open a seeded OAF page from custom JSP page.
When we try to open URL of an OAF page after passing URL input parameters, we are always getting following error:
'You have insufficient privileges for the current operation. Please contact your System Administrator.'
On directly accessing the seeded OAF page, its encoding all the input parameters passed in URL. Also some more encoded parameters are getting added to the URL dynamically.
Is there any standard way exists to invoke seeded OAF pages without passing encrypted parameters to it? Also where can we get more details about
encrypting OAF URL parameters.
Any pointers would be appreciated.
Thanks in advance!
SaurabhHave you duplicated entire Customer Service module's menu in your responsibility?
or Also ping me the menu name..
--Prasanna -
When i was trying to forward control to invalidSession page from a JSP
if someone tries to log in without entering password....he must be directed to invalidsession page...
but this is giving exception on line 6...
The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /pages/regError.jsp at line 6
3: <%@page session="true"%>
4: <% if(session.getAttribute("password")==null)
5: {%>
6: <jsp:forward page="/pages/invalidSession.jsp" />
7: <%}
8: %>
9: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
web2.Login.processRequest(Login.java:68)
web2.Login.doPost(Login.java:95)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
org.apache.jasper.JasperException: javax.servlet.ServletException: File "/pages/index.jsp" not found
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
org.apache.jsp.pages.regError_jsp._jspService(regError_jsp.java:60)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
web2.Login.processRequest(Login.java:68)
web2.Login.doPost(Login.java:95)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)From the stack trace it is written:
org.apache.jasper.JasperException:
javax.servlet.ServletException:
File "/pages/index.jsp" not foundYou have to check for path of index.jsp.
Edited by: ngpgeeta on Jan 20, 2009 8:01 AM -
How to get the jsp page name in jsp?
how to get the jsp page name in jsp? how the jsp get the jsp page name dynamic.
thanks in advance.Try request.getServletPath()
-
Hi,
I am using WebLogic 11g.
In my application am getting following exception in my console
####<Jun 4, 2012 2:03:47 AM CDT> <Error> <HTTP> <cuscmas1.hillscte.com> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1338793427049> <BEA-101017> <[ServletContext@2141448872[app:amsatms module:/paws path:/paws spec-version:null]] Root cause of ServletException.
javax.servlet.jsp.JspException: Can't insert page '/common/MenuFiles.jsp' : Connection reset
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.processException(InsertTag.java:956)
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:884)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
at jsp_servlet._tdms._common.__tdmspage._jsp__tag1(__tdmspage.java:530)
at jsp_servlet._tdms._common.__tdmspage._jspService(__tdmspage.java:427)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
Previously I was used OC4J, in that I didnt get any error.
My MenuFiles.jsp is
<%@ page import="com.hillspet.atms.common.constants.IATMSConstants" %>
<%@ page import="com.hillspet.atms.common.constants.AnimalConstants" %>
<%@ page import="com.hillspet.atms.common.constants.IATMSAccessConstants" %>
<%@ page import="com.hillspet.atms.collectionkit.util.ICollectionKitConstants" %>
<%@ page import="com.cte.common.IConstants" %>
<%@ page import="com.cte.common.dto.UserDTO,com.hillspet.atms.common.util.ATMSUtil" %>
<%@ page import="java.util.ArrayList" %>
<%@page import="com.hillspet.ahms.animal.util.IAHMSAccessConstants,com.hillspet.admin.common.util.HillspetUtil, com.hillspet.ahms.animal.dto.AnimalBaseDTO"%>
<%@page import="com.hillspet.ahms.animal.util.IAHMSAccessConstants,com.hillspet.admin.common.util.HillspetUtil, com.hillspet.ahms.animal.dto.AnimalBaseDTO"%>
<%@ page import="com.cte.common.dto.UserDTO, com.cte.common.IConstants, com.hillspet.admin.common.util.HillspetUtil, java.util.ArrayList, com.cte.common.ums.dto.RoleListEntryDTO,java.util.Arrays,java.util.Collections"%>
<%@page import="com.hillspet.tdms.common.util.ITLMSAccessConstants,com.hillspet.admin.common.util.HillspetUtil"%>
<%
boolean isInternal = false;
if(session.getAttribute("ANIMAL_BASE_DTO")!=null ){
AnimalBaseDTO animalSummaryDetailsDTO = (AnimalBaseDTO) session.getAttribute("ANIMAL_BASE_DTO");
if(animalSummaryDetailsDTO.getIsExternal()==0){
isInternal = true;
%>
<%
UserDTO dto = (UserDTO) session.getAttribute(IConstants.USER_OBJECT);
ArrayList userPermissionsList = dto.getUserPermissionList();
boolean isAdmin = dto.getRoleList().contains("" + IATMSConstants.ATMS_ADMIN_ROLE_ID);
//System.out.println("User Permission list is :" + dto.getUserPermissionList());
java.util.ArrayList rolesList = dto.getRoleList();
boolean isEUUser = HillspetUtil.checkEUAccess(request, dto);
ArrayList atmsRolesList=new ArrayList(Arrays.asList ("126","125","109","108","107","106","105","114","103","102","101","100","99","98","97","96","95","93","90","89","88","87","86","67","111","85","83","73","84","116","113", "127","128","130","132","133","134","135","136"));
boolean displayATMSMenus = !Collections.disjoint(rolesList, atmsRolesList);
%>
<script>
var breadcrumb = "<%=IATMSConstants.SEARCH_AND_VIEW%>";
Initialize and render the MenuBar when its elements are ready
to be scripted.
YAHOO.util.Event.onContentReady("vmenu", function () {
Instantiate a MenuBar: The first argument passed to the
constructor is the id of the element in the page
representing the MenuBar; the second is an object literal
of configuration properties.
var oMenuBar = new YAHOO.widget.MenuBar("vmenu", {
autosubmenudisplay: true,
hidedelay: 750,
lazyload: true });
Define an array of object literals, each containing
the data necessary to create a submenu.
var aSubmenuData = [
<%
if(rolesList.contains("67") || rolesList.contains("84") || rolesList.contains("118") || rolesList.contains("111") || rolesList.contains("90") || rolesList.contains("83") || rolesList.contains("85") || rolesList.contains("88") || rolesList.contains("82") || displayATMSMenus){
%>
id: "Tab1",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.CREATE_ANIMNAL_PERMISSION)) {%>
{ text: "Add Animal", url: "addAnimalGeneralInfoAction.do" },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.CREATE_ANIMNAL_PERMISSION)) {%>
{ text: "Record Manual Feeding", url: "saveChangeDietAction.do?command=view",disabled:true },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SEARCH_ANIMNAL_PERMISSION)) {%>
{ text: "Search Animals", url: "animalSearchAction.do?command=view" },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SEARCH_IMAGES)) {%>
{ text: "Search Images",url: "animalImageSearchAction.do?command=view" },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SEARCH_IMAGES)) {%>
{ text: "Capture Images",url: "captureImageAction.do?command=view" },
<%}
if(!rolesList.contains("95") && !rolesList.contains("98")){ %>
{ text: "Animal Panels", url: "animalpanelList.do?command=view&searchFlag=fromMenu" },
<% }
if (dto.getUserPermissionList().contains(
AnimalConstants.AR_RECOMMEND_ANIMALS_PERMISSION)|| dto.getUserPermissionList().contains(
AnimalConstants.AR_VIEW_LIST_OF_RECOMMENDATION_PERMISSION)) {
%>
{ text: "Animal Recommendation",
submenu: {
id: "subtab11",
itemdata: [
<%
if (dto.getUserPermissionList().contains(AnimalConstants.AR_RECOMMEND_ANIMALS_PERMISSION)) {
%>
{ text: "Recommend Animals", url: "recommendedAnimal.do?command=view" },
//{ text: "Reserve / Un-reserve", url: "../ATMS/reserveUnreserve.html"},
<%}%>
<%
if (dto.getUserPermissionList().contains(
AnimalConstants.AR_RECOMMEND_ANIMALS_PERMISSION)|| dto.getUserPermissionList().contains(
AnimalConstants.AR_VIEW_LIST_OF_RECOMMENDATION_PERMISSION)) {
%>
{ text: "View Recommendations", url: "recommendedAnimalList.do?command=view"},
<%}%>
<%} else {%>
{ text: "Animal Recommendation", url: "#" , disabled: true},
<%}%>
{ text: "Move Animal",
submenu: {
id: "subtab15",
itemdata: [
<% if( isInternal ){%>
{ text: "Change Location", url: "manageAnimalLocationAction.do?command=viewHistory" },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.ANML_DISPOSITION_PERMISSION)) {%>
{ text: "Adoption Record", url: "animalDispositionAction.do?command=view" },
<%}%>
id: "Tab2",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SCHEDULE_FMT)) {%>
{ text: "Schedule Facility Maintenance Task ", url: "scheduleFMTActionForward.do?command=forward", disabled: false },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SCHEDULE_GROUP_TASK) || rolesList.contains("99")) {%>
{ text: "Schedule Task", url: "groupTaskSearchAction.do?command=view" },
<% } %>
{ text: "Daily Task List",
submenu: {
id: "subtab21",
itemdata: [
{ text: "Animal Care Task", url: "viewDailyTaskListAction.do?command=view&id=1&actSubTab=1"},
<%if(userPermissionsList.contains(IATMSConstants.SMCL_VIEW_SAMPLES)){%>
<%if(userPermissionsList.contains(IATMSConstants.SMCL_VIEW_SAMPLES)){%>
{ text: "Test Collections", url: "viewSMSmpleCollections.do?command=view&identifier=fromMenu" },
<% } %>
<%if(userPermissionsList.contains(IATMSConstants.SMCL_VIEW_SAMPLES)){%>
{ text: "Health Collections", url: "viewBioHealthSmplCollections.do?command=view&identifier=fromMenu" },
<%}%>
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.DAILY_TASK_LIST_MEDICAL_TESTS)) {%>
{ text: "Medical Test", url: "viewDailyTaskListAction.do?command=view&id=2"},
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.DAILY_TASK_LIST_MEDICAL_EXAMS)) {%>
{ text: "Medical Exams", url: "viewDailyTaskListAction.do?command=view&id=3"},
<%}%>
{ text: "Status Phenotype", url: "viewDailyTaskListAction.do?command=view&id=6"},
{ text: "Surgery/Procedure", url: "viewDailyTaskListAction.do?command=view&id=4"},
{ text: "Facility Maintenance ",submenu: {
id: "subtab777",itemdata: [
{ text: "Facility Maintenance Task",url: "viewDailyTaskListAction.do?command=view&id=5" },
{ text: "Search FMT Images",url: "searchFMTImageAction.do?command=view" }]
{ text: "Record Group ACTs", url: "RecordWeightFecalScoreAction.do?command=view"},
{ text: "Administer Medication", url: "recordMedicationAdministrationAction.do?command=forward" },
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.RECORD_OBSERVATION_PERMISSION)) {%>
{ text: "Observations",
submenu: {
id: "subtab222",
itemdata: [
{ text: "Search Observations",url: "recordObservationsAction.do?command=view" },
{ text: "Record Observations",url: "addAnimalObservationAction.do?command=add&page=record&source=monitor" },
<%}%>
{ text: "Shared Feed Diet Assignment", url: "RecordWeightFecalScoreAction.do?command=viewDefaultDiet" },
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.TRCL_PRINT_LABELS_LIST) || HillspetUtil.checkAccess(request,IATMSAccessConstants.HRCL_PRINT_LABELS_LIST)) {%>
{ text: "Print Labels",
submenu: {
id: "subtab211",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.TRCL_PRINT_LABELS_LIST)) {%>
{ text: "Test Collections", url: "printLabelsAction.do?command=viewTests"},
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.HRCL_PRINT_LABELS_LIST)) {%>
{ text: "Health Collections", url: "printLabelsAction.do?command=viewHealthCols"},
<%}%>
<%}%>
//{ text: "Controlled Drug Inventory", url: "#" , disabled: true},
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_SAMPLES )||
HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") || !dto.getRoleList().contains("123") && !dto.getRoleList().contains("82") ) {%>
id: "Tab3",
itemdata: [
{ text: "Sample Management",
submenu: {
id: "subtab41",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_SAMPLES )||
HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") || !dto.getRoleList().contains("131") ) {%>
{ text: "Samples Pending Receipt",
submenu: {
id: "subtabRecieve",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_SAMPLES)) {%>
{ text: "Biological Test Collections", url: "fetchLabLocationDetailsAction.do?command=forward" , disabled: false},
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
{ text: "Biological Health Collections", url: "recieveTestSamplesAction.do?command=forward" , disabled: false},
<%}%>
<%if(!dto.getRoleList().contains("706")) {%>
{ text: "Non Biological Collections", url: "receiveNonBiologicalSamplesAction.do?command=viewNBSamples"}
<% } %>
<%}%>
<%
if(HillspetUtil.checkAccess(request,IATMSAccessConstants.LAB_SM_VIEW_RECEIVED_NON_BIO_SMPLS)||HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_HEALTH_SAMPLES) || HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_TEST_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
{ text: "Samples Received",
submenu: {
id: "subtabRecieved",
itemdata: [
<%
if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_TEST_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
{ text: "Biological Test Collections", url: "recievedTestSamplesAction.do?command=forward" , disabled: false},
<%}%>
<%
if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") ) {%>
{ text: "Biological Health Collections", url: "receivedBioTestSamplesAction.do?command=forward" , disabled: false},
<%}%>
<%
if(HillspetUtil.checkAccess(request,IATMSAccessConstants.LAB_SM_VIEW_RECEIVED_NON_BIO_SMPLS) ) {%>
{ text: "Non Biological Collections", url: "receivedNonBiologicalSamplesAction.do?command=viewNBSamples"}
<%}%>
<%}%>
<%if(HillspetUtil.checkAccess(request,"VIEW_SAMPLE_BATCHES") || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")||dto.getRoleList().contains("706")) {%>
{ text: "Sample Batches", url: "viewSampleBatches.do?command=view" , disabled: false},
<%}%>
<% if (dto.getUserPermissionList().contains("OUTSIDE_LAB_SAMPLES_LIST") || dto.getRoleList().contains("131") || dto.getRoleList().contains("706")){ %>
{ text: "External Lab Samples", url: "outsideLabSamplesAction.do?command=view" , disabled: false},
<% } %>
<%
if (dto.getUserPermissionList().contains(
ICollectionKitConstants.GENERATE_CK_TEMPLATE) ) { %>
{ text: "Sample Collection Kits",
submenu: {
id: "subtab421",
itemdata: [
<%
if (dto.getUserPermissionList().contains(
ICollectionKitConstants.GENERATE_CK_TEMPLATE)){ %>
{ text: "Generate Collection Kits", url: "ckCreateTemplateAction.do?command=goToGenerateCkKits" , disabled: false},
<% } %>
<%
if (dto.getUserPermissionList().contains(
ICollectionKitConstants.GENERATE_CK_TEMPLATE) ){ %>
{ text: "Search & View", url: "ckCreateTemplateAction.do?command=goToCKSearch&fromMenu=true" },
<%}%>
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SMIN_VIEW_SAMPLE_INVENTORY) ||
HillspetUtil.checkAccess(request,IATMSAccessConstants.VIEW_FORMULA_INVENTORY) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") || dto.getRoleList().contains("131")) {%>
{ text: "Sample Information",
submenu: {
id: "subtabSampleInventory",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SMIN_VIEW_SAMPLE_INVENTORY) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
{ text: "Biological Samples", url: "sampleInventoryAction.do?command=view" , disabled: false},
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.VIEW_FORMULA_INVENTORY)) {%>
{ text: "Non Biological Samples", url: "viewInventory.do?command=view&fromLab=Y" , disabled: false},
<%}%>
<% if ( HillspetUtil.checkAccess(request,"PENDING_ANALYSIS_REQUEST_LIST") ||
HillspetUtil.checkAccess(request,"PENDING_ANALYSIS_REQUEST_READ") ) {
%>
{ text: "Collected Samples New Request", url: "pendingAnalysisReqAction.do?command=view" , disabled: false },
<%}%>
<%}%>
]Hi,
actually this mapping only identifies those requests to be handled by teh JSF servlet. Its not a redirect.
I see several namespace definitions in your page, but no taglib reference. Wondering how this is supposed to work
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
I assume the next crash you will see is when you add JSF components to
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<title>tt</title>
</head>
<body><h:form></h:form></body>
</html>
</f:view>
Note that mixing HTML elements with JSF is not a recommended approach
Frank -
Jsp:useBean vs page import in JSP
Hi,
What is the difference between jsp:useBean vs page import in JSP?
By using page import also I can call the method of the class, apart from jsp:useBean does have scope associated with it. I don't think there is any change between both the 2. Yes by using jsp:useBean we can set the property and get the property as well.
Is there any major differences between the 2 and when to use which ? Please clarify.
Thanks.797836 wrote:
Hi,
What is the difference between jsp:useBean vs page import in JSP?
By using page import also I can call the method of the class, apart from jsp:useBean does have scope associated with it. I don't think there is any change between both the 2. Yes by using jsp:useBean we can set the property and get the property as well.
Is there any major differences between the 2 and when to use which ? Please clarify.
Thanks.Yes there is a difference.
If you use import, then you have to create/use the reference object to use the class methods. And you can't define the scopes like session, page .. etc. Apart from this you will be using scriptlets <% %>.
if you are using jsp:useBean , then you can skip the above activities. useBean takes care of it.
or you can say jsp has provided a utility to access the beans without creating its object or using scriptlets. -
Embed a jsf page in a jsp page -
Is there some way to included a jsf page inside a jsp page and code form action correctly ?
In my JSP page I have the following:
<jsp:include page="../user/unMapTrans.faces" />
The page loads correctly, however, when I submit the form I get "Cannot find FacesContext"
The way I'm coding form action in my JSP <form method="POST" action="../common/controller.jsp">
The way JSF generates <form id="utform" method="post" action="/riskdb/user/unMapTrans.jsp" enctype="application/x-www-form-urlencoded">
The JSP is another location than the JSF being called... http://localhost:7001/riskdb/common/controller.jsp
My web.xml:
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<Oct 26, 2005 4:44:14 PM CDT> <Error> <HTTP> <BEA-101017> <[ServletContext(id=5261939,name=riskdb,context-path=/riskdb)] Root cause of ServletException.
javax.servlet.jsp.JspException: Cannot find FacesContext
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:405)
at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:105)
at jsp_servlet._user.__unmaptrans._jspService(__unmaptrans.java:252)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bear.clearing.pace.webapp.servlet.PaceHttpFilter.doFilter(PaceHttpFilter.java:85)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)included a jsf page inside a jsp pageAlternatives:
(1)Rewrite your jsp to a new jsf and use <f:subview> for jsp:include action.
(2)Rewrite your jsf action to produce a non-jsf response.
Maybe you are looking for
-
ABAP consuming Web Service in HTTPS keeps prompting for credentials
I have a Share Point Web Service that I want to call in HTTPS from ABAP in an ECC 6.0 SAP_BASIS 700 SP 30 system. The following steps have been executed: BASIS work completed – SAPCRYPTOLIB, HTTPS Activation, profile parameters, STRUST certificates I
-
hi In BDC how to transfer the data to table control
-
hi frnds, i need ur suggestions, we have created the transports and we didnt specified the target system becoz there was no connectivity at that time. now we have connectivity to the target, how can can we add the target to the transport requests whi
-
Is there a apple software dvd besides iMovie
I have been trying to make dvds that i d/l but some of them dont import becasue they are .avi files so i decided to get toast and toast import them but when i burnt the dvd it didnt work on my dvd player. Can someone help me with either siftware to b
-
The following doesn' work, in the sense that is expecting a FROM clause. I would like to show all the fields declared after the first SELECT, thus CH_DOC_ID (that could be drop_trigger or ch_doc_id) and title, status and tool. Here below my code: SEL