Re: Iplanet maximum no of session 1000

2001-04-25 Thread Rob van Oostrum

did you ever consider contacting iPlanet support for this?

Looks like it's a default setting you have to override by specifying a different 
value. Read the manual. In any case, this is anything but a JSP issue I'd say.

piyush jain wrote:

> Dear Friends,
>
> I have a problem here in managing ilanet web server. As the no of users on the site 
>is high and when its peak time the server throws an error as shown below.
> *
>
> [21/Apr/2001:18:10:46] info ( 1087): SimpleSessionManager: Default values for 
>maximum number of sessions is 1000 with a time out value of 1800 seconds
> [21/Apr/2001:18:10:46] info ( 1087): SimpleSessionManager: Maximum number of 
>sessions (1000) with a time out value of (1800) seconds
>
> *
>
> Can anyone tell me the remedy to overcome it when the site is on.
>
> also i wanted to know how do i kill a session on the server side if the browser is 
>directly closed and proper log-off is not done. this also seems to cause the above 
>problem.
>
> Expecting a prompt response.
>
> Best Regards,
> piyush.
>
> _
> Chat with your friends as soon as they come online. Get Rediff Bol at
> http://bol.rediff.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://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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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: Servlet needs to run till the lifetime of Webserver

2001-03-28 Thread Rob van Oostrum

what do you mean by "run"?

By definition, a servlet works in a request/response kind of way. If you have code
that you want to run in a servlet, and you want the code to run continuously, I'd
say you generate a request to the servlet at server startup, and write the servlet
code so that it never completes the request. Of course, you'd have to config the
server so that it doesn't timeout the request, which gets you into trouble in cases
where you do want other requests to time out. Please give more insight in what it
is that you're trying to do with this, so that maybe I can give more to the point
advice

good luck
Rob

Ganesh MohanRao wrote:

> Hi,
>
> Please tell me how to make a Servlet Run till the lifetime of Webserver.
>
> Whenever the webserver starts, Servlet needs to start and should run till
> the Webserver shuts down.
>
> Please help me.
>
> Thanx.
>
> Ganesh
>
> ===
> 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://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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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: Last question

2001-03-28 Thread Rob van Oostrum

Setting in the Tomcat (?) props should do it. I would go this route unless it gives
you problems, then you could hardcode it (or put the value in a properties file,
load it at startup time and call setMaxInactiveInterval to set it manually). Of
course, if the value has major significance for you application, I would consider
not setting it in your servlet engine config, because you'd want to embed that
configuration in your app explicitely (so in that case I would go the hardcoded or
app properties file route).

cheers
Rob

Marino Vittorio wrote:

> Sorry aboout all the questions I am posting here but I've got a time
> critical app to set up as fast as I can. I am setting a timeout for my
> sessions, but I cannot figure out if I should use the session timeout prop
> of my servlet container or use the setMaxInactiveInterval method of the
> session object. Which one is safer? Do I need to set both?
> 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://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: Session timeout (follow-up)

2001-03-28 Thread Rob van Oostrum

actually, whether or not this works (well enough) will depend on the Servlet/JSP
engine that you're running on. I know that WebLogic doesn't automatically clean up
sessions right as they're invalidated, and the session doesn't start removing
attributes (causing the call to your valueUnbound method) until the servlet engine
decides to physically remove the session object from memory. You might need to
investigate further to see how your platform influences this approach.

good luck,

Rob

Rob van Oostrum wrote:

> 1) You write a class that implements
> javax.servlet.http.HttpSessionBindingListener
> 2) You put your cleanup code (or the calls to your cleanup code) in the
> valueUnbound method.
> 3) When your session is instantiated (i.e. when the user hits the first JSP),
> you create a new instance of the class you created in step 1) and you register
> it with the session using the HTTPSession.setAttribute() method. The name of
> the attribute is trivial, assuming that your application does not need to
> retrieve the object for any other purpose.
>
> What this does, is that when the Session is about to be invalidated, it tries
> to unbind all objects that have been bound to it. If it finds that a bound
> object implements the HttpSessionBindingListener interface, it will call the
> valueUnbound() method on that object.
>
> Check the J2EE API docs for more info
>
> enjoy,
>
> Rob

===
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://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: Session timeout

2001-03-28 Thread Rob van Oostrum

1) You write a class that implements
javax.servlet.http.HttpSessionBindingListener
2) You put your cleanup code (or the calls to your cleanup code) in the
valueUnbound method.
3) When your session is instantiated (i.e. when the user hits the first JSP),
you create a new instance of the class you created in step 1) and you register
it with the session using the HTTPSession.setAttribute() method. The name of
the attribute is trivial, assuming that your application does not need to
retrieve the object for any other purpose.

What this does, is that when the Session is about to be invalidated, it tries
to unbind all objects that have been bound to it. If it finds that a bound
object implements the HttpSessionBindingListener interface, it will call the
valueUnbound() method on that object.

Check the J2EE API docs for more info

enjoy,

Rob

Marino Vittorio wrote:

> Jsp gurus,
> I've a couple of quick questions:
>
> 1) How can I trap a session timeout. I need to do some cleanup before
> invalidating the session itself.
>
> 2) I've two frames in my app. When the session expires the user is
> redirected to the login page, but not full screen(browser) as I'd like to,
> but only in the right frame. Do I need to use Java Script?
>
> 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://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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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: Tomcat failed to start

2000-07-11 Thread Rob van Oostrum

So ... try to use another port (trial and error is so underappreciated as a
problem solving technique). If that does work, it could mean that another
application is using that port. Do you get an address in use error? Please
supply more detailed information (screen output, error dump etc etc) when
asking something on here. Also a lucky shot: MS Proxy Client has a tendency
of causing ports to not be released properly, forcing you to reboot between
2 runs of Tomcat.

-Original Message-
Hi:

I have been using Tomcat on Windows 98 for sometime.  Recently, I was unable
to start Tomcat.  Looks like it failed during the execution of server
configuration file.  Can anyone tell me to way to detect the problem
associated with the port 8080 (default configuration for Tomcat)?  I
suspected that my Win98 is conflicting with Tomcat listening port.

Regards,
cfc

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



No Subject

2000-06-28 Thread Rob van Oostrum

 I'm trying to call a JSP from a Servlet in such a way that I can catch the
resulting stream for further processing. The code looks like this:

URL tempURL = new URL( jspURL );
URLConnection connection = tempURL.openConnection();
connection.setDoInput( true );
InputStream xmlStream = connection.getInputStream();

It crashes on the last call (java.io.FileNotFoundException). The URL works
if I just type it in manually, but the result from the JSP is an error
saying that the GET methof is not supported by the URL.


any suggestions?

Rob

===
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: SQL question for long data type

2000-06-15 Thread Rob van Oostrum

are you sure the pointer is not at a row that has no value for that column?

> -Original Message-
> I have an oracle table which has a long data type field named body.
> in my java code I created a SQL and try to get that long field througn
> ResultSet and print it out as a String.
>
>
> String body = rs.getString("body");--- does not work.
> long body = rs.getLong("body");--- does not work.
> String body = (String) rs.getObject("body");-- not work.
>
> How can I correctly doing that?

===
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: Diff. Bet. Enumeration and Array

2000-06-14 Thread Rob van Oostrum

maybe, maybe not ... at the risk of sounding stupid, I have no clue what a
link list is =)

-Original Message-
From: Nestor Florez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 14, 2000 5:34 PM
To: [EMAIL PROTECTED]
Subject: Re: Diff. Bet. Enumeration and Array


Rob,

So is an enumeration like a link list?

Nestor

-Original Message-
From: Rob van Oostrum [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 14, 2000 2:06 AM
To: [EMAIL PROTECTED]
Subject: Re: Diff. Bet. Enumeration and Array


An array is a collection of elements keyed by an index number (or, in the
case of a multi-dimensional array, multiple index numbers, one for each
dimension). Elements can be directly accessed by this index.

An Enumeration is a collection of elements specifically designed to optimize
traversing down a list of elements in optimal fashion. The Enumeration does
not know how big it is. It has a pointer which points to the current
element. The Enumeration is only able to return the next element, or tell
whether or not there is a next element. Therefor, the enumeration can only
be traversed once and is useless after that.

If you want to determine the size of an Enumeration you'll have to do
something like this:

int count=0;
while ( enum.hasMoreElements() )
{
  enum.nextElement();
  count++;
}

System.out.println( "Size of enum is " + count );



hope this helps
Rob

-Original Message-
Hi,

Pl. can  anybody tell me the difference between an Enumeration and an
Array.
Is there any function available to get the count of items in the
Enumeration.

===
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: forward and the URL

2000-06-14 Thread Rob van Oostrum

Actually that's not entirely true. Just have the first JSP redirect to the
second one, rather than using forward. I'd do this by writing a simple
Servlet with one method that only does this one call. So you inherit the JSP
from the servlet and call de servlet's method from the JSP. The redirect
makes it look to the webserver as if the client requested the URL. So the
new URL displayed in the browser address thingy will be the URL of the
second JSP.


Rob

> -Original Message-
> From: Scott Evans [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 14, 2000 5:28 PM
> To: [EMAIL PROTECTED]
> Subject: Re: forward and the URL
>
>
> Actually, its impossible. In any case, the location bar will
> display the url
> that was requested by the client.
>
> Scott Evans
>
> -Original Message-
> From:   Angus Mezick [mailto:[EMAIL PROTECTED]]
> Sent:   Wednesday, June 14, 2000 4:23 PM
> To: [EMAIL PROTECTED]
> Subject:jsp:forward and the URL
>
> Does anyone know how to use  and
> have it change
> the Location:
> window in netscape to the page you forwared
> to.  Say I have
> HelloWorld.jsp
> contain the line  "SimpleDbLogin.jsp"/>.
> I want the URL
> in the bowser to read SimpleDbLogin.jsp, not
> HelloWorld.jsp.
>
> --Angus
>
> P.S.  Anyone know how to contact the admins
> for this list?
>
>
> ==
> =
> 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: SOS URL Rewriting

2000-06-14 Thread Rob van Oostrum

Dacian,

Are you sure all these calls share the same hostname? If you go from
http://www.foo.com/test/foo.jsp to http://www.bar.com/test/bar.jsp, you will
get a new session ID. At least that's what I think happens with servlets, so
it should be the same (?) with JSPs.

Let me know if this doesn't solve your problem, and I'll look into it more
closely.

Rob

> -Original Message-
> From: Dacian-Virgil Hantig [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 14, 2000 3:37 PM
> To: [EMAIL PROTECTED]
> Subject: SOS URL Rewriting
>
>
>   Hi everybody,
>
>   I the last 5-6 days I tried to use URL Rewriting instead of
> Cookies in
> Tomcat, but I generously failed.
>   For this purpose I made a simple application, consisting of
> 3 pages. I
> have 3 buttons (Submit) on every page: first two to navigate
> through the
> pages, and the third, for the initialization of an object (discused
> below).
>   I printed on every move the SessionID from
> request.getRequestedSessionId() and from request.getSession().getId()
>   I stored an object (as a parameter) in request and in
> request.getSession() and then I retrieved it on every page.
>
>   The problem I found is:
>  In the JSP (before executing the form) I finally
> obtained the same
> SessionID (as the one for the first call), but after
> executing the form,
> another SessionID will take the place of the previous, and so, the
> values of the object are lost, and every attributes/beans have
> inadequate values (new ones).
>
>   I didn't figure out how can I change the SessionInterceptor
> to provide
> URL rewriting feature. Is any documentation about this, because this
> class is almost non documented (except a few word like
> "// rewrite URL, do I need to do anything more?"
> or something like that. So I made it blindly, and the result
> was as far
> ... FAILURE. Could anyone tell me how to modify it so my project will
> work.
>
>   ... my final words are an SOS to the developers on TOMCAT to write
> more about the usage of their classes ... they are very poor
> documented
> or NONE and I searched throughout the Internet and I found nothing but
> some dummy installation guides.
>
>   Yours,
>   Dacian :
>
> ==
> =
> 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



RTFM 'rant'

2000-06-14 Thread Rob van Oostrum

> -Original Message-
> From: Paul Matthews [mailto:[EMAIL PROTECTED]]
>
> [snip]
>
> A little friendly persuasion to people who post questions
> that a simple search would answer wouldn't go amiss either imho.

I couldn't agree more with Paul's remark. Personally, I don't really care
about the number of emails I get every day, or answering questions that
wouldn't have been necessary if the asker had opened a book or read a
website (although mostly I tend to ignore these). My problem with this is
that you don't learn anything by asking "newbie" questions. You learn by
sinking your teeth in Java or JSPs or whatever, and saving lists like this
one for when you're completely lost after hacking away at a problem for 6
hours straight.

Personally, I think it's a shame that so many people deprive themselves the
opportunity to learn so much more by using this list as a first rather than
as a last resort. If you're a total newbie, get a 21 Days book. If you're a
little more advanced than that, try to find your answers in API
documentation, FAQs, previous postings, etc etc etc. If you won't put in the
effort to solve the problem yourself, how can you even think about asking
time out of somebody else's day to help you?

If you have a question, try to answer it yourself first. If that doesn't
work, ask it on here. Be specific and complete in providing information, and
specify what you've tried already, so whoever ends up helping you doesn't
have to go down the same path to find out that particular path doesn't lead
to a solution (it also shows prior effort on your part).


sorry for this rather long posting, just had to get my $.02 in


cheers
Rob

===
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: Models of J2EE

2000-06-14 Thread Rob van Oostrum

Enterprise JavaBeans
CORBA
JavaServer Pages
JDBC
Java Message Service
XML
Transactions
JNDI
J2EE Connector
Servlets

look at http://www.javasoft.com/j2ee/index.html for more info


> -Original Message-
> From: Ritesh_Srivastava [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 14, 2000 12:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Models of J2EE
>
>
> yup
>
> > ------
> > From: Rob van Oostrum[SMTP:[EMAIL PROTECTED]]
> > Reply To: A mailing list about Java Server Pages
> specification and
> > reference
> > Sent: Wednesday, June 14, 2000 3:21 PM
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: Models of J2EE
> >
> > What do you mean by models? Design patterns? JTS, EJB, etc?
> >
> > -Original Message-
> > From: Ritesh_Srivastava [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 14, 2000 9:52 AM
> > To: [EMAIL PROTECTED]
> > Subject: Models of J2EE
> >
> >
> > Can anybody suggest me what Models do J2EE follows.
> >
> >
> ==
> 
> > =
> > 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: Models of J2EE

2000-06-14 Thread Rob van Oostrum

What do you mean by models? Design patterns? JTS, EJB, etc?

-Original Message-
From: Ritesh_Srivastava [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 14, 2000 9:52 AM
To: [EMAIL PROTECTED]
Subject: Models of J2EE


Can anybody suggest me what Models do J2EE follows.

===
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: Diff. Bet. Enumeration and Array

2000-06-14 Thread Rob van Oostrum

An array is a collection of elements keyed by an index number (or, in the
case of a multi-dimensional array, multiple index numbers, one for each
dimension). Elements can be directly accessed by this index.

An Enumeration is a collection of elements specifically designed to optimize
traversing down a list of elements in optimal fashion. The Enumeration does
not know how big it is. It has a pointer which points to the current
element. The Enumeration is only able to return the next element, or tell
whether or not there is a next element. Therefor, the enumeration can only
be traversed once and is useless after that.

If you want to determine the size of an Enumeration you'll have to do
something like this:

int count=0;
while ( enum.hasMoreElements() )
{
  enum.nextElement();
  count++;
}

System.out.println( "Size of enum is " + count );



hope this helps
Rob

-Original Message-
Hi,

Pl. can  anybody tell me the difference between an Enumeration and an
Array.
Is there any function available to get the count of items in the
Enumeration.

===
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: JBuilder + Tomcat + Jsp

2000-06-06 Thread Rob van Oostrum

The flushBuffer method isn't included in the 2.1 Servlet API. Make sure you
have the 2.2 Servlet API.

good luck
Rob

> -Original Message-
> From: Zoltan Zidarics [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 06, 2000 6:05 PM
> To: [EMAIL PROTECTED]
> Subject: JBuilder + Tomcat + Jsp
>
>
> Hi All,
>
> When I try to open my jsp page from Netscape browser I get
> the following
> message:
>
> "javax.servlet.ServletResponse: method flushBuffer()V not found "
>
> My configuration is:
>
> Linux Debian (kernel 2.2.13)
> Apache Web server
> Tomcat 3.1
> JBuilder Enterprise
> jdk 1.2.2 from Sun
>
>
> What do I need to refresh?
> jdk, j2ee, or Tomcat or what?
>
> --
> many thanks,
> Zamek
> --
> Zoltan Zidarics programmer
> PTE-PMMFK University,  H-7621 Pecs, Boszorkany u. 2. Hungary
> E-Mail: [EMAIL PROTECTED]
> --
>
> ==
> =
> 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: XML question

2000-06-06 Thread Rob van Oostrum

sorry my mistake ... of course you can use a SAX parser. Just substitute
DOMParser with SAXParser and it should work as well.

> -Original Message-
> you should use a DOMParser rather than a SAX parser, like this:
>
> DOMParser parser = new DOMParser();
> URL url = new URL( "http://www.foo.com/xml/foo.xml" );
> URLConnection connection = url.openConnection();
> InputStream instream = connection.getInputStream();
> InputSource inputSource = new InputSource( instream );
> parser.parse( inputSource );
>
>
> hope this helps
> Rob
>
> > -Original Message-
> > From: tonney [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 06, 2000 3:15 PM
> > To: [EMAIL PROTECTED]
> > Subject: XML question
> >
> >
> > hello,
> >I'm a newer at jsp, I have a very simple question: Now i
> > have configured  tomcat , jdk1.2, j2ee1.2 successfully, but
> > how can i parse the XML files? I try SAX, but
> > SAXParserFactory can't be found at all.
> >Any one can lend a hand?
> >
> > Tonney.
> >
> > ==
> > =
> > 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: XML question

2000-06-06 Thread Rob van Oostrum

you should use a DOMParser rather than a SAX parser, like this:

DOMParser parser = new DOMParser();
URL url = new URL( "http://www.foo.com/xml/foo.xml" );
URLConnection connection = url.openConnection();
InputStream instream = connection.getInputStream();
InputSource inputSource = new InputSource( instream );
parser.parse( inputSource );


hope this helps
Rob

> -Original Message-
> From: tonney [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 06, 2000 3:15 PM
> To: [EMAIL PROTECTED]
> Subject: XML question
>
>
> hello,
>I'm a newer at jsp, I have a very simple question: Now i
> have configured  tomcat , jdk1.2, j2ee1.2 successfully, but
> how can i parse the XML files? I try SAX, but
> SAXParserFactory can't be found at all.
>Any one can lend a hand?
>
> Tonney.
>
> ==
> =
> 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: Apache -- Servlet2.1

2000-05-30 Thread Rob van Oostrum

As far as I can tell the latest release of Tomcat supports the Servlet 2.2
API even.

good luck
Rob

-Original Message-
From: Siva Sankara Reddy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 30, 2000 1:56 PM
To: [EMAIL PROTECTED]
Subject: Apache -- Servlet2.1


Hi .,
we have done our project with JavaWebServer2.0 and Servlets2.1  on
Windows configurtion. Now we are going to deploy this to Apahce WebServer
with Jserv on Linux ... The problem is Apache is not supporting  Servlet2.1
version. Can some one  tell me any solution  for this..,


Thanks,
Sankar





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