How do you load native libraries in servlets and avoid Unsatisfie dLinkError

2001-02-08 Thread Ramesh, Kesav

Hello all

 How do you load native libraries in servlets and avoid
UnsatisfiedLinkError/abrbrDetailed Question: How do you load native
libraries in servlets and avoid UnsatisfiedLinkError?
Basically, it appears that many people have the problem in which one
classloader loads a shared object which then fails when another servlet
instance tries to load it.
For example, the following code is trouble in a servlet.
try {
  System.loadLibrary("native")
} catch(UnsatisfiedLinkError e) {
  // now all calls will fail for this servlet
}

How can you handle the mulitple instances of a servlet and
native libraries?
Environment:
Solaris 5.8
iPlanet
BEA WebLogic


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]

===
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: problem in using out.println in method

2001-02-06 Thread Ramesh, Kesav

out is a default supplied printwriter object. you are making this as a
string.
try to take that "" from that and it will work


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: Wayne Lian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 10:29 AM
To: [EMAIL PROTECTED]
Subject: problem in using out.println in method


Hi,
I had declared a public method in a JSP page and that method only
do "out.println("Testing");", but when i call that method, i got the error
message saying that out is undefined or not declared...
Can anyone please help me? Thanks.

regards,
Wayne

-
Everyone should have http://www.freedom2surf.net/

===
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: float to decimal?

2001-02-01 Thread Ramesh, Kesav

what is the error you are getting???


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: Manish Joshi [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 03, 2001 11:15 AM
To: [EMAIL PROTECTED]
Subject: float to decimal?


hi all,
i have a column in my database(DB2) with type=decimal,i m suceessfully
gettin this

out.println(rs1.getFloat("app_rate"));

but when i try to assign it to float variable like this,

float app_rate1=rs1.getFloat("app_rate");

it is givin errors,
any brains..?

thx
MJ

===
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



help regarding audio clip

2001-01-25 Thread Ramesh, Kesav

Hi all,

 i am trying to invoke a audio file from my jsp . The application compiles
well but when i run it i does not do anything.
here is the code snippet i used for testing. let me know if anything is
wrong in this.

 ===
import java.awt.*;
import java.applet.AudioClip;
import java.applet.Applet;
import java.net.*;

public class audioFromApplication
 {
  public static void main(String ar[])
   {
try
  {
   URL url = new URL("file:D://WINNT//Media//ringin.wav");
   AudioClip ac = Applet.newAudioClip(url);
   ac.play();
  }catch(Exception e)
  {
System.out.println("error");
e.printStackTrace();
  }
   }
 }
==

Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]

===
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: help pls

2001-01-25 Thread Ramesh, Kesav

simply say request.getParameter("comment");


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: Jawid Ahmadi [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 5:26 PM
To: [EMAIL PROTECTED]
Subject: help pls


Hello everyone!
New jsp user... so pardon me for the basic question...

I have a textarea in a jsp page like

textarea wrap="virtual" name="comment" rows=5 cols=40/textarea

and would like to capture the contents of the textarea (comment)

What is the procedure?

Thanx in advance,
Jaws


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

===
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: javax.servlet.ServletRequest

2001-01-19 Thread Ramesh, Kesav

extend your servlet to HttpServlet and use req.getParameter()


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: Sebastian Cremers [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 3:11 PM
To: [EMAIL PROTECTED]
Subject: javax.servlet.ServletRequest


Hello everybody,

since today, I'm getting a strange Error which I don't understand. the
application has been running before, and I didn't have any problems. This is
the warning that I get for every "getParameter" I use in the JSP page:


buchen.jsp:4: Note: The method java.lang.String
getParameter(java.lang.String) in interface javax.servlet.ServletRequest has
been deprecated.
String selected_kunde = request.getParameter("selected_kunde");


what does it mean that the interface has been depreciated?? what can I do
possibly do to fix this problem?

regards,

sebastian


move3d interactive media GmbH
Sebastian Cremers
Heinersdorfer Str. 4-6
13086 Berlin

+49 30 4790 840 -45 (fon)
+49 30 4790 840 -99 (fax)
[EMAIL PROTECTED]
www.move3d.com

we think. we dream. we know.

===
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: URL of File Sending the request

2001-01-18 Thread Ramesh, Kesav

 request.getScheme() + "://" + request.getServerName() + ":" +
request.getServerPort()


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: Sunil Roy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 01, 2000 1:40 AM
To: [EMAIL PROTECTED]
Subject: URL of File Sending the request


Hi Guys,
Can somebody tell me how to get the URL  of the file from where the request
is coming to the servlet?

Thanks in advance.

Sunil K. Roy

===
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 write info into a file using JSP?

2001-01-18 Thread Ramesh, Kesav

you can use mkDir()


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: Sunil Roy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 01, 2000 1:35 AM
To: [EMAIL PROTECTED]
Subject: Re: How to write info into a file using JSP?


Hi Ramesh,
I want to know how to create a folder at runtime. I know how to create a
file at runtime, but I don't know how to create a folder at runtime.
Pl help.

Sunil K. roy



- Original Message -
From: "Ramesh, Kesav" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 11, 2001 10:35 AM
Subject: Re: How to write info into a file using JSP?


 use java.io classes


 Regards

 Ramesh Kesavanarayanan

 Electronic Data Systems
 Steeple Reach,
 25, Cathedral Road,

   91-44-811 3801 to 15 ext :2186
   91-44-233 0380 (res)
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]



 -Original Message-
 From: Faxin Zhao [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 10, 2001 8:33 PM
 To: [EMAIL PROTECTED]
 Subject: How to write info into a file using JSP?


 Hi,

 I want to write some information into a text file using JSP,
 e.g., write "name=sun.com"
  "address=www.sun.com"
 into "c:\sendout\list.txt".
 How can I do it in JSP?
 Thanx in advance.

 Faxin


===
 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 create Dynamic PDF's from java

2001-01-18 Thread Ramesh, Kesav

you can use Htmldoc which converts a html page into a pdf format.


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: Hosegood, Chris W (EDU) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 9:21 PM
To: [EMAIL PROTECTED]
Subject: How to create Dynamic PDF's from java


  Has anyone had any experience creating dynamic pdf reports from java (jsp
or servlets)?  We have to create some documents where the layout is
critical.  If anyone knows of any java classes to do this, or better yet,
experience doing this I would greatly appreciate a push in the right
direction.

Thanks,
ch

===
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: Can JSPs call an EJB

2001-01-11 Thread Ramesh, Kesav

check out the weblogic.properties you can set the jsp files there



Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: Vikas Arora [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 2:20 AM
To: [EMAIL PROTECTED]
Subject: Can JSPs call an EJB


I am running my JSP on Weblogic 5.1.0
Can I call an EJB from my JSP page
If yes, How? or any ideas where can I find reference regarding these things.

TIA.

  _

Get your FREE download of MSN Explorer at http://explorer.msn.com
http://explorer.msn.com




===
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: Caching the records

2001-01-10 Thread Ramesh, Kesav

Hai,
you can pass the whole 90 into a vector. the browser will not get timed out.
coz in our previous project we used 200 per page.

you have to query only 10 records at a time and strore it in a vector then
you can show only them. you have to keep track of the strat and end row
number in any page. if you want i can provide you the code segment we used.

Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]

===
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 write info into a file using JSP?

2001-01-10 Thread Ramesh, Kesav

use java.io classes


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: Faxin Zhao [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 8:33 PM
To: [EMAIL PROTECTED]
Subject: How to write info into a file using JSP?


Hi,

I want to write some information into a text file using JSP,
e.g., write "name=sun.com"
 "address=www.sun.com"
into "c:\sendout\list.txt".
How can I do it in JSP?
Thanx in advance.

Faxin

===
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: Get/Post question

2001-01-10 Thread Ramesh, Kesav

alternatively you have pass these variables as hidden fields.


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: Dan Lopez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 10:05 PM
To: [EMAIL PROTECTED]
Subject: Get/Post question


For security reasons, I was trying to use "post" and
passing the values on to another page.  On the new
page it uses these values to submit a query.  That
works fine for the first display of the query.
However, when I hit [Next ] I get a SQL error
stating that the value "x" "y" and "z" (which are the
values I passed to this variable...) are NULL.  Would
using "get" eliviate this problem?

Thanks for the help.

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

===
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: URGENT - (How does sorting of mails work )

2001-01-10 Thread Ramesh, Kesav

store all the values as a file and open the file with line number reader
catch the start and end line always.


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: Jyoti Bongarala [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 11, 2001 2:39 AM
To: [EMAIL PROTECTED]
Subject: URGENT - (How does sorting of mails work )


Can somebody help me with the following :

I am retreiving about 2000- 4000 rows and populate the
CachedRowSet and display the rows the way mails in
Yahoo are displayed. Any column header can be clicked
to sort the rows by that column.

I am kind of confused as to how NEXT and PREVIOUS work
and then what is the sort algorithm and where should
the rows be saved if not CachedRowSet.

I would greatly appreciate if somebody helps me with
the above problem.

thanks,
Jyoti

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

===
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: Offtopic

2001-01-10 Thread Ramesh, Kesav

if you are using servlets then it can be done through
runtime.getRuntime.exec("any unix command");

you need to keep track that when you run the servlet the id will be root so
it has to have all the permissions for the directory in whihc you are
executing.


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: Arun Prakash [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 11, 2001 12:08 PM
To: [EMAIL PROTECTED]
Subject: Offtopic


Does anyone know a Tool that opens a Unix Files on Windows. I mean just
a tool that can explore all the files of unix  allow creating, chaging
 deleting files on Unix from Windows. Any help or URL will be very
helpful.

regards

G. Arun Prakash
Senior Software Engineer
BTlksmart(tm)
Level 7, 241 Commonwealth Street
Surry Hills
Sydney NSW 2010
Australia
office:   +61(0)2 9282 0200
office:   +61(0)2 9282 0213 (direct)
fax:   +61(0)2 9282 0222
email: [EMAIL PROTECTED]

===
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: QUERY ABOUT DB2 DATABASE

2001-01-08 Thread Ramesh, Kesav

this is what i heard from my friend..

yes there is ..ask ur friend to query on the system catlog...such as
sysibm.systables,sysibm.syskeys, sysibm.syscolumns...



Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: hotmail [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 09, 2001 10:10 AM
To: [EMAIL PROTECTED]
Subject: QUERY ABOUT DB2 DATABASE


HI ALL,
LIKE ORACLE IS THERE SOMETHIN ON DB2 DATABASE TO VIEW DESCRIPTN ABT ALL THE
TABLES AND DATABASES?
ANYBODY..
THX
MJ

- Original Message -
From: paul [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 05, 2001 7:09 PM
Subject: Re: JDBC for Oracle 7.3?


 Anthony,

 You need to make sure your  Oracle listener is running.  You also need
 to have  one of Oracle's JDBC driver  zip files in your  CLASSPATH ( I
 think the latest  is 'classes12.zip').  Other than that  you should be
 good to go.  If you have problems getting this going feel free to mail
 me  directly unless  you feel  it's something  the others  can benefit
 from.

 [EMAIL PROTECTED]

  After I created some tables with SQLPLUS, do I need to config anything
on
  the Oracle Server in order for Java JDBC to connnect and access the
data?
  For example, do I need to set anything in SQL*Net? I am using Oracle 7.3
 
  Anthony
 
  -Original Message-
  From: A mailing list about Java Server Pages specification and reference
  [mailto:[EMAIL PROTECTED]]On Behalf Of paul
  Sent: Friday, January 05, 2001 11:35 AM
  To: [EMAIL PROTECTED]
  Subject: Re: JDBC for Oracle 7.3?
 
 
  I'm using JDBC 2.0 and Oracle 7.3 with no problems at all.
 
 
   Is it possible to use JDBC with Oracle 7.3 or do I have to use
JDBC-ODBC ?
  
   Anthony
  
  
 
===
   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

===
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: init method in JSP

2001-01-04 Thread Ramesh, Kesav

you can use the additonal code here
PageContext.getConfig() will return the config object then you can use the
getInitParameter.


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: Fletcher, Joseph [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 3:58 AM
To: [EMAIL PROTECTED]
Subject: Re: init method in JSP


I've looked but can't find how to implement getInitParameter() from
jspInit().

I tried doing the following and got an error that the variable config is not
found:

%!
  public void jspInit()
  {
String value = (String)config.getInitParameter("whatever");
// more code...
  }
%

I'm assuming this error means the implicit config object is not created yet.

I saw something in the JspPage Interface,
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/jsp/JspPage.h
tml#jspInit(),
about using getServletConfig() but I haven't been able to get it to work.


Thanks.
-- Joe


-Original Message-
From: Rosario Samanez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 03, 2001 10:36 AM
To: [EMAIL PROTECTED]
Subject: Re: init method in JSP


yes

%
public void jspInit() {
//Source

}%




-Mensaje original-
De: Yesudason Paulraj [mailto:[EMAIL PROTECTED]]
Enviado el: miƩrcoles 3 de enero de 2001 19:52
Para: [EMAIL PROTECTED]
Asunto: init method in JSP


Dear all,
Can we implement init method ( as in servlet) in JSP ?
Thanks in advance.


Regards
Yesudason P

===
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: Maximum size of file uploads?

2001-01-02 Thread Ramesh, Kesav

hey we have a separate application using oreilly's class but care should be
taken that when you are uploading the files you are going to send  that uch
thru the req object. it works well for size 10 mb.see oreilly for much
details about this class

/**
 * A utility class to handle ttmultipart/form-data/tt requests,
 * the kind of requests that support file uploads.  This class can
 * receive arbitrarily large files (up to an artificial limit you can set),
 * and fairly efficiently too.
 * It cannot handle nested data (multipart content within multipart content)
 * or internationalized content (such as non Latin-1 filenames).
 * p
 * It's used like this:
 * blockquotepre
 * MultipartRequest multi = new MultipartRequest(req, ".");
 * nbsp;
 * out.println("Params:");
 * Enumeration params = multi.getParameterNames();
 * while (params.hasMoreElements()) {
 *   String name = (String)params.nextElement();
 *   String value = multi.getParameter(name);
 *   out.println(name + " = " + value);
 * }
 * out.println();
 * nbsp;
 * out.println("Files:");
 * Enumeration files = multi.getFileNames();
 * while (files.hasMoreElements()) {
 *   String name = (String)files.nextElement();
 *   String filename = multi.getFilesystemName(name);
 *   String type = multi.getContentType(name);
 *   File f = multi.getFile(name);
 *   out.println("name: " + name);
 *   out.println("filename: " + filename);
 *   out.println("type: " + type);
 *   if (f != null) {
 * out.println("f.toString(): " + f.toString());
 * out.println("f.getName(): " + f.getName());
 * out.println("f.exists(): " + f.exists());
 * out.println("f.length(): " + f.length());
 * out.println();
 *   }
 * }
 * /pre/blockquote
 *
 * A client can upload files using an HTML form with the following
structure.
 * Note that not all browsers support file uploads.
 * blockquotepre
 * lt;FORM ACTION="/servlet/Handler" METHOD=POST
 *  ENCTYPE="multipart/form-data"gt;
 * What is your name? lt;INPUT TYPE=TEXT NAME=submittergt; lt;BRgt;
 * Which file to upload? lt;INPUT TYPE=FILE NAME=filegt; lt;BRgt;
 * lt;INPUT TYPE=SUBMITGT;
 * lt;/FORMgt;
 * /pre/blockquote
 *
 */


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]



-Original Message-
From: Risto Reinpld [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 02, 2001 10:10 PM
To: [EMAIL PROTECTED]
Subject: Maximum size of file uploads?


Hi,

Does anybody know whether it is possible to limit maximum size of file
upload in Tomcat. At the moment, if I try to upload file larger than 1MB the
server gives me an error  "Cannot find server or DNS Error". On what this
size is dependent on?

Thanks,

Risto

===
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: The comparison between string and char.

2001-01-01 Thread Ramesh, Kesav

hey use the following code you wil get "yes"

%   BufferedReader in = new BufferedReader(
 new InputStreamReader(
  yc.getInputStream()));

 String inputLine;

if ( (inputLine.substring(0,1)).equals("1") ) {
   out.println("yes");
 }
else {
out.println("no");
}
%



since you are using == which will check for object reference obviously your
inputline is a string object that will be in some other memory location than
"1" which is also a string.
.equals is the correct method to check for value of a string

Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]

===
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