driver prob

2001-01-21 Thread Prasanjeet Das

Hi Gurus,
I had posted the query earlier but did not get any response , hope i get it
this time
Can anybody suggest me what  oracle JDBC driver to use in order to
coonect as a thin client to the oracle adata base.

The problem is that when i am calling the function getImportedkey(...) of
the  DatabaseMetaData class it's returns null value even though the table
has foreign keys . Bsaically i am trying to obtain the list of foreign keys
present in a table.

At present i am using the , jswdk, oracle 8i, thin client driver (classes
11.zip).

Hope to get a quick response .
regards
Prasanjeet

- Original Message -
From: "Mathew, Binoy (CORP, GEITC)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 22, 2001 12:23 PM
Subject: Re: Session Variable


> Hi,
> Session variables are meant to store user profiles and data needed to
> identify a user and his preferences, obviously if one fetches data from a
> database and stores it in the session, this will not only clog up the
> session variable but only defeat the very purpose of a database. Databases
> are meant to be queried but ultimately it is a tradeof b/w (a) memory
> required to store the data in the session and (b) connecting to the db
which
> is time-consuming.
> Hope this helps.
> Binoy.
>
> -Original Message-
> From: Ritu Kamboj [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 22, 2001 12:02 PM
> To: [EMAIL PROTECTED]
> Subject: Session Variable
>
>
> Hi All,
>
> Can anybody suggest  what all difference does it make  fetch data once
from
> the database
> and  store it  in the session variable, rather fetching every time from
the
> database.
> for example in case of any  report showing data in the  form  of Previous
> and next.
> is it better once fetch all data  and store them into session variable or
> fire a query for
> fetching data on every click  of previous and next.
> Thanks
> Regards
> ritu
>
>
> _
>
> Visit http://www.PalmGreetings.com The Most Happening and
> The first & only Mobile greeting site.
> * Send & Receive e-cards using your Hand held/Palm top/WAP Phone
> * Pleasure viewing animated cards on your device
> * Unleash your creativity by creating your own cards
>
>
===
> 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: Session Variable

2001-01-21 Thread Srinivas K. R.

Hi
Ritu

When we say Session it means all the information you are storing will be on
server and on the client side you will have the ID of that session.
if u try storing every thing in session then the performance will come down
and server will run out of memory.This may some time crash the server if
number of users are more..So better change the design of the report so that
u will get more information on querying for the first time, instead of
moving backward or forward.

Hope this will help u.
Cheers
Srinivas

- Original Message -
From: Ritu Kamboj <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 22, 2001 12:01 PM
Subject: Session Variable


> Hi All,
>
> Can anybody suggest  what all difference does it make  fetch data once
from
> the database
> and  store it  in the session variable, rather fetching every time from
the
> database.
> for example in case of any  report showing data in the  form  of Previous
> and next.
> is it better once fetch all data  and store them into session variable or
> fire a query for
> fetching data on every click  of previous and next.
> Thanks
> Regards
> ritu
>
>
> _
>
> Visit http://www.PalmGreetings.com The Most Happening and
> The first & only Mobile greeting site.
> * Send & Receive e-cards using your Hand held/Palm top/WAP Phone
> * Pleasure viewing animated cards on your device
> * Unleash your creativity by creating your own cards
>
>
===
> 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: Session Variable

2001-01-21 Thread Mathew, Binoy (CORP, GEITC)

Hi,
Session variables are meant to store user profiles and data needed to
identify a user and his preferences, obviously if one fetches data from a
database and stores it in the session, this will not only clog up the
session variable but only defeat the very purpose of a database. Databases
are meant to be queried but ultimately it is a tradeof b/w (a) memory
required to store the data in the session and (b) connecting to the db which
is time-consuming.
Hope this helps.
Binoy.

-Original Message-
From: Ritu Kamboj [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 12:02 PM
To: [EMAIL PROTECTED]
Subject: Session Variable


Hi All,

Can anybody suggest  what all difference does it make  fetch data once from
the database
and  store it  in the session variable, rather fetching every time from the
database.
for example in case of any  report showing data in the  form  of Previous
and next.
is it better once fetch all data  and store them into session variable or
fire a query for
fetching data on every click  of previous and next.
Thanks
Regards
ritu


_

Visit http://www.PalmGreetings.com The Most Happening and
The first & only Mobile greeting site.
* Send & Receive e-cards using your Hand held/Palm top/WAP Phone
* Pleasure viewing animated cards on your device
* Unleash your creativity by creating your own cards

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



Question about web-app paths (relative/absolute) and the use of multiple web-apps..

2001-01-21 Thread Kevin Duffey

Hi all,

I am still confused on an issue with relative and absolute paths when
dealing with Servlet 2.2 .war paths. For example, in one applicatoin I
deploy only a single web-app, and in my paths, such as  I know this is a relative path to the root web-app.
However, when two or more apps are deployed, I have noticed that if I don't
specify the specific context of the web-app, things get a little messed up.
Assume I deploy two apps, AppA, and AppB. Both apps I have the web.xml mapp
the extension .do to a specific controller servlet. I am following the MVC
architecture where by all requests to the .do extension get sent to the
ControllerServlet, which then (by using a framework like Struts) calls upon
an action class, then forwards to a JSP page. So, in either app, if I use
links such as  it seems to get confused..how I am
not sure. If I use  where
contextPath is set to the app context name (for example, AppA/path/page.jsp)
it seems to work alright.

There is one particular problem that may be the culprit but I am not sure. I
have a need to use 3 different web-apps (specifically to guarantee that each
app has its own memory so no cross-talk can occur) but all 3 point to the
same one war folder. This is because we have three identical sites in
functionality, but are different in one way, the particular media type the
user is logged in to. We do store a mediatype value for each user, but we
used to get some cross-talk when they went from one media type to another,
and I think it was mostly related to browser caching problems and the back
button issue.

So I am not sure if this is the problem or not, and the only thing I can
think of is to always append the mediatype to every link and form url being
submitted, such as using url rewriting.

Anyways..if anyone can shed light on the how tos of multiple web-app
deployments in the same server, possibly with 2 or more pointing to the same
www structure, I sure would appreciate being set straight on this.

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: Stop posting off-topic questions

2001-01-21 Thread Martin Cooper

For Java-specific mailing lists, check out the list of lists on eGroups:

http://www.egroups.com/dir/6174

(or drill down through Top:Computers:Programming:Languages:Java on eGroups).

There are a couple you might find interesting.

--
Martin Cooper
Tumbleweed Communications


- Original Message -
From: "Kevin Duffey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 21, 2001 8:00 PM
Subject: Re: Stop posting off-topic questions


> I am not aware of a Java specific mailing list. JSP, Servlets, XML maybe,
> but not JAVA specific questions, otherwise I would be happy to ask
questions
> there too. However, there are probably several hundred, if not thousand
> developers that subscribe to this list and we all have varying degrees of
> knowledge. While I agree that JSP should be the focus, there are many of
us
> using JSP in our applications and may need help on instituting a bit of
java
> that we are not familiar with. I do hate to see all the "out of office"
> replies, and advertisements, and so on. But JSP mostly, with some
intermixed
> java related questions should not be frowned on. Some of these people may
> know a lot more than others and just may not have found the answer they
are
> looking for elsewhere. I for one enjoy helping out as much as I can,
because
> I do ask alot of questions too.
>
> Oh well..I agree with the other reply you got, you can't do anything about
> it, and frankly anyone can ignore your post, or any other post, if they
> want.
>
>
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Panos Konstantinidis
> > Sent: Monday, January 15, 2001 3:55 AM
> > To: [EMAIL PROTECTED]
> > Subject: Stop posting off-topic questions
> >
> >
> >   No, I do not want to answer this question HERE. This is a JSP
> > list and not
> > a Java Class path/ Tomcat/ Java/ RMI/ WebSphere Configuration/ Jokes/
Jobs
> > Finding/ Foreign language (in ten simple lessons)/ Acquaintances
> > found/ (put
> > your own here) list. And yes, I would love to answer his question
> > IF IT WAS
> > POSTED ON A PROPER MAILING LIST.
> >   What is the matter with all of you people. You are acting childish and
> > anti-professional by posting all these off-topic questions. Do you think
I
> > (you/we) have the time to go through all these irrelevant questions
every
> > morning? This list is ONLY for JSP-related matters and nothing
> > else. If you
> > want help with something, then go and register with the relevant
list(s).
> >   This is happening because both parties allow this to happend. People
who
> > are asking irrelevant questions and people who are answering irrelevant
> > questions. I do not want to read unrelated questions and answers. I
> > subscribed to this list because I thought it was only for people who are
> > involved with the JSP technology. Ok, it happened to have posted
> > irrelevant
> > questions in the past, but I understood I was wrong and now I am trying
to
> > make people to respect each other by replying to them
> > individually (and not
> > through the list) but I have noticed that most of them are so
> > stubborn they
> > would not even consider thinking about that.
> >   This list is named JSP-INTEREST and not ANY-INTEREST. Take it
> > into account
> > next time you want to post an off-topic question.
> >
> >   Panos
> >
> >
> > >From: Mahesh Gangarapu <[EMAIL PROTECTED]>
> > >Reply-To: Mahesh Gangarapu <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: how to handel session time out
> > >Date: Sun, 14 Jan 2001 16:57:52 +0530
> > >
> > >If you want to Answer answer the question  ...
> > >For you Information this question is  about Servlet configuration
> > >??? Any questions about that
> > >
> > >- Original Message -
> > >From: Panos Konstantinidis <[EMAIL PROTECTED]>
> > >To: <[EMAIL PROTECTED]>
> > >Sent: Monday, January 15, 2001 4:19 PM
> > >Subject: Re: how to handel session time out
> > >
> > >
> > > >   THIS IS A BLOODY JSP LIST NOT AN ASP.
> > > >
> > > >
> > > > >From: "Srinivas K. R." <[EMAIL PROTECTED]>
> > > > >Reply-To: A mailing list about Java Server Pages specification and
> > > > > reference <[EMAIL PROTECTED]>
> > > > >To: [EMAIL PROTECTED]
> > > > >Subject: how to handel session time out
> > > > >Date: Mon, 15 Jan 2001 15:53:48 +0530
> > > > >
> > > > >Hi
> > > > >
> > > > >I have two  application one in ASP which is running on IIS and the
> > >other
> > >is
> > > > >in servlet is running on Apache with Jser on same NT machine.
> > > > >My servlet Application is Invoked thru the ASP application.
> > The Session
> > > > >time
> > > > >out for ASP application is 30 min and for the Servlet
> > application is 30
> > > > >min.
> > > > >When i come back to ASP application after  working on servlet
> > >application
> > > > >for more than 30 min it gives me session time out.
> > > > >I should some have have a common session time for bo

Session Variable

2001-01-21 Thread Ritu Kamboj

Hi All,

Can anybody suggest  what all difference does it make  fetch data once from
the database
and  store it  in the session variable, rather fetching every time from the
database.
for example in case of any  report showing data in the  form  of Previous
and next.
is it better once fetch all data  and store them into session variable or
fire a query for
fetching data on every click  of previous and next.
Thanks
Regards
ritu


_

Visit http://www.PalmGreetings.com The Most Happening and
The first & only Mobile greeting site.
* Send & Receive e-cards using your Hand held/Palm top/WAP Phone
* Pleasure viewing animated cards on your device
* Unleash your creativity by creating your own cards

===
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: Anyone working on JSP-EJB

2001-01-21 Thread suhdkaar asdas

hii Meghana
I am sudhakar working with GE .. I am also trying to collect some info. on
buidling Enterprise application... If u come across any such info. plzz do
mail to me... bye the bye, can i have ur contact address or phone no. ?
I need the info as soon as possible as my project is gonna start within a
week from now..
bye
warm regards
sudhakar P
Software Engineer
GE



>From: Meghana <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Anyone working on JSP-EJB
>Date: Mon, 8 Jan 2001 12:02:44 +0530
>
>Hi,
>
>I'm trying to collect information on JSP-EJB combination for
>building Enterprise application.
>
>Anyone working on this or knows about resources pls. reply.
>
>Thanks.
>Meghana.
>
>~~~
>Meghana Palkar
>
>Software Engineer,
>Patni Computer Systems.
>
>===
>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

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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: HTML printing

2001-01-21 Thread Hardeep Singh

that is what I am telling u. on the click of a button, generate another
page, in a separate window, without menu items or button and on its onLoad,
do window.print()?

- Original Message -
From: ramanathanp <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 6:40 PM
Subject: Re: HTML printing


> this is doing the same thing as putting window.print() in the onclick
event
> of print button.
> What i want to do is :
> Print the jsp/html page without printing the menu items and buttons of the
> page... i.e, only the contents of the page
>
> any way to do this...
>
> Original Message-
> From: Hardeep Singh [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 4:53 PM
> To: [EMAIL PROTECTED]
> Subject: Re: HTML printing
>
>
> I did it this way:
>
> 
> 
> function doPrint()
> {
>   window.print();
> }
> 
> 
> 
> ...other o.p. from JSP, the matter to be printed...
> 
>
>
> This is not EXACTLY printing, but see if this is viable.
>
> Hardeep Singh,
> K-49, B.K.Dutt Colony,
> New Delhi 110003.
> Phone: 4601342.
>
> Website: http://SeeingWithC.cjb.net
> EMail: [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: Fetching Data from Bean

2001-01-21 Thread Rathna

hi puneet,

suppose if you use the bean in your architecture then  the best way i
would say is , have the java class which is equavalent to the
resultset (or the table) and transfer the object into the jsp page
and use its methods to show values in the page.

for example ,say you have to display the employee details in the page ,
have the 'employee object' , construct the same in the bean with the
result set values.write the method in the bean which returns the employee
object ..

...
   public Employee getEmployeeDetails()
  {
return employee; //contains the values from the result set
  }

then in the JSP page,

<%

Employee employee = null;

employee = emplyeeBean.getEmployeeDetails() %>

then,

  <%=  employee.getName( ) %>



hope this helps,

regds,
rathna.





"Puneet Kathuria, Gurgaon" wrote:

> Thanks for the suggestion but i don't think this is an adequate way of
> writing JSP. For an enterprise wide solution, it's not a proper approach to
> write db access mechanism embedded in web pages.
>
> Ok my real question, is how to pass a resultset back to JSP from a bean ? I
> don't want to return back the resultset object even as for a thumb rule that
> front end should never know about data access.
>
> How can i convert say a resultset to a 2-dimension array or vector of
> vectors or any other methodology for tranferring data back to web page.
>
> Is there any sample application available on web that can be used a model
> for writing the JSP applications, ie. following n-tier architecture.
>
> Thanks very much
>
> regards
>
> Puneet
>
> > --
> > From: homai[SMTP:[EMAIL PROTECTED]]
> > Reply To: A mailing list about Java Server Pages specification and
> > reference
> > Sent: Saturday, January 20, 2001 9:56 PM
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: Fetching Data from Bean
> >
> > - Original Message -
> > From: "kishore" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, January 19, 2001 8:24 PM
> > Subject: Re: Fetching Data from Bean
> >
> >
> > > try this way ...
> > >
> > > 
> > >  
> > >  name 
> > >  address
> > > 
> > > <%
> > > try {
> > > //
> > >  Connection c =
> > DriverManager.getConnection("jdbc:odbc:TABLE","usr","pwd");
> > >  Statement s = c.createStatement();
> > >  ResultSet r = s.executeQuery("select name , address  from usertable
> > where
> > > username = '"+loginBean.getUsername()+"'");
> > > while( r.next())
> > >
> > >
> > > %>
> > > 
> > >  <%= r.getString("name") %> 
> > >  <%= r.getString("address") %> 
> > > 
> > > <%
> > >   }
> > > r.close();
> > >s.close();
> > >
> > >}catch(SQLException e){
> > >   System.out.println("SQLException thrown @ xyz.jso");
> > > }catch(ClassNotFoundException ee){
> > >   System.out.println("sun.jdbc.odbc.JdbcOdbcDriver class not
> > fount
> > > 2 xyz.jsp ");
> > >  }
> > > %>
> > > 
> > > - Original Message -
> > > From: Puneet Kathuria, Gurgaon <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, January 19, 2001 9:58 PM
> > > Subject: Fetching Data from Bean
> > >
> > >
> > > > Hello All:
> > > >
> > > > I have a jsp page that displays data in tabular format.
> > > > I have written a bean that performs the database queries & creates a
> > long
> > > > string (html) and it's returned back to display on the page.
> > > >
> > > > Can i bring the whole resultset in any form to jsp page & then display
> > > > (maybe as arrays)
> > > >
> > > > Any suggestions as to how / in what form to bring data to jsp page
> > apart
> > > > from the strategy am following ?
> > > >
> > > > regards
> > > >
> > > >
> > >
> > ==
> > =
> > > > 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!?
> > > Get your free @yahoo.com address at http://mail.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
> >
> > ==

Prevent code from being decompile

2001-01-21 Thread William Yeo

Hi all,
Recently I have notice that there are some products which could prevent
your class files from being decompile. Does anyone have any recommendation?

Regards
William

===
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: Fetching Data from Bean

2001-01-21 Thread Puneet Kathuria, Gurgaon

Thanks for the suggestion but i don't think this is an adequate way of
writing JSP. For an enterprise wide solution, it's not a proper approach to
write db access mechanism embedded in web pages.

Ok my real question, is how to pass a resultset back to JSP from a bean ? I
don't want to return back the resultset object even as for a thumb rule that
front end should never know about data access.

How can i convert say a resultset to a 2-dimension array or vector of
vectors or any other methodology for tranferring data back to web page.

Is there any sample application available on web that can be used a model
for writing the JSP applications, ie. following n-tier architecture.

Thanks very much

regards

Puneet


> --
> From: homai[SMTP:[EMAIL PROTECTED]]
> Reply To: A mailing list about Java Server Pages specification and
> reference
> Sent: Saturday, January 20, 2001 9:56 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Fetching Data from Bean
>
> - Original Message -
> From: "kishore" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, January 19, 2001 8:24 PM
> Subject: Re: Fetching Data from Bean
>
>
> > try this way ...
> >
> > 
> >  
> >  name 
> >  address
> > 
> > <%
> > try {
> > //
> >  Connection c =
> DriverManager.getConnection("jdbc:odbc:TABLE","usr","pwd");
> >  Statement s = c.createStatement();
> >  ResultSet r = s.executeQuery("select name , address  from usertable
> where
> > username = '"+loginBean.getUsername()+"'");
> > while( r.next())
> >
> >
> > %>
> > 
> >  <%= r.getString("name") %> 
> >  <%= r.getString("address") %> 
> > 
> > <%
> >   }
> > r.close();
> >s.close();
> >
> >}catch(SQLException e){
> >   System.out.println("SQLException thrown @ xyz.jso");
> > }catch(ClassNotFoundException ee){
> >   System.out.println("sun.jdbc.odbc.JdbcOdbcDriver class not
> fount
> > 2 xyz.jsp ");
> >  }
> > %>
> > 
> > - Original Message -
> > From: Puneet Kathuria, Gurgaon <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, January 19, 2001 9:58 PM
> > Subject: Fetching Data from Bean
> >
> >
> > > Hello All:
> > >
> > > I have a jsp page that displays data in tabular format.
> > > I have written a bean that performs the database queries & creates a
> long
> > > string (html) and it's returned back to display on the page.
> > >
> > > Can i bring the whole resultset in any form to jsp page & then display
> > > (maybe as arrays)
> > >
> > > Any suggestions as to how / in what form to bring data to jsp page
> apart
> > > from the strategy am following ?
> > >
> > > regards
> > >
> > >
> >
> ==
> =
> > > 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!?
> > Get your free @yahoo.com address at http://mail.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
>
> ==
> =
> 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: Stop posting off-topic questions

2001-01-21 Thread Kevin Duffey

I am not aware of a Java specific mailing list. JSP, Servlets, XML maybe,
but not JAVA specific questions, otherwise I would be happy to ask questions
there too. However, there are probably several hundred, if not thousand
developers that subscribe to this list and we all have varying degrees of
knowledge. While I agree that JSP should be the focus, there are many of us
using JSP in our applications and may need help on instituting a bit of java
that we are not familiar with. I do hate to see all the "out of office"
replies, and advertisements, and so on. But JSP mostly, with some intermixed
java related questions should not be frowned on. Some of these people may
know a lot more than others and just may not have found the answer they are
looking for elsewhere. I for one enjoy helping out as much as I can, because
I do ask alot of questions too.

Oh well..I agree with the other reply you got, you can't do anything about
it, and frankly anyone can ignore your post, or any other post, if they
want.


> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Panos Konstantinidis
> Sent: Monday, January 15, 2001 3:55 AM
> To: [EMAIL PROTECTED]
> Subject: Stop posting off-topic questions
>
>
>   No, I do not want to answer this question HERE. This is a JSP
> list and not
> a Java Class path/ Tomcat/ Java/ RMI/ WebSphere Configuration/ Jokes/ Jobs
> Finding/ Foreign language (in ten simple lessons)/ Acquaintances
> found/ (put
> your own here) list. And yes, I would love to answer his question
> IF IT WAS
> POSTED ON A PROPER MAILING LIST.
>   What is the matter with all of you people. You are acting childish and
> anti-professional by posting all these off-topic questions. Do you think I
> (you/we) have the time to go through all these irrelevant questions every
> morning? This list is ONLY for JSP-related matters and nothing
> else. If you
> want help with something, then go and register with the relevant list(s).
>   This is happening because both parties allow this to happend. People who
> are asking irrelevant questions and people who are answering irrelevant
> questions. I do not want to read unrelated questions and answers. I
> subscribed to this list because I thought it was only for people who are
> involved with the JSP technology. Ok, it happened to have posted
> irrelevant
> questions in the past, but I understood I was wrong and now I am trying to
> make people to respect each other by replying to them
> individually (and not
> through the list) but I have noticed that most of them are so
> stubborn they
> would not even consider thinking about that.
>   This list is named JSP-INTEREST and not ANY-INTEREST. Take it
> into account
> next time you want to post an off-topic question.
>
>   Panos
>
>
> >From: Mahesh Gangarapu <[EMAIL PROTECTED]>
> >Reply-To: Mahesh Gangarapu <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: how to handel session time out
> >Date: Sun, 14 Jan 2001 16:57:52 +0530
> >
> >If you want to Answer answer the question  ...
> >For you Information this question is  about Servlet configuration
> >??? Any questions about that
> >
> >- Original Message -
> >From: Panos Konstantinidis <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Monday, January 15, 2001 4:19 PM
> >Subject: Re: how to handel session time out
> >
> >
> > >   THIS IS A BLOODY JSP LIST NOT AN ASP.
> > >
> > >
> > > >From: "Srinivas K. R." <[EMAIL PROTECTED]>
> > > >Reply-To: A mailing list about Java Server Pages specification and
> > > > reference <[EMAIL PROTECTED]>
> > > >To: [EMAIL PROTECTED]
> > > >Subject: how to handel session time out
> > > >Date: Mon, 15 Jan 2001 15:53:48 +0530
> > > >
> > > >Hi
> > > >
> > > >I have two  application one in ASP which is running on IIS and the
> >other
> >is
> > > >in servlet is running on Apache with Jser on same NT machine.
> > > >My servlet Application is Invoked thru the ASP application.
> The Session
> > > >time
> > > >out for ASP application is 30 min and for the Servlet
> application is 30
> > > >min.
> > > >When i come back to ASP application after  working on servlet
> >application
> > > >for more than 30 min it gives me session time out.
> > > >I should some have have a common session time for both of
> them. Has any
> >of
> > > >you have solution for my problem.
> > > >
> > > >Is there any way of specifying a common session time out for both the
> > > >application.
> > > >
> > > >Regards
> > > >Srinivas
> > > >
> > >
> >
> >=
> ==
> > > >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.ht

Re: Any Java based zip finder or distance between 2 zip codes?

2001-01-21 Thread Kevin Duffey

It may not be a JSP related question, but I am using JSP for the pages that
will interface with such a solution. And, while you may think there is not,
you are but one tiny person in this oh so great world of ours, so I doubt
your great wisdom of java will surely be the final answer as to whether or
not there is indeed an api written in java that does such a task.

As a very regular contributor to this mailing list I seldom ask off-topic
questions and while I did not specifically state that I would be using JSP,
nor ask a specific JSP technology question, there are a large number of
developers in this list that do things other than JSP. Therefore, while I
generally stick to the JSP related stuff, every now and again I feel
compelled to ask others that may be using JSP and other similar technologies
for advise or possible info on something I can't figure out in the immediate
short term.

Feel free to ask some questions..I'll be happy to answer whatever I can.

>
> This is NOT a JSP-related question. And no, of course there is no Java api
> that does this.
>
> >From: Kevin Duffey <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Any Java based zip finder or distance between 2 zip codes?
> >Date: Sun, 21 Jan 2001 10:49:05 -0800
> >
> >Hi there,
> >
> >Anyone know of a java api or library that works with a database
> of zips so
> >that all zips from a distance of x miles from a given zip can be
> retrieved,
> >or the distance between two zips can be retrieved? Also would like to see
> >it
> >return the state, city, area code, population info.
> >
> >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
>
> _
> 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: Stop posting off-topic questions

2001-01-21 Thread Alan KF LAU

Asking ASP/NT in JSP channel really got my nerve.

But think about it...

Those ASP developers can't even get help from Microsoft support, and
have to beg, on their knee, in enemy channel for help.

Can they be more pathetic?

Should we show our empathy to them?

In the future, the standard answer to such questions would be:

USE JSP YOU MORON

Just my two bits.

P.S. But I always welcome all questions in switching ASP to JSP.

>   No, I do not want to answer this question HERE. This is a JSP list and not
> a Java Class path/ Tomcat/ Java/ RMI/ WebSphere Configuration/ Jokes/ Jobs
> Finding/ Foreign language (in ten simple lessons)/ Acquaintances found/ (put
> your own here) list. And yes, I would love to answer his question IF IT WAS
> POSTED ON A PROPER MAILING LIST.
>   What is the matter with all of you people. You are acting childish and
> anti-professional by posting all these off-topic questions. Do you think I
> (you/we) have the time to go through all these irrelevant questions every
> morning? This list is ONLY for JSP-related matters and nothing else. If you
> want help with something, then go and register with the relevant list(s).
>   This is happening because both parties allow this to happend. People who
> are asking irrelevant questions and people who are answering irrelevant
> questions. I do not want to read unrelated questions and answers. I
> subscribed to this list because I thought it was only for people who are
> involved with the JSP technology. Ok, it happened to have posted irrelevant
> questions in the past, but I understood I was wrong and now I am trying to
> make people to respect each other by replying to them individually (and not
> through the list) but I have noticed that most of them are so stubborn they
> would not even consider thinking about that.
>   This list is named JSP-INTEREST and not ANY-INTEREST. Take it into account
> next time you want to post an off-topic question.
>
>   Panos
>
>
> >From: Mahesh Gangarapu <[EMAIL PROTECTED]>
> >Reply-To: Mahesh Gangarapu <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: how to handel session time out
> >Date: Sun, 14 Jan 2001 16:57:52 +0530
> >
> >If you want to Answer answer the question  ...
> >For you Information this question is  about Servlet configuration
> >??? Any questions about that
> >
> >- Original Message -
> >From: Panos Konstantinidis <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Monday, January 15, 2001 4:19 PM
> >Subject: Re: how to handel session time out
> >
> >
> > >   THIS IS A BLOODY JSP LIST NOT AN ASP.
> > >
> > >
> > > >From: "Srinivas K. R." <[EMAIL PROTECTED]>
> > > >Reply-To: A mailing list about Java Server Pages specification and
> > > > reference <[EMAIL PROTECTED]>
> > > >To: [EMAIL PROTECTED]
> > > >Subject: how to handel session time out
> > > >Date: Mon, 15 Jan 2001 15:53:48 +0530
> > > >
> > > >Hi
> > > >
> > > >I have two  application one in ASP which is running on IIS and the
> >other
> >is
> > > >in servlet is running on Apache with Jser on same NT machine.
> > > >My servlet Application is Invoked thru the ASP application. The Session
> > > >time
> > > >out for ASP application is 30 min and for the Servlet application is 30
> > > >min.
> > > >When i come back to ASP application after  working on servlet
> >application
> > > >for more than 30 min it gives me session time out.
> > > >I should some have have a common session time for both of them. Has any
> >of
> > > >you have solution for my problem.
> > > >
> > > >Is there any way of specifying a common session time out for both the
> > > >application.
> > > >
> > > >Regards
> > > >Srinivas
> > > >
> > >
> > >===
> > > >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
> > >
> > >
> >_
> > > Get Your Private, Free E-mail from MSN Hotmail at
> >http://www.hotmail.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: Any Java based zip finder or distance between 2 zip codes?

2001-01-21 Thread Biff Malone

This is NOT a JSP-related question. And no, of course there is no Java api
that does this.

>From: Kevin Duffey <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Any Java based zip finder or distance between 2 zip codes?
>Date: Sun, 21 Jan 2001 10:49:05 -0800
>
>Hi there,
>
>Anyone know of a java api or library that works with a database of zips so
>that all zips from a distance of x miles from a given zip can be retrieved,
>or the distance between two zips can be retrieved? Also would like to see
>it
>return the state, city, area code, population info.
>
>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

_
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



My SQL problem

2001-01-21 Thread Henki Lubis

Hi guyz
I wanna make a java application using socket. I want to get data from Data
base and send it using socket.
My question is :
1. How can i make a connection using poolmanager classes to connect to My
Sql that installed in Linux. What setting should i do to make connection ???
I never try this one before so .. pls help me step by step wat should i do
...

Thx alot for your help ..

a Beginner .
HL.

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



Caching problem....

2001-01-21 Thread Arun Prakash

Hi All.,
   I have a caching problem with the JVMI'm using Include
file(the files which are uploaded often). Even though the files are
uploaded properly when i include the files its showing the contents of
the old files. I think the file content is cached in the JVM. How can i
clear the cache once the files are uploaded ??? I can solve this problem
be restarting the serverbut i cannot do this everytime the files are
uploaded...so any suggestions ??

regards

G. Arun Prakash
Senior Software Engineer
BTlôôksmart(tm)
Level 7, 241 Commonwealth Street
Surry Hills
Sydney NSW 2010
Australia
office:   +61(0)2 9282 0200
office:   +61(0)2 9282 0213 (direct)
fax:   +61(0)2 9282 0222
email: mailto:[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



Any Java based zip finder or distance between 2 zip codes?

2001-01-21 Thread Kevin Duffey

Hi there,

Anyone know of a java api or library that works with a database of zips so
that all zips from a distance of x miles from a given zip can be retrieved,
or the distance between two zips can be retrieved? Also would like to see it
return the state, city, area code, population info.

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



Closing a DB connection used in a bean

2001-01-21 Thread A. C.

I've a bean. It's constructor open a connection to a db using jdbc.
Each jsp page which needs to access the db, has this line:


I need to close the connection to the db when the user close his browser, so
i'd write something like this in each page:
<%! public void jspDestroy() {
   db.closeConnection();
}
%>
But it doesn't work because the "db" bean is not recognized inside the
method.
Any tips?

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