Re: put an object in the application

2001-04-09 Thread Bo Xu
[EMAIL PROTECTED] wrote: > what is the equivalent to session.setAttribute("aName", anObject) but whith > an application scope > > thanks Hi :-) I am not sure, I suggest the following: in the following three kinds of "setAttribute/getAttribute": -0 ServletContext.setAttribute/getAttribute -1 Ht

Re: problems with wml pages

2001-04-09 Thread Bo Xu
[EMAIL PROTECTED] wrote: > HI. > I am trying to open a simple wml file. But I get the content-type error: > > " Content-Type Error > ...found Content-type: text / plain. > No translator for Content-type: text/plain." > > I believe there is nothing wrong with my wml file since I can run it through

Re: J2EE?

2001-04-06 Thread Bo Xu
Mark Arroyo wrote: > Hi, > > I am new to Tomcat. I want to develop J2EE applications. Does tomcat support > J2EE? > If so how do I configure it to use J2EE? Thanks in advance! > > Mark Hi :-) I remember: - J2EE RI 1.3beta uses TC4.0 as "built-in" Servlet container - jboss can auto-start a

Re: ??? Does Tomcat 4 b3 Support Reloading ???

2001-04-06 Thread Bo Xu
Tony LaPaso wrote: > Hello, > > By reading the documentation, it seems Tomcat 4 b3 should support servlet > reloading but this does not seem to be the case. > > After a fresh install of Tomcat 4 b3 I modified the SnoopServlet and the > change was *not* picked up even though the examples Context h

about the auto-reloading of jakarta-tomcat-4.0-b2(3)

2001-04-05 Thread Bo Xu
Hi :-) when I use jakarta-tomcat-4.0-b1, I can use the auto-reloading , but when I use jakarta-tomcat-4.0-b2 and jakarta-tomcat-4.0-b3, just from my work, I find I can not use auto-reloading. I have already set reloadable="true" in server.xml, and other setting is similar with TC4.0-b1, and I use

Re: Servlet Chaining...

2001-04-05 Thread Bo Xu
Gaël Oberson wrote: > > > [Gaël Oberson] > I think HttpServletRequest inherits > getRequestDispatcher(..) from ServletRequest class and does > implement it. [Gaël Oberson] > You can also get the > RequestDispatcher object from ServletContext > > Yes, you're right, but it'

Re: Servlet Chaining...

2001-04-05 Thread Bo Xu
"Grewal, Gary" wrote: > > > I think HttpServletRequest inherits getRequestDispatcher(..) from > ServletRequest class and does implement it. You can also get the > RequestDispatcher object from ServletContext > > === > Gary Grewal > [...] Hi :-) yes, I did a test with jakarta-tomcat-4.0-b3(stan

Re: how to unsubscribe this list?

2001-04-05 Thread Bo Xu
"Trakhtenberg, Victor" wrote: > Hello! > Does anyone how to unsubscribe this list? > I've tried to send email to : [EMAIL PROTECTED] > > but this didn't work I still get those mails. > Thank you in advans. Hi :-) I am not sure, from a email, I suggest you check that

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

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

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: > request.setAtt

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 inres

Re: Problems in POST

2001-03-27 Thread Bo Xu
write a blank method? > (I'm new 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

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

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: 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.1>bin\startup > Out of environment

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

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

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 c

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() metho

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. MyHe

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 wi

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 l

Re: ClassCastException :(

2001-03-14 Thread Bo Xu
Andrey Myatlyuk wrote: > Hello Vladimir, > > Thank you for your help. > > And I'm still have some questions. > > Why do we need to implement "some interface"? java.io.Serializable I > think? But anyway I implemented this interface - it doesn't work. This > approach works for EJB. :) > > And my qu

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 a

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

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. (T

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 ca

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(standalon

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 "sdf

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 wou

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: > > docBase="webapps/

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: > > docBase="webapps/

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 stopp

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 possibil

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 t

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 h

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? > [...] > [...] > > > > U

Re: 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 > 's? > > Thanks, > > Rk > x77309 > > On Mon, 26 Feb 2001 10:58:44 >

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: http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat-4.0/catalina/docs/dev/classlo

<    1   2