pie-chart and bar-charts in java

2002-05-22 Thread Kesav, Ramesh

Hi all,

 can anybody let me have source code for drawing pie-chart and bar-charts in
java.

Regards

Ramesh Kesavanarayanan
[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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Passing array parameters from one page to another

2002-05-22 Thread Kesav, Ramesh

you can use stringtokenizer

Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573

 -Original Message-
 From: [Vaishali S. Pandya] [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 22, 2002 11:18 AM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Passing array parameters from one page to another
 
 hay julia
 
 Have u find the solution?
 cause i didn't find any answer for ur que in the list
 pls forword me if any one u found as i am also facing the same.
 but as i know your url can not have more than 256 chars
 right?
 what to do it it became more lenghty?
 
 Vaishali
 Relience Ind Ltd
 Ahm'd
 
 
 
 Hi all!!
 I want to pass an undetermined number of names, for example, from one page
 to another.
 I guess the only way to do this is to add all the names in one string,
 separated by a special character, and
 then spliting the string at the target page.
 
 Any better ways??
 I'm try to doing this but
 String name = request.getParameter(name);
 String names[] = name.split(*);
 
 but I get an error saying this method is deprecated ??
 I have imported java.lang.*.
 
 Thanks in advance,
 
 Julia
 
 
 -
 Este correo electrónico y, en su caso, cualquier fichero anexo al mismo,
 contiene información de carácter confidencial exclusivamente dirigida a su
 destinatario o destinatarios. Queda prohibida su divulgación, copia o
 distribución a terceros sin la previa autorización escrita de Indra. En el
 caso de haber recibido este correo electrónico por error, se ruega
 notifíquese inmediatamente esta circunstancia mediante reenvío a la
 dirección electrónica del remitente.
 -
 The information in this e-mail and in any attachments is confidential and
 solely for the attention and use of the named addressee(s). You are hereby
 notified that any dissemination, distribution or copy of this
 communication
 is prohibited without the prior written consent of Indra. If you have
 received this communication in error, please, notify the sender by reply
 e-mail.
 -
 
 =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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



problems with include directive

2002-05-22 Thread Richter, Stefanie (Student Assistant)

hello,
can anybody help me.
I want to use the include directive with JSP in Tomcat 4.0.3. Therefore I
want to use the relative path.

For example if I use the relative path for: img
src=/examples/images/code.gif it works, but if I want to include:
%@ include file=/examples/jsp/include/foo.jsp %
I get the error file not found.
Does anybody hnow why and how I could solve this problem?

I am using Apache 1.3 and Tomcat 4.0.3.

Do I have to make an entry in Tomcats server.xml or web.xml so that the
relative paths are found?

Regards,
Steffi Richter

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: pie-chart and bar-charts in java

2002-05-22 Thread Adrian Janssen

http://www.object-refinery.com/jfreechart/index.html

 -Original Message-
 From: Kesav, Ramesh [SMTP:[EMAIL PROTECTED]]
 Sent: 22 May 2002 08:56
 To:   [EMAIL PROTECTED]
 Subject:  pie-chart and bar-charts in java

 Hi all,

  can anybody let me have source code for drawing pie-chart and bar-charts
 in
 java.

 Regards

 Ramesh Kesavanarayanan
 [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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

--
**
The Truworths e-mail facility may not be used for the distribution of
chain letters or offensive email.  Truworths hereby distances itself
from and accepts no liability for the unauthorised use of its e-mail
facility or the sending of e-mail communications for other than
strictly business purposes.  Truworths furthermore disclaims liability
for any unauthorised instruction for which permission was not granted.

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



java.io.IOException: Error: Attempt to clear a buffer that's alre ady been flushed

2002-05-22 Thread Kumar, Ranjith (GEP, Contractor)

Hi

I'm getting this error while trying to load a JSP.

java.io.IOException: Error: Attempt to clear a buffer that's already been
flushed

It is JSP 1.0
I've even tried page buffer attribute %@ page buffer = 5kb
autoFlush=false %

Pl give your suggestions to eliminate this

Thanks,
Ranjith

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: problems with include directive

2002-05-22 Thread Bhushan_Bhangale

Dear Stefanie,

Include file takes absolute path and not virtual path. The path you are giving is 
virtual which is used by webserver to show the content. But in case of include 
directives in jsp it is the job of jsp engine to resolve them and it uses absolute 
paths only.

-Original Message-
From: Richter, Stefanie (Student Assistant)
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:05 PM
To: [EMAIL PROTECTED]
Subject: problems with include directive


hello,
can anybody help me.
I want to use the include directive with JSP in Tomcat 4.0.3. Therefore I
want to use the relative path.

For example if I use the relative path for: img
src=/examples/images/code.gif it works, but if I want to include:
%@ include file=/examples/jsp/include/foo.jsp %
I get the error file not found.
Does anybody hnow why and how I could solve this problem?

I am using Apache 1.3 and Tomcat 4.0.3.

Do I have to make an entry in Tomcats server.xml or web.xml so that the
relative paths are found?

Regards,
Steffi Richter

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Passing array parameters from one page to another

2002-05-22 Thread [Vaishali S. Pandya]

i have a string in opennode and the deli is  #
see the syntex i wrote.

StringTokenizer ONs = new StringTokenizer(opennode,#);

can i get all the strings in ONs?
ONs will be an array or what?
can u explain some more pls.

Vaishali
Relience Ind Ltd
A'bad



you can use stringtokenizer

Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573

 -Original Message-
 From: [Vaishali S. Pandya] [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 22, 2002 11:18 AM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Passing array parameters from one page to another

 hay julia

 Have u find the solution?
 cause i didn't find any answer for ur que in the list
 pls forword me if any one u found as i am also facing the same.
 but as i know your url can not have more than 256 chars
 right?
 what to do it it became more lenghty?

 Vaishali
 Relience Ind Ltd
 Ahm'd



 Hi all!!
 I want to pass an undetermined number of names, for example, from one
page
 to another.
 I guess the only way to do this is to add all the names in one string,
 separated by a special character, and
 then spliting the string at the target page.

 Any better ways??
 I'm try to doing this but
 String name = request.getParameter(name);
 String names[] = name.split(*);

 but I get an error saying this method is deprecated ??
 I have imported java.lang.*.

 Thanks in advance,

 Julia


 -
 Este correo electrónico y, en su caso, cualquier fichero anexo al mismo,
 contiene información de carácter confidencial exclusivamente dirigida a
su
 destinatario o destinatarios. Queda prohibida su divulgación, copia o
 distribución a terceros sin la previa autorización escrita de Indra. En
el
 caso de haber recibido este correo electrónico por error, se ruega
 notifíquese inmediatamente esta circunstancia mediante reenvío a la
 dirección electrónica del remitente.
 -
 The information in this e-mail and in any attachments is confidential and
 solely for the attention and use of the named addressee(s). You are
hereby
 notified that any dissemination, distribution or copy of this
 communication
 is prohibited without the prior written consent of Indra. If you have
 received this communication in error, please, notify the sender by reply
 e-mail.
 -

 =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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Passing array parameters from one page to another

2002-05-22 Thread Bhushan_Bhangale

Why don't you read the API doc of StringTokenizer class?

-Original Message-
From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:28 PM
To: [EMAIL PROTECTED]
Subject: Re: Passing array parameters from one page to another


i have a string in opennode and the deli is  #
see the syntex i wrote.

StringTokenizer ONs = new StringTokenizer(opennode,#);

can i get all the strings in ONs?
ONs will be an array or what?
can u explain some more pls.

Vaishali
Relience Ind Ltd
A'bad



you can use stringtokenizer

Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573

 -Original Message-
 From: [Vaishali S. Pandya] [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 22, 2002 11:18 AM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Passing array parameters from one page to another

 hay julia

 Have u find the solution?
 cause i didn't find any answer for ur que in the list
 pls forword me if any one u found as i am also facing the same.
 but as i know your url can not have more than 256 chars
 right?
 what to do it it became more lenghty?

 Vaishali
 Relience Ind Ltd
 Ahm'd



 Hi all!!
 I want to pass an undetermined number of names, for example, from one
page
 to another.
 I guess the only way to do this is to add all the names in one string,
 separated by a special character, and
 then spliting the string at the target page.

 Any better ways??
 I'm try to doing this but
 String name = request.getParameter(name);
 String names[] = name.split(*);

 but I get an error saying this method is deprecated ??
 I have imported java.lang.*.

 Thanks in advance,

 Julia


 -
 Este correo electrónico y, en su caso, cualquier fichero anexo al mismo,
 contiene información de carácter confidencial exclusivamente dirigida a
su
 destinatario o destinatarios. Queda prohibida su divulgación, copia o
 distribución a terceros sin la previa autorización escrita de Indra. En
el
 caso de haber recibido este correo electrónico por error, se ruega
 notifíquese inmediatamente esta circunstancia mediante reenvío a la
 dirección electrónica del remitente.
 -
 The information in this e-mail and in any attachments is confidential and
 solely for the attention and use of the named addressee(s). You are
hereby
 notified that any dissemination, distribution or copy of this
 communication
 is prohibited without the prior written consent of Indra. If you have
 received this communication in error, please, notify the sender by reply
 e-mail.
 -

 =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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 

Re: problems with include directive

2002-05-22 Thread Richter, Stefanie (Student Assistant)

Thank you!

so if I have to set the absolute path how can I do it?
Do I have to modify the server.xml of tomcat or use the absolute path in JSP
include tag?

Because I tried to set the absolute path in the JSP tag and got the error:

org.apache.jasper.compiler.CompileException:
/home_user_test_absolute_path.jsp(23,5) File C:/Program Files/Apache Tomcat
4.0/webapps/docuinfo/heading_menue.jsp not found
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:782)

I guess I have to modify something, do I?

Thanks anyway.
Regards,
Steffi


-Original Message-
From: Bhushan_Bhangale [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 22. Mai 2002 10:03
To: [EMAIL PROTECTED]
Subject: Re: problems with include directive


Dear Stefanie,

Include file takes absolute path and not virtual path. The path you are
giving is virtual which is used by webserver to show the content. But in
case of include directives in jsp it is the job of jsp engine to resolve
them and it uses absolute paths only.

-Original Message-
From: Richter, Stefanie (Student Assistant)
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:05 PM
To: [EMAIL PROTECTED]
Subject: problems with include directive


hello,
can anybody help me.
I want to use the include directive with JSP in Tomcat 4.0.3. Therefore I
want to use the relative path.

For example if I use the relative path for: img
src=/examples/images/code.gif it works, but if I want to include:
%@ include file=/examples/jsp/include/foo.jsp %
I get the error file not found.
Does anybody hnow why and how I could solve this problem?

I am using Apache 1.3 and Tomcat 4.0.3.

Do I have to make an entry in Tomcats server.xml or web.xml so that the
relative paths are found?

Regards,
Steffi Richter

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: problems with include directive

2002-05-22 Thread Bhushan_Bhangale

No need to modify server.xml 
It should work fine.
Try ./filename or ../filename concept instead of starting from C:/


-Original Message-
From: Richter, Stefanie (Student Assistant)
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:54 PM
To: [EMAIL PROTECTED]
Subject: Re: problems with include directive


Thank you!

so if I have to set the absolute path how can I do it?
Do I have to modify the server.xml of tomcat or use the absolute path in JSP
include tag?

Because I tried to set the absolute path in the JSP tag and got the error:

org.apache.jasper.compiler.CompileException:
/home_user_test_absolute_path.jsp(23,5) File C:/Program Files/Apache Tomcat
4.0/webapps/docuinfo/heading_menue.jsp not found
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:782)

I guess I have to modify something, do I?

Thanks anyway.
Regards,
Steffi


-Original Message-
From: Bhushan_Bhangale [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 22. Mai 2002 10:03
To: [EMAIL PROTECTED]
Subject: Re: problems with include directive


Dear Stefanie,

Include file takes absolute path and not virtual path. The path you are
giving is virtual which is used by webserver to show the content. But in
case of include directives in jsp it is the job of jsp engine to resolve
them and it uses absolute paths only.

-Original Message-
From: Richter, Stefanie (Student Assistant)
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:05 PM
To: [EMAIL PROTECTED]
Subject: problems with include directive


hello,
can anybody help me.
I want to use the include directive with JSP in Tomcat 4.0.3. Therefore I
want to use the relative path.

For example if I use the relative path for: img
src=/examples/images/code.gif it works, but if I want to include:
%@ include file=/examples/jsp/include/foo.jsp %
I get the error file not found.
Does anybody hnow why and how I could solve this problem?

I am using Apache 1.3 and Tomcat 4.0.3.

Do I have to make an entry in Tomcats server.xml or web.xml so that the
relative paths are found?

Regards,
Steffi Richter

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



connection pooling in Tomcat 4

2002-05-22 Thread Manoj Nahar

i heave heard that connection pooling in built in Tomcat 4
Anyone tried connection pooling in Tomcat 4?

Manoj Nahar
http://www.naharonline.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



convert a String to Boolean

2002-05-22 Thread Carlos

i have in a jsp page this:
String state = request.getParameter(state);
state can be 1 or 0.
how can i convert this value to Boolean?
thanks

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



How to automatically accept all the cookies which server want to set to my computer

2002-05-22 Thread Cutty



I am writing a java apllication that post some data to an jsp page.
Can anybody give me some samples 
CookieModule.setCookiePolicyHandler(HTTPClient.CookiePolicyHandler)
It have tyied to use CookieModule.setCookiePolicyHandler(null),and the popup windows 
which ask me to accept setting cookies disappear but I could't get correct response 
from the program .


Thanks!

èº{.nÇ+‰·¦j)m¢X¬¶Ç«¾6¯j˧r‰°ŠØ[¡Ü¬Šè}òRƒSLZ+v(²ÙšŠ[h–+-±êڲéÜ¢l¶èw+´” 
ÔÄDD“
„I4¨™êޕëڞÑ@BÊ'%#ÿIêï•ëlq©Ûyú.Ö­†Ûiÿö«r¯zÈÚ½«.Êþ;)Š{^­ë-†Ù¥†ÛiÿøÚ½«.Êþšèvç-³øì§÷Úªf–m§ÿðì¥êڞÚ(®
   óþ;)þ;)}ª£²˜m¶ŸÿÃ#‚êîr‰¿}ª¿Šw^Æ;)†Ûiÿü0Â;)Š{uêÜ¢


Re: Passing array parameters from one page to another + drawing lines over a picture

2002-05-22 Thread Villén Pizarro, Julia

Ramesh,
thanks a lot, it's a lot more cleaner than spliting.

By the way, just fyi, if anyone remembers I asked for a solution for drawing lines on 
top of a picture. I got a few nice solutions from you with JSP an also css-based. 
Since I needed to paint a square my solution finaly was very simple. 

div style=position: relative
  img name=OverviewMap src='%=imagen_overview%' width=165 height=119
  TABLE id=square style=position: absolute; borderColor=red width=25 
height=25 border=2
  TR
TD/TD
  /TR
/TABLE
/div 

After this, with javascript I can change:
document.square.top
document.square.left
document.square.with
document.square.heith

So I can highlight a specific zone of the picture with a red square.

Sorry for not using JSP solution, but in this case css was easier.
Thanks for all the interesting options you suggested.

Bye

Julia



-Mensaje original-
De: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
Enviado el: miércoles, 22 de mayo de 2002 9:12
Para: [EMAIL PROTECTED]
Asunto: Re: Passing array parameters from one page to another


you can use stringtokenizer

Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573

 -Original Message-
 From: [Vaishali S. Pandya] [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 22, 2002 11:18 AM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Passing array parameters from one page to another
 
 hay julia
 
 Have u find the solution?
 cause i didn't find any answer for ur que in the list
 pls forword me if any one u found as i am also facing the same.
 but as i know your url can not have more than 256 chars
 right?
 what to do it it became more lenghty?
 
 Vaishali
 Relience Ind Ltd
 Ahm'd
 
 
 
 Hi all!!
 I want to pass an undetermined number of names, for example, from one page
 to another.
 I guess the only way to do this is to add all the names in one string,
 separated by a special character, and
 then spliting the string at the target page.
 
 Any better ways??
 I'm try to doing this but
 String name = request.getParameter(name);
 String names[] = name.split(*);
 
 but I get an error saying this method is deprecated ??
 I have imported java.lang.*.
 
 Thanks in advance,
 
 Julia
 
 
 -
 Este correo electrónico y, en su caso, cualquier fichero anexo al mismo,
 contiene información de carácter confidencial exclusivamente dirigida a su
 destinatario o destinatarios. Queda prohibida su divulgación, copia o
 distribución a terceros sin la previa autorización escrita de Indra. En el
 caso de haber recibido este correo electrónico por error, se ruega
 notifíquese inmediatamente esta circunstancia mediante reenvío a la
 dirección electrónica del remitente.
 -
 The information in this e-mail and in any attachments is confidential and
 solely for the attention and use of the named addressee(s). You are hereby
 notified that any dissemination, distribution or copy of this
 communication
 is prohibited without the prior written consent of Indra. If you have
 received this communication in error, please, notify the sender by reply
 e-mail.
 -
 
 =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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com


-
Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene 
información de carácter confidencial exclusivamente dirigida a su destinatario o 
destinatarios. Queda 

Re: convert a String to Boolean

2002-05-22 Thread Francisco Manuel Martínez Suárez

Intead of using 1 and 0, can you use 'true' and 'false'? . In the package
java.lang there is a class named Boolean which has two constructors. One of
them uses a String as argument and creates a Boolean with true value if the
given string  is 'true' (ignoring case). If the string is null or has any
other value it creates a false boolean variable.

See the java.lang.Boolean reference for more details on
http://java.sun.com/j2se/1.4/docs/api/java/lang/Boolean.html

Regards 

Fran


 -Mensaje original-
 De:   Carlos [SMTP:[EMAIL PROTECTED]]
 Enviado el:   miércoles 22 de mayo de 2002 9:39
 Para: [EMAIL PROTECTED]
 Asunto:   convert a String to Boolean
 
 i have in a jsp page this:
 String state = request.getParameter(state);
 state can be 1 or 0.
 how can i convert this value to Boolean?
 thanks
 
 ==
 =
 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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Passing array parameters from one page to another

2002-05-22 Thread [Vaishali S. Pandya]

YA i did
and got it
thanks a lot to all
ramesh, bhushan etc...

ThanX
Vaishali
Relience Ind Ltd
A'bad



Why don't you read the API doc of StringTokenizer class?

-Original Message-
From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:28 PM
To: [EMAIL PROTECTED]
Subject: Re: Passing array parameters from one page to another


i have a string in opennode and the deli is  #
see the syntex i wrote.

StringTokenizer ONs = new StringTokenizer(opennode,#);

can i get all the strings in ONs?
ONs will be an array or what?
can u explain some more pls.

Vaishali
Relience Ind Ltd
A'bad



you can use stringtokenizer

Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573

 -Original Message-
 From: [Vaishali S. Pandya] [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 22, 2002 11:18 AM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Passing array parameters from one page to another

 hay julia

 Have u find the solution?
 cause i didn't find any answer for ur que in the list
 pls forword me if any one u found as i am also facing the same.
 but as i know your url can not have more than 256 chars
 right?
 what to do it it became more lenghty?

 Vaishali
 Relience Ind Ltd
 Ahm'd



 Hi all!!
 I want to pass an undetermined number of names, for example, from one
page
 to another.
 I guess the only way to do this is to add all the names in one string,
 separated by a special character, and
 then spliting the string at the target page.

 Any better ways??
 I'm try to doing this but
 String name = request.getParameter(name);
 String names[] = name.split(*);

 but I get an error saying this method is deprecated ??
 I have imported java.lang.*.

 Thanks in advance,

 Julia


 -
 Este correo electrónico y, en su caso, cualquier fichero anexo al mismo,
 contiene información de carácter confidencial exclusivamente dirigida a
su
 destinatario o destinatarios. Queda prohibida su divulgación, copia o
 distribución a terceros sin la previa autorización escrita de Indra. En
el
 caso de haber recibido este correo electrónico por error, se ruega
 notifíquese inmediatamente esta circunstancia mediante reenvío a la
 dirección electrónica del remitente.
 -
 The information in this e-mail and in any attachments is confidential and
 solely for the attention and use of the named addressee(s). You are
hereby
 notified that any dissemination, distribution or copy of this
 communication
 is prohibited without the prior written consent of Indra. If you have
 received this communication in error, please, notify the sender by reply
 e-mail.
 -

 =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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 

Re: convert a String to Boolean

2002-05-22 Thread Kesav, Ramesh

boolean stateValue = new Boolean ( request.getParameter(state).toString()
).booleanValue()

Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573

 -Original Message-
 From: Carlos [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 22, 2002 2:09 PM
 To:   [EMAIL PROTECTED]
 Subject:  convert a String to Boolean

 i have in a jsp page this:
 String state = request.getParameter(state);
 state can be 1 or 0.
 how can i convert this value to Boolean?
 thanks

 ==
 =
 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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: how to pass an array?

2002-05-22 Thread Kesav, Ramesh

if it is a jsp then you can make them(array) as a hidden variable and in the
servlet you can get them

Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573

 -Original Message-
 From: Richard Yee [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 22, 2002 11:54 AM
 To:   [EMAIL PROTECTED]
 Subject:  Re: how to pass an array?

 Vaishali,
 The answer is that you don't pass an array in the URL. You put it in the
 user's session and then just get it from the session in the next page.

 Regards,

 Richard

 At 11:35 AM 5/22/2002 +0530, you wrote:
 as the prev que
 i want to pass more than one number of variable to next page
 how to pass an array in url?
 i mean i want to keep the parameter i have passes before and want to add
 one more everytime
 i think i can do it if i can pass an array
 but how?
 pls write me
 answers will be great help for me.
 
 Vaishali
 Relience Ind Ltd
 Ahm'd
 
 =
 ==
 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://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



java.io.IOException: Error: Attempt to clear a buffer that's already been flushed

2002-05-22 Thread Ranjith Kumar

Hi

java.io.IOException: Error: Attempt to clear a buffer that's already been
flushed

This is the error I get when I try to load a JSP page (iplanet web server)
Any ideas???

I've even tried to give %@ page buffer % attribute

%@ page buffer = 5KB autoFlush=true %

Send in ur comments

Thanks
Ranjith

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: java.io.IOException: Error: Attempt to clear a buffer that's already been flushed

2002-05-22 Thread Jose Andrés Pérez

What Tomcat version are you using?



 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Ranjith Kumar
 Sent: miércoles, 22 de mayo de 2002 12:37
 To: [EMAIL PROTECTED]
 Subject: java.io.IOException: Error: Attempt to clear a buffer that's
 already been flushed


 Hi

 java.io.IOException: Error: Attempt to clear a buffer that's already been
 flushed

 This is the error I get when I try to load a JSP page (iplanet web server)
 Any ideas???

 I've even tried to give %@ page buffer % attribute

 %@ page buffer = 5KB autoFlush=true %

 Send in ur comments

 Thanks
 Ranjith

 ==
 =
 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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: java.io.IOException: Error: Attempt to clear a buffer that's already been flushed

2002-05-22 Thread Ranjith Kumar

I'm using iPlanet web server (4.1). It uses Apache Jasper parser for JSP.
I was supposed to use Iplanet WS version 6.0. could this be the reason?


 -Original Message-
From:   A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]  On Behalf Of Jose Andrés Pérez
Sent:   Wednesday, May 22, 2002 6:13 PM
To: [EMAIL PROTECTED]
Subject:Re: java.io.IOException: Error: Attempt to clear a buffer that's
already been flushed

What Tomcat version are you using?



 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Ranjith Kumar
 Sent: miércoles, 22 de mayo de 2002 12:37
 To: [EMAIL PROTECTED]
 Subject: java.io.IOException: Error: Attempt to clear a buffer that's
 already been flushed


 Hi

 java.io.IOException: Error: Attempt to clear a buffer that's already been
 flushed

 This is the error I get when I try to load a JSP page (iplanet web server)
 Any ideas???

 I've even tried to give %@ page buffer % attribute

 %@ page buffer = 5KB autoFlush=true %

 Send in ur comments

 Thanks
 Ranjith

 ==
 =
 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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: how to use wasEmpt and rowCount of DBtaglib ??

2002-05-22 Thread sufi malak

Hi, thank you, I think maybe the way I am posting questions is not clear,
what I meant is to get the number sql:rowCount/ and put it in a variable,
so for example if there is a row I will update it, if not I will add it, the
way they are showing in there examples is only for display.

thanks


From: Richard Yee [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: how to use wasEmpt and rowCount of DBtaglib ??
Date: Tue, 21 May 2002 17:59:44 -0700

Sufi,

This was from the link I sent you:

wasEmpty and wasNotEmpty tags

The wasEmpty tag only executes its body if the last ResultSet tag
received 0 rows from the database. You must be after a resultSet tag, or an
error will be generated. The wasNotEmpty tag executes its body if the
last ResultSet received more than 0 rows from the database. See the Tag
Reference for examples.

rowCount tag

The rowCount tag prints out the number of rows retrieved from the
database. It can be used inside a ResultSet tag to provide a running count
of rows retreived, or after the ResultSet tag to display the total number.
See the Tag Reference for examples. Using the tag before the ResultSet will
produce an error.


wasEmpty  Availability: 1.0

Executes its body if the last ResultSet tag received 0 rows from the
database. You must be after a ResultSet tag, or an error will be generated.
Tag Body JSP
Restrictions

Use after a ResultSet tag.
Attributes None
Variables None
Examples




%-- showing the contents of the table --%
table
trthid/ththname/ththdescription/th/tr
sql:preparedStatement id=stmt6 conn=conn1 sql:query
select id, name, description from test_books
   /sql:query
sql:resultSet id=rset4
tr
tdsql:getColumn position=1//td
tdsql:getColumn position=2//td
tdsql:getColumn position=3 to=description//td
/tr
/sql:resultSet
tr
td colspan=3
%-- show different text, depending on whether or not
 any rows were retrieved --%
sql:wasEmptyNo rows retrieved./sql:wasEmpty
sql:wasNotEmptysql:rowCount/ rows retrieved./sql:wasNotEmpty
/td
/tr
/sql:preparedStatement

wasNotEmpty Availability: 1.0

Executes its body if the last ResultSet tag received more than 0 rows from
the database. You must be after a ResultSet tag, or an error will be
generated.
Tag Body JSP
Restrictions

Use after a ResultSet tag.
Attributes None
Variables None
Examples




%-- showing the contents of the table --%
table
trthid/ththname/ththdescription/th/tr
sql:preparedStatement id=stmt6 conn=conn1 sql:query
select id, name, description from test_books
   /sql:query
sql:resultSet id=rset4
tr
tdsql:getColumn position=1//td
tdsql:getColumn position=2//td
tdsql:getColumn position=3 to=description//td
/tr
/sql:resultSet
tr
td colspan=3
%-- show different text, depending on whether or not
 any rows were retrieved --%
sql:wasEmptyNo rows retrieved./sql:wasEmpty
sql:wasNotEmptysql:rowCount/ rows retrieved./sql:wasNotEmpty
/td
/tr
/sql:preparedStatement

rowCount Availability: 1.0

Prints out the number of rows retrieved from the database. It can be used
inside a ResultSet tag to provide a running count of rows retreived, or
after the ResultSet tag to display the total number. Using the tag before
the ResultSet will produce an error.
Tag Body empty
Restrictions

Use inside or after a ResultSet tag (not before).
Attributes None
Variables None
Examples




%-- showing the contents of the table --%
table
trthid/ththname/ththdescription/th/tr
sql:preparedStatement id=stmt6 conn=conn1 sql:query
select id, name, description from test_books
   /sql:query
sql:resultSet id=rset4
tr
tdsql:getColumn position=1//td
tdsql:getColumn position=2//td
tdsql:getColumn position=3 to=description//td
/tr
/sql:resultSet
tr
td colspan=3
%-- show different text, depending on whether or not
 any rows were retrieved --%
sql:wasEmptyNo rows retrieved./sql:wasEmpty
sql:wasNotEmptysql:rowCount/ rows retrieved./sql:wasNotEmpty
/td
/tr
/sql:preparedStatement


It shows how to use wasEmpty and rowCount if you look at the examples.

Regards,

Richard


At 12:54 AM 5/22/2002 +, you wrote:
Hi,
No that was for wasNull, what I am asking for is rowCount and wasEmpty.
thank you anyway.

===
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://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com




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

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: 

Re: java.io.IOException: Error: Attempt to clear a buffer that's already been flushed

2002-05-22 Thread Jose Andrés Pérez

 I'm using iPlanet web server (4.1). It uses Apache Jasper parser for JSP.
 I was supposed to use Iplanet WS version 6.0. could this be the reason?

I don´t know. I suffered this error, or something very close to it some
weeks ago. I worked with Tomcat 3.3.1 (JSP 1.1 and JServ 2.2) version. I my
case this error was dued to I was using diferent JServ jar file versions
during the compilation and during the execution.

May be you are doing the same. You are compiling with a JServ jar file
version and your iPlanet is ussing another one.


Jose Andrés Pérez

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



can we assign sql:rowCount/ to a variable ??

2002-05-22 Thread sufi malak

can we assign sql:rowCount/ of DBtag  to a variable ??
thanks



_
Send and receive Hotmail on your mobile device: http://mobile.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: convert a String to Boolean

2002-05-22 Thread Means, Garann R.

You can also use Boolean.getBoolean(request.getParameter(state)). I think
that way you avoid creating a Boolean instance (correct me if I'm wrong).

-Original Message-
From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
Sent: May 22, 2002 - Wednesday 2:56a
To: [EMAIL PROTECTED]
Subject: Re: convert a String to Boolean


boolean stateValue = new Boolean ( request.getParameter(state).toString()
).booleanValue()

Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573

 -Original Message-
 From: Carlos [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 22, 2002 2:09 PM
 To:   [EMAIL PROTECTED]
 Subject:  convert a String to Boolean

 i have in a jsp page this:
 String state = request.getParameter(state);
 state can be 1 or 0.
 how can i convert this value to Boolean?
 thanks

 ==
 =
 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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Session Objects: mixing JSPs and Servlets

2002-05-22 Thread Riz Khan

Hi All,

I have a silly question,  aren't we suppose to share the same session
object among JSPs and Servlets.  I'm trying to set the value of a session
variable in a JSP page.  Then I call a servlet off of that page.  Inside
servlet I dont get the session variable value.  I thought I should get the
value.  I'm pasting sample code for a JSP page and Servlet.  Can some one
please help me and tell me what is wrong,

JSP Code
[SetSession.jsp]
html
head
META name=GENERATOR content=IBM WebSphere Studio
/head
body
FORM ACTION=http://localhost:8080/servlet/GetSession;  METHOD=GET

%

session.setAttribute(username, Test User);
String username = (String)session.getAttribute(username);
%
Welcome , b%= username %/b!
p
Your session ID is % out.println( session.getId() ); %
p

INPUT type=submit name=submit value=Submit

/form

/body

/html

[Servlet Code]
[GetSession.java]
// Import Servlet Libraries
import javax.servlet.*;
import javax.servlet.http.*;

// Import Java Libraries
import java.io.*;
import java.util.*;


public class GetSession extends HttpServlet {

  public void doGet(HttpServletRequest req, HttpServletResponse res)
  throws ServletException, IOException {

res.setContentType(text/html);
PrintWriter out = res.getWriter();
StringBuffer buffer = new StringBuffer(1024);

// Set the header for the page
buffer.append(HTMLHEADTITLE);
buffer.append(Test App/TITLE);
buffer.append(/HEAD);

buffer.append(BODY);

HttpSession session = req.getSession(true);

String username = (String) session.getAttribute(username);

if (username==null) {
  buffer.append(h4Username is null/h4);
} else
{
  buffer.append(h4UserName is /h4 + username);
}
buffer.append(/BODY/HTML);
out.println(buffer.toString());
out.close();
  } // doGet

}

Thanks,

- Rizwan

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Email attachment without first uploading the file to the server?

2002-05-22 Thread Roland Dong

Ok, Andy.  This is the scenario:

User navigates to send.html page---user clicks 'browse' button to find the
file to be sentuser clicks 'send' button---the mail sends out the file
with email.

The problem with the jsp program I have right now is when user click 'send',
the file is uploaded to the server then sent out.  It will not be allowed
with our new clustered servers.

Yes, I am taking the route you mentioned in your message: sends the file
from client's machine as an email attachment.  Can you throw some light on
this?  Some websites? Or sample codes?

Thanks a lot,

Roland



On 5/21/02 9:39 PM, Andy Engle [EMAIL PROTECTED] wrote:

 On 5/21/02 10:15 AM, Roland Dong [EMAIL PROTECTED] wrote:

 I am writing a jsp program in which user can send email attachment.  Since
 users are not allowed to upload file from their local machine to the server.
 Is there a way to write a jsp program which can send out the email
 attachment WITHOUT first uploading the file to the sever?  It is urgent ,
 please help.

 Maybe I am missing something, but I'd say it's technically impossible to
 send a file from a server that doesn't have that file.  Of course you can
 send the file from the client's machine as an e-mail attachment, but the
 user would have to specifically attach the file to the e-mail message, and
 that would of course bypass the whole process of even using the web in the
 first place.  I'd say take that route -- how difficult can it be?

 To send a file from the web server without that file existing on the server,
 you would need to incorporate some sort of mindreading-like software, which
 I have never seen or heard of being successfully implemented.


 Regards,
 Andy

 ===
 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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Email attachment without first uploading the file to the server?

2002-05-22 Thread Roland Dong

Richard,

Thank you so much!  I will do that.

Roland

On 5/22/02 12:09 AM, Richard Yee [EMAIL PROTECTED] wrote:

 Roland,
 Search the Servlet-Interest archives for messages having the subject of:
 Sevlet Upload Question
  and
 Re: Sevlet Upload Question

 There was a discussion about changing Jason Hunter's file upload code so
 that it generated a unique filename for the upload file or it stored the
 file in memory rather than writing it to disk in order to write the file
 into a DB.
 You might want to contact Jeff Schnitzer, the originator of the thread, to
 see what he ended up with.

 Regards,

 Richard


 At 10Delivered-To: [EMAIL PROTECTED]
 X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
 X-Accept-Language: en
 Date: Wed, 1 May 2002 00:09:59 -0700
 Reply-To: A mailing list for discussion about Sun Microsystem's Java
 Servlet API Technology. [EMAIL PROTECTED]
 Sender: A mailing list for discussion about Sun Microsystem's Java Servlet
 API Technology. [EMAIL PROTECTED]
 From: Jason Hunter [EMAIL PROTECTED]
 Subject: Re: Sevlet Upload Question
 To: [EMAIL PROTECTED]

 OK, you've convinced me. I'm working on a version of the COS library
 that will support pluggable file renaming/moving logic.
 -jh-
 Jeff Schnitzer wrote:

 Hey, cool, thanks for chiming in :-)

 From: Jason Hunter [mailto:[EMAIL PROTECTED]]

 Is it really a deficiency in the com.oreilly.servlet code?

 I think my use case is probably pretty typical: A website that allows
 people to upload images and share them with others. Because of the way
 digital cameras automatically name images, the probability that two
 people will simultaneously upload two different files with the same name
 is high.

 Thus my uploaders need to work in isolated environments; filenames need
 to be pretty much irrelevant.

 If you want some other front end,
 providing things like overwrite handling or saving different files to
 another location, you can write another front end basing on the MR
 code. I see that's what you did; you wrote a front end to read the
 files into memory and avoid the filesystem.

 Yup :-) It would have been nicer if I could have extended the
 MultipartWrapper/MultipartRequest to override the behavior I needed,
 though.

 But to be honest, I'm going to need to be convinced it's necessary.
 I've let MR write the files to a temp directory and then let the web
 app
 move them to the appropriate golden location. The web app can
 enforce
 the business logic on how it want to deal with conflicts (like newer
 file wins or original file wins or file gets renamed or whatever).
 That
 also saves you from ever having partial uploads in the golden
 location. A file move on the same filesystem is an extremely fast
 operation compared to the upload, so no slowdown. It also solves the
 problem where you need to change the location based on a parameter,
 since there's no guarantee the parameter will come before the files in
 the upload stream.

 The problem is not for collisions after uploads, but during the upload
 process. Ideally, each file would be written to a unique temporary
 filename until the upload is complete.

 I was lazy, and I could get away with it, so I just persisted my uploads
 in memory. Temporary files would be better.

 BTW, thanks for the code (and the book)!

 Jeff Schnitzer
 [EMAIL PROTECTED]

 :15 AM 5/21/2002 -0500, you wrote:
 Hi,

 I am writing a jsp program in which user can send email attachment.  Since
 users are not allowed to upload file from their local machine to the server.
 Is there a way to write a jsp program which can send out the email
 attachment WITHOUT first uploading the file to the sever?  It is urgent ,
 please help.

 Roland

 ===
 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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 

Help

2002-05-22 Thread Sajag Patel

Hi,
  I was wondering if anyone had any examples or ideas as to how I can
upload/download files to a file server that didn't exist on the same box as
the application server.

 When I try uploading the file using the absolute path it trys to upload it
to the appserver location. Any help would be greatly appreciated.

Sajag Patel
[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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Help

2002-05-22 Thread Richard Yee

Why don't you prepend an absolute path to the file before you write it?
What package are you using for the file upload? You should be able to mount
the directory of the file server on your server box and write to it just as
if it was on the server.

Regards,

Richard

At 03:33 PM 5/22/2002 -0400, you wrote:
Hi,
   I was wondering if anyone had any examples or ideas as to how I can
upload/download files to a file server that didn't exist on the same box as
the application server.

  When I try uploading the file using the absolute path it trys to upload it
to the appserver location. Any help would be greatly appreciated.

Sajag Patel
[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://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Save the Doc on Server

2002-05-22 Thread John Vanderbrook

Hi Pete,

Do you know of any good tools to do that? I've been trying to do it for months. Word 
itself lets you save a document in HTML, but it's not possible to split it up in 
pieces and have a TOC in a separate frame for example. A tool that creates an XML 
without loosing any information (I have some pretty complicated documents) would be 
nice too.

Thanks
John

- Original Message -
From: Pete Freitag [EMAIL PROTECTED]
Date: Fri, 17 May 2002 14:07:35 -0400
To: [EMAIL PROTECTED]
Subject:  Re: Save the Doc on Server


 If you can convert the Word Document to HTML (you can find tools to do this)
 then you can use ActivEdit to edit the HTML content:
 http://www.cfdev.com/activedit/

 -pete

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Chan Mal
 Sent: Friday, May 17, 2002 8:40 AM
 To: [EMAIL PROTECTED]
 Subject: Save the Doc on Server


 In my web application.. frontend JSP  User needs to
 edit word document on browser  which is residing in
 Server and has to save the document in Server it self
 that means at same URL(not on Local PC)...

  Is there any mechanism for this to handle either
 Server side or client side


 if you people know any thing on this please let me
 know.




 --- Luca Ventura [EMAIL PROTECTED] wrote:
  Ok,
  thanks a lot!!
 
   Luca
 
  -Messaggio originale-
  Da: A mailing list about Java Server Pages
  specification and reference
  [mailto:[EMAIL PROTECTED]]Per conto di John
  Vanderbrook
  Inviato: venerdl 17 maggio 2002 12.10
  A: [EMAIL PROTECTED]
  Oggetto: Re: R: Page by page iterator
 
 
  Use TICL (http://www.kobrix.com), you can define
  different styles for your
  paged tableview displays.
  John
  - Original Message -
  From: Luca Ventura [EMAIL PROTECTED]
  Date: Fri, 17 May 2002 09:39:09 +0200
  To: [EMAIL PROTECTED]
  Subject:  R: Page by page iterator
 
 
   Thank you!
  
   But can I change the layout of every page? I
  mean...I don't want the same
   layout of Google or Altavista: I want to be able
  to define my own layout
  ,my
   bottons and so on...is it possible?
  
   Thanks a lot in advance!
  
Luca
  
  
   -Messaggio originale-
   Da: A mailing list about Java Server Pages
  specification and reference
   [mailto:[EMAIL PROTECTED]]Per conto di
  Vikramjit Singh
   Inviato: venerdl 17 maggio 2002 8.36
   A: [EMAIL PROTECTED]
   Oggetto: Re: Page by page iterator
  
  
   u can find what u r looking for over here
  
   http://jsptags.com/tags/navigation/pager/
  
   Regards,
   Vikramjit Singh,
   Systems Engineer,
   GTL Ltd.
   Ph. 7612929-1031
  
  
   -Original Message-
   From: Luca Ventura [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, May 16, 2002 11:38 PM
   To: [EMAIL PROTECTED]
   Subject: Page by page iterator
  
  
   Hello!
  
   Where can I find some code example (or at least
  hints and suggestions) to
   implement a page by page iterator in JSP and show
  many results using more
   pages, like many search engines (eg Altavista,
  Jahoo, and so on) do?
   Anyway for every page I would like to be able to
  use my own layout to show
   results.
  
   Thanks a lot in advance!
  
  Luca
  
  
 
 ===
   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://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
  
 
  --
  ___
  Sign-up for your own FREE Personalized E-mail at
  Mail.com
  

PROBLEM IN REQUESTDISPATCHER

2002-05-22 Thread Vikramjit Singh

HI,

i am trying to send the request object from my servlet to the jsp page

RequestDispatcher dispatcher =
context.getRequestDispatcher(../../TOPS/RA_Skill_J2.jsp);
dispatcher.forward(request, response);

but i am getting nullpointerexception in dispatcher.forward();

cud anybody thow some light.

Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Passing array parameters from one page to another

2002-05-22 Thread Biji Harees

You can use a Java Bean class and make its scopr as session to pass values

Biji Harees
Amsoft India Ltd
Bangalore

-Original Message-
From:   [Vaishali S. Pandya] [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, May 22, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject:Re: Passing array parameters from one page to another

hay julia

Have u find the solution?
cause i didn't find any answer for ur que in the list
pls forword me if any one u found as i am also facing the same.
but as i know your url can not have more than 256 chars
right?
what to do it it became more lenghty?

Vaishali
Relience Ind Ltd
Ahm'd



Hi all!!
I want to pass an undetermined number of names, for example, from one page
to another.
I guess the only way to do this is to add all the names in one string,
separated by a special character, and
then spliting the string at the target page.

Any better ways??
I'm try to doing this but
String name = request.getParameter(name);
String names[] = name.split(*);

but I get an error saying this method is deprecated ??
I have imported java.lang.*.

Thanks in advance,

Julia


-
Este correo electronico y, en su caso, cualquier fichero anexo al mismo,
contiene informacion de caracter confidencial exclusivamente dirigida a su
destinatario o destinatarios. Queda prohibida su divulgacion, copia o
distribucion a terceros sin la previa autorizacion escrita de Indra. En el
caso de haber recibido este correo electronico por error, se ruega
notifiquese inmediatamente esta circunstancia mediante reenvio a la
direccion electronica del remitente.
-
The information in this e-mail and in any attachments is confidential and
solely for the attention and use of the named addressee(s). You are hereby
notified that any dissemination, distribution or copy of this communication
is prohibited without the prior written consent of Indra. If you have
received this communication in error, please, notify the sender by reply
e-mail.
-

=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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com