Moving through the resultset

2001-06-14 Thread ems vasudevan

Hi All !
   I want to select only a particula no of records
from the database to display like goolge is doing.I
don't want to select the entire set of resultset and
process in the clientside or storing in the vector.If
a table contains large no of records, I want to
display it chunk by chunk.For that whenever i am
contacting the database i want to select a set of
records.Any ideas?

__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.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



Re: Moving through the resultset

2001-06-14 Thread Sunish Sugathan

Check out scrollable result sets...

===
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: Moving through the resultset

2001-06-14 Thread EJB ForAll

hi dear,


if You are using MySQL database then use the following
query.

select * from abc limit 0,20

this will retrive only first 20 records.

and in next page you can use the following query

select * from abc limit 20,21

Regards
Deepak Kumar
http://www.geocities.com/deepak_38






--- ems vasudevan [EMAIL PROTECTED] wrote:
 Hi All !
I want to select only a particula no of records
 from the database to display like goolge is doing.I
 don't want to select the entire set of resultset and
 process in the clientside or storing in the
 vector.If
 a table contains large no of records, I want to
 display it chunk by chunk.For that whenever i am
 contacting the database i want to select a set of
 records.Any ideas?

 __
 Do You Yahoo!?
 Spot the hottest trends in music, movies, and more.
 http://buzz.yahoo.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


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.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



Re: Moving through the resultset

2001-06-14 Thread Philip McAllister

From: EJB ForAll [EMAIL PROTECTED]

 and in next page you can use the following query

 select * from abc limit 20,21

should, I think, be:

SELECT * FROM abc LIMIT 21,20

the first number being the offset to select from, and the second number
being the number of results to retrieve.

--
Philip McAllister [EMAIL PROTECTED]
Web Applications Developer, ticketingsolutions

===
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: [Fwd: why scrape result does not show]

2001-06-14 Thread Peter Pilgrim

Could it be that you are working behind a firewall ?

You probably have to run tomcat or programmatically
set the system properties.
-DproxySet=true -DproxyHost=11.22.33.44  -DproxyPort=8080
--
Peter Pilgrim

Putting PLEASE HELP ME! URGENT HELP! in the E-Mail Subject: Line,
will probably lead to the opposite intention.  The  Windows Trash Can 



 Message History 



From: yu chen [EMAIL PROTECTED]@JAVA.SUN.COM on 13/06/2001 14:03 CST

Please respond to [EMAIL PROTECTED]

DELEGATED - Sent by: A mailing list about Java Server Pages specification and 
[EMAIL PROTECTED]


To:   [EMAIL PROTECTED]
cc:
Subject:  [Fwd: why scrape result does not show]


Hi,

I just downloaded and configured the scrape tag lib. I,

--CUT--

But when I open http://hostname/scrape/scrape.jsp, I don't see the
scraped content but only the following, WHY?? Did I miss anything?

--CUT--


--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.

===
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: Please wait how to ???

2001-06-14 Thread Dmitry Namiot

You may use DHTML for this. Check out
http://coldjava.hypermart.net/tips.htm


--
Coldjava - server-side Java components
http://coldjava.hypermart.net
__
Get your own FREE, personal Netscape Webmail account today at 
http://webmail.netscape.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



dynamic inlcude and page context

2001-06-14 Thread Bernard Granier

Hi,

Is it possible to do a dynamic include and to keep the page context ?

I mean :

If I used these lines in a test.jsp file :

% String myUrl = test2.jsp; %
jsp:include page=%=myUrl% flush=true /

In the file test2.jsp I lost the page context of test.jsp.
Is there a work around ?


Bernard Granier
Mr Ted
115 rue du Fbg Poissonniere
75009 Paris
www.MrTed.com
Tel : 33 1 55 31 02 65
mail : [EMAIL PROTECTED]

===
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: dynamic inlcude and page context

2001-06-14 Thread Raghu Babu

yes it is possible to dynamically include a jsp page
regards
raghu
- Original Message -
From: Bernard Granier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 3:35 PM
Subject: dynamic inlcude and page context


 Hi,

 Is it possible to do a dynamic include and to keep the page context ?

 I mean :

 If I used these lines in a test.jsp file :

 % String myUrl = test2.jsp; %
 jsp:include page=%=myUrl% flush=true /

 In the file test2.jsp I lost the page context of test.jsp.
 Is there a work around ?


 Bernard Granier
 Mr Ted
 115 rue du Fbg Poissonniere
 75009 Paris
 www.MrTed.com
 Tel : 33 1 55 31 02 65
 mail : [EMAIL PROTECTED]


===
 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: dynamic inlcude and page context

2001-06-14 Thread Bernard Granier

yes it is possible to dynamically include a jsp page
but using iPlanet the original page context is lost in the included page.

That my problem,

Sincerly,

Bernard Granier
Mr Ted
115 rue du Fbg Poissonniere
75009 Paris
www.MrTed.com
Tel : 33 1 55 31 02 65
mail : [EMAIL PROTECTED]


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Raghu Babu
Sent: mercredi 14 juin 2000 13:01
To: [EMAIL PROTECTED]
Subject: Re: dynamic inlcude and page context


yes it is possible to dynamically include a jsp page
regards
raghu
- Original Message -
From: Bernard Granier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 3:35 PM
Subject: dynamic inlcude and page context


 Hi,

 Is it possible to do a dynamic include and to keep the page context ?

 I mean :

 If I used these lines in a test.jsp file :

 % String myUrl = test2.jsp; %
 jsp:include page=%=myUrl% flush=true /

 In the file test2.jsp I lost the page context of test.jsp.
 Is there a work around ?


 Bernard Granier
 Mr Ted
 115 rue du Fbg Poissonniere
 75009 Paris
 www.MrTed.com
 Tel : 33 1 55 31 02 65
 mail : [EMAIL PROTECTED]


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

===
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: Stress Testing ?

2001-06-14 Thread M. Simms

Sorry this took so long: www.testmybeans.com for load and stress testing
www.ejbquick.com for regression and performance testing and measurement
www.mmsindia.com for checking and measuring source code quality
www.parasoft.com for QA testing



 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Mayuresh Kadu
 Sent: Wednesday, June 13, 2001 10:55 PM
 To: [EMAIL PROTECTED]
 Subject: Stress Testing ?


 hello all,

 i remember there was some talk/mail of some stress testing links for
 web-applications. Could anyone post/mail them again please ?!


 Mayuresh Kadu
 Pune, Mah, India

 http://www.mayureshonline.com

 [ Quote of the Month ]

 Design and programming are human activities; forget that and all is lost.

 Bjarne Stroustrup, 1991

 ==
 =
 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: Moving through the resultset

2001-06-14 Thread Dan Lopez

I think the best solution for this is James' pager
taglib from http://www.jsptags.com

Try it out, there is an example on his page.


That way it is more dynamic, and you dont have to
specify # to select in SQL stmt.

Hope that helps






--- EJB ForAll [EMAIL PROTECTED] wrote:
 hi dear,


 if You are using MySQL database then use the
 following
 query.

 select * from abc limit 0,20

 this will retrive only first 20 records.

 and in next page you can use the following query

 select * from abc limit 20,21

 Regards
 Deepak Kumar
 http://www.geocities.com/deepak_38






 --- ems vasudevan [EMAIL PROTECTED] wrote:
  Hi All !
 I want to select only a particula no of records
  from the database to display like goolge is
 doing.I
  don't want to select the entire set of resultset
 and
  process in the clientside or storing in the
  vector.If
  a table contains large no of records, I want to
  display it chunk by chunk.For that whenever i am
  contacting the database i want to select a set of
  records.Any ideas?
 
  __
  Do You Yahoo!?
  Spot the hottest trends in music, movies, and
 more.
  http://buzz.yahoo.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


 __
 Do You Yahoo!?
 Spot the hottest trends in music, movies, and more.
 http://buzz.yahoo.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


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.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



File Dialog for serlvets or JSP

2001-06-14 Thread Lorena Carlo

Hello all,

Does somebody know if there is a File Dialog(prompts a window that request
you the name of the file, like a save as) in JSP or in Servlets, I know
there exits a class java.awt.FileDialog, but I don't want to use applets, so
please tell me if there is another class that I can use from a server side.

Thanks in advance,

Lorena Carlo

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



possible concurrent access to data

2001-06-14 Thread Paul Foxton

Hi all,

I'm really just after a bit of advice here

I'm developing a jsp application which will be used to book timeslots over
the web. The database has a record for each hour in the day, and timeslots
are booked by storing the username of the person who booked it in a field in
the row for a particular hour.

If two users try to book the same timeslot at exactly the same time, I could
get corrupted data. Since i'm using MSaccess for development, I can't
incorporate locking the database row, so Ive done it like this:

The actual booking (writing the username to the database) is done with a
bean, and the booking method (which connects to the db, checks there's no
username already there and then writes the current username with an UPDATE
sql string), is synchronized. The bean has application scope.

so firstly - does this sound ok? will it protect my data from concurrent
access by making the second request wait?
secondly - any ideas on how I can test this? I mean, the requests will have
to happen at exactly the same so I can't be sure if check it manually.

thanks,

Paul

===
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: Stress Testing ?

2001-06-14 Thread Pete Freitag

OpenSTA works well and it's free http://www.opensta.org
There is also some very high end, tools at http://www.empirix.com/


Pete Freitag ([EMAIL PROTECTED])
CFDEV.COM
ColdFusion Developers Resources
http://www.cfdev.com/


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Mayuresh Kadu
Sent: Wednesday, June 13, 2001 10:55 PM
To: [EMAIL PROTECTED]
Subject: Stress Testing ?


hello all,

i remember there was some talk/mail of some stress testing links for
web-applications. Could anyone post/mail them again please ?!


Mayuresh Kadu
Pune, Mah, India

http://www.mayureshonline.com

[ Quote of the Month ]

Design and programming are human activities; forget that and all is lost.

Bjarne Stroustrup, 1991

===
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: Who know how to create a Connection Pool in Java?

2001-06-14 Thread kuttappan

Thanks.

Rohit
- Original Message -
From: Haseltine, Celeste [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, 13 June, 2001 9:13 PM
Subject: Re: Who know how to create a Connection Pool in Java?


 Rohit, Mayuresh,

 There are a number of textbooks out on the market that describe how to
 create your own connection pool class bean, or even a servlet.  I much
 prefer to use a third party driver which already has connection pooling,
and
 then creating a singleton class surrounding the third party driver to
 instantiate connections and hand them off from within the driver's pool to
 the JSP, or even another class bean, and then returning that connection
back
 to the singleton class, which in turn releases the connection back to the
 driver's pool.  Extending your own java class beans from
 PropertyChangeListener, you can fire events from your own beans attached
to
 the JSP, and have your singleton classes listen for those events relating
to
 request for a connection from the pool, and releasing a connection to be
 returned to the pool.

 Take a look at Professional JSP by Wrox Press.  This book has some good
 examples of connection pooling, and developing a singleton class to manage
 your connection pool.

 Celeste

 -Original Message-
 From: Mayuresh Kadu [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 13, 2001 4:15 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Who know how to create a Connection Pool in Java?


 I am yet to start writing them towards connection pooling .. will keep u
 posted :)


 Mayuresh

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of kuttappan
 Sent: Monday, June 11, 2001 9:22 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Who know how to create a Connection Pool in Java?


 I have decided to take the idea of writing my existing  beans in such a
way
 that currently they will use Connection Pooling.

 I would like to see your code and learn how to use Connection Pooling with
 beans.

 Thanks,
 Rohit.


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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.255 / Virus Database: 128 - Release Date: 17/05/2001

===
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: JSP and JavaScript and Beans

2001-06-14 Thread horwat

Can you describe in more detail as to what the problem using beans is.
Source code and any error output would also be helpful.

As for jsp's and javascript, you can include javascript in a jsp file just
like you can include html tags. One thing to note is that with javascript,
you have no interaction with the server before the result is sent to the
client.
Justy

- Original Message -

 Hi Friends,

 I have tried to use JSP with JavaScript its working, but can anybody tell
me
 the limitations  of JSP with JavaScript.

 Also I have problems in using Beans in JSP while using jsp:useBean ... /
 tag though I am trying to run sample codes available from the books.  Can
 anybody enlighten me?

 Thanks in advance

 Regards,
 Sharath


===
 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: How to get rid of objects ( beans) when the user abandons the site

2001-06-14 Thread horwat

To address the first question, a session's lifetime ends when one of the
following occurs:
  - a user leaves your site and the user's browser does not accept cookies
  - a user quits the browser
  - the session is timed out due to inactivity
  - the session is completed and invalidated by the servlet
  - the user logs out and is invalidated by the servlet

And like Shawn said, a new browser window created from the current browser
will extend the session. If you bring up a new browser altogether then a new
session will be created.

Justy


- Original Message -

 remind me someone exactly when the session ends.

 clearly it ends in both ie and netscape when the browser window is closed.

 .. but if you open a new browser window with crtl_n does the session
extend
 to that window?

 ..if you open a new window other than as above what happens.

 thanks

 chris

 -Original Message-
 From: Shawn Zhu [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 13, 2001 4:49 PM
 To: [EMAIL PROTECTED]
 Subject: Re: How to get rid of objects ( beans) when the user abandons
 the site


 If the user leaves your site, and before the session times out he/she
comes
 back, the session object (your worker bean) will still be there.

 So yes, the worker bean will be waiting for the session to expire.

  -Original Message-
  From: Lenin Lopez [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, June 13, 2001 4:07 PM
  To: [EMAIL PROTECTED]
  Subject: Re: How to get rid of objects ( beans) when the user abandons
  the sit e
 
 
  Thanks guys,
  let me see if I understand correctly,
  That means if I create objects in a servlet and put them in a
  session using
  the session.setAttribute,  and if I use those objects in a
  jsp file. what
  you are saying is that I should not worry about unbinding the
  objects from
  the session???
  In other words I do not need to use the session.invallidate()
  to unbind the
  objects??
  Let me give you a scenario of my problem
 
  let say my JSP uses a worker bean (whose reference is store
  in a session )
  to display a list of available accounts from my DB, now that
  same page give
  the user the option to delete one of the available accounts
  from the list, (
  at this moment I still have a reference to my worker bean in
  a session )
  The user can continue with the deletion of one of the
  accounts on the list
  or the user can JUST LEAVE the site, if the user  decides to
  do so, at this
  point,   WHAT happens to my worker bean ( in the session )
  remember I did not invalidated it because I was going to use
  it in a future
  JSP ( assuming that the user was goint to continue with the process of
  deletion)
  Since the user as I said JUST LEAVES the site.  How do I
  reclaim the memory
  in use by the session.
  Do I just wait until it expires???
  What if I have more than one object in the same situation??
  Thanks a lot for your input
 
 
  -Original Message-
  From: A mailing list about Java Server Pages specification
  and reference
  [mailto:[EMAIL PROTECTED]]On Behalf Of Chandra Patni
  Sent: Wednesday, June 13, 2001 1:12 PM
  To: [EMAIL PROTECTED]
  Subject: Re: How to get rid of objects ( beans) when the user abandons
  the sit e
 
 
  You can't get rid of objects as such because that's what GC
  is doing for
  you. All the object u are creating in your JSP will follow
  the same GC rule
  as other object created in any method. For beans you can
  specify the scope
  mechanism to control how long you want to keep the reference handle.
  I will NEVER suggest you finalize() method to do some 'smart
  things'. By
  overriding finalize(), you are effectively increasing the
  life of the object
  as GC now has to deal with this object at least twice.
  Regards,
  Chandra Patni
  Oracle Corp
 
  -Original Message-
  From: A mailing list about Java Server Pages specification
  and reference
  [mailto:[EMAIL PROTECTED]]On Behalf Of Lenin Lopez
  Sent: Wednesday, June 13, 2001 12:51 PM
  To: [EMAIL PROTECTED]
  Subject: How to get rid of objects ( beans) when the user abandons the
  sit e
 
 
  HI all,
  My question is how to get rid of object ( to avoid memory
  leaks) when the
  user 'just' abandons the site
  is there any way I can detect when the user leaves the page
  so  I can triger
  some kind of event to get rid of my objects?
 
  Please
  Help
  Thank you all
 
  ==
  =
  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 

Re: URGENT---JSP problem on WebLogic6.0

2001-06-14 Thread horwat

getRealPath() is allowed to return null. For instance, if the web
application is run out of a war file, there is no real path to the webapp
because it isn't stored in files. Tomcat 4.0 can run directly out of a war
file and would also return a null value for getRealPath() in this case.

Justy

- Original Message -

 Guys...

 I am trying to do this stuff in a JSP page.

 It shows me different behaviours on different app servers.It works fine on
 TOMCAT but not on WebLogic6.0.

 Apparently getRealPath() does not function on WebLogic6.0 and returns
 null.Hence i am not getting expected results.

 Can anyone help me out on this.Do we have something similar to
getRealPath()
 on webLogic6.0? Or how can i tweak this existing code so that it works on
 WebLogic6.0

 thanx in advance
 abhi

 public String getHelpUrl(String file_name){
String dir_name = ;
String docRoot =  ;
String relPath =  ..;
String abs_file=   ;

docRoot = getServletConfig().getServletContext().getRealPath(/);
System.out.println(root ===  + docRoot);

dir_name = /xxx/foundation/help/defaultlocale/;

abs_file  =  docRoot +  dir_name + file_name +.html;
System.out.println(Absolute file ===  + abs_file);

File logDir = new File(abs_file);
System.out.println(dir ===  + logDir);
System.out.println(is present ===  + logDir.exists());

if(logDir.exists())
   return relPath + dir_name + file_name + .html;
 else
   return relPath + dir_name + book.html;
 }

 _
 Get your FREE download of MSN Explorer at http://explorer.msn.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: How to get rid of objects ( beans) when the user abandons the sit e

2001-06-14 Thread Kevin Duffey

There are a few things you can do. First, and not always recommended, is use
the onUnload= in the body tag of a JSP page. When the user leaves the
page (closed browser, goes to another site, etc) you can call a javascript
routine that can then call the server with a specific request. I am not
sure, to be honest, if this works. I haven't tried it yet. The only thing I
can think of why it wouldn't work is if the window closes before the
unOnload handler is fired and carried out. Is it a matter of speed (does the
browser exit code wait for any unOnload routines to finish up..or just
arbitrarily close and not care what might still be running in the
client-side javascript context)..no idea.

The other thing to do..is set the session time-out to a really short period
of time. Then, use a META tag to set a timer on the page to monitor
inactivity. Set it about 2 minutes shy of what the server-side timeout is,
just incase their is network traffic and what not and the page gets back to
the browser slowly thus the timer on the page may not run out until after
the session-timeout on the server for that session. However, because this
isn't exactly in sync (browser to server), I don't recommend this much. You
can also specify in a message or something that the user has x minutes to
make a choice. If the choice is made after that period, they will be
presented with a page that lets them know their session expired.

Lastly, the approach I like best, but also requires a bit of download time,
is to use an applet on every page. The first time a user comes to the site,
the download of the page may take 20 second or longer though. You can
circumvent this by having just hte JSP pages involved in the transaction(s)
use applets. At any rate, by using an applet and javascript, you can
actually communicate with the server without ever changing the browser page.
JavaOne did this last year on their site. You checked off a checkbox, and
behind the scenes the applet updated something on the server, and the page
updated without a request going to the server. IT was very slick. Even
better, if every page uses an applet, you can monitor EXACTLY where each and
every person is on your site, without having to log it and pull a query on
the database to figure it out. You can also send pop-up messages and many
other things to any one on your site. For example, you can broadcast a
message from your server out to every client connected, which pops up a
message telling them the server will go down soon. Its very kewl stuff..but
it does involve a bit more code to get it working. I saw it done using
standard sockets programming..haven't yet done it myself. Basically, the
applet makes a socket connection to the server, and two-way communication
can occur. The only problem I see with this is a socket to the server is
left open, so that you can communicate with the applet. I don't imagine its
something you would want to do on a high-bandwidth e-commerce site. But, a
b-2-b site with not tons of people connected at the same moment might work
well. My point of the applet..is that you can send a message from an applet
to the server when the browser closes or user leaves the site. The applet
has some exit method capability that can then send off that last
communication telling the server to free up the memory, invalidate the
session, etc.

Good luck.


 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Lenin Lopez
 Sent: Wednesday, June 13, 2001 4:07 PM
 To: [EMAIL PROTECTED]
 Subject: Re: How to get rid of objects ( beans) when the user abandons
 the sit e


 Thanks guys,
 let me see if I understand correctly,
 That means if I create objects in a servlet and put them in a
 session using
 the session.setAttribute,  and if I use those objects in a jsp file. what
 you are saying is that I should not worry about unbinding the objects from
 the session???
 In other words I do not need to use the session.invallidate() to
 unbind the
 objects??
 Let me give you a scenario of my problem

 let say my JSP uses a worker bean (whose reference is store in a session )
 to display a list of available accounts from my DB, now that same
 page give
 the user the option to delete one of the available accounts from
 the list, (
 at this moment I still have a reference to my worker bean in a session )
 The user can continue with the deletion of one of the accounts on the list
 or the user can JUST LEAVE the site, if the user  decides to do
 so, at this
 point,   WHAT happens to my worker bean ( in the session )
 remember I did not invalidated it because I was going to use it
 in a future
 JSP ( assuming that the user was goint to continue with the process of
 deletion)
 Since the user as I said JUST LEAVES the site.  How do I reclaim
 the memory
 in use by the session.
 Do I just wait until it expires???
 What if I have more than one object in the same situation??
 Thanks a lot for 

dynamically altering a table...

2001-06-14 Thread Stone Timothy

List fellows,

Help. I displaying a table of data that will start blank. The table defaults to 20 
rows.

Required functionality states that I have to be able to add and remove rows from any 
position on the table. More difficult is that I have to redisplay information that may 
have been entered in the table prior to deleting a row.

Example: There are three rows. The user has decided to delete the 2nd, or middle row. 
As it is the current method is for the user to enter in a text field the row number to 
delete, but this could be a checkbox at the head of each row (I'm waiting for approval 
on this change actually...)

Now how do I:
1. Manage the retention of the currently entered data for the three rows?
2. Reinsert the data for row 3 into row 2 when I'll have on the request information in 
a format something like:
?first_name_1=boblast_name_1=smithfirst_name_3=timlast_name_3=may
where row 2 has not posted because I have disabled the fields and intend to remove the 
row.

I'm sure that this kind of thing has been done... I just have never did it and need a 
mentor. Any help would be greatly appreciated. Is there an example out there that I 
can look at.

Thanks.
Tim

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



Why I can see my source in my application server?

2001-06-14 Thread lancelot

Excuse me,
I use Tomcat + Aparch, but I can see my source file in my
Application server? I want to know why?

thanks

Lancelot

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



web logic server

2001-06-14 Thread piyush jain

Friends,

I have problem with weblogic server. I have installed the same on my NT workstation 
and then i am clicking on start default server icon which opens a command prompt and 
asks for password. I give the one which i had assigned during installation. The server 
still doesnt start. and when i am going through services in control panel and starting 
the service, it gives error 2140, nt authentication. Please help..

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



Code example for web services

2001-06-14 Thread Bolt, Dave

While I'm waiting for the JavaOne slides to be posted, does anyone have a
simple online
example of an XML web service implemented with a Java client and servlet?

Thanks

Dave Bolt
Whenever something difficult becomes easy, two impossible things become
difficult. - Jim Buyens

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