How to share sessions between multiple servers?

2000-12-27 Thread Pfingstl Gernot
I want to split my apps to different servers, so that I can shut down one server without affecting the other apps on other servers. My problem: I like to share some user specific data between the different servers, like username, roles granted to this user and so on. In the actual system I all on

1.3 Bug?

2000-12-27 Thread Bertus Viljoen
Hi, I tried to set setSendBufferSize(int) in java.net.Socket. I get a message java.lang.NoSuchMethodError:. This is the first time I ran my servlet after upgrading to Java 2 SDK, v 1.3.0. I took the line out and the servlet runs fine. Am I missing something or is the a bug? I am using jsdk2.

Re: File upload

2000-12-27 Thread S.A.Pamungkas
Yes, I did. But I got the same result. S.A.Pamungkas --- Rosh Nair <[EMAIL PROTECTED]> wrote: > Get the package from servlets.com provided by > O'Relly that helps upload file > and support encoding type multipart/form-data. You > can get some sample apps > too. I think this will help you. > > Ro

Re: JDK compiles and on import give a bad class error.

2000-12-27 Thread Abhay
You should declare Package abc.pqr in the source and compile it as javac -d xyz.java. You must not have compiled the class with Package. In such a compilation, though the java source gets compiled, at runtime, it throws above error. Abhay - Original Message - From: Mark Koscak <[EMAIL

Re: ResultSet problem with JWS

2000-12-27 Thread Penner Matt
The error you're getting means that your driver doesn't support the ResultSet.first() method. Most Java JDBC drivers were not Java JDBC API 1.2 compatible until just recently. It's only then that Java truely supported scrollable result sets that could jump around rather then just going to the ne

Re: POST problem (newbie)

2000-12-27 Thread Steven Owens
Jon, > Thanks for the replies. No sweat. This seems to be one of the first speed bumps folks run into. Lately I've been thinking a lot about putting together a tutorial on how webservers and browsers work, for servlet developers. > My actual form tag looks like this: > > > The word "logi

POST problem (newbie)

2000-12-27 Thread Steven Owens
Jon writes: > Please take a look at the following "skeleton code": Thanks for saving me time, but next time I recommend you append the full code for reference. I suspect that's where the problem lies here. > public void doPost(HttpServletRequest request, HttpServletResponse response) >

Re: POST problem (newbie)

2000-12-27 Thread Michael Calasanz
The id parameter is returning a null value. The method in the form should be >Reply-To: "A mailing list for discussion about Sun Microsystem's Java >Servlet API Technology." <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: POST problem (newbie) >Date: Wed, 27 Dec 2000 20:07:22 +0100

Re: POST problem (newbie)

2000-12-27 Thread Pradeep Shekade
There is no difference .Cannot really think of a problem. Have u typed the action="Servlet" properly... Moreover i suggest u to change the name of the servlet --- "Jonathan Silvergran, SM3OJR" <[EMAIL PROTECTED]> wrote: > Greetings, > > Please take a look at the followi

Re: Coding Servlets(primitive question)

2000-12-27 Thread eric mabo
Hi: When you download from the Sun website, open the Servlet API folders and check to make sure that all the java files have been compiled into class files. If not, then compile them before you start programming any serlets. Also make sure that your classpath is set correctly. Goodluck and have fu

Re: Trivial Question-Beginner

2000-12-27 Thread Pradeep Shekade
Its possible to run servlets without LAN.. As regards the socketexception.i think u have not installed TCP/IP. --- keesara dinesh <[EMAIL PROTECTED]> wrote: > Is it possible to run servlets without having a > LAN i.e on my win98 PC. > > when i run servletrunner i am getting >

Re: mail server

2000-12-27 Thread Pradeep Shekade
u can get the details from OReilleys book --- Janardhan Kandregula <[EMAIL PROTECTED]> wrote: > hi all, > > pls give me account of everything that can happen in > between mail sending > by a mail client and it's reaching it's destination > , and > esp about what happens in mail server. > plsgive

POST problem (newbie)

2000-12-27 Thread Jonathan Silvergran, SM3OJR
Greetings, Please take a look at the following "skeleton code": public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } // end doGet public void doPost(HttpServletRequest request, HttpServl

Server Side Include with Domino R5 Server?

2000-12-27 Thread gina
Hi, I was trying to use SSI on Domino R5 Server, but got a "Class Not Found" = exception. Does anyone know if it is supported, and if so, how? Also, are we able to install JSP support in R5? Thanks! Gina ___ To unsubscribe

how to keep a SingleTon class thare as long as possible with my Servlet class

2000-12-27 Thread Bo
Hi :-) I have a question about how to use SingleTon with Servlet as a helping class I suppose the name of my SingleTon class is MySingleTon.class, and it has a public method getMe to return the Only-One instance: IMO, when we first use MySingleTon.class by the following line: MySingleTon

How do I go to a new page after doing serilasing the data for an applet in the new page???

2000-12-27 Thread Unni Nair
At 09:18 AM 27/12/2000 -0700, Unni Nair wrote: >>>Hello, >>> >>>I am trying to display a result of a SQL statement. This is what I am doing >>>1) Show a sql.jsp to enter the sql. >>>2) Invoke a servlet called SQL which creates serialises the output result >>>and redirect the url back to the sql.js

Re: [Fwd: Re: how to build a mailing list]

2000-12-27 Thread Sandra Cann
Steven snip > I think his point is to build a mailing list server, akin to > mailman or majordomo or listserv, in Java. I've been thinking about this lately too, albeit from a different perspective. Perhaps with an evolution of the listserv concept? On many large lists people complain abou

Why redirection to a new site not working after a serilse??

2000-12-27 Thread Unni Nair
>>Hello, >> >>I am trying to display a result of a SQL statement. This is what I am doing >>1) Show a sql.jsp to enter the sql. >>2) Invoke a servlet called SQL which creates serialises the output result >>and redirect the url back to the sql.jsp with sql_result=yes as the parm. >>3) in sql.jsp, c

Re: Trivial Question-Beginner

2000-12-27 Thread Hai Ram
Just install microsoft personal web server on your machine. ( it is in win 98 installation cd , add-ons folder). You can install JRun and connect with personal web server using the connector wizard. so u can run servlet in a single machine. Hope this solves u'r problem. ram >From: keesara din

Re: HttpSession

2000-12-27 Thread Kevin Mukhar
Manish Bhatnagar wrote: > > Try this out: > HttpSession httpSession = httpservletrequest.getSession(true); > String httpSessionId = httpSession.getId(); > String sessionId = String.valueOf(httpSessionId); Calling String.valueOf(httpSessionId) is unnecessary because httpSessionId is ALREADY

sendRedirect and serialise question??

2000-12-27 Thread Unni Nair
At 03:31 PM 26/12/2000 -0700, Unni Nair wrote: >Hello, > >I am trying to display a result of a SQL statement. This is what I am doing >1) Show a sql.jsp to enter the sql. >2) Invoke a servlet called SQL which creates serialises the output result >and redirect the url back to the sql.jsp with sql_r

Re: Trivial Question-Beginner

2000-12-27 Thread Christopher K. St. John
"Esposito, Francis (Exchange)" wrote: > > On NT, this requires that you at least have a network > card so you can install IP services and bind them to > a physical device. > The above answer is wrong. It shows why it is wise to do some research on your own before asking questions here. The sho

Re: Trivial Question-Beginner

2000-12-27 Thread Willard Thompson
http://java.sun.com Check out the tutorials section and you probably should buy a book. However, if you don't understand object oriented programming then you will more than likely need to learn what that as well. But there are a lot of free stuff for learning and developing java apps. -Ori

Re: Trivial Question-Beginner

2000-12-27 Thread Doug Turner
I use Tomcat (jakarta.apache.org) on a stand-alone WinNT system for servlet/JSP development, before migrating to a production environments using various platforms. You should be able to do this under Win98 as well, assuming you have the proper JVM installed. - Original Message - From: ke

Re: Trivial Question-Beginner

2000-12-27 Thread Esposito, Francis (Exchange)
My understanding is that you need to have TCP/IP services installed. On NT, this requires that you at least have a network card so you can install IP services and bind them to a physical device. Once you have this, you can basically set up a single PC LAN. Even though you are accessing the serv

Re: Trivial Question-Beginner

2000-12-27 Thread Dominic O'Reirdan
At 02:26 PM 12/27/00 +, you wrote: >Is it possible to run servlets without having a >LAN i.e on my win98 PC. I haven't used servletrunner but Tomcat and Apache on my WinNT desktop machine seems to be fine. >And another thing is: are there any sites which give free >education on java? I sugg

Image File

2000-12-27 Thread Mauricio Tia Ni Gong Lin
Hi everybody, How can I show a image file (figure) when the Web Page is requested to the servlet? For example: out.println(""); The expression above didn't work, because the image wasn't showed in the browser. Is there a default directory to put the image file? Note: I use the jsdk2.0.

Trivial Question-Beginner

2000-12-27 Thread keesara dinesh
Is it possible to run servlets without having a LAN i.e on my win98 PC. when i run servletrunner i am getting SocketException and other Exceptions. And another thing is: are there any sites which give free education on java? Please help me. _

Re: Apache Server on Windows

2000-12-27 Thread Dammika Ekanayake
Don't be such a big head..you could have just type the url for the guy with out your negative comment. -Original Message- From: Purav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 27, 1999 7:29 PM To: [EMAIL PROTECTED] Subject: Re: Apache Server on Windows C'mon..This is an of

Re: Apache Server on Windows

2000-12-27 Thread Stefan Kramp
Try http://www.apache.org There you get both: The docu and the binaries. > Hi Java Guru's, > Can anyone suggest me the site where I can get information > regarding how to use Apache on Windows NT and from where I can download > Apache server for Windows. > > Thanks in advance, > Surendra

Re: Apache Server on Windows

2000-12-27 Thread Purav
C'mon..This is an offtopic question. atleast check www.apache.org before posting a question here anyways..go to www.apache.org :) :) Br Purav -Original Message- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of

Re: Apache Server on Windows

2000-12-27 Thread Manish Vohra
hi u can get the apache server for windows at www.apache.org it comes with a complete documentation on how to install it and administer it. if u wanna run servlets/JSP make sure to download apachejserv also cheerio manish -Original Message- From: A mailing list for discussion about Sun M

Re: Multiple/Nested Resultsets

2000-12-27 Thread Godbey, David
You can also realize a performance gain from Oracle if you create the second query statement only once using a bind variable (ID) and change ID through your loop. -Original Message- From: Srinivas K. R. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 26, 2000 10:11 PM To: [EMAIL PROTEC

Re: Apache Server on Windows

2000-12-27 Thread Dammika Ekanayake
http://java.apache.org/ -Original Message- From: Surendra G L [mailto:[EMAIL PROTECTED]] Sent: Friday, December 29, 2000 6:30 AM To: [EMAIL PROTECTED] Subject: Apache Server on Windows Hi Java Guru's, Can anyone suggest me the site where I can get information regarding how to u

Apache Server on Windows

2000-12-27 Thread Surendra G L
Hi Java Guru's, Can anyone suggest me the site where I can get information regarding how to use Apache on Windows NT and from where I can download Apache server for Windows. Thanks in advance, Surendra ___ To unsubsc

Re: FW: servlet sax wddx error

2000-12-27 Thread Durga Prasad Badhai
I think u have problem with path . The server is not able to get the resource means the package. Please give the whole enviornment u r using and where it the package, to give a solution - Original Message - From: "Stephen Fenelon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wedne

Setting Header Fileds

2000-12-27 Thread Gireesh Kumar
Hi List, Is there any way to set some HTTP header values from a servelt before forwarding the request to another servlet? I want to set header values for "REQUEST_METHOD" and "HTTP_REFERER" from a servlet and then forward the request to another servlet. Thanks in advance, -gireesh _

Re: Casting

2000-12-27 Thread Daljit Singh Dhillon
Or you can also do something like :- String variable = request.getParemeter("anotherVariable"); try { float value= Float.parseFloat(variable); } catch (NumberFormatException e) { float = 0; } -Original Message- From: SSM Technologies [SMTP:[EMAIL PROTECTED]] Sent:

Re: Trivial Question

2000-12-27 Thread Vijaylakshmi S
If condintion is met do response.sendredirect or use requestdispatcher. To know more abt the sendredirect or dispatcher look into archives or java.sun.com out.println is used to display anything on the screen / browser Since u need to load another htm file, u need to use redirection. Vijaylakshm

Re: Casting

2000-12-27 Thread fumitada
Below is Viraj's answer to get primitive type of Float. >Float val= new Float(variable);//Its float wrapper >float value=val.floatValue();/*Its method of Float class converting the >Float object into primitive data type float */ Below is Pradeep's answer to get primitive type of Float. >Float.par

Trivial Question

2000-12-27 Thread Hamid Farooqui
Hi all I have some conditions in my servlet if condition 1 is met I would like to load condition1.htm if condition 2 is met I would like to load condition2.htm and so on. Can somebody tell me what I should have in the out.println TIA Hamid _

Re: Casting

2000-12-27 Thread Hamid Farooqui
Thanks all for your response on Casting I really appreciate the help It works! Hamid ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://ar

FW: servlet sax wddx error

2000-12-27 Thread Stephen Fenelon
Hi all this message seems to have failed to reach the list, I'll try again... >>Hi I am trying to put a sax wddx processer in a servlet and it compiles without error but throws this error when run as a servlet: >>500 Servlet Exception java.lang.NoClassDefFoundError: com/allaire/wddx/WddxDeserial

Re: Multiple/Nested Resultsets

2000-12-27 Thread fumitada
>The real SQL statements are much more complex, and it would be If you can make much more complex SQL statements, why don't u manipulate those stuff in SQL statement ? Even though the first resultset affects the second resultset, you can handle that with only one SQL statement. That would be muc

mail server

2000-12-27 Thread Janardhan Kandregula
hi all, pls give me account of everything that can happen in between mail sending by a mail client and it's reaching it's destination , and esp about what happens in mail server. plsgive somelinks where I can get all the info. thanx in advance, janardhan