Re: request.getParameter

2000-08-30 Thread Artem Babenko

Hi
You have mistaken in some other place.
Anyway
try
{
if(null==request.getParameter("B"))
{
Do_if_null();
}
else
{
Do_if_not_null();
}
}
catch(nullPointerException e)
{
Do_if_null();
}
Artem

Hi,
i am passing two values, A and B in the url as querystrings, when going
from one page to another.
   So to retrieve the values i simply do request.getParameter("A") and
simillarly for B. When the first time i load the page i dont want to pass
the value for B.
   What should i write in my code to check for the null value of B. I tried
doing request.getParameter("B")==null, but still while running i got a
nullPointerException.
   how should i check for a null value of request.getParameter()

thanks.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

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

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

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

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



Re: dynamic includes

2000-08-30 Thread Artem Babenko

Hi

Try this.

 Includes a static file or sends a request
to a dynamic file.
|
[  ]+
 }

or

RequestDispatcher dis = application.getRequestDispatcher(fwd);
dis.forward(request,response);



Hi,
  I want some help regarding the <%@include file="blah.jsp"%> directive.
instead of writting the filename statically i have to write it dynamically.
say : the filename will be stored in some jsp variable 'x' then i would
like to do something like <%@include file='jsp variable x'%>
can anyone help me out doing this.is it possible.

please help.
thanks.

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

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

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

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

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



Re: Jsp and asp on the IIS?

2000-08-31 Thread Artem Babenko

Hi

Of corse you can

I have downloaded this from apache.org

isapi_redirect.dll   --- maybe this will help you to install tomcat at the
IIS
jni_connect.dll
nsapi_redirect.dll


tomcat does not install into IIS.  There are other ways of having to servers
on same machine, though, such as assigning a different port (:8080 for
example) to one of the servers and leaving the other on port 80.  That is
only one way of doing it, there are many other, but they would run
separately.

Jorge Barrera
Coral Reef Technologies, Inc.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Erwan TROEL
Sent: Thursday, August 31, 2000 6:20 AM
To: [EMAIL PROTECTED]
Subject: Jsp and asp on the IIS?


Thanks for your answer.
Is It possible to use jsp and asp on the same server : IIS by adding tomcat?

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

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

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

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

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

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



Re: slow memory allocation problem

2000-08-31 Thread Artem Babenko

Hi

Jim is right.
Garbage Collection is not simple procedure.
You have to use gc with stl in C++ then you receive the same performance.
JIT technologies are very young.
In the nearest future JIT&dymamic compilation will work faster than a static
compilation.
There is already dynamic interpreter&compiler of HP-UX on HP which
accelerate it.


My point wasn't that Java will slow down--it will because eventually the
garbage collector is going to have to do some real work, though the newer
incremental GC techniques should make this average out better. My point was
that the C++ example given isn't realistic nor in any way equivalent to what
the Java is doing. The C++ example never allocates more than one memory
object at time. This just isn't realistic. Allocating and then immediately
deallocating a single memory object doesn't stress the alloc() subsystem at
all. It is the easiest possible scenerio.

-Original Message-
From: Nestel, Frank [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 31, 2000 5:01 AM
To: [EMAIL PROTECTED]
Subject: AW: slow memory allocation problem


Well, I think the example actually shows a slight defect in the
Java allocation mechanism. Though this is probably language
immanent. But the example is fairly extreme and I get the
first few thousand allocations quite fast, so the question is
if such situations regularly occur in "real" programs. IMHO java
performance is often underrated. In most cases the performance
of the programmers is more crucial than the one of the programming
language and in that point Java seems to be superior. There are
of course situations where one needs every bit of performance
and then one would probably avoid Java.

> -Ursprüngliche Nachricht-
> Von: Jim Bailey [mailto:[EMAIL PROTECTED]]
> Gesendet am: Mittwoch, 30. August 2000 17:17
> An: [EMAIL PROTECTED]
> Betreff: Re: slow memory allocation problem
>
> The performance difference is probably based simply on the
> fact that the
> Java example has to do run-time garbage collection and the C++ version
> doesn't have to do any memory management in your example.
> Try allocating a
> large number of heap items from C++ before deleting them.
> Right now you are
> being overly nice to the heap allocation with C++ because you
> never allocate
> more than one heap object at a time. There is no chance that
> you will get
> close to filling up the heap or cause any sort of slowdown
> with your C++
> example.
>
> With Java you are constantly filling the run-time heap and
> then relying on
> garbage collection to clean up after you. Your C++ code is in no way
> equivalent to the Java code. In fact, in comparison to the
> real world, your
> C++ code is pretty useless. No one uses a heap that way in
> the real world.
>
>
> -Original Message-
> From: skeptical [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 30, 2000 6:31 AM
> To: [EMAIL PROTECTED]
> Subject: slow memory allocation problem
>
>
> guys:
>
> i am doing a benchmark on java memory management. i wrote an
> app to allocate
> and free memory from 1 to 300k bytes. it runs forever. i
> notice it takes
> longer to allocate additional memory as time goes on. the
> same app only
> takes 9 seconds on C++. here's the code listing. can anyone
> pls help out?
>
> tks,
> peter
>
> ===JAVA CODE LISTING ===
> public class Class1
> {
>  private static final int NUM_MAX_BYTES = 30;
>
>  public static void main (String[] args)
>  {
>   int i;
>   long t1;
>
>   t1 = System.currentTimeMillis();
>
>   System.err.print("memory alloc/free 1 - "+NUM_MAX_BYTES+" bytes. ");
>   for (i = 0; i < NUM_MAX_BYTES; i++)
>   {
>byte[] p;
>p = new byte[i];
>if (i % 1000 == 0)
>{
> // Runtime rt = Runtime.getRuntime();
> // rt.gc();
> System.err.println("current: "+i);
>}
>   }
>
>   System.err.println("time taken: %d "+
> (System.currentTimeMillis()-t1) +
> "ms");
>
>  }
> }
>
>
> === C++ CODE LISTING =
>
> #include "stdafx.h"
> #include 
> #include 
>
> #define NUM_MAX_BYTES 30
>
> int main(int argc, char* argv[])
> {
>  int i;
>  DWORD t1;
>  t1 = GetTickCount();
>
>  BYTE * p;
>  printf("memory alloc/free 1 - %d bytes. ", NUM_MAX_BYTES);
>  for (i = 0; i < NUM_MAX_BYTES; i++)
>  {
>   p = new BYTE[i];
>   delete p;
>  }
>  printf("time taken: %d ms\n",GetTickCount()-t1);
>
>  return 0;
> }

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

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

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

 http://java.sun.c

Re: Jsp and asp on the IIS?

2000-09-01 Thread Artem Babenko

Hi

First you have to get one for a IIS (isapi_redirect.dll or another I am not
sure)
and read documentation at the apache.org how to install it.
It works as IIS extension.
And tomcat could work as a standalone web server or jsp extension  for other
server.
Also you have to make some changes in tomcat conf files.

re

Artem


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Erwan TROEL
Sent: Friday, September 01, 2000 11:19 AM
To: [EMAIL PROTECTED]
Subject: Re: Jsp and asp on the IIS?


How can i nstall these 3 dll or where do i have to place them?

-Message d'origine-
De : Artem Babenko [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 31 août 2000 18:18
À : [EMAIL PROTECTED]
Objet : Re: Jsp and asp on the IIS?


Hi

Of corse you can

I have downloaded this from apache.org

isapi_redirect.dll   --- maybe this will help you to install tomcat at the
IIS
jni_connect.dll
nsapi_redirect.dll


tomcat does not install into IIS.  There are other ways of having to servers
on same machine, though, such as assigning a different port (:8080 for
example) to one of the servers and leaving the other on port 80.  That is
only one way of doing it, there are many other, but they would run
separately.

Jorge Barrera
Coral Reef Technologies, Inc.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Erwan TROEL
Sent: Thursday, August 31, 2000 6:20 AM
To: [EMAIL PROTECTED]
Subject: Jsp and asp on the IIS?


Thanks for your answer.
Is It possible to use jsp and asp on the same server : IIS by adding tomcat?

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

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

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

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

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

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

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

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

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

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



Re: Jsp and asp on the IIS?

2000-09-02 Thread Artem Babenko

Hi

This .dll works like IIS extention and it connects IIS to tomcat throw there
protocol (ajpv12) above TCP IP.
U should also to run tomcat in your network.
Then U should cofig your servers.
Visit www.apache.org. U could find there everything U want.

Cheers,

Artem



-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Muliawan Sjarif
Sent: Friday, September 01, 2000 8:00 PM
To: [EMAIL PROTECTED]
Subject: Re: Jsp and asp on the IIS?


>From my understanding, this isapi_redirect.dll act like an JSP engine for
IIS, is that correct?
And then how bout the Servlet engine, is Tomcat also have the Servlet engine
for IIS?
If Tomcat has, can it fully support for production? I mean can support
unlimited concurent request.

Muliawan

- Original Message -
From: "Artem Babenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 01, 2000 12:18 AM
Subject: Re: Jsp and asp on the IIS?


> Hi
>
> Of corse you can
>
> I have downloaded this from apache.org
>
> isapi_redirect.dll   --- maybe this will help you to install tomcat at the
> IIS
> jni_connect.dll
> nsapi_redirect.dll
>
>
> tomcat does not install into IIS.  There are other ways of having to
servers
> on same machine, though, such as assigning a different port (:8080 for
> example) to one of the servers and leaving the other on port 80.  That is
> only one way of doing it, there are many other, but they would run
> separately.
>
> Jorge Barrera
> Coral Reef Technologies, Inc.
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Erwan TROEL
> Sent: Thursday, August 31, 2000 6:20 AM
> To: [EMAIL PROTECTED]
> Subject: Jsp and asp on the IIS?
>
>
> Thanks for your answer.
> Is It possible to use jsp and asp on the same server : IIS by adding
tomcat?
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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

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

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



Re: Jsp and asp on the IIS?

2000-09-02 Thread Artem Babenko

Hi,

Tomcat supports servlets also,
Of corse tomcat has its limitations.
As anyone other.
That is why thread pool is implemented.
It is recomended to set thread pool for 300 threads.
It depends of hardware also.
In that way U could server 300 concurrent request in time.
Visit apache.org.

Artem

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Muliawan Sjarif
Sent: Saturday, September 02, 2000 7:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Jsp and asp on the IIS?


Hi,
Thanks for your explanation.
But, how about my other question?
 And then how bout the Servlet engine, is Tomcat also have the Servlet
engine
 for IIS?
 If Tomcat has, can it fully support for production? I mean can support
 unlimited concurent request.

Regards,
Muliawan

- Original Message -
From: "Artem Babenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 02, 2000 1:50 PM
Subject: Re: Jsp and asp on the IIS?


> Hi
>
> This .dll works like IIS extention and it connects IIS to tomcat throw
there
> protocol (ajpv12) above TCP IP.
> U should also to run tomcat in your network.
> Then U should cofig your servers.
> Visit www.apache.org. U could find there everything U want.
>
> Cheers,
>
> Artem
>
>
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Muliawan Sjarif
> Sent: Friday, September 01, 2000 8:00 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Jsp and asp on the IIS?
>
>
> >From my understanding, this isapi_redirect.dll act like an JSP engine for
> IIS, is that correct?
> And then how bout the Servlet engine, is Tomcat also have the Servlet
engine
> for IIS?
> If Tomcat has, can it fully support for production? I mean can support
> unlimited concurent request.
>
> Muliawan
>
> - Original Message -
> From: "Artem Babenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 01, 2000 12:18 AM
> Subject: Re: Jsp and asp on the IIS?
>
>
> > Hi
> >
> > Of corse you can
> >
> > I have downloaded this from apache.org
> >
> > isapi_redirect.dll   --- maybe this will help you to install tomcat at
the
> > IIS
> > jni_connect.dll
> > nsapi_redirect.dll
> >
> >
> > tomcat does not install into IIS.  There are other ways of having to
> servers
> > on same machine, though, such as assigning a different port (:8080 for
> > example) to one of the servers and leaving the other on port 80.  That
is
> > only one way of doing it, there are many other, but they would run
> > separately.
> >
> > Jorge Barrera
> > Coral Reef Technologies, Inc.
> >
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Erwan TROEL
> > Sent: Thursday, August 31, 2000 6:20 AM
> > To: [EMAIL PROTECTED]
> > Subject: Jsp and asp on the IIS?
> >
> >
> > Thanks for your answer.
> > Is It possible to use jsp and asp on the same server : IIS by adding
> tomcat?
> >
> >
>
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
>
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
>
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
=

Re: read an excel file

2000-09-03 Thread Artem Babenko

H!

You have to install excel with odbc drive
Then you have to create DSN for your table
then using jdbc odbc bridge connect to table and read your data

bye


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of sridhar r
Sent: Sunday, September 03, 2000 5:08 PM
To: [EMAIL PROTECTED]
Subject: read an excel file


Hi
Can anyone help me in how to read an excel file.I have
to get data in each cell which i have to update in the
database.

thanks in advance

__
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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

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

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

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



Re: read an excel file

2000-09-03 Thread Artem Babenko

Hi Dave,

Are they not using odbc bridge &/or free?
I am looking for open source parser for excel file format.

Re

Artem

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Bolt, Dave
Sent: Sunday, September 03, 2000 9:05 PM
To: [EMAIL PROTECTED]
Subject: Re: read an excel file


Another approach would be to use one of the Java components that knows how
to read Excel documents.
You might look at Formula One and or OutsideIn from Inso (OutsideIn was
bundled as part of Oracle's
InterMedia product).

These might provide an option other than JDBC.

Dave Bolt
ATSC/SPAWAR ASAT Team
Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just
none for you.


-Original Message-----
From: Artem Babenko [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 03, 2000 10:58 AM
To: [EMAIL PROTECTED]
Subject: Re: read an excel file


H!

You have to install excel with odbc drive
Then you have to create DSN for your table
then using jdbc odbc bridge connect to table and read your data

bye


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of sridhar r
Sent: Sunday, September 03, 2000 5:08 PM
To: [EMAIL PROTECTED]
Subject: read an excel file


Hi
Can anyone help me in how to read an excel file.I have
to get data in each cell which i have to update in the
database.

thanks in advance

__
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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

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

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

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

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

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

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

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



Re: Invoking Popup Window in Virtual Site

2000-09-08 Thread Artem Babenko

I think you should use JavaScript.
To show popup you need a additional request from the client.
There are two ways to receive this additional request.
First user should click every time somewhere when you want to get a popup.
(does not suit)
Or JavaScript will do it automatically.


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Sushil Singh
Sent: Friday, September 08, 2000 9:10 PM
To: [EMAIL PROTECTED]
Subject: Invoking Popup Window in Virtual Site


Hi:

I am working on a project which requires B2B integration of two site.
This integration is done by third party. We have to handle the "Add to
Shopping Bag" module.

1.User will come to site1 and then he requests for a product which
is avaialble in site2. Since these two sites are having B2B relation,
user can navigate to site2. But the top and botton navigation bar will
be from site1, this will be a virtual site of Site1 and Site2.
2.   On pressing "Add to bag" on virtual site, that particular item
should be added into Site1 "Shopping cart". That means its calling our
program in site1 which will add that product into out cart and after
that it will redirect to the site2 and displays the same page. But
additionally we have to display a popup window showing that "This item
has been added to Site1 bag", or "This item is not available".
Here Site1:  Primary Vendor
Site2:  Secondary Vendor

Following is the Sample Code which simulate the above flow:


=

Program1: This program is on Site2 which displays a simple page, on
pressing submit button, it transfers control to another jsp on Site.




Testing URL Redirection

   Press the submit button to perform url redirection







=

Program2: This program is on Site1 which add a product into shopping
cart and then transfer back to Program1 and displays a popup window
showing that "Item is added into cart".
<%@ import="java.io.*,javax.servlet.*,javax.servlet.http.*" %>


<%
   // Declaring local varialbles
   String redUrl = "";
   // Set content type and other response header fields first
   response.setContentType("text/HTML");
   // Redirecting URL
   redUrl = (String) request.getParameter("redUrl");
   // Popup Window
   out.println("");
   out.println("");
out.println("window.open('http://localhost/UrlRed.html','UrlRed','left=40,to
p=40,width=640,height=450,toolbar=no,status=no,scrollbars=yes,resizable=yes'
)");

   out.println("");
   out.println("");
   // Redirecting
   response.sendRedirect("/UrlRed1.jsp?bagFlag=Y");
%>



=

Program3: This is an HTML which displays contains the text for popup
window.


Item has been added to Site1 bag



If I execute the above program, its sucessfully passing control back to
site2 but unable to display the popup window. I will appreciate if
anybody can help me on this.

Thanks in advance.

Sushil

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

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

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

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



Re: Invoking Popup Window in Virtual Site

2000-09-08 Thread Artem Babenko

Why do you use such url http://localhost/UrlRed.html
change localhost to site1ie http:/site1/UrlRed.html



>out.println("");
>
out.println("window.open('<A  HREF="http://localhost/UrlRed.html">http://localhost/UrlRed.html</A>','UrlRed','left=40,to
>
p=40,width=640,height=450,toolbar=no,status=no,scrollbars=yes,resizable=yes'
> )");



-Original Message-
From: A mailing list about Java Server Pages specification and reference
[<A  HREF="mailto:[EMAIL PROTECTED]]On">mailto:[EMAIL PROTECTED]]On</A> Behalf Of Sushil Singh
Sent: Friday, September 08, 2000 10:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Invoking Popup Window in Virtual Site


Thanks for your reply.

If you see program2 which is using Javascript to display the popup page and
after
that url redirection is there, but the problem is that its not displaying
the popup
window and sucessfully redirect to site2.



Artem Babenko wrote:

> I think you should use JavaScript.
> To show popup you need a additional request from the client.
> There are two ways to receive this additional request.
> First user should click every time somewhere when you want to get a popup.
> (does not suit)
> Or JavaScript will do it automatically.
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [<A  HREF="mailto:[EMAIL PROTECTED]]On">mailto:[EMAIL PROTECTED]]On</A> Behalf Of Sushil Singh
> Sent: Friday, September 08, 2000 9:10 PM
> To: [EMAIL PROTECTED]
> Subject: Invoking Popup Window in Virtual Site
>
> Hi:
>
> I am working on a project which requires B2B integration of two site.
> This integration is done by third party. We have to handle the "Add to
> Shopping Bag" module.
>
> 1.User will come to site1 and then he requests for a product which
> is avaialble in site2. Since these two sites are having B2B relation,
> user can navigate to site2. But the top and botton navigation bar will
> be from site1, this will be a virtual site of Site1 and Site2.
> 2.   On pressing "Add to bag" on virtual site, that particular item
> should be added into Site1 "Shopping cart". That means its calling our
> program in site1 which will add that product into out cart and after
> that it will redirect to the site2 and displays the same page. But
> additionally we have to display a popup window showing that "This item
> has been added to Site1 bag", or "This item is not available".
> Here Site1:  Primary Vendor
> Site2:  Secondary Vendor
>
> Following is the Sample Code which simulate the above flow:
>
>

> =
>
> Program1: This program is on Site2 which displays a simple page, on
> pressing submit button, it transfers control to another jsp on Site.
>
> <HTML>
> <BODY>
> <FORM name="urlRedForm"  method="post" action="/UrlRed2.jsp">
> <CENTER><H3>Testing URL Redirection</H3></CENTER>
> <BR><BR><BR><BR><BR>
>Press the submit button to perform url redirection
> <BR><BR><BR><BR><BR>
> <INPUT TYPE="HIDDEN" NAME="redUrl" VALUE="/RedUrl1.jsp">
> <INPUT TYPE="SUBMIT">
> </FORM>
> </HTML>
> </BODY>
>

> =
>
> Program2: This program is on Site1 which add a product into shopping
> cart and then transfer back to Program1 and displays a popup window
> showing that "Item is added into cart".
> <%@ import="java.io.*,javax.servlet.*,javax.servlet.http.*" %>
> <HTML>
> <BODY>
> <%
>// Declaring local varialbles
>String redUrl = "";
>// Set content type and other response header fields first
>response.setContentType("text/HTML");
>// Redirecting URL
>redUrl = (String) request.getParameter("redUrl");
>// Popup Window
>out.println("<HTML>");
>out.println("<SCRIPT LANGUAGE=\"JAVASCRIPT\">");
>
out.println("window.open('<A  HREF="http://localhost/UrlRed.html">http://localhost/UrlRed.html</A>','UrlRed','left=40,to
>
p=40,width=640,height=450,toolbar=no,status=no,scrollbars=yes,resizable=yes'
> )");
>
>out.println("");
>out.println("");
>// Redirecting
>

Re: Invoking Popup Window in Virtual Site

2000-09-09 Thread Artem Babenko

Why don't you understand that JavaScript is client side programming?
Clients localhost is its computer.


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Sushil Singh
Sent: Saturday, September 09, 2000 12:18 AM
To: [EMAIL PROTECTED]
Subject: Re: Invoking Popup Window in Virtual Site


In simple way, my requirement is that:
>From site2, on pressing "add to bag" button, my program is called (which is
in
site1), which will add item and after that it will return back to same page
of
site2 but additinally it will display a popup saying that "item is added
into
cart".
For this my servlet, contains the logic to add into cart, and redirect to
site2,
and its having js to display a popup. If you can advice me what should I
use, it
will be highly appreciated.

response.sendRedirect("/UrlRed1.jsp?bagFlag=Y");
//
Redirecting
out.println("window.open('http://localhost/UrlRed.html','UrlRed',);
//
Opening popup

Thanks.




Artem Babenko wrote:

> Why do you use such url http://localhost/UrlRed.html
> change localhost to site1ie http:/site1/UrlRed.html
>
> >out.println("");
> >
>
out.println("window.open('<A  HREF="http://localhost/UrlRed.html">http://localhost/UrlRed.html</A>','UrlRed','left=40,to
> >
>
p=40,width=640,height=450,toolbar=no,status=no,scrollbars=yes,resizable=yes'
> > )");
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [<A  HREF="mailto:[EMAIL PROTECTED]]On">mailto:[EMAIL PROTECTED]]On</A> Behalf Of Sushil Singh
> Sent: Friday, September 08, 2000 10:56 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Invoking Popup Window in Virtual Site
>
> Thanks for your reply.
>
> If you see program2 which is using Javascript to display the popup page
and
> after
> that url redirection is there, but the problem is that its not displaying
> the popup
> window and sucessfully redirect to site2.
>
> Artem Babenko wrote:
>
> > I think you should use JavaScript.
> > To show popup you need a additional request from the client.
> > There are two ways to receive this additional request.
> > First user should click every time somewhere when you want to get a
popup.
> > (does not suit)
> > Or JavaScript will do it automatically.
> >
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [<A  HREF="mailto:[EMAIL PROTECTED]]On">mailto:[EMAIL PROTECTED]]On</A> Behalf Of Sushil Singh
> > Sent: Friday, September 08, 2000 9:10 PM
> > To: [EMAIL PROTECTED]
> > Subject: Invoking Popup Window in Virtual Site
> >
> > Hi:
> >
> > I am working on a project which requires B2B integration of two site.
> > This integration is done by third party. We have to handle the "Add to
> > Shopping Bag" module.
> >
> > 1.User will come to site1 and then he requests for a product which
> > is avaialble in site2. Since these two sites are having B2B relation,
> > user can navigate to site2. But the top and botton navigation bar will
> > be from site1, this will be a virtual site of Site1 and Site2.
> > 2.   On pressing "Add to bag" on virtual site, that particular item
> > should be added into Site1 "Shopping cart". That means its calling our
> > program in site1 which will add that product into out cart and after
> > that it will redirect to the site2 and displays the same page. But
> > additionally we have to display a popup window showing that "This item
> > has been added to Site1 bag", or "This item is not available".
> > Here Site1:  Primary Vendor
> > Site2:  Secondary Vendor
> >
> > Following is the Sample Code which simulate the above flow:
> >
> >
>

> > =
> >
> > Program1: This program is on Site2 which displays a simple page, on
> > pressing submit button, it transfers control to another jsp on Site.
> >
> > <HTML>
> > <BODY>
> > <FORM name="urlRedForm"  method="post" action="/UrlRed2.jsp">
> > <CENTER><H3>Testing URL Redirection</H3></CENTER>
> > <BR><BR><BR><BR><BR>
> >Press the submit button to perform url redirection
> > <BR><BR><BR><BR><BR>
> > <INPUT TYPE="HIDDEN"

Re: HTTPS Tomcat

2000-09-10 Thread Artem Babenko

If you use Tomcat with Apache you need mod_ssl & openssl

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of áÏðÊ
Sent: Sunday, September 10, 2000 11:40 AM
To: [EMAIL PROTECTED]
Subject: Re: HTTPS Tomcat


i am sorry to say that it isn't.maybe it will be in next version of tomcat.

>Hello,
>
>Does anyone know if Jackarta Tomcat is available in SSL?  I'm currently
>using the web server started by executing "tomcat start" in Windows.
> I am wanting to put my Servlets into production mode, but I need SSL.
>
>--
>Antonio W. Lagnada
>[EMAIL PROTECTED] - email
>
>This email address is specifically
>for JSP-Interest email list
>
>
>___
>To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
>all in one place - sign up today at http://www.zdnetonebox.com
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

_
Ê×T+ÔÚÏß--ÖЁúÈˁÄÍøÉÏ+Òԁ http://www.263.net
@263.netÖЁú×îóÄÔÚÏßÓÊ+Ö http://freemail.263.net
ÖЁúÈˁÄÔÚÏ߁ÎïÀÖԁLL263ÉÌ³Ç http://shopping.263.net

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

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

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

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



Re: HTTPS Tomcat

2000-09-12 Thread Artem Babenko

As a standalone server Tomcat is the best server but you can use Tomcat with
other servers
i.e. Apache. Apache has a mod_ssl

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Stefán Freyr Stefánsson
Sent: Tuesday, September 12, 2000 12:08 PM
To: [EMAIL PROTECTED]
Subject: Re: HTTPS Tomcat


this is not true... Tomcat 3.2b DOES support SSL.  Subscribe to the Tomcat
mailing lists for more detail.

Also see: http://jakarta.apache.org/tomcat/

Regards, Stefan

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of ÀîÏé
Sent: 10. september 2000 08:40
To: [EMAIL PROTECTED]
Subject: Re: HTTPS Tomcat


i am sorry to say that it isn't.maybe it will be in next version of tomcat.

>Hello,
>
>Does anyone know if Jackarta Tomcat is available in SSL?  I'm currently
>using the web server started by executing "tomcat start" in Windows.
> I am wanting to put my Servlets into production mode, but I need SSL.
>
>--
>Antonio W. Lagnada
>[EMAIL PROTECTED] - email
>
>This email address is specifically
>for JSP-Interest email list
>
>
>___
>To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
>all in one place - sign up today at http://www.zdnetonebox.com
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

_
Ê׶¼ÔÚÏß--ÖйúÈ˵ÄÍøÉϼÒÔ° http://www.263.net
@263.netÖйú×î´óµÄÔÚÏßÓÊ¾Ö http://freemail.263.net
ÖйúÈ˵ÄÔÚÏß¹ºÎïÀÖÔ°¡ª¡ª263ÉÌ³Ç http://shopping.263.net

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

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

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

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

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

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



Re: Encrypt and Decrypt Password

2000-09-18 Thread Artem Babenko

I realy don`t understand why you have to send password to a client.
1. Store your password in the session object.
2. If you want avoid cookies.
Create array of random generated key (numbers) and login for each pasword.
Store it in application object.
Login with a key represent a password.
Every key is used once only. (Then it is deleted from array of keys)
For each request generate a new key.
You could add expire time for every key also.
3. You can use JavaScript to send form with a hidden values.


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Raj S
Sent: Monday, September 18, 2000 8:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Encrypt and Decrypt Password


Hi,
   Thanks for this.But actually I have to transfer it through an
 link.Because I have a table displaying vlues from LDAP, and next
to each record I have a text written as  "Del".
By clicking on it,the user can delete that record.
But the value will be visible in the  link which is what I want to
avoid.So I wish to encrypt the password and then decrypt it back.

One another problem that I am facing,is passign values which have  space in
between.Through  it is fine,but when I transfer it through  the value after space is removed.

Like the name  Directory Manager.
In the new JSP I receive only Directory and not Directory Manager

Any particular reason for this??

>
>hi raj..
>you may do something like:
>
>  
>
>blabla
>
>
>  function myFunct() {
>myForm.submit();
>  }
>
>
>i hope this will help you
>
>regards,
>stefan bushev
>
>
>>From: Raj S <[EMAIL PROTECTED]>
>>Reply-To: A mailing list about Java Server Pages specification and
>> reference <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: Encrypt and Decrypt Password
>>Date: Mon, 18 Sep 2000 01:36:05 GMT
>>
>>Hi,
>>   How can I pass the value of a password without it being visible to the
>>user on the browser?
>>I will be passing it through  link,but the value of the password
>>will be visible.
>>Is it possible to encrypt while passing and decrypt back to original value
>>in the othe JSP?
>>If someone has written a code in this,it would be really helpful if you
>>could share it.
>>
>>Thanks,
>>Raj
>>
>>_
>>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>>
>>Share information about yourself, create your own public profile at
>>http://profiles.msn.com.
>>
>>==
=
>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>JSP-INTEREST".
>>Some relevant FAQs on JSP/Servlets can be found at:
>>
>>http://java.sun.com/products/jsp/faq.html
>>http://www.esperanto.org.nz/jsp/jspfaq.html
>>http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>_
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at
>http://profiles.msn.com.
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>http://java.sun.com/products/jsp/faq.html
>http://www.esperanto.org.nz/jsp/jspfaq.html
>http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

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

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

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

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



Re: ServletRequest.getRequestDispatcher()

2000-09-18 Thread Artem Babenko

It is not possible.
You have to use response.sendRedirect
Or you have to download the page from other server by (new
URL("othersite")).getInputStream()


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Sushil Singh
Sent: Monday, September 18, 2000 9:21 PM
To: [EMAIL PROTECTED]
Subject: ServletRequest.getRequestDispatcher()


Hi,
I am unable to compile my servlet which is using
ServletRequest.getRequestDispatcher(), its giving error that no such
method. I am having JVM 1.1.7
If I use ServletContext.getRequestDispatcher(), its compiling and
executing but I can not use this methid as I have to specify the full
url in forward() method as my servlet is on some other server. And the
specification shows that ServletContext.getRequestDispatcher() takes
only absolute path (i.e. the url must start with /).

RequestDispatcher rd = null;
rd = req.getRequestDispatcher("http://hostname/servlet/Testservlet");
rd.forward(req, res);

Also if anybody can tell whether its possible to forward a request to a
servlet/jsp which is residing on some other server (i.e. different
domain). This is the reason why I have to specify the full url.

Thanks in advance.

Sushil

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

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

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

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