Re: hashtables in session

2001-04-03 Thread Bo Xu
teh j wrote: Hi guys just wondering if it was possible to store Hashtable objects in the implicit session object? thanks Jason [...] Hi :-) I remember I have seen several emails in Servlet-List about it, it is possible, and I remember perhaps it is better to make all the key-value

Re: manual init Call from Servlets

2001-03-30 Thread Bo Xu
Wolle wrote: Hello all, I have a question about the Servelet Methode init call. Whenn I call a website e.g. http://bla/servlet/bla.MyServlet. It will first run the init Methode of this Servlet and then the doPost od doGet. But how could I do this manual ? I have servlets, that need a

Re: HttpServletRequest and RequestDispatcher

2001-03-29 Thread Bo Xu
Wyn Easton wrote: Hello, Could someone help me understand the following situation? I have two servlets (s1 and s2) and one jsp (j1). If I do this in s1: request.setAttribute("str1", "Hello"); then forward to s2: ...forward(request,response); In s2 I do this:

Re: doGet - doPost

2001-03-28 Thread Bo Xu
Sunil Chandurkar wrote: Hello All.. Though i'm working on servlets from couple of months i'm getting confused between doGet and doPost whenever i'm trying to do Applet-Servlet Communication. My Problem is : On particular event my Applet is sending one string to Servlet and inresponse

Re: Problems in POST

2001-03-27 Thread Bo Xu
Colin Morris wrote: Hi I'm very new to Tomcat and Apache... For some reason I'm not able to use POST to initiate servlets from a form? Any Ideas? My servlet is in tomcat's /ROOT/webapps/classes directory. is it possible that I've not set up the .conf files properly? I'm able to run the

Re: Problems in POST

2001-03-27 Thread Bo Xu
to java as well...) I'll try it. Hopefully it's nothing to do with my Tomcat settings? I'll try overriding as u suggested. On 27 Mar 2001, at 15:53, Bo Xu wrote: Hi :-) I guess it is because: did you "override" both doGet/doPost method in your Servlt class? if you e

Re: Sharing Servlet between Web Applications

2001-03-21 Thread Bo Xu
Wyn Easton wrote: Hello, I have been reading everything I could find about ServletContext and have not been able to find an example of how to share a servlet in one web application with servlets in other web applications. I can get a RequestDispather for a servlet in another web

Re: HttpSession expires !!!

2001-03-19 Thread Bo Xu
Samuel Arnod-Prin wrote: Hello, I've had to modify tomcat because I didn't know if there was a solution, I would like to be warned when a HttpSession expires and becomes invalidated. Is there a way to do this ? Or should I keep my modification in tomcat class to the expire() method ?

Re: ClassCastException :(

2001-03-19 Thread Bo Xu
Andrey Myatlyuk wrote: Hello Bo, Thank you for very helpful sample. I decided to use jsp instead of servlets. Several reasons: 1. My ClassCastException situation is eliminated. Although I don't understand why. 2. I use JSP for presentation("view") layer - so any web-designer can change

Re: problems with forward in a servlet

2001-03-19 Thread Bo Xu
"Grewal, Gary" wrote: in forwarding using RequestDispatcher, try String url = encodeRedirectURL(url); and send this url as your forward url for session tracking. May be you need to do a similiar thing on the JSP side too while trnsferring the control back. === Gary Grewal Contractor

Re: Stress Testing

2001-03-19 Thread Bo Xu
David Oxley wrote: What are the available products that can help me stress test my application and which is the best. It needs to be able to run requests either serially or in parallel (i.e. Acurrately simulating multiple users using a multiple HTML frame servlet application). Dave [EMAIL

Re: Super Newbie...

2001-03-19 Thread Bo Xu
"Joel R. Cochran" wrote: Sorry for the super newbie question, but where can I get download/install instructions??? I downloaded all of the files in the V3.2.1/bin, but there is no text file...no instructions. How do I get started? Joel Hi :-) when I installed TC3.2.1 in winnt40: -

Re: Super Newbie...

2001-03-19 Thread Bo Xu
"Joel R. Cochran" wrote: Thanks Bo, I tried to install it...but. 1. I've extracted both .zip files 2. Set TOMCAT_HOME to my directory 3. Tried to execute "bin\startup" 4. Received the following: C:\Tomcat\jakarta-tomcat-3.2.1bin\startup Out of environment space

Re: ClassCastException :(

2001-03-15 Thread Bo Xu
Hi :-) please see intermixed Andrey Myatlyuk wrote: Hello Vladimir, Thank you for your help with classloaders. :) I tried to put my "shared" classes in the classpath. But this approach failed too. I cannot understand. In this case my "shared" classes loaded by "Bootstrap class loader

Re: ClassCastException :(

2001-03-15 Thread Bo Xu
Andrey Myatlyuk wrote: [...] I have my StatesBean loaded by SystemClassLoader. OK. MyServlet by WebAppLoader. Good. So when WebAppLoader reloads my servlet it should ask its parents about loaded class. Ang guess what? StatesBean loaded already with SystemClassLoader. What's wrong with it?

Re: ClassCastException :(

2001-03-15 Thread Bo Xu
Andrey Myatlyuk wrote: Hello Bo, Thursday, March 15, 2001, 1:31:56 PM, you wrote: BX Andrey Myatlyuk wrote: [...] Hi :-) I did a test with a very simplified MyHelper class, * with jakarta-tomcat-3.2.1(standalone, JDK1.3, winnt40) I put MyHelper.jar in: - CLASSPATH works. MyHelper

Re: Maximum length HTTP Request

2001-03-13 Thread Bo Xu
"Arendsen, Alef" wrote: Ok, thnx so far, but I'm 100% sure I'm using a post. It's not a form, but I'm using my own socket impl. of the http protocol to make it support timeouts and stuff... here it is, this is what I'm sending through the outputstream of the socket. The GET-requests all

Re: Tomcat context problem

2001-03-10 Thread Bo Xu
"H.F.N. den Boer" wrote: Thank you very much for your quick response. It seems I mixed up the servlet-name and servlet-class tags. Next monday I'll correct and test it. To check my understanding; - servlet section; servlet-name is a alias for a servlet, which is the first mapping -

Re: context.getInitParameter()

2001-03-09 Thread Bo Xu
Paolo Barolat-Romana wrote: I must be doing something wrong here. In my code, I have the following line: ServletContext servletContext = getServletConfig().getServletContext(); String fileName = (String) servletContext.getAttribute("filename"); Now, this should return a string which

Re: config.getInitParameter() still returning null

2001-03-08 Thread Bo Xu
[EMAIL PROTECTED] wrote: The config.getInitParameter() called from within a JSP page is returning null. After changing the web.xml file numerous times and trying all the suggestions from java.sun.com and the tomcat archives I still cannot resolve this problem. Does anyone know why we can't

Re: config.getInitParameter() still returning null

2001-03-08 Thread Bo Xu
Milt Epstein wrote: [ ... ] I could be wrong, but I don't believe you have to define servlet-mapping's to get init-param's to work, just having defined the servlet is sufficient. However, in the URL, you do need to use the specific servlet-name you used in the servlet definition. (That's

Re: shared library directory for TC 4.0b1

2001-03-07 Thread Bo Xu
Michael Engelhart wrote: Hi, I know this is probably an FAQ but searching the archives I couldn't find any answer. (BTW, I think the search routine on the mikal.org site is broken as I typed in "sdfkjlkersdfualsusdfl" and it returned it's standard 20 items... it's doubtful that

Re: shared library directory for TC 4.0b1

2001-03-07 Thread Bo Xu
Michael Engelhart wrote: Ooops - sorry. What I meant to say is that when I put the helper files in the WEB-INF/lib directory, I get 404 errors even accessing just a simple html page which has no servlets associated with it. Thanks [...] Hi :-) with jakarta-tomcat-4.0-b1(standalone,

Re: How to use text/vnd.wap.wml MIME Type ?

2001-03-03 Thread Bo Xu
Vijay Suryawanshi wrote: How to use text/vnd.wap.wml MIME Type to serve WML pages from Tomkat ? It's not working after putting mime type mappings in web.xml. This is similar problem that Raf Colson had faced. Raf, did u get any workaroud ? If you could help me in this regard, that would be

Re: newbie servlet deploy question

2001-03-02 Thread Bo Xu
Jason Novotny wrote: I would like to be able to access a servlet with the URL http://localhost:8080/demo However, it only works if I go to http://localhost:8080/demo/servlet/demo I have the following in server.xml and web.xml respectively: Context path="/demo"

Re: Life of a class?

2001-03-01 Thread Bo Xu
Neil Edney wrote: Hi, We have implemented a database connection pool class (extract below) and use the 'getInstance' method to ensuire that there is only one instance created at any one time. What we need to know is when will this class be destroyed? Is it went the server is stopped (or

Re: creating a new context

2001-02-28 Thread Bo Xu
"Raghavendra V. Kulkarni" wrote: Hello, I am new to tomcat. I have successfully installed TomCat on my system. I could also run "Examples". I have my own application (.class files) that I intend to host through tomcat. Can anyone tell me

Re: How to count creation of new session

2001-02-28 Thread Bo Xu
"Winkel, Matthias; 2854" wrote: Hi! I am looking for a possibilty to implement a counter, that is incremented whenever a new session is created in my web application. In other words: I need something that sends an event to my counter object, when a session is created. One possibilty is

Re: Tomcat class loader

2001-02-27 Thread Bo Xu
uthay wrote: Thx Jim I tried that. I also want to bring some other thing I read recently. It states that although tomcat supports class reloading on updation it is still not supported to those classes that are not servlets. What does that supposed to mean? [...] [...] Uthay - I was

Re: log() ?

2001-02-27 Thread Bo Xu
Shahed Ali wrote: Sorry for this stupid question, but how do I use the log() method in servlets ? In JSP application.log() seems to work, but in servlets, I tried getServletContext().log("adad") etc and I keep getting NullPointerExceptions Thanks Shahed [...] Hi :-) I also have this

about the

2001-02-26 Thread Bo Xu
Hi dear friends :-) I am new to this List, thanks for your help! :-) now I use jakarta-tomcat-4.0-b1(standalone, JDK1.3, winnt40). from the direction of one email in Servlet-List, I find the following link:

Re: init-param with Tomcat4.0

2001-02-26 Thread Bo Xu
S Ramakrishnan wrote: I am afraid I do not understand. Why are the two correlated? Unless I am mistaken, servlet mapping is for arriving at compact URLs for user convenience. Why is this mandatory in order to specify init-parm's? Thanks, Rk x77309 On Mon, 26 Feb 2001 10:58:44

<    1   2