"LayoutTagLibrary" tag error in JSP file .
Dear All,
I am trying to implement Custom Framework Page in SAP NW Portal 7.3 with the help of the [DOCUMENT|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/001bfa1a-958e-2e10-c2be-d914f673e21e?QuickLink=index&overridelayout=true]
I am getting an error in the FrameworkPageLayout.jsp file, Can not find the tag library descriptor for "LayoutTagLibrary
I added the SharingReference - com.sap.portal.pagebuilder Under Application tag
and LayoutTagLibrary - /SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld Under Component Profile tag.
But still, I am getting this error. How to resolve this?
Regards
Eben Joyson.
Hi Detlev,
I modified my jsp page. but still I get the same error. Can not find the tag library descriptor for "prt:taglib:LayoutTagLibrary"
Should I need to add any jar file under the lib folder of the project? Help me to solve this issue. Only in NWDS 7.3 i am facing this issue. with NWDS 7.0, its working.
My JSP Code :
<%@ taglib uri="prt:taglib:LayoutTagLibrary" prefix="lyt"%>
<lyt:template eliminatemessagebar="true">
<lyt:container id="container" wrappingMethod="none">
</lyt:container>
</lyt:template>
My Portalapp.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<application alias="affs">
<application-config>
<property name="Vendor" value="sap.com"/>
<property name="SecurityArea" value="NetWeaver.Portal"/>
<property name="SharingReference" value="SAPJ2EE::library:com.sap.portal.themes.lafservice, com.sapportals.htmlb, com.sap.portal.navigation.api_service, com.sap.portal.pagebuilder, com.sap.portal.useragent, com.sap.portal.navigation.helperservice, com.sap.portal.navigation.afp.helperservice"/>
</application-config>
<components>
<component name="layout">
<component-config>
<property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
<property name="ResourceBundleName" value="pagebuilder_nls"/>
<property name="SafetyLevel" value="no_safety"/>
</component-config>
<component-profile>
<property name="ComponentType" value="com.sapportals.portal.layout"/>
<property name="com.sap.portal.pcm.Category" value="platform">
<property name="inheritance" value="final"/>
</property>
<property name="LayoutTagLibrary" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
<property name="com.sap.portal.reserved.layout.TemplateFile" value="FrameworkPageLayout.jsp"/>
<property name="com.sap.portal.reserved.layout.Cont1" value="container">
<property name="title" value="Content"/>
<property name="orientation" value="vertical"/>
</property>
<property name="com.sap.portal.page.builder.optimization.level" value="2"/>
<property name="AuthScheme" value="anonymous"/>
<property name="Title" value="AFP Layout"/>
<property name="EPCFLevel" value="1"/>
<property name="SupportedUserAgents" value="(*,*,*)">
<property name="validvalues" value="7/(*,*,*)"/>
</property>
</component-profile>
</component>
<component name="iview">
<component-config>
<property name="ClassName" value="com.customer.afp.fromscratch.FrameworkPageComponent"/>
<property name="SafetyLevel" value="no_safety"/>
</component-config>
<component-profile>
<property name="com.sap.portal.iview.ShowTray" value="false"/>
<property name="AuthScheme" value="anonymous"/>
<property name="EPCFLevel" value="1"/>
<property name="SupportedUserAgents" value="(*,*,*)">
<property name="validvalues" value="7/(*,*,*)"/>
</property>
</component-profile>
</component>
</components>
<services/>
</application>
Similar Messages
-
hi group,,
i have an page directive error in JSP file.That is given in Weblogic8.1-->Devoloping EJBs documentation.The error is in import page .The directory structure is as follows
1)BandsExampleApp-->BandsExampleEJB-->Examples-- >examples-->ejb20-->relationships-->bands
2)BandsExampleApp-->webapp-->AddBand.jsp
The code is follows
<%@ page import='exaples.ejb20.relationships.bands.*'%>
what should i do to avoid the problem..plz tell the solution..
sunil
BandsExampleApp-->BandsExampleAppJSP expects the IANA character set name. According to the IANA site the proper name is: UTF-8. Please try that instead of the UNICODE-1-1-UTF-8.
Note: OJSP uses sun.io.CharacterEncoding.aliasName() to convert from IANA to JDK character set names. I looked at the source code for this and it does contain a mapping for UTF-8 but not UNICODE-1-1-UTF-8. The error you are getting indicates a mapping doesn't exist when we make this call. -
I am facing some issue with the jsp using strut 2.1.8.1
My Jsp code is
<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="html" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Onstar Forumz</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%@ include file="/header.jsp" %>
<html:form action="UserverifyAction" name="userForm" type="com.onstar.user.in.form.UserForm">
<html:text property="username" style="position:absolute;left:720px;top:271px;width:112px;font-family:Arial;font-size:16px;z-index:15" name="username" value="" ></html:text>
<html:password property="password" style="position:absolute;left:720px;top:302px;width:112px;font-family:Arial;font-size:16px;z-index:16" name="password" value="" ></html:password>
<div id="wb_Username" style="position:absolute;left:631px;top:276px;width:82px;height:16px;z-index:17;" align="left">
<font style="font-size:13px" color="#FFFFFF" face="Arial"><b>User name :</b></font></div>
<div id="wb_Password" style="position:absolute;left:631px;top:307px;width:82px;height:16px;z-index:18;" align="left">
<font style="font-size:13px" color="#FFFFFF" face="Arial"><b>Password : </b></font></div>
<div id="wb_signin" style="position:absolute;left:843px;top:304px;width:101px;height:23px;z-index:19;" align="left">
<input type="image" src="images/gold_sign.gif" id="signin" alt="" align="top" border="0" style="width:101px;height:23px;"></div>
</html:form>
<%@ include file="/footer.jsp" %>
</body>
</html>Error Message:
org.apache.jasper.JasperException: /index.jsp(15,0) Attribute property invalid for tag text according to TLD index.jsp is the name of the jsp file.
I have placed the struts2-core-2.1.8.1.jar in lib folder as well as well I have configured the buildpath with the jar file(struts2-core-2.1.8.1.jar)
Please help me...Thanks in Advance{I think we have a case here of trying to use the Struts1.2 tag libraries in Struts2.0
The tag libraries are quite different :-)
I believe the <s:textfield> tag is probably what was intended here?
Or install struts 1.2 instead of struts2 :-) -
Error 404, JSP file not found
Hello all
I am using tomcat on solaris. I have copied my war file under the webapps folder. When I start the tomcat services, it shows the messages for adding the context path for that war file, it also creates a folder for it under webapps but fails to show me any of the jsp pages. I can view all the html and gif files, but none of the jsps (gives the error - 404). If I rename my war file, and then start tomcat services, it works well. I don't want to rename my war file. Pls help!!
For further details - I have checked my server.xml file, and it is correct. There was an old version of the same folder under webapps, which I got rid off, but seems that somewhere it is still caching it.
In my server.xml file, if I do
<Context path="/first"
docBase="webapps/first"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
IT FAILS !! but if I just change the <Context path="/first1" , it works and does not give any error for jsp page. There isn't any contect path named "first" in my server.xml file.
Thanks in advance.
Regards
AnushaActually, I don't know how to create a subdirectory under webapps directory. When I tried to add a subdirectory calle myapp (.../webapps/myapp), I got "The requested URL /application/ was not found on this server" error message. Do I need to modify server.xml or web.xml in conf directory?
Thanks in advance!
tacomaZ -
Hi...when I tried to access my JSp file from tomcat 4.1.27 web server, I got the following error message. Can anyone help me out?
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
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
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:8: '.' expected
import java;
^
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:80: illegal start of expression
private static java.util.Vector jspxincludes;
^
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:82: illegal start of expression
public java.util.List getIncludes() {
^
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:280: '}' expected
^
4 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:2416)
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:601)
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)You JSP has four compile errors:
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:8: '.' expected
import java;Invalid import. You need to import a whole package (*) or single class.
import java; is wrong
import java.util.*; is right
import java.util.List; is right
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:80: illegal start of expression
private static java.util.Vector jspxincludes;
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:82: illegal start of expression
public java.util.List getIncludes() {Check the lines before these to make sure you didn't leave off a semi-colon, parens (')') or bracket ('}').
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:280: '}' expectedYou are missing a closing bracket ('}') somewhere.
The message about the "line -1" error is the standard message that is always given when there are compile errors in the JSP. -
Error opening JSP files in Netweaver Developer Studio
Hello,
When I try to open a *.jsp file in the Netweaver Developer Studio, I get the following error:
The ordinal 233 could not be located in the dynamic link library SHDOCVW.dll
When I click on OK for a couple of times (same message), I get the option to open the file.
Then this message:
Invalid or corrup jar file (with a reference to the jsp).
I can however open files with java extensions. It is also not project related, all jsp files react in the same way.
I am currently investigating what MS Windows service packs have been installed recently.
Does anyone know what it means or how this can be solved?
regards, William JackmanHello William,
Have you seen this note already ??
Microsoft security patch KB834707 side effects in NW. SAP Note 785308 -
Errors in JSP files, help.....
I have 2 questions:
1)
When i javac a java file, the following errors came out.
C:\>javac logon.java
logon.java:3: package javax.servlet does not exist
import javax.servlet.*;
^
logon.java:4: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
2 errors
Anyone knows what does it means??? Any ways to solve this error??
2)
When i type http://localhost:8080/cdlist/cd_list.jsp at the IE address to view the file , the following error came out
org.apache.jasper.JasperException: This absolute uri (http://jakarta.apache.org/taglibs/xtags-1.0) cannot be resolved in either web.xml or the jar files deployed with this application
Can anyone please explain what it means and is there any ways to solve this error. Thankyou very much....Sorry but there seems to have another problem, while i run the file using tomcat this error came out:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 40 in the jsp file: /processLogon.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\_\processLogon_jsp.java:153: ';' expected
routeURL = "frame.htm"
^
An error occurred at line: 19 in the jsp file: /processLogon.jsp
Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\_\processLogon_jsp.java:71: cannot resolve symbol
symbol : class logon
location: package logonBean
logonBean.logon logon = null;
^
An error occurred at line: 19 in the jsp file: /processLogon.jsp
Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\_\processLogon_jsp.java:73: cannot resolve symbol
symbol : class logon
location: package logonBean
logon = (logonBean.logon) pageContext.getAttribute("logon", PageContext.SESSION_SCOPE);
^
An error occurred at line: 19 in the jsp file: /processLogon.jsp
Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\_\processLogon_jsp.java:76: cannot resolve symbol
symbol : class logon
location: package logonBean
logon = (logonBean.logon) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "logonBean.logon");
^
I was wondering, will tomcat javac the java file itself or do i need to javac it myself and put it in the root folder??? In this case i have javac the java file and i put the class file in root folder together with other files to run it, but there seems to still have errors while i try to run it. Pls help. -
Error with bc4j input date tag running a Jsp file.
when im running the bc4j input date tag in a form, a jscript error comes up (object not found error)-> When i pick the date control. I have already checked the cabo directory and all files is there. The same enviroment in other developers PC�s works well.
Have you got that error?
how can i fix it?
The calendar never comes up.
Thank uThe none value is only shown when the field accepts null values.
-
Errors in JSP file for htmlb code - CE 7.1
Hi Experts,
I am trying created simple JSP dynpages application in NWDS 7.1 & CE 7.1.
I am getting errors for HTMLB code like:
cannot find tag Library descriptor for tagLib
In JSP page i wrote simple htmlb code like:
<%@taglib uri="tagLib" prefix="htmlb"%>
<htmlb:content id="myContext">
<htmlb:page title="PageTitle">
<htmlb:form id="myFormId">
<htmlb:inputField id="inf1" type="String" width="125" visible="true"
required="true" />
</htmlb:form>
</htmlb:page>
</htmlb:content>
{/code}
For HTMLB libraries added 2 jar file in lib folder
/PORTAL-INF/lib com.sap.portal.htmlb.jar ; & com.sapportals.htmlb.jar
After adding set the Java build path for Library jar file also.
In portalapp.xml -
<?xml version="1.0"; encoding="UTF-8"?>
<application>
<application-config>
<property name="startup" value="true"/>
<property name="SharingReference" value="com.sap.portal.htmlb";/>
</application-config>
<components>
<component name="Test_Jsp">
<component-config>
<property name="ClassName" value="com.Test_Jsp.Test_Jsp";/>
<property name="ComponentType" value="jspnative"/>
<property name="JSP" value="pagelet/Output.jsp";/>
</component-config>
<component-profile>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld";/>
</component-profile>
</component>
</components>
<services/>
</application>
{/code}
Please any one help to correct this errors............
Regards,
SatyaHi,
You need not add com.sap.portal.htmlb.jar and com.sapportals.htmlb.jar to /PORTAL-INF/lib as the classes will be available at runtime through com.sap.portal.htmlb SharingReference. So remove the htmlb jars from /PORTAL-INF/lib.
Correct the value of tagLib property to /SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld
Deploy and check if this helps.
I see alot of unnecessary semicolons in your portalapp.xml, I think you just added them inorder to be able to post them here.
Regards,
Praveen Gudapati -
Error opening JSP file weblogic 8.1
Hi,
I'm using weblogic 8.1 and testing few JSP pages on my local machine they work well but when the .war file is deployed on to our production server (which is remote), error message in the domainname.log file java.io.FileNotFoundException: /jsp_servlet/__mycomplogin.java (No such file or directory)
any suggestions?
thank you!
"group" <[email protected]> wrote in message
news:4029440f$[email protected]..
> Hi,
> I'm using weblogic 8.1 and testing few JSP pages on my local machine
they work well but when the .war file is deployed on to our production
server (which is remote), error message in the domainname.log file
java.io.FileNotFoundException: /jsp_servlet/__mycomplogin.java (No such file
or directory)
>
> any suggestions?
> thank you!
Can you print out the entire stack trace?
-
Where are the .java files compiled from .jsp files stored?
hi,
I'm new to weblogic server. When I use Tomcat as the jsp server, it compiles .jsp
files to .java files and then .class files. So when an error reported I can track
it in the .java file.
But what should I do with weblogic? It only saves the .class files in the work
dir. Or is there a better way to trace errors in jsp files?
Thanks!
This should give you the information you need to set the keepgenerated flag:
http://e-docs.bea.com/wls/docs60/jsp/admin.html#53346
Also, the .java files will be right next to the .class files with are under
a tmp directory in the /WEB-INF directory under the WEB-INF if it is an open
directory or in the
config/mydomain/applications/.wl_temp_do_note_delete/WEB-INF directory if it
is .war file.
Sam
"Raymond" <[email protected]> wrote in message
news:3b931619$[email protected]..
>
> Thanks, but can you tell me more about it? where to set this flag? I'm
using WLS
> 6.0sp1.
>
> "Sam Pullara" <[email protected]> wrote:
> >You can turn on the keepgenerated flag if you want to keep the .java
> >files.
> >How you do this depends on what version you are using.
> >
> >Sam
> >
-
Exception-Error when excecuting JSP-File in Crystal reports for Eclipse
Hi,
I have created a jsp-File from an rpt-File in Crystal report for Eclipse. When I start the jsp-File on Apache Tomact 5.5 then only errors occurs.
Coud anyone help me?
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: Unable to compile class for JSP:
An error occurred at line: 6 in the generated java file
Only a type can be imported. com.crystaldecisions.report.web.viewer.CrystalReportViewer resolves to a package
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.crystaldecisions.reports.sdk.ReportClientDocument resolves to a package
An error occurred at line: 8 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.application.OpenReportOptions resolves to a package
An error occurred at line: 9 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase resolves to a package
An error occurred at line: 10 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.reportsource.IReportSource resolves to a package
An error occurred at line: 13 in the jsp file: /Bericht1-viewer.jsp
ReportClientDocument cannot be resolved to a type
10: try catch (ReportSDKExceptionBase e)
60:
An error occurred at line: 58 in the jsp file: /Bericht1-viewer.jsp
e cannot be resolved
55:
56:
57: } catch (ReportSDKExceptionBase e)
60:
61: %>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
Apache Tomcat/5.5.26
Bericht1.jsp:
<%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
com.crystaldecisions.reports.sdk.ReportClientDocument,
com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%><%
// This sample code calls methods from the JRCHelperSample class, which
// contains examples of how to use the BusinessObjects APIs. You are free to
// modify and distribute the source code contained in the JRCHelperSample class.
try {
String reportName = "Bericht1.rpt";
ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
if (clientDoc == null) {
// Report can be opened from the relative location specified in the CRConfig.xml, or the report location
// tag can be removed to open the reports as Java resources or using an absolute path
// (absolute path not recommended for Web applications).
clientDoc = new ReportClientDocument();
// Open report
clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
// Store the report document in session
session.setAttribute(reportName, clientDoc);
// ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
// Create the CrystalReportViewer object
CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
// set the reportsource property of the viewer
IReportSource reportSource = clientDoc.getReportSource();
crystalReportPageViewer.setReportSource(reportSource);
// set viewer attributes
crystalReportPageViewer.setOwnPage(true);
crystalReportPageViewer.setOwnForm(true);
// Apply the viewer preference attributes
// Process the report
crystalReportPageViewer.processHttpRequest(request, response, application, null);
// ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
} catch (ReportSDKExceptionBase e) {
out.println(e);
%>
Thanks
ArnoldAccording to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using. -
hi..i m developing one application in JDeveloper...now from html file i am directing to jsp page. using Form tag
<form action="http://128.127.100.51:8990/ValidateUser.jsp" name="login" method="post"> but it shows me error. "http://128.127.100.51:8990/ValidateUser.jsp" file not found..though html file and ValidateUser.jsp file both are in Public_html file
Now wht is wrong with this
Regards
Chintan1: Double check the port number that your Tomcat Server is using. (TOMCAT_HOME/conf/server.xml).
2: check you IP. This is not the 'localhost' IP (not sure if it is LAN or real IP). So it may change dynamically.
3: Check for Firewalls. Also, since you are not using localhost, you will have to make sure you traverse all the firewalls built around your system. If you have a router (home), windows XP, or some other firewall, make sure the appropriate ports are opened. If you are behind a corporate firewall, or your ISP closes ports... your kinda out of luck until you find a way to cheat around them.
2: Try just using just "/ValidateUser.jsp" as long as it is one the same domain as the Form. This will make it less likely to break, should your IP change. -
Error in parsing the taglib tag in the JSP page
Hi
We are trying to deploy and run a Web Application in CE 7.1 SP01. We are successful in deploying and running servlet based web pages, but when it comes to JSP's the taglibs are not parsed and we get the following error message
Runtime error in processing of the JSP file E:\usr\sap\CE1\J01\j2ee\cluster\apps\sap.com\TestNWEAR\servlet_jsp\TestNW\root\admin\main.jsp.
The error is: com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Error in parsing the taglib tag in the JSP page. Cannot resolve URI: [webwork]. Possible reason - validation failed. Check if your TLD is valid against its scheme.02004C4F4F5000190000004E000013400191D308B45
Processing HTTP request to servlet [jsp] finished with error.
The error is: java.io.FileNotFoundException: E:\usr\sap\CE1\J01\j2ee\cluster\apps\sap.com\TestNWEAR\servlet_jsp\TestNW\root\admin\webwork (The system cannot find the file specified)02004C4F4F50001900000051000013400191D308B45AF1AB
We followed the below weblog to correct the TLD's in JAVA EE 5 @ SAP but it did not work for us.
/people/community.user/blog/2006/10/13/porting-the-java-blueprint-solutions-catalogue-applications-to-sap-netweaver-application-server-java-ee-5-edition
Any immediate help will be rewarded with full points
Thanks in advance
Lakshmi
Edited by: lakshmi N Munnungi on May 5, 2008 11:36 PM
Edited by: lakshmi N Munnungi on May 5, 2008 11:39 PMHi Lakshmi,
I have also the same problem. If you have found the solution please post it thanks,
Thanks,
Tariq -
Problem in executing a JSP file that includes a Custm tag
Hi,
I am very new to JSP,especially custom tags. I tried to run my first custom tag program but i cud not succeed.
I tried to run it using Tomcat as well J2ee1.3. But still cud not c the output.
I have placed jsp file,TLD etc in Web inf of root dir and class file inside classes folder..but i got some error saying tag with prefix not found in the tag library...
i tried in all the ways but all in vain... I will post my code and exact error i faced.. can anyone help me soon to see the output?
WelcomCtag.java
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class WelcomeCtag extends TagSupport
private String Name=null;
public String getName()
return Name;
public int doStartTag()
try
JspWriter output=pageContext.getOut();
output.println("Welcome" + getName());
}catch(Exception e)
throw new Error("Encountered an errer");
return SKIP_BODY;
public int doEndTag()
try{}
catch(Exception e)
throw new Error("Encountered an errer");
finally
return SKIP_PAGE;
[u]example.tld[/u]
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>example</shortname>
<info> A small example for usage of the tag library</info>
<tag>
<name> Welcome></name>
<tagclass>WelcomeCtag</tagclass>
<bodycontent>empty</bodycontent>
<info>This tag is an example to display a welcome message</info>
<attribute>
<name>Name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
[u]WelcomeCustomtag.jsp[/u]
<%@ taglib prefix="example" uri="./example.tld" %>
<html>
<title>Welcome Handler</title>
</head>
<body>
<example: Welcome Name="Panduranga"/>
</body>
</html>
and the error i get while executing is here..........
org.apache.jasper.JasperException: /WelcomeCustomtag.jsp(6,0) No tag "" defined in tag library imported with prefix "example"
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:196)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1308)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1564)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
when i referred some other tutorials some have stored the tld file inside a folder called tags inside web inf and they have used like this <tags:example> etc and it wrked but if i want to specify some attributes i dunno how to give using <tags> style....
Can anyone help me n tell me the difference in using tag like this <eample> and <tags: example> like this.....
Thanks,
Akshatha1.
Multiple tlds in web.xml
Have multiple taglib elements in your web.xml - see below.
<jsp-config>
<taglib>
<taglib-uri>http://example/taglib</taglib-uri>
<taglib-location>/WEB-INF/example.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://anotherexample/taglib</taglib-uri>
<taglib-location>/WEB-INF/anotherexample.tld</taglib-location>
</taglib>
</jsp-config>The jsp-config element should be just after the servlet-mapping element in servlet 2.3 spec.
For 2.4 spec, you can put it anywhere.
In your jsp, to use the tags from the two tag libraries, use 2 taglib directives
<%@ taglib prefix="example" uri="http://example/taglib" %>
<%@ taglib prefix="anotherexample" uri="http://anotherexample/taglib" %>
<example:tag1.................>
<anotherexample:tag2.................> etc2.
Mutliple tags per tld
Have multiple <tag> elements in your tld.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>j2ee</short-name>
<tag>
<name>tagName</name>
<tag-class>pkgName.classname</tag-class>
<body-content>JSP</body-content>
<display-name>OverlapTag</display-name>
<attribute>
<name>attr1</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>attr2</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>tag_2_Name</name>
<tag-class>pkgName.classname</tag-class>
<body-content>JSP</body-content>
<display-name></display-name>
<attribute>
<name>attr1_2</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>attr2_2</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
Interesting snippet
If you are using a 3rd party tag library, then the tags would come packaged in a jar file. The MTEA-INF directory of the jar file would contain the tlds and the tld would have an uri element. You can use it directly in the jsp without declaring the tld file in web.xml provided the jar file is in your classpath.
For example, take the struts tag libraries, say the logic tags.
The struts.jar contains, among other things, the tag class files and the tld files (inside /META-INF/tlds)
All you have to do is put Struts.jar in the classpath (easy way to do this is put it in the WEB-INF/lib directory of your web-application).
The jar file has struts-logic-1.1.tld in the META-INF/tlds directory.
This tld file looks like this
<taglib>
<tlibversion>1.2</tlibversion>
<jspversion>1.1</jspversion>
<shortname>logic</shortname>
<uri>http://jakarta.apache.org/struts/tags-logic</uri>
..................Now to use the tags in your jsp, you dont require the tld mappings in web.xml using the uri above in the taglib directive in your jsp
<%@ taglib prefix="example" uri="http://jakarta.apache.org/struts/tags-logic" %> cool, right ? :)
This is how you should pkg your own tags too. The tag classes have to be jarred and the tlds should go into the META-INF of the jar so that other users can simply add the jar to the cp and start using your tags.
cheers,
ram.
Maybe you are looking for
-
How to copy my mp3 files from my iPOD 3OGB to my iTunes folder??
Hi im still new on using iPods, currently i own an iPod Vid 3OGB and an iTouch 16GB. Here is the scenario: I have a new laptop, and I want to copy the music stored on my iPoD Vid 3OGB to my new laptop. Im still new to the iPOD world @_@ thats why im
-
Why does time machine make a second/different backup after new installing a hard drive?
Hi all, Long time reader, first time poster... after having to install a new hard drive on my MacBook Pro, the new Time Machine backups are not recognising the original/older backups on the external hard drive connected via network router and has cre
-
Contact # for Lightroom? I need a live person to talk to.
I
-
How to calculate the coordinate after implementing Affine Transformation?
Hi, guys!! I am working on a Map makeing program, like MS Visio. Then, I need to put an icon on the working space. And the icon can be moved, rotated, and scaled, when mouse drags handles (8 small circles) around the icon. However, the problem is tha
-
What's the hold up Adobe?
When will flash player and other awesome programs that Adobe offers Android and Apple phones be available for Windows phone?