Re: How to access java class files from jsp

2001-01-18 Thread Manish Jain

inline...
- Original Message -
From: "chindu jose" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 10:24 AM
Subject: How to access java class files from jsp


> hii all,
>
> i have few queries..
>
> 1. How to access jave class files from jsp?
in import add that package or put .class file in same dir where ur jsp page
lies...
and use that class on page.
class object = new class();
object.method();
else
use useBean() method.
>
> 2. Where can we place the jave classes used by servlets/jsp in Weblogic?
i dont know about weblogic but u can place them in ext dir,which presents in
jre/lib/ext
else if u put class file in same dir where jsp page is lying that will also
do
but this is not good practice,make a jar and put it in ext folder.

hope this helps..
Manish
> thanx in advance..
> bye take care
> chin
>
> 
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP XML Integration

2001-01-18 Thread Manish Jain

Just post xml to another web server,
where u have a listener which will accept that xml

hope this helps..
cheers...

Manish


>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Menon Madhu
> Sent: Tuesday, January 16, 2001 10:39 AM
> To: [EMAIL PROTECTED]
> Subject: JSP XML Integration
>
>
> Hi,
>
>   How can i pass an XML data from one web server to another web server
> and get the reponse back from it ? If done can we encrypt the data ?
>
> Regards,
> Madhu Menon.
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: what is SOAP

2001-01-18 Thread Manish Jain

it's RPC over HTTP with help of XML.
a wire protocol ,a request/response protocol where messeges are passed as
XML documents between two ends(client and server).
read more on
http://msdn.microsoft.com/xml/general/soapspec.asp
http://msdn.microsoft.com/xml/general/soap_webserv.asp

hope this helps...
cheers.
Manish

- Original Message -
From: "Divakar L" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 9:36 AM
Subject: Re: what is SOAP


> simple object access protocol
>
> Living on earth may be costly,but it includes a free annual trip around
> the sun.
>
> Divakar D Laad.
> Software engineer.
> PSI Data Systems Limited.
> 3rd Floor,Shankaranarayana Building-1.
> No.25,M.G.Road,Bangalore-560 001.India
> Tel : (91-80)532-1829/39  Fax : (91-80)532-1817
> e-mail: [EMAIL PROTECTED] 
> Web site  http://www.psi.soft.net
>
>
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Manish Vohra
> Sent: Tuesday, January 16, 2001 3:01 PM
> To: [EMAIL PROTECTED]
> Subject: what is SOAP
>
>
> hey
> cd u pls tell me what is SOAP
> manish
>
>
> Check out SOAP. It's very easy to implement (XML syntax).
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Menon Madhu
> Sent: Tuesday, January 16, 2001 10:39 AM
> To: [EMAIL PROTECTED]
> Subject: JSP XML Integration
>
>
> Hi,
>
>   How can i pass an XML data from one web server to another web server
> and get the reponse back from it ? If done can we encrypt the data ?
>
> Regards,
> Madhu Menon.
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: How to call a servlet from a javascript function?

2000-07-28 Thread manish jain

Pull all listboxes to client and depend upon selection show required listbox
with the help of DHTML and DIV/LAYER tag.

Manish.
- Original Message -
From: Anu Pidaparti <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 26, 2000 9:49 PM
Subject: How to call a servlet from a javascript function?


> Can anyone provide me an example of how to do this? I have seen the
> archives and learnt that this can be done but I didn't find an
> example. More specifically, I need to populate one listbox based on a
> selection in another listbox and I need to make trip to the server to
> get the data.
>
> Thanks.
>
> Anu
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Help for JSP implicit objects

2000-07-28 Thread manish jain

Where can i get help for JSP implicit objects
session,application,request,responseetc
Can u tell me links  Also books for the same

Manish.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JDBC Connection in JSP

2000-07-26 Thread manish jain

u can use same connection

Manish.
- Original Message -
From: wap@asl <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 26, 2000 12:20 PM
Subject: JDBC Connection in JSP


> Hi All,
>
> I am using JDBC connection to connect my jsp file with an Access database.
>
> I connect to the database, fire an SQL querry, fetch the results & show
the
> result.  One loop is completed.  Now if I need to fetch some other data
from
> some other table from the same database (.dsn), Can I use the same
> connection or will I have to connect everything from the beginning?
>
> To be very specific, which of the statements from below will I have to
write
> again?
>
> try {
>  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
>  } catch(java.lang.ClassNotFoundException e) {
>  System.err.print("ClassNotFoundException: ");
>  System.err.println(e.getMessage());
> }
> Connection con = DriverManager.getConnection("jdbc:odbc:shop.dsn", "",
"");
>
> Statement stmt = con.createStatement();
> ResultSet rs = stmt.executeQuery ("Another Query");
>
> Thanx :-) & Regards,
>
> Kaushal.
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: javabeans

2000-07-26 Thread manish jain

OK fine,but when u say 
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 26, 2000 9:59 AM
Subject: Re: javabeans


> well,java bean is a component technology...
> ||r to our ActiveX...
> In ActiveX... we have to convert in to OCX ... here...package
> under bean directory
> regards
> suriya
> *Q  try for everything Q*
>
> Suriya narayanan V
> Software Engineer
> Contech Software Ltd
> E-3/1,2,3, GIDC Electronics Estate,
> Sector - 25, Gandhinagar - 382 044, INDIA
> Tel.: +91(2712) 44989/43324/43328
> (R)  : 91 - 79 - 6746164
> fax:+91 (2712) 24468
>
> Email :[EMAIL PROTECTED],[EMAIL PROTECTED]
> URL   : http://www.contechgroup.com
> HomePage : http://www.suriyan.org
>
>
>
> -Original Message-
> From:   Neal Cabage [SMTP:[EMAIL PROTECTED]]
> Sent:   Wednesday, July 26, 2000 12:13 AM
> To: [EMAIL PROTECTED]
> Subject:javabeans
>
> Quick question(s) regarding JavaBeans concept ...
>
> I just got a book on hte matter but I feel like they skipping over 1 or 2
> important details:
>
> 1. I compile my class file first right?  So I use my testBean.java file,
and
> compile it into a a testBean.class file - correct?
>
> 2. Do I need to place my class file into a JAR in order to access it as a
> bean?
>
> 3. Do I need to package my class in order to access it as a bean?
>
> I can't find the answer to these questions anywhere in my book.  Can
someone
> answer them?  I  am quite familiar with working with ActiveX, so
components
> are nothing new to me (ironicially the book spends most of it's time
harping
> on methods, events, props, etc) ... I just need to undertand the paradigm
of
> implementing a JavaBean a little bit better.
>
>
> Thanks.
> Neal
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: and database pool connection

2000-07-26 Thread manish jain

i think anyhow u have to include that class file in the jsp page.
else u have to make a package for that class file and import it.

Manish.
- Original Message -
From: Predict AG - Christian Ribeaud <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 26, 2000 11:46 PM
Subject:  and database pool connection


> Hi,
>
> I am trying to write a .jsp. I work with a database pool connection. I
read the following in a faq (http://www.esperanto.org.nz/jsp/jspfaq.html) to
instantiate the DBConnectionManager (s. below). I am using the
JavaWebServer2.0 and I put the DBConnectionManager.class and the
DBConnectionManager$DBConnectionPool.class in the classes directory. So it
must be loaded by the system class loader. What ist wrong?
>
> Here is the script:
>
> <%@ page isThreadSafe="true" import="java.sql.*" %>
> 
> DBConnectionManager connMgr = DBConnectionManager.getInstance();
> 
> <%!
> String Password, Origin = "home.html";
> %>
> <%
> if (request.getParameter("Emp_ID") != "" && request.getParameter("Emp_ID")
!= null) {
> //  DBConnectionManager connMgr = DBConnectionManager.getInstance();
> Connection con = connMgr.getConnection("access");
> if (con == null){
> out.println ( "" );
> out.println("Can't get connection");
> out.println ( "" );
> return;
> }
> try {
> Statement stmt = con.createStatement();
> ResultSet rs = stmt.executeQuery("select Emp_Password
where Emp_ID = " + request.getParameter("Emp_ID"));
> stmt.close();
> rs.next();
> Password = rs.getString("Emp_Password");
> }
> catch (SQLException ex) {
> out.println ( "" );
> while (ex != null) {
> out.println("Message:   " + ex.getMessage ());
> out.println("SQLState:  " + ex.getSQLState ());
> out.println("ErrorCode: " + ex.getErrorCode ());
> ex = ex.getNextException();
> out.println("");
> }
> out.println ( "" );
> }
>
> if (Password != null &&
Password.equalsIgnoreCase(request.getParameter("Emp_Passwort"))) {
> session.putValue("Emp_ID",
request.getParameter("Emp_ID"));
> if (request.getParameter("Origin") != null) Origin =
request.getParameter("Origin");
>
response.sendRedirect(response.encodeRedirectUrl(request.getParameter("Origi
n")));
> }
> connMgr.freeConnection("access",con);
> }
> %>
>
> And here the error I got:
>
> Error during compilation :
> E:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_login.java:80:
Undefined variable or class name: connMgr
> Connection con = connMgr.getConnection("access");
>  ^
> E:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_login.java:111:
Undefined variable or class name: connMgr
> connMgr.freeConnection("access",con);
> ^
> Note: E:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_login.java uses
or overrides a deprecated API.  Recompile with "-deprecation" for details.
> 2 errors, 1 warning
>
> Thanks a lot for the help.
>
> Christian Ribeaud
> Predict AG
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



jsp:useBeans Vs. EJB

2000-07-26 Thread manish jain

Can anybody Please tell me difference between Beans used with tag usebeans
and
ejbeans.

Q1.Does code embedded in tag http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets