How to import custom package in JSP
Hi! everyone,
I wrote a jsp file that imports some custom packages in a jar file. I've put that jar file in the classpath, the WEB-INF/classes directory, the orion directory etc...But I kept getting the "Package doesn't exist" compiling error in the borowser. Would you please help and tell me what I'm missing here?
Thank you for your reply. I tried but it didn't work. Can you give me more hint on what to do?
Placing the jar file in the /WEB-INF/lib directory
should fix the problem.
Similar Messages
-
How to import a package in jsp
i've searching here and i've not found answer to this, so i write it here.
i've created a class to send mail, it imports the javax.mail.* and javax.activation.*, in a package named jspbeans.
now, when i try to use this package in my jsp page (using tomcat), gives me the error:
Package jspbeans not found in import
import jspbeans.*;
the code for my jsp page is:
<%@ page language="java" %>
<html>
<head>
<title>Sending mail from JSP</title>
</head>
<body>
<%@ page import="jspbeans.*"%>
<jsp:usebean id="sendmail" class="jspbeans.SendMail" scope="page"/>
<jsp:setProperty name="sendmail" property="host" value="mail.wavelinksystems.com"/>
<jsp:setProperty name="sendmail" property="to" value="[email protected]"/>
<jsp:setProperty name="sendmail" property="from" value="[email protected]"/>
<jsp:setProperty name="sendmail" property="msg" value="testing 1 2 3..."/>
<jsp:setProperty name="sendmail" property="subject" value="test"/>
<%//sendmail.send();%>
<p>
Mail has been sent to <jsp:getProperty name="sendmail" property="to"/>
</body>
</html>and the path of this jsp page is:
C:\WINDOWS\Desktop\tomcat\jakarta-tomcat-3.3.1\webapps\ROOT\pruebas\jspMailTest.jsp
the path for the package is:
C:\WINDOWS\Desktop\tomcat\jakarta-tomcat-3.3.1\webapps\ROOT\pruebas\jspbeans
what am i doing wrong?
what am i missing?
how do i have to import the package?
thanksit generates a
java.lang.NoClassDefFoundError: javax/mail/MessagingException
i changed the package to that directory and the import generates no errors, if i do nothing but the import, and soem printing, the page is generated, but when i try to assign the variables, generates that error, why is it? -
How to Import Custom Views and JSPs to ALBPM Enterprise
Hi,
I am using ALBPM 5.7. I have developed a custom view in Studio. When I publish and Deploy the Project in ALBPM Enterprise (WebLogic 9.2), I check true the Import Custom JSPs and Views (or similar terminology). But when I login to the portal after installing the EAR, the view is not listed in my work pane.
Also, in one of the Interactive Activity I am calling a JSP, which gives a Null Pointer Exception when execute the instance, In my opinion, the Custom JSP is not deployed.
I have also copied the JSP file in location \bea\ALPBM5.7\j2eewl\webapps\portal\customjsp\
Please suggest as how do I deploy the View and JSP
Thank you,
Regards
Jayant
Edited by jayantbit at 06/19/2008 8:01 AM
Edited by jayantbit at 06/19/2008 8:21 AMHi Mohamed,
Please check below link.
What is Drag and Relate in SAP Business One - YouTube
https://help.sap.com/saphelp_sbo882/helpdata/en/45/100314cf465d7ae10000000a11466f/content.htm
https://help.sap.com/saphelp_sbo882/helpdata/en/45/10ff71cf465d7be10000000a11466f/content.htm
SAP - SAP Business One: Your Solution for Generating Custom Reports
Hope this helps
Regards::::
Atul Chakraborty -
sir
plz tell me how to use custom tag in jsp.plz describe it.
i will be thankful to uDo you want to use taglibs or develop custom tags? Either way take a look at these:
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags.html
http://www.stardeveloper.com/articles/display.html?article=2001081301&page=1
http://www.onjava.com/pub/a/onjava/2000/12/15/jsp_custom_tags.html
http://jakarta.apache.org/taglibs/tutorial.html
http://www.ibm.com/developerworks/edu/j-dw-java-custom-i.html
http://www.herongyang.com/jsp/tag.html -
How to import custom java jar/class into oracle to be used in java proc ?
Hi
I would like to know how to import custom java jar/class files into oracle to be used in java stored procedure.
I am developing a oracle pl/sql procedure to call java program. The java program will be created as procedure and will be published.
But, my question is that I do have a other external jar/class file that need to be imported into this java program.
example
raise_sal.java
import java.util.*;
import oracle.sql.*;
<<reference other java programs >>
import cmpmsgsvc.xxxx.* ;
import cmpmsgsvc.yyyy.* ;
import cmpmsgsvc.zzzz.* ;
how do I import the cmpmsgsvc jar/class file into oracle so that I don't have any
compilation errros on raise_sal.java program ??
what are the steps to import/compile and validate to do this?
thanks for your help in advance.
Thanks
rrb.Kuassi
Problem is that, I have 6 jar files that are needed to be included in the main java program. And, there are more than 50+ classes, propertiers in those 6 jar files.
It might be not good idea to have all those 50+ classes in the production database.
Is there anyway that I keep all those 6 jar files in unix box (our's is oracle erp installation with oracle being installed on unix box) and just refer them in the main java program. I mean database will be loaded with main java program and it should able to refer other 6 jar files from unix.
if we create a directory and keep all jar files in there and include that directory in classpath variable, does this works? or what is other method?
Please let me know.
Thanks -
How to import Support Package 13(SAPKW70013) for SAP NetWeaver 2004s BI
Hi,
How to import Support Package 13 for SAP NetWeaver 2004s BI (BI Patch 13 or SAPKW70013)
Note no for that is : 1019055.
Thanks in Adavance,
Dushyant.Hi,
RTC for BI 7.0 SAP_BW SP 13 is scheduled in CW 21, that is coming week, after that you should be able to download it from service market place.
@others: Dont get confused about SPS release with SP release. BI has intermediate release which is SP release, SPS is SP-Stack release (which is NetWeaver release).
SP 12 correspond to SPS 12 which is sceduled CW 21.
Hope this helps.
Best Regards,
Rajani -
How to import Custom idoc into IR?
I have a custom idoc and i need to map it with the receiver format after importing into IR . Please let me know the sequence of steps to import custom idoc into Integration repository?
I think I need to first import into IDX2 and then import into repository. Am I correct?Hi Prateek,
thanks for the information .The normal standard idocs we import by searching the idoc eg- for importing matmas we type mat and we search it, since it is a standard idoc it will be available in the list (after selecting the chek box "Import of idoc or rfc interfaces from sap system permitted").
But my question is how we import custom idoc as they wont be present in the list? -
I hope this is an appropriate forum for this query.
I want to be able to access a user-created Java package in JSP.
I have this code:
<%@page import="TPClass.*" %>
<%
xxx = TPClass
session.setAttribute("response",xxx.GetTPResponse());
%>
The error display points to TPClass in the import statement with the message "TPClass not found".
TPClass files are in the same location as the other project files.
I have creatyed and compiled the TPClass package.
Is there more I need to do?
BrentonI think you are very new to java....
anyway
<%@page import="class name with full qualified package name"%>
like
<%@page import="com.x1.x2.TPClass"%>
<%
TPClass cls =new TPClass();
//then do whatever you want...
%>
hope u understand now..... -
How to import custom report to drag and relate menu ?
Hi Professionals .
Kindly advice me how to add or import custom report at drag & relate menu
Any help please ?Hi Mohamed,
Please check below link.
What is Drag and Relate in SAP Business One - YouTube
https://help.sap.com/saphelp_sbo882/helpdata/en/45/100314cf465d7ae10000000a11466f/content.htm
https://help.sap.com/saphelp_sbo882/helpdata/en/45/10ff71cf465d7be10000000a11466f/content.htm
SAP - SAP Business One: Your Solution for Generating Custom Reports
Hope this helps
Regards::::
Atul Chakraborty -
How to Import customized internal table to smartform from Print Program
Hi Gurus,
I want to Import customized internal table to smartform from print program, Can anybody tell me how it is possible.
With regards,
S.SaravananThere is no problem passing an internal table to a smarforms, smartforms have the same interface as a function module ([Defining the Form Interface|http://help.sap.com/saphelp_nw70/helpdata/en/1c/f40c5bddf311d3b574006094192fe3/frameset.htm] in [Smart Forms|http://help.sap.com/saphelp_nw70/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm]) so could you elaborate a little more on your requirement (is it a standard a custom forms, etc.)
Regards,
Raymond -
How to import this package com.sap.tc.logging.location?
Hi, all,
I can't import this package into programming area since i'm using com.sap.tc.logging.location. I think my developer studio does not have such package. Do you know how do find such package and import it in the studio?
Logging location.
private static final com.sap.tc.logging.Location logger =
com.sap.tc.logging.Location.getLocation(Exc_EJB_Component.class);hi
try to see your package is avalible into Navigator prosective. if it has then import it from here itself
thanks -
How to import other package into Dictionaries in nwds web dynpro project
Hi
i'm learning JA312, in some topic, there need a method declaration in component controller, the method like this:
public void showContext(IWDContext context),
i can add method in method tab in component controller,but can not add parameter of IWDContext types,because in Dictionaries,there are only com.sap.ide.., and not include com.sap.tc.webdynpro.progmodel.api.
so,how to import package into Dictionaries, for example com.sap.tc.webdynpro.progmodel.api.
a step by step article is preferred. thank youchoose "Java Native Type".
-
How to import a package of my own
Hi,
I have downloaded a file upload package located in "c:/transfer/Picasso_ljm/jakarta-tomcat-4.0.1/webapps/junmin/WEB-INF/classes/org1/apache/commons/fileupload/", the package name is "org1.apache.commons.fileupload". I have another package which is created by myself, located in "c:/transfer/Picasso_ljm/jakarta-tomcat-4.0.1/webapps/junmin/WEB-INF/classes/record/". The package name is "record.".
I want to import fileupload package in java files in record package, what should I do?
Thanks a lot!
ljmI think you misunderstand my question. I find out already. Thanks!
in classes under record package, I should write:
import org1.apache.common.fileupload.*;
when I compile my class, I need to specify my classpath so that the java file can find this package.
Sorry for this simple question.
ljm -
How to import non-package class in JSP ?
We have develped an enterprise solution in java 1.3 . Some of the controller and controller helper classes donot have any package structure. So they are been kept in web_inf/classes. When any jsp tries to refrence these classes class not found exception arise.
One solution is to put these classes in package and write approprite import statement. But this involve lot of changes. Kindly suggest a solution which can have minimum impact.
I have even jared all these classes into a jar and put that jar in the class path. But still its not working.It should not be web_inf , the case and the spelling matters it should be WEB-INF , make that correction and see if it works.
If not then, use an IDE to refactor your code.
Some good IDEs with refactoring capabilities are
IntelliJ IDEA - commercial
NetBeans - open source I think (not sure)
Eclipse Web Tools - also open source
Using packages is a good practice, and will make your application more understandable.
Message was edited by:
appy77 -
How to import DBMS_LOB package in java
hi
how we can use pl/sql's package in java
any body can help me
where i can found harachy of DBMS_LOB package
to include in my java or jsp program
thanxperhaps this topic can help :
Calling PL/SQL from Java
and the use of DBMS_LOB package is here:
Supplied PL/SQL Packages and Types Reference Contents / Search / Index / PDF
http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96612.pdf
Java Stored Procedures Developer's Guide Contents / Search / Index / PDF
http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
I hope that can help you. Perhaps another person can give the excat code.
Good luck!
Joel P�rez
Maybe you are looking for
-
Hey guys, my video chat just doesnt seem to work, the person will accept, then it says "starting video chat" and then after about 10 seconds it comes up with a communication error. I've tryed changing the bandwith settings like people have mentioned
-
My surface Pro 3 is amazing with photoshop but it cuts in and out using the brush tool in illustrator. Does anyone know of a fix?
-
Going crazy trying to configure AE...
OK, I have the N-enabler and am trying to add a 5.8 GHZ only AE to my network. Several Issues: 1.) No Radio Option Mentions N , even though I have the N enabler installed and definitely have a new square N router .. Only B, B/G and G ..like it's inhe
-
I have a 110 series. One or more of the cartridges are running out. A test print would tell me which one. How do I do a test print?
-
Mdimportserver crashed - can anyone help please?
Hello folks, I noticed that my mdimportserver crashed recently and I was wondering if there is anything I can do to fix it. Here are two examples showing that it happened under OS 10.4.8 and OS 10.4.11: Host Name: users-computer-2 Date/Time: 2008-12-