Re: Session - clarify please

2000-12-28 Thread tripat kharbanda

Yes,


>From: "Srinivasan, Pratibha (CORP, GEITC)"
><[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Session - clarify please
>Date: Thu, 28 Dec 2000 12:07:09 +0530
>MIME-Version: 1.0
>Received: from [204.160.241.38] by hotmail.com (3.2) with ESMTP id
>MHotMailBC14298B00B2400431E0CCA0F126EB480; Wed Dec 27 22:34:57 2000
>Received: from mail (mail.javasoft.com [204.160.241.28])by
>mail2.java.sun.com (8.10.0.Beta13+Sun/8.10.0.Beta13) with ESMTP id
>eBS6XFh11236;Wed, 27 Dec 2000 22:33:15 -0800 (PST)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d)
>with  spool id 2784226 for [EMAIL PROTECTED]; Wed, 27 Dec
>2000  22:34:45 -0800
>Received: from unknown-147.101.pilot.net (unknown-147-101.pilot.net
>  [198.232.147.101]) by mail.java.sun.com (8.10.0.Beta13+Sun/8.10.2)
>   with ESMTP id eBS6YhK20742 for <[EMAIL PROTECTED]>; Wed, 27
> Dec 2000 22:34:43 -0800 (PST)
>Received: from unknown-24-5.pilot.net (unknown-24-5.pilot.net
>[206.189.24.5])  by unknown-147.101.pilot.net with ESMTP id
>WAA21533 for  <[EMAIL PROTECTED]>; Wed, 27 Dec 2000
>22:32:33 -0800 (PST)
>Received: from new02xbindge.geind.ge.com (localhost [127.0.0.1]) by
>  unknown-24-5.pilot.net with ESMTP id WAA07965 for
><[EMAIL PROTECTED]>; Wed, 27 Dec 2000 22:32:32 -0800 (PST)
>Received: by new02xbindge.geind.ge.com with Internet Mail Service
>(5.5.2652.35)  id ; Thu, 28 Dec 2000 12:06:56 +0530
>From [EMAIL PROTECTED] Wed Dec 27 22:36:55 2000
>X-Mailer: Internet Mail Service (5.5.2652.35)
>Message-ID:
><[EMAIL PROTECTED]>
>Sender: A mailing list about Java Server Pages specification and
>   reference <[EMAIL PROTECTED]>
>
>hi,
>I have a very basic question. I have a servlet which prints out the session
>id.
>I open a Netscape browser window and run this servlet. Then I open another
>Netscape window and run the same servlet. What I find is that the session
>id
>is the same in both cases that is both the windows are in the SAME session.
>When I do the same with IE, I observe that the session ID is different in
>both cases that is the windows belong to DIFFERENT sessions.
>Is the concept of Session browser specific?
>Regards,
>Pratibha
>
>===
>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: Session object with Array

2000-12-28 Thread tripat kharbanda

use

void setAttribute(java.lang.String name, java.lang.Object value)
in ver 2.2

and

void putValue(java.lang.String name, java.lang.Object value)

in earlier versions

cheers

Tripat

>From: hotmail <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Session object with Array
>Date: Tue, 28 Nov 2000 11:46:36 +0530
>MIME-Version: 1.0
>X-Originating-IP: [203.129.237.91]
>Received: from [204.160.241.38] by hotmail.com (3.2) with ESMTP id
>MHotMailBC142530008AD820F3A2CCA0F126B58F0; Wed Dec 27 22:14:10 2000
>Received: from mail (mail.javasoft.com [204.160.241.28])by
>mail2.java.sun.com (8.10.0.Beta13+Sun/8.10.0.Beta13) with ESMTP id
>eBS6EUh09600;Wed, 27 Dec 2000 22:14:30 -0800 (PST)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d)
>with  spool id 2782949 for [EMAIL PROTECTED]; Wed, 27 Dec
>2000  22:16:00 -0800
>Received: from hotmail.com (law2-oe64.hotmail.com [216.32.180.157]) by
> mail.java.sun.com (8.10.0.Beta13+Sun/8.10.2) with ESMTP id
>eBS6FxK16432 for <[EMAIL PROTECTED]>; Wed, 27 Dec 2000
>22:15:59 -0800 (PST)
>Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
>Wed,  27 Dec 2000 22:13:53 -0800
>From [EMAIL PROTECTED] Wed Dec 27 22:15:43 2000
>References:  <[EMAIL PROTECTED]>
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook Express 5.00.2314.1300
>X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
>X-OriginalArrivalTime: 28 Dec 2000 06:13:53.0625 (UTC)
>  FILETIME=[5A724490:01C07095]
>Message-ID:  <[EMAIL PROTECTED]>
>Sender: A mailing list about Java Server Pages specification and
>   reference <[EMAIL PROTECTED]>
>
>HI All,
>hey can anybody tell me howto store an array object(or vector) in an
>session
>object?
>thx in adv
>MJ
>- Original Message -
>From: Dennis Leary <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, December 28, 2000 2:19 AM
>Subject: Re: hi all
>
>
> > Recommend getting your hands on the following book.
> >
> > Instant Java Server Pages
> >
>http://r1.us.rmi.yahoo.com/rmi/http://shop.barnesandnoble.com/booksearch/res
>ults.asp/rmivars%3ftarget=_top?sourceid=00339421582043540949&bfdate=12-27-20
>00+15:46:26&WRD=%22instant+java+server+pages%22
> >
> > This is an excellant tutorial for developing data driven web apps. It
>also
>contains the sample connectionpool code for you to utillize and how to use
>it.
> >
> > >>> DUY HA <[EMAIL PROTECTED]> 12/27/00 03:42PM >>>
> > How can I do that...please help me..thanks
> > --- Dennis Leary <[EMAIL PROTECTED]> wrote:
> > > You should utilize a connection pool and the
> > > information about db should be stored in a config
> > > file that is loaded by a servlet or application
> > > bean.
> > >
> > > >>> DUY HA <[EMAIL PROTECTED]> 12/27/00 03:23PM >>>
> > > Anyone knows a web server that supports JSP and
> > > free?
> > >
> > > I made a database JDBC-ODBC on my localhost ( I use
> > > Jrun) but I don't know what will be when it is
> > > loaded
> > > on real server on Internet?
> > > I used Access database and a connection bridge
> > > jdbc:odbc:mydatabase and I defined it on my computer
> > > but when on real server, who will define it?
> > >
> > > Thanks and Happy New Year
> > >
> > > htqduy
> > >
> > > __
> > > Do You Yahoo!?
> > > Yahoo! Shopping - Thousands of Stores. Millions of
> > > Products.
> > > http://shopping.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
> >
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Shopping - Thousands of Stores. Millions of Products.
> > http://shopping.yahoo.com/
> >
> >
>===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>

Re: Form Submission to new window

2001-01-19 Thread tripat kharbanda

Seemingly some java script expert is needed to resolve ur issue


>From: Manish Joshi <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Form Submission to new window
>Date: Sat, 20 Jan 2001 12:01:08 +0530
>MIME-Version: 1.0
>X-Originating-IP: [203.129.237.91]
>Received: from [204.160.241.38] by hotmail.com (3.2) with ESMTP id
>MHotMailBC327B090065400431D8CCA0F1268BDD0; Fri Jan 19 22:28:31 2001
>Received: from mail (mail.javasoft.com [204.160.241.28])by
>mail2.java.sun.com (8.10.0.Beta13+Sun/8.10.0.Beta13) with ESMTP id
>f0K6Spg20981;Fri, 19 Jan 2001 22:28:52 -0800 (PST)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d)
>with  spool id 3607405 for [EMAIL PROTECTED]; Fri, 19 Jan
>2001  22:30:28 -0800
>Received: from hotmail.com ([216.32.180.25]) by mail.java.sun.com
>(8.10.0.Beta13+Sun/8.10.2) with ESMTP id f0K6URK06157 for
><[EMAIL PROTECTED]>; Fri, 19 Jan 2001 22:30:27 -0800 (PST)
>Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
>Fri,  19 Jan 2001 22:28:08 -0800
>From [EMAIL PROTECTED] Fri Jan 19 22:28:51 2001
>References:
><[EMAIL PROTECTED]>
><00cf01c08298$ec3a7db0$[EMAIL PROTECTED]>
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook Express 5.00.2314.1300
>X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
>X-OriginalArrivalTime: 20 Jan 2001 06:28:08.0678 (UTC)
>  FILETIME=[27994060:01C082AA]
>Message-ID:  <[EMAIL PROTECTED]>
>Sender: A mailing list about Java Server Pages specification and
>   reference <[EMAIL PROTECTED]>
>
>Hi all,
>just stuck here.i want to open a newwindow frm parent window and submit
>form
>of parent to new window how to do this?
>any brains...?
>thx
>MJ
>
>- Original Message -
>From: kishore <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Saturday, January 20, 2001 9:54 AM
>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 

Re: APPLET IO QUESTION

2001-01-25 Thread tripat kharbanda

Yups u can write to the same server from which u have loaded the applet.

>From: Manish Joshi <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: APPLET IO QUESTION
>Date: Thu, 25 Jan 2001 16:10:34 +0530
>MIME-Version: 1.0
>X-Originating-IP: [203.129.237.91]
>Received: from [204.160.241.38] by hotmail.com (3.2) with ESMTP id
>MHotMailBC394CF50090D820F3B9CCA0F126800F0; Thu Jan 25 02:37:55 2001
>Received: from mail (mail.javasoft.com [204.160.241.28])by
>mail2.java.sun.com (8.10.0.Beta13+Sun/8.10.0.Beta13) with ESMTP id
>f0PAcBg10288;Thu, 25 Jan 2001 02:38:11 -0800 (PST)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d)
>with  spool id 3836434 for [EMAIL PROTECTED]; Thu, 25 Jan
>2001  02:39:50 -0800
>Received: from hotmail.com (law2-oe41.hotmail.com [216.32.180.38]) by
>mail.java.sun.com (8.10.0.Beta13+Sun/8.10.2) with ESMTP id
>f0PAdnK02140 for <[EMAIL PROTECTED]>; Thu, 25 Jan 2001
>02:39:49 -0800 (PST)
>Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
>Thu,  25 Jan 2001 02:37:35 -0800
>From [EMAIL PROTECTED] Thu Jan 25 02:38:23 2001
>References: <[EMAIL PROTECTED]>
><[EMAIL PROTECTED]>
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook Express 5.00.2314.1300
>X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
>X-OriginalArrivalTime: 25 Jan 2001 10:37:35.0445 (UTC)
>  FILETIME=[D48D6850:01C086BA]
>Message-ID:  <[EMAIL PROTECTED]>
>Sender: A mailing list about Java Server Pages specification and
>   reference <[EMAIL PROTECTED]>
>
>hi all,
>how do u read/write in files frm an applet,i dunno is it feasible/possible
>or not,but somebody enlighten me more on this
>wt r the security measures to b taken and how u configre them?
>hey any brains..?
>MJ
>
>===
>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



including servlet output in jsp file

2000-08-17 Thread Tripat Kharbanda

Hi people!!!

I am new here. I have a very basic question(for the gurus) but for me its
been nearly a day pulling my hair for this.

what i am trying to do is to call servlet from the jsp page and get the
output generated by the servlet into that jsp file. for this purpose i
choose to use



but this gives the following error in the browser window

Included servlet error: 404: File Not Found
/jsp/maps/../../WEB-INF/servlets/OptionList

but if i append ".class" to the servlet file path it displays the binary
code of the class file. That means that the path for the servlet is correct.

i am using jswdk-1.0.1 on win'98

Please help.

===
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: Urgent !!!

2000-08-21 Thread Tripat Kharbanda

yes that possible. for this u need to add a port to listen in the server
configuration file. I have dun that for jswdk but since i dun know for
apache and IIS i'll enclose the code that needs to be added for the addition
for port.


Add this code to webserver.xml file












After this create a  directory "map" in the webserver root folder in my case
it was c:\jswdk\jswdk-1.0.1\


Hope this helps.

Regards
Tripat
- Original Message -
From: amit <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 21, 2000 5:17 PM
Subject: Urgent !!!


> Hi ALL,
>
> I'm  interested to test a E-Com Site.
> Currently ,I'm interested to test it's performance
> and overall deployment concerned issues.
>
> With this regard please try to provide answer of  my
> following query  :
>
> *
> Is it possible to run two servers (Server Softwares) on a single
> machine on single hard disk ,with same IP address but with
> DIFFERENT  port  numbers ?
> *
> e.g.
> Say  IIS (Internet Information Server From Microsoft) and Apache
> Server (for Win NT) from Apache Foundation) are running , without
> interference , on the same machine with same IP address but  with
> different  port numbers(say 80 for IIS and 8080 for Apache).
>
> With This Regard Please Provide the needful info and co-operate
> with me.Thanking You.
>
> Any  Resources / URLs / Book Names With  This Regard
> Are  WEL-COME  !!!
>
> With Luv,
> -Amit
> [EMAIL PROTECTED]
> Sansui Software Pvt. Ltd.,Pune
>
>
===
> 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: How to display the errors in this html

2000-08-22 Thread Tripat Kharbanda

To best of my knowledge (i'm not too sure on this) error page fas to be a
jsp page!!!
- Original Message -
From: swaroop <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 22, 2000 5:44 PM
Subject: How to display the errors in this html


> Hi friends,
>
> See the code below,
> This following code is in some.jsp file
> <%@ page errorPage ="/ib/error/DirectAccess.htm" %>
>
> How can I show the errorPage (exceptions,printStackTrace) in the
> DirectAccess.htm
>
> Thanks in advance
> venna
>
>
===
> 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: urgent Help on UPLOAD a file

2000-08-22 Thread Tripat Kharbanda

Hi Rajesh. Try the following

1. For intracting with the client (node)   :- Try using java web start . it
allows u to interact with the client(node) or may be signed applets.
2. use   boolean java.io.File.canWrite() method to see if u can write to
file. if u r sucessful in writing to the file (i.e the method returns true)
that means that the file is not in use with any other program or if the
method returns  false that means that the file is not writeble due to some
reason (Most probably coz it may be already in use).

I hope that 2 will solve ur problem

Cheers

Tripat
- Original Message -
From: Rajesh Singh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 22, 2000 5:22 PM
Subject: urgent Help on UPLOAD a file


Hi all guru

..i've one problem which is bugging me
since last two days.I NEED URGENT HELP
from all of u
..the problem is like this:
..creating a web-based application in which
one of the functionality is to UPLOAD a file
(in my case it will be .xls file)from the client's
machine. Now requirement is that if you select a file
to upload THEN IF THAT FILE is opened at the client's
system at that time then it SHOULD NOT UPLOAD the
file and give some Message to the User.It is to
prevent that the user could be editing the file
at that time and without saving he can go for
uploading(this is to prevent as application requires
this)...so we will prevent the UPLOAD if that file
is opened at that time.(if you have used
www.driveway.com then you would hv found that they
allow the UPLOAD taking the old ie last updated
file...this thing we want to prevent)

HOW TO GO ABOUT IT ?..I'm using Java, Servlet etc.
one thing i feel that i need to check the
Task Manager before uploading BUT still here atmost
we can check is whether that application(MS-Excel for
ex) is running and can't check which file...

HELP Please...if u have anything to say
on this problem

u can send at [EMAIL PROTECTED] also
thanx and regards,
Rajesh





















__
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

===
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: Applet popup question

2000-08-23 Thread Tripat Kharbanda

yes use dialog class in the awt package.
- Original Message -
From: Stefán Freyr Stefánsson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 22, 2000 9:15 PM
Subject: Applet popup question


> Is there any way of displaying a popup confirmation box (like javascript
> "confirm()" box) from an applet?
>
> What I need is confirmation from the user that an applet can continue with
> it's work... like say modifying a string sent in from the user and the
> applet wants confirmation that the changes it made to the string is
> something the user accepts before returning it to somewhere...
>
> I'm sorry that this question is out of topic for this mailing list but I
> don't know where else to turn ;o)
>
> Thanks in advance,
> Stefan Freyr.
>
>
===
> 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