[OffTopic] Re: Token Loop

2002-06-05 Thread Mattias J

Here is yet another way to do it. (In my opinion the neatest)

for(int wordslen = 0; wordslen < 3 && tokenWords.hasMoreTokens();
wordslen++)
  words[wordslen] = tokenWords.nextToken();


> while(TokenWords.hasMoreTokens() && (wordslen < 3))
> {
> Words[wordslen] = TokenWords.nextToken();
> wordslen++;
> }

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



To save JSP forms one by one in Excel

2002-06-05 Thread Elango Palani

Dear All,

I need to save JSP contents which has multi forms, one by one in to Excel sheet.
File names will be generated from each form.

Can anybody sort this issue.???

..

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=

Achievement don't have any boundaries  ... Even sky is not the limit, there are 
many more things even beyond the sky.

Keep going on ..Keep Smiling too also Make others 
to Smile.

Regards

Elango Palani.

==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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: DB Access from Applet

2002-06-05 Thread Hrish

Please stop sending this messages. You have to subscribe to this mailing
list, only then you are added.
Now if u do not want to get the messages better unsubscribe instead of
sending those useless messages and wasting others time.
This is so strange.


- Original Message -
From: anette mysel <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 8:40 PM
Subject: Re: DB Access from Applet


> PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW YOU. THANK YOU...
> - Original Message -
> From: "Anoop Kumar" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 05, 2002 8:39 AM
> Subject: Re: DB Access from Applet
>
>
> > There is another way to do this. You need to use a thin driver for the
> > connectivity.
> > I had experienced this when i was using Oracle as the database.
> >
> > But i guess signing shd help although i hvnt tried it myself.
> >
> > hope this helps,
> > Anoop
> >
> > -Original Message-
> > From: Hrish [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 05, 2002 6:35 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: DB Access from Applet
> >
> >
> > I suppose you will have to sign the applet.
> >
> > Regards,
> > Hrish
> >
> >
> >
> >
> >
> > - Original Message -
> > From: Kesav, Ramesh <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 05, 2002 10:26 AM
> > Subject: Re: DB Access from Applet
> >
> >
> > > you need to give network permissions
> > >
> > > Regards
> > >
> > > Ramesh Kesavanarayanan
> > > Electronic Data Systems India pvt Ltd
> > >
> > > *  91-44-254 9650 ext :2442
> > >   91-44-226 5360 (res)
> > > * [EMAIL PROTECTED]
> > > * [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > > -Original Message-
> > > From: Du Nguyen [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, 5 June 2002 8:01 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: DB Access from Applet
> > >
> > >
> > > Hi all,
> > > I have an applet that accesses DB through a jdbcodbc
connection.
> > It
> > > works well when i run on AppletViewer but it can't on browser. The
> problem
> > > is likely caused by security settings. Pls help. Thanks in advance.
> > > Regards,
> > > Du Nguyen
> > >
> > >
> >
>
===
> > > 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://archives.java.sun.com/jsp-interest.html
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> > >  http://www.jguru.com/faq/index.jsp
> > >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> > >  http://www.jguru.com/faq/index.jsp
> > >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

===
To unsubscrib

inheritance in jsp

2002-06-05 Thread Kesav, Ramesh

Regards

Ramesh Kesavanarayanan
Electronic Data Systems India pvt Ltd

*  91-44-254 9650 ext :2442
  91-44-226 5360 (res)
* [EMAIL PROTECTED]
* [EMAIL PROTECTED]




-Original Message-
From: Zachary Roberts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 5 June 2002 7:09 PM
To: [EMAIL PROTECTED]
Subject: Re: JavaBean Vs Java Class


Sentthoor-

The only thing I can think of is that the JavaBean gives you access to the
automatic  and  tags if you need them.

Zac

>>> [EMAIL PROTECTED] 06/05/02 03:17AM >>>
Hi Guys,

Hi all,

 does anybody know how to incorporate inheritance in jsp?


Regards

Ramesh Kesavanarayanan
[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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: how can i get textvalue of my jsp page in my java class file?

2002-06-05 Thread Biji Harees

create a java class with getter and setter method and put all your values
to be inserted into this class and pass reference of this class to the
class which does database operations

Bye

Biji Harees
Amsoft India Ltd
Bangalore

-Original Message-
From:   Vaishali S. Pandya [SMTP:[EMAIL PROTECTED]]
Sent:   Tuesday, June 04, 2002 5:28 PM
To: [EMAIL PROTECTED]
Subject:Re: how can i get textvalue of my jsp page in my java class file?

i am new in java
not working for more than 1 month
sorry for such a silly que
btw Thanks

Vaishali



read a jsp book, or professional jsp by wrox publications.

Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 04, 2002 4:35 AM
To: [EMAIL PROTECTED]
Subject: how can i get textvalue of my jsp page in my java class file?


i submit my jsp page and call an method of my class to insert in db
how will i get all values of my page in my class?
or i have to pass these as parameters to the method?
thanX in advance

Vaishali

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JavaBean Vs Java Class

2002-06-05 Thread Biji Harees

most important thing is that in java beans one ca set scope of the bean ie
session,request or application which is not possible with Java class

bye

Biji Harees
Amsoft India Ltd
Bangalore

-Original Message-
From:   Zachary Roberts [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, June 05, 2002 7:09 PM
To: [EMAIL PROTECTED]
Subject:Re: JavaBean Vs Java Class

Sentthoor-

The only thing I can think of is that the JavaBean gives you access to the
automatic  and  tags if you need them.

Zac

>>> [EMAIL PROTECTED] 06/05/02 03:17AM >>>
Hi Guys,

I need to write a static method in a class to do a specific task. I can
simple import the class at the top and use the method in my JSP. However
I am wondering is there any difference in using a class as a JavaBean
rather than simply importing it and using it...

Senthoor

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Date calculation

2002-06-05 Thread Kesav, Ramesh

it should be
System.out.println(myCal.get(myCal.DATE));

Regards

Ramesh Kesavanarayanan
Electronic Data Systems India pvt Ltd

*  91-44-254 9650 ext :2442
  91-44-226 5360 (res)
* [EMAIL PROTECTED]
* [EMAIL PROTECTED]




-Original Message-
From: Alireza Nahavandi [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 6 June 2002 1:37 AM
To: [EMAIL PROTECTED]
Subject: Date calculation


Hi all,

I want to get the date of 5 days later. According to Sun Java document, the
following code should work. But still the result is today.
Am I missing anything?



Calendar myCal = Calendar.getInstance();
myCal.add(myCal.DATE, 5);

System.out.println ( myCal.DATE );


Thank you.

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JavaBean Vs Java Class

2002-06-05 Thread Senthoorkumaran

If you don't know us, ask the person who subscribed you to this mailing
list to remove you from it :-)

Senthoor

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of anette mysel
Sent: Wednesday, June 05, 2002 9:09 PM
To: [EMAIL PROTECTED]
Subject: Re: JavaBean Vs Java Class

PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW YOU. THANK YOU...
- Original Message -
From: "Zachary Roberts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 8:39 AM
Subject: Re: JavaBean Vs Java Class


Sentthoor-

The only thing I can think of is that the JavaBean gives you access to
the
automatic  and  tags if you need them.

Zac

>>> [EMAIL PROTECTED] 06/05/02 03:17AM >>>
Hi Guys,

I need to write a static method in a class to do a specific task. I can
simple import the class at the top and use the method in my JSP. However
I am wondering is there any difference in using a class as a JavaBean
rather than simply importing it and using it...

Senthoor


===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: DB Access from Applet

2002-06-05 Thread Richard Yee

Du,
Use a search engine and search for 'Applet Signing'.

Regards,

Richard


At 08:05 AM 6/6/2002 +0700, you wrote:
> Would you please tell me where to find document and exmaples about
>this ? Thanks
>
>-Original Message-
>From: Hrish [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, June 05, 2002 8:05 PM
>To: [EMAIL PROTECTED]
>Subject: Re: DB Access from Applet
>
>
>I suppose you will have to sign the applet.
>
>Regards,
>Hrish
>
>
>
>
>
>- Original Message -
>From: Kesav, Ramesh <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, June 05, 2002 10:26 AM
>Subject: Re: DB Access from Applet
>
>
> > you need to give network permissions
> >
> > Regards
> >
> > Ramesh Kesavanarayanan
> > Electronic Data Systems India pvt Ltd
> >
> > *  91-44-254 9650 ext :2442
> >   91-44-226 5360 (res)
> > * [EMAIL PROTECTED]
> > * [EMAIL PROTECTED]
> >
> >
> >
> >
> > -Original Message-
> > From: Du Nguyen [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, 5 June 2002 8:01 AM
> > To: [EMAIL PROTECTED]
> > Subject: DB Access from Applet
> >
> >
> > Hi all,
> > I have an applet that accesses DB through a jdbcodbc connection.
>It
> > works well when i run on AppletViewer but it can't on browser. The problem
> > is likely caused by security settings. Pls help. Thanks in advance.
> > Regards,
> > Du Nguyen
> >
> >
>===
> > 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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: DB Access from Applet

2002-06-05 Thread Du Nguyen

Would you please tell me where to find document and exmaples about
this ? Thanks

-Original Message-
From: Hrish [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 8:05 PM
To: [EMAIL PROTECTED]
Subject: Re: DB Access from Applet


I suppose you will have to sign the applet.

Regards,
Hrish





- Original Message -
From: Kesav, Ramesh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 10:26 AM
Subject: Re: DB Access from Applet


> you need to give network permissions
>
> Regards
>
> Ramesh Kesavanarayanan
> Electronic Data Systems India pvt Ltd
>
> *  91-44-254 9650 ext :2442
>   91-44-226 5360 (res)
> * [EMAIL PROTECTED]
> * [EMAIL PROTECTED]
>
>
>
>
> -Original Message-
> From: Du Nguyen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 5 June 2002 8:01 AM
> To: [EMAIL PROTECTED]
> Subject: DB Access from Applet
>
>
> Hi all,
> I have an applet that accesses DB through a jdbcodbc connection.
It
> works well when i run on AppletViewer but it can't on browser. The problem
> is likely caused by security settings. Pls help. Thanks in advance.
> Regards,
> Du Nguyen
>
>
===
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Date calculation

2002-06-05 Thread Rodelio Pagui

sorry, i failed to notice you used the DATE field of the calendar.  i use
the DAY_OF_YEAR field for date calculations. like this:

 Calendar myCal = Calendar.getInstance();
 myCal.add(myCal.DAY_OF_YEAR, 5);

 System.out.println ( myCal.getTime());

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Date calculation

2002-06-05 Thread Rodelio Pagui

what i do is use the getTime() method like this:

 Calendar myCal = Calendar.getInstance();
 myCal.add(myCal.DATE, 5);

 System.out.println ( myCal.getTime() );

getTime() returns a date object.

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Running Tomcat as a Service

2002-06-05 Thread Toru Watanabe

Hi Robert,

There are some way to incorporate it.
The most simple way is, to change catalina.bat.

--before--(around line 65)
set _RUNJAVA="%JAVA_HOME%\bin\java"

--change to--
set _RUNJAVA=start "Catalina" "%JAVA_HOME%\bin\javaw"



Cheers
Watanabe.

In the message "Running Tomcat as a Service"
   <[EMAIL PROTECTED]>
Burdick Robert <[EMAIL PROTECTED]> wrote:

Robert> Hello All:

Robert> Is there a simple way to run Tomcat as a service on Windows 2000?  I want no 
Tomcat, catalina, etc windows to appear.

Robert> Robert


Robert> ---
Robert> Robert Burdick
Robert> Author, "Essential Windows CE Application Programming", John Wiley & Sons
Robert> Co-author, "Professional JSP, 2nd Edition", Wrox Press
Robert> Microsoft eMVP

Robert> [EMAIL PROTECTED]
Robert> (650)-917-8446 (Office)
Robert> (650)-906-3707 (Cell)

Robert> ===
Robert> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Robert> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Robert> Some relevant FAQs on JSP/Servlets can be found at:

Robert>  http://archives.java.sun.com/jsp-interest.html
Robert>  http://java.sun.com/products/jsp/faq.html
Robert>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
Robert>  http://www.jguru.com/faq/index.jsp
Robert>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Token Loop

2002-06-05 Thread techhead4life

Thanks for the help

Actually it works, I thought that break only worked on a switch function?

M~

- Original Message -
From: "Means, Garann R." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 5:55 PM
Subject: Re: Date calculation


> How about..
>
> while(TokenWords.hasMoreTokens() && (wordslen < 3))
> {
> Words[wordslen] = TokenWords.nextToken();
> wordslen++;
> }
>
> ?
>
> -Original Message-
> From: techhead4life [  
> mailto:[EMAIL PROTECTED]]
> Sent: June 05, 2002 - Wednesday 2:31p
> To: [EMAIL PROTECTED]
> Subject: Re: Date calculation
>
>
> I am trying to put a limit in my while loop,
> what I want to do is loop it 3 times only
> but my while loop is doing it until all the words are accounted for in the
> keywords string.
>
> Can anyone point to me a way to stop to 3 tokens only
>
> int wordslen = 0;
> String keywords = "looking for some good programs"
> StringTokenizer TokenWords = new StringTokenizer(keywords, " ", false);
>
> while(TokenWords.hasMoreTokens())
> {
> Words[wordslen] = TokenWords.nextToken();
> wordslen++;
> }
>
>
===
> 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://archives.java.sun.com/jsp-interest.html
>
> http://java.sun.com/products/jsp/faq.html
>
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Running Tomcat as a Service

2002-06-05 Thread Blocker, Darrin

You need to download the jakarta-tomcat-4.0.3.exe file from the
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/

The problem I experienced with running it as a service was that the path was
not set up correctly in my environment. After I fixed that issue, I had no
problem.


??Darrin Blocker
Faculty Patient Business Office
Report Analyst
[EMAIL PROTECTED]
(909) 824-0800 x.33924

 -Original Message-
From:   Burdick Robert [mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, June 05, 2002 14:32
To: [EMAIL PROTECTED]
Subject:Running Tomcat as a Service

Hello All:

Is there a simple way to run Tomcat as a service on Windows 2000?  I want no
Tomcat, catalina, etc windows to appear.

Robert


---
Robert Burdick
Author, "Essential Windows CE Application Programming", John Wiley & Sons
Co-author, "Professional JSP, 2nd Edition", Wrox Press
Microsoft eMVP

[EMAIL PROTECTED]
(650)-917-8446 (Office)
(650)-906-3707 (Cell)

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com
Confidentiality Note: The preceding e-mail message (including any
attachments) contains information that may be confidential, protected by
applicable legal privileges, or constitute non-public information.  It is
intended to be conveyed only to the designated recipient(s).  If you are not
an intended recipient of this message, please notify the sender by replying
to this message and then delete it from your system.  Use, dissemination,
distribution or reproduction of this message by unintended recipients is not
authorized and may be unlawful.

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Date calculation

2002-06-05 Thread Alireza Nahavandi

Thank you,
I was missing get method to read the object field. It works fine now.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Jay H. Lang
Sent: Wednesday, June 05, 2002 6:03 PM
To: [EMAIL PROTECTED]
Subject: Re: Date calculation


Without understanding what you are really trying to do, the
myCal.add(meCal.DATE,
5) statement adds 5 to DAY_OF_MONTH field.  Also the MONTH field seems to
contain
values from 0-11.

Try this:
Calendar myCal = Calendar.getInstance();
System.out.println(myCal.get(myCal.DAY_OF_MONTH));
myCal.add(myCal.DATE, 5);
System.out.println(myCal.get(myCal.DAY_OF_MONTH));

See Ya.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

Alireza Nahavandi wrote:

> Hi all,
>
> I want to get the date of 5 days later. According to Sun Java document,
the
> following code should work. But still the result is today.
> Am I missing anything?
>
> Calendar myCal = Calendar.getInstance();
> myCal.add(myCal.DATE, 5);
>
> System.out.println ( myCal.DATE );
>
> Thank you.
>
>
===
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Date calculation

2002-06-05 Thread Jay H. Lang

Without understanding what you are really trying to do, the myCal.add(meCal.DATE,
5) statement adds 5 to DAY_OF_MONTH field.  Also the MONTH field seems to contain
values from 0-11.

Try this:
Calendar myCal = Calendar.getInstance();
System.out.println(myCal.get(myCal.DAY_OF_MONTH));
myCal.add(myCal.DATE, 5);
System.out.println(myCal.get(myCal.DAY_OF_MONTH));

See Ya.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

Alireza Nahavandi wrote:

> Hi all,
>
> I want to get the date of 5 days later. According to Sun Java document, the
> following code should work. But still the result is today.
> Am I missing anything?
>
> Calendar myCal = Calendar.getInstance();
> myCal.add(myCal.DATE, 5);
>
> System.out.println ( myCal.DATE );
>
> Thank you.
>
> ===
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Date calculation

2002-06-05 Thread Means, Garann R.

How about..

while(TokenWords.hasMoreTokens() && (wordslen < 3))
{
Words[wordslen] = TokenWords.nextToken();
wordslen++;
}

?

-Original Message-
From: techhead4life [  
mailto:[EMAIL PROTECTED]]
Sent: June 05, 2002 - Wednesday 2:31p
To: [EMAIL PROTECTED]
Subject: Re: Date calculation


I am trying to put a limit in my while loop,
what I want to do is loop it 3 times only
but my while loop is doing it until all the words are accounted for in the
keywords string.

Can anyone point to me a way to stop to 3 tokens only

int wordslen = 0;
String keywords = "looking for some good programs"
StringTokenizer TokenWords = new StringTokenizer(keywords, " ", false);

while(TokenWords.hasMoreTokens())
{
Words[wordslen] = TokenWords.nextToken();
wordslen++;
}

===
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://archives.java.sun.com/jsp-interest.html
   
http://java.sun.com/products/jsp/faq.html
   
http://www.esperanto.org.nz/jsp/jspfaq.jsp
    http://www.jguru.com/faq/index.jsp
    http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Buffering in a custom tag?

2002-06-05 Thread Jay Burgess

I'm writing a custom tag that reads data from a servlet, and writes it back
out to the page.  Currently, I read data from the servlet into a large char
array buffer and append only the characters read to a StringBuffer. Then,
when everything's read from the servlet, I write the String representation
of the StringBuffer to the JspWriter.  (The current code is below.)

For efficiency, though, what I'd like to do is bypass the StringBuffer
completely and just print the characters read directly to the
JspWriter.  Can this be done i.e. something like
"pageContext.getOut().print(buffer, 0, charsRead);"?

 StringBuffer data = new StringBuffer();
 char [] buffer = new char[BUFFER_SIZE];
 inReader = new InputStreamReader(new BufferedInputStream(inStream));
 int charsRead = 0;
 while (true) {
 charsRead = inReader.read(buffer, 0, BUFFER_SIZE);
 if (charsRead < 1) {
 break;
 }
 data.append(buffer, 0, charsRead);
 }
 pageContext.getOut().print(data.toString());
 pageContext.getOut().flush();

(To save other discussions, please don't suggest things like ,
as the functionality described is how the tag needs to work.)

Thanks.

Jay

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Running Tomcat as a Service

2002-06-05 Thread Burdick Robert

Hello All:

Is there a simple way to run Tomcat as a service on Windows 2000?  I want no Tomcat, 
catalina, etc windows to appear.

Robert


---
Robert Burdick
Author, "Essential Windows CE Application Programming", John Wiley & Sons
Co-author, "Professional JSP, 2nd Edition", Wrox Press
Microsoft eMVP

[EMAIL PROTECTED]
(650)-917-8446 (Office)
(650)-906-3707 (Cell)

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Date calculation

2002-06-05 Thread Lloyd Wiggins

How about:

while(TokenWords.hasMoreTokens())
 {
 Words[wordslen] = TokenWords.nextToken();
 wordslen++;
if( wordslen == 3)
break;
 }

> -Original Message-
> From: techhead4life [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 05, 2002 3:31 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Date calculation
>
>
> I am trying to put a limit in my while loop,
> what I want to do is loop it 3 times only
> but my while loop is doing it until all the words are
> accounted for in the
> keywords string.
>
> Can anyone point to me a way to stop to 3 tokens only
>
> int wordslen = 0;
> String keywords = "looking for some good programs"
> StringTokenizer TokenWords = new StringTokenizer(keywords, "
> ", false);
>
> while(TokenWords.hasMoreTokens())
> {
> Words[wordslen] = TokenWords.nextToken();
> wordslen++;
> }
>
> ==
> =
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Date calculation

2002-06-05 Thread techhead4life

I am trying to put a limit in my while loop,
what I want to do is loop it 3 times only
but my while loop is doing it until all the words are accounted for in the
keywords string.

Can anyone point to me a way to stop to 3 tokens only

int wordslen = 0;
String keywords = "looking for some good programs"
StringTokenizer TokenWords = new StringTokenizer(keywords, " ", false);

while(TokenWords.hasMoreTokens())
{
Words[wordslen] = TokenWords.nextToken();
wordslen++;
}

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Date calculation

2002-06-05 Thread Blocker, Darrin

It looks like you need to add a variable to hold the new value and then
reference that variable.  As it is.. you're just referencing the object
DATE.
I could be wrong though. 

??Darrin Blocker
Faculty Patient Business Office
Report Analyst
[EMAIL PROTECTED]
(909) 824-0800 x.33924

 -Original Message-
From:   Alireza Nahavandi [mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, June 05, 2002 13:07
To: [EMAIL PROTECTED]
Subject:Date calculation

Hi all,

I want to get the date of 5 days later. According to Sun Java document, the
following code should work. But still the result is today.
Am I missing anything?



Calendar myCal = Calendar.getInstance();
myCal.add(myCal.DATE, 5);

System.out.println ( myCal.DATE );


Confidentiality Note: The preceding e-mail message (including any
attachments) contains information that may be confidential, protected by
applicable legal privileges, or constitute non-public information.  It is
intended to be conveyed only to the designated recipient(s).  If you are not
an intended recipient of this message, please notify the sender by replying
to this message and then delete it from your system.  Use, dissemination,
distribution or reproduction of this message by unintended recipients is not
authorized and may be unlawful.

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Date calculation

2002-06-05 Thread Alireza Nahavandi

Hi all,

I want to get the date of 5 days later. According to Sun Java document, the
following code should work. But still the result is today.
Am I missing anything?



Calendar myCal = Calendar.getInstance();
myCal.add(myCal.DATE, 5);

System.out.println ( myCal.DATE );


Thank you.

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



HTML LOV

2002-06-05 Thread Francisco Manuel Martínez Suárez

Hi all,

Does anyone know Javascript code, JSP tag, scriplet or something from which
I could make a LOV. The LOV has to appear in a different window from where
the users works. It should have the same behavior (or at least, very near)
than the Oracle Forms Developer ones, although any type of LOV would be
appreciate because I know Forms ones are very complex.

Thanks

Fran

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: DB Access from Applet

2002-06-05 Thread Chen, Gin

Please stop sending this.
The unsubscribe option is clearly available on the bottom of all emails from
this list.
Obviously you, maybe in a drunken state, subscribed to this mailing list at
one time or another.
I couldnt care less what the reason your on this list is.
Just unsubscribe through the correct method.

-Tim

-Original Message-
From: anette mysel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 11:10 AM
To: [EMAIL PROTECTED]
Subject: Re: DB Access from Applet


PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW YOU. THANK YOU...
- Original Message -
From: "Anoop Kumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 8:39 AM
Subject: Re: DB Access from Applet


> There is another way to do this. You need to use a thin driver for the
> connectivity.
> I had experienced this when i was using Oracle as the database.
>
> But i guess signing shd help although i hvnt tried it myself.
>
> hope this helps,
> Anoop
>
> -Original Message-
> From: Hrish [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 05, 2002 6:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: DB Access from Applet
>
>
> I suppose you will have to sign the applet.
>
> Regards,
> Hrish
>
>
>
>
>
> - Original Message -
> From: Kesav, Ramesh <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 05, 2002 10:26 AM
> Subject: Re: DB Access from Applet
>
>
> > you need to give network permissions
> >
> > Regards
> >
> > Ramesh Kesavanarayanan
> > Electronic Data Systems India pvt Ltd
> >
> > *  91-44-254 9650 ext :2442
> >   91-44-226 5360 (res)
> > * [EMAIL PROTECTED]
> > * [EMAIL PROTECTED]
> >
> >
> >
> >
> > -Original Message-
> > From: Du Nguyen [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, 5 June 2002 8:01 AM
> > To: [EMAIL PROTECTED]
> > Subject: DB Access from Applet
> >
> >
> > Hi all,
> > I have an applet that accesses DB through a jdbcodbc connection.
> It
> > works well when i run on AppletViewer but it can't on browser. The
problem
> > is likely caused by security settings. Pls help. Thanks in advance.
> > Regards,
> > Du Nguyen
> >
> >
>
===
> > 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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://arc

Re: JavaBean Vs Java Class

2002-06-05 Thread John Slaman

As Zac implies - one requires an instance; the other doesn't.  I wouldn't
create an instance if it's not going to be used - it will just make life
confusing for the guy maintaining the page in 6 months.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Zachary Roberts
Sent: Wednesday, June 05, 2002 9:39 AM
To: [EMAIL PROTECTED]
Subject: Re: JavaBean Vs Java Class

Sentthoor-

The only thing I can think of is that the JavaBean gives you access to the
automatic  and  tags if you need them.

Zac

>>> [EMAIL PROTECTED] 06/05/02 03:17AM >>>
Hi Guys,

I need to write a static method in a class to do a specific task. I can
simple import the class at the top and use the method in my JSP. However
I am wondering is there any difference in using a class as a JavaBean
rather than simply importing it and using it...

Senthoor

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: DB Access from Applet

2002-06-05 Thread anette mysel

PLEASE REMOVE ME FROM YOUR MAILING LIST... I DO NOT KNOW YOU. THANK YOU...
- Original Message -
From: "Hrish" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 8:05 AM
Subject: Re: DB Access from Applet


> I suppose you will have to sign the applet.
>
> Regards,
> Hrish
>
>
>
>
>
> - Original Message -
> From: Kesav, Ramesh <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 05, 2002 10:26 AM
> Subject: Re: DB Access from Applet
>
>
> > you need to give network permissions
> >
> > Regards
> >
> > Ramesh Kesavanarayanan
> > Electronic Data Systems India pvt Ltd
> >
> > *  91-44-254 9650 ext :2442
> >   91-44-226 5360 (res)
> > * [EMAIL PROTECTED]
> > * [EMAIL PROTECTED]
> >
> >
> >
> >
> > -Original Message-
> > From: Du Nguyen [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, 5 June 2002 8:01 AM
> > To: [EMAIL PROTECTED]
> > Subject: DB Access from Applet
> >
> >
> > Hi all,
> > I have an applet that accesses DB through a jdbcodbc connection.
> It
> > works well when i run on AppletViewer but it can't on browser. The
problem
> > is likely caused by security settings. Pls help. Thanks in advance.
> > Regards,
> > Du Nguyen
> >
> >
>
===
> > 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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: DB Access from Applet

2002-06-05 Thread anette mysel

PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW YOU. THANK YOU...
- Original Message -
From: "Anoop Kumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 8:39 AM
Subject: Re: DB Access from Applet


> There is another way to do this. You need to use a thin driver for the
> connectivity.
> I had experienced this when i was using Oracle as the database.
>
> But i guess signing shd help although i hvnt tried it myself.
>
> hope this helps,
> Anoop
>
> -Original Message-
> From: Hrish [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 05, 2002 6:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: DB Access from Applet
>
>
> I suppose you will have to sign the applet.
>
> Regards,
> Hrish
>
>
>
>
>
> - Original Message -
> From: Kesav, Ramesh <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 05, 2002 10:26 AM
> Subject: Re: DB Access from Applet
>
>
> > you need to give network permissions
> >
> > Regards
> >
> > Ramesh Kesavanarayanan
> > Electronic Data Systems India pvt Ltd
> >
> > *  91-44-254 9650 ext :2442
> >   91-44-226 5360 (res)
> > * [EMAIL PROTECTED]
> > * [EMAIL PROTECTED]
> >
> >
> >
> >
> > -Original Message-
> > From: Du Nguyen [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, 5 June 2002 8:01 AM
> > To: [EMAIL PROTECTED]
> > Subject: DB Access from Applet
> >
> >
> > Hi all,
> > I have an applet that accesses DB through a jdbcodbc connection.
> It
> > works well when i run on AppletViewer but it can't on browser. The
problem
> > is likely caused by security settings. Pls help. Thanks in advance.
> > Regards,
> > Du Nguyen
> >
> >
>
===
> > 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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JavaBean Vs Java Class

2002-06-05 Thread anette mysel

PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW YOU. THANK YOU...
- Original Message -
From: "Zachary Roberts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 8:39 AM
Subject: Re: JavaBean Vs Java Class


Sentthoor-

The only thing I can think of is that the JavaBean gives you access to the
automatic  and  tags if you need them.

Zac

>>> [EMAIL PROTECTED] 06/05/02 03:17AM >>>
Hi Guys,

I need to write a static method in a class to do a specific task. I can
simple import the class at the top and use the method in my JSP. However
I am wondering is there any difference in using a class as a JavaBean
rather than simply importing it and using it...

Senthoor

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: IIS 5.0 and Passing Parameters via the URL (URL rewriting)

2002-06-05 Thread Haseltine, Celeste

Tref,

Thank You!!!  I just got back into my office and read my email, and the
first URL you reference was the one I was remembering.  The similiar
vulnerablility you reference I was NOT aware of, but I will be taking steps
to check out our servers today.


Celeste

-Original Message-
From: Gare, Tref [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 02, 2002 7:18 PM
To: [EMAIL PROTECTED]
Subject: Re: IIS 5.0 and Passing Parameters via the URL (URL rewriting)


Hi Celeste

I believe it's the buffer overrun vulnerabilities you're speaking of.  I
found some info using the following query in google = buffer overrun IIS
query string..

http://www.atstake.com/research/advisories/2000/a120400-1.txt
and MS response/patch
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/
bulletin/ms00-094.asp

another similar vulnerability
http://www.legend.net.uk/scripts/nntp/article.php/legend.support/2873.html
MS patch
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/
bulletin/MS01-033.asp


Regards
Tref


> -Original Message-
> From: Haseltine, Celeste [SMTP:[EMAIL PROTECTED]]
> Sent: Saturday,1 June 2002 12:55
> To:   [EMAIL PROTECTED]
> Subject:  IIS 5.0 and Passing Parameters via the URL (URL rewriting)
>
> Back towards the end of 2001, I remember attending a free evening seminar
> in
> the Dallas, TX area, where an individual demonstrated exposing a security
> "hole" in IIS.  I cannot remember what info he passed via a URL string in
> his browser, but the result was that he was able to "get into" or "view"
> the
> directory structure of the wwwroot directory under the Windows Inetpub
> directory.  For those of use who use Windows servers with JSP/Servlet
> servers such as JRUN, someone could gain direct access to your web pages
> and
> thereby change your web site using the technique he demonstrated.   The
> gist
> of his demonstration was that you should never use URL rewriting,
> particularly on a Windows server, unless you absolutely have to.  He also
> mentioned some steps to take to prevent someone from accessing your
> server's
> directory structure via the technique he used in his demonstration.
>
> I cannot find any articles via Google.com that discuss this potential
> security breach in IIS.  Does this ring a bell with anyone in the user
> community?  If so, does anyone know where this information is documented,
> which would also detail how to "block" someone from entering an IIS
> directory structure as this individual demonstrated?
>
> Any insight/info regarding this subject would be appreciated.
>
> Celeste
>
> ==
> =
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: DB Access from Applet

2002-06-05 Thread Anoop Kumar

There is another way to do this. You need to use a thin driver for the
connectivity.
I had experienced this when i was using Oracle as the database.

But i guess signing shd help although i hvnt tried it myself.

hope this helps,
Anoop

-Original Message-
From: Hrish [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 6:35 PM
To: [EMAIL PROTECTED]
Subject: Re: DB Access from Applet


I suppose you will have to sign the applet.

Regards,
Hrish





- Original Message -
From: Kesav, Ramesh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 10:26 AM
Subject: Re: DB Access from Applet


> you need to give network permissions
>
> Regards
>
> Ramesh Kesavanarayanan
> Electronic Data Systems India pvt Ltd
>
> *  91-44-254 9650 ext :2442
>   91-44-226 5360 (res)
> * [EMAIL PROTECTED]
> * [EMAIL PROTECTED]
>
>
>
>
> -Original Message-
> From: Du Nguyen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 5 June 2002 8:01 AM
> To: [EMAIL PROTECTED]
> Subject: DB Access from Applet
>
>
> Hi all,
> I have an applet that accesses DB through a jdbcodbc connection.
It
> works well when i run on AppletViewer but it can't on browser. The problem
> is likely caused by security settings. Pls help. Thanks in advance.
> Regards,
> Du Nguyen
>
>
===
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JavaBean Vs Java Class

2002-06-05 Thread Zachary Roberts

Sentthoor-

The only thing I can think of is that the JavaBean gives you access to the automatic 
 and  tags if you need them.  

Zac

>>> [EMAIL PROTECTED] 06/05/02 03:17AM >>>
Hi Guys,

I need to write a static method in a class to do a specific task. I can
simple import the class at the top and use the method in my JSP. However
I am wondering is there any difference in using a class as a JavaBean
rather than simply importing it and using it...

Senthoor

===
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://archives.java.sun.com/jsp-interest.html 
 http://java.sun.com/products/jsp/faq.html 
 http://www.esperanto.org.nz/jsp/jspfaq.jsp 
 http://www.jguru.com/faq/index.jsp 
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: DB Access from Applet

2002-06-05 Thread Hrish

I suppose you will have to sign the applet.

Regards,
Hrish





- Original Message -
From: Kesav, Ramesh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 10:26 AM
Subject: Re: DB Access from Applet


> you need to give network permissions
>
> Regards
>
> Ramesh Kesavanarayanan
> Electronic Data Systems India pvt Ltd
>
> *  91-44-254 9650 ext :2442
>   91-44-226 5360 (res)
> * [EMAIL PROTECTED]
> * [EMAIL PROTECTED]
>
>
>
>
> -Original Message-
> From: Du Nguyen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 5 June 2002 8:01 AM
> To: [EMAIL PROTECTED]
> Subject: DB Access from Applet
>
>
> Hi all,
> I have an applet that accesses DB through a jdbcodbc connection.
It
> works well when i run on AppletViewer but it can't on browser. The problem
> is likely caused by security settings. Pls help. Thanks in advance.
> Regards,
> Du Nguyen
>
>
===
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



How to call the shall scripts periodically(Time based)

2002-06-05 Thread Murali Mohan

Hai,
I have to call the shall  scripts   periodically(Time based).

What is procedure for it.

Thanks,
Murali

"Artigas, Ricardo Y." wrote:

> You can invoke exec() from Runtime class:
> E.g.:
>   Process child = Runtime.getRuntime().exec(command);
>
> :~)
> Ricky Y. Artigas, MCDBA
> Microsoft Certified Professional
> Database Administrator /
> Systems Analyst/Programmer
> Information Technology Division
> Easycall Communications Phils., Inc.
> Tel #: (632) 5338001 loc.6610
>
> > ---
> > IMPORTANT NOTICE:
>
> > This message (and any attachment hereto) may contain privileged and/or
> > confidential information specific to EasyCall. If you are not the intended
> > addressee indicated in this message, you may not copy or disseminate this
> > message (or any attachment hereto) to anyone. Instead, please destroy this
> > message (and any attachment hereto), and kindly notify the sender by reply
> > email. Any information in this message (and any attachment thereto) that
> > do not relate to the official business of EasyCall shall be understood as
> > neither given nor endorsed by the company.
> >
> >
> > -Original Message-
> > From: Murali Mohan [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 05, 2002 3:24 PM
> > To:   [EMAIL PROTECTED]
> > Subject:  How to run Shall Scripts from Java
> >
> > Hai,
> >
> > How to run Shall Scripts from Java? I am using JSP and Java Beans.
> >
> > Thanks in advance.
> >
> > Murali
> >
> > ==
> > =
> > 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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: responce has commited

2002-06-05 Thread Sreenath V

hope u need to wait for tomorrow as i am in training
- Original Message -
From: "Vaishali S. Pandya" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 2:20 PM
Subject: Re: responce has commited


> explain me more
>
>
> its not good approach sir !
>
>
>
> - Original Message -
> From: "Vaishali S. Pandya" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 05, 2002 1:55 PM
> Subject: responce has commited
>
>
> > my java code is
> >
> > package pkgs;
> > import java.lang.*;
> > import java.sql.*;
> > public class MyConnection{
> >  public static Statement getCon(int i){
> >   Connection con=null;
> >   Statement stmt=null;
> >   try{
> >Class.forName("com.informix.jdbc.IfxDriver");
> >   }
> >   catch(Exception e){
> >System.out.println("Error 1");
> >System.out.println(e);
> >   }
> >   try{
> >if (i==0){
> > //connect with workflow db
> > con=DriverManager.getConnection
> >
>
("jdbc:informix-sqli://192.101.11.05:2150/workflow:INFORMIXSERVER=msdp","use
>
> r","password");
> >}
> >else{
> > //connect with hrms db
> > con=DriverManager.getConnection
> >
>
("jdbc:informix-sqli://192.101.11.05:2150/hrms:INFORMIXSERVER=msdp","user","
>
> password");
> >}
> >stmt = con.createStatement();
> >   }
> >   catch(Exception e){
> >System.out.println("Error 2");
> >System.out.println(e);
> >   }
> >   return stmt;
> >  }
> >
> >  public static int doInsert(Statement s, String ins)
> >  {
> >   int rval=0;
> >   try{
> >s.executeUpdate(ins);
> >rval=0;
> >   }
> >   catch(Exception e){
> >rval=1;
> >   }
> >   return(rval);
> >  }
> > }
> >
> > jsp code is
> >
> >   MyConnection con = new MyConnection();
> >   Statement stmt = con.getCon(1);
> >   String qry="update hrm_employee_mas set emp_empname = '" +
> > request.getParameter("ename") + "'";
> >   int rval = con.doInsert(stmt,qry);
> >
> > it gives me Response has already been committed
> >
> >
>
===
> > 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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com



**Disclaimer**

 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged'
and 'confidential' and intended for use only by the individual or entity to which it is
addressed. You are notified that any use, copying or dissemination of the information
contained in the E-MAIL in any manner whatsoever is strictly prohibited.





Re: responce has commited

2002-06-05 Thread Vaishali S. Pandya

explain me more


its not good approach sir !



- Original Message -
From: "Vaishali S. Pandya" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 1:55 PM
Subject: responce has commited


> my java code is
>
> package pkgs;
> import java.lang.*;
> import java.sql.*;
> public class MyConnection{
>  public static Statement getCon(int i){
>   Connection con=null;
>   Statement stmt=null;
>   try{
>Class.forName("com.informix.jdbc.IfxDriver");
>   }
>   catch(Exception e){
>System.out.println("Error 1");
>System.out.println(e);
>   }
>   try{
>if (i==0){
> //connect with workflow db
> con=DriverManager.getConnection
>
("jdbc:informix-sqli://192.101.11.05:2150/workflow:INFORMIXSERVER=msdp","use

r","password");
>}
>else{
> //connect with hrms db
> con=DriverManager.getConnection
>
("jdbc:informix-sqli://192.101.11.05:2150/hrms:INFORMIXSERVER=msdp","user","

password");
>}
>stmt = con.createStatement();
>   }
>   catch(Exception e){
>System.out.println("Error 2");
>System.out.println(e);
>   }
>   return stmt;
>  }
>
>  public static int doInsert(Statement s, String ins)
>  {
>   int rval=0;
>   try{
>s.executeUpdate(ins);
>rval=0;
>   }
>   catch(Exception e){
>rval=1;
>   }
>   return(rval);
>  }
> }
>
> jsp code is
>
>   MyConnection con = new MyConnection();
>   Statement stmt = con.getCon(1);
>   String qry="update hrm_employee_mas set emp_empname = '" +
> request.getParameter("ename") + "'";
>   int rval = con.doInsert(stmt,qry);
>
> it gives me Response has already been committed
>
>
===
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: responce has commited

2002-06-05 Thread Sreenath V

its not good approach sir !



- Original Message -
From: "Vaishali S. Pandya" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 1:55 PM
Subject: responce has commited


> my java code is
>
> package pkgs;
> import java.lang.*;
> import java.sql.*;
> public class MyConnection{
>  public static Statement getCon(int i){
>   Connection con=null;
>   Statement stmt=null;
>   try{
>Class.forName("com.informix.jdbc.IfxDriver");
>   }
>   catch(Exception e){
>System.out.println("Error 1");
>System.out.println(e);
>   }
>   try{
>if (i==0){
> //connect with workflow db
> con=DriverManager.getConnection
>
("jdbc:informix-sqli://192.101.11.05:2150/workflow:INFORMIXSERVER=msdp","use
r","password");
>}
>else{
> //connect with hrms db
> con=DriverManager.getConnection
>
("jdbc:informix-sqli://192.101.11.05:2150/hrms:INFORMIXSERVER=msdp","user","
password");
>}
>stmt = con.createStatement();
>   }
>   catch(Exception e){
>System.out.println("Error 2");
>System.out.println(e);
>   }
>   return stmt;
>  }
>
>  public static int doInsert(Statement s, String ins)
>  {
>   int rval=0;
>   try{
>s.executeUpdate(ins);
>rval=0;
>   }
>   catch(Exception e){
>rval=1;
>   }
>   return(rval);
>  }
> }
>
> jsp code is
>
>   MyConnection con = new MyConnection();
>   Statement stmt = con.getCon(1);
>   String qry="update hrm_employee_mas set emp_empname = '" +
> request.getParameter("ename") + "'";
>   int rval = con.doInsert(stmt,qry);
>
> it gives me Response has already been committed
>
>
===
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com



**Disclaimer**

 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged'
and 'confidential' and intended for use only by the individual or entity to which it is
addressed. You are notified that any use, copying or dissemination of the information
contained in the E-MAIL in any manner whatsoever is strictly prohibited.





responce has commited

2002-06-05 Thread Vaishali S. Pandya

my java code is

package pkgs;
import java.lang.*;
import java.sql.*;
public class MyConnection{
 public static Statement getCon(int i){
  Connection con=null;
  Statement stmt=null;
  try{
   Class.forName("com.informix.jdbc.IfxDriver");
  }
  catch(Exception e){
   System.out.println("Error 1");
   System.out.println(e);
  }
  try{
   if (i==0){
//connect with workflow db
con=DriverManager.getConnection
("jdbc:informix-sqli://192.101.11.05:2150/workflow:INFORMIXSERVER=msdp","user","password");
   }
   else{
//connect with hrms db
con=DriverManager.getConnection
("jdbc:informix-sqli://192.101.11.05:2150/hrms:INFORMIXSERVER=msdp","user","password");
   }
   stmt = con.createStatement();
  }
  catch(Exception e){
   System.out.println("Error 2");
   System.out.println(e);
  }
  return stmt;
 }

 public static int doInsert(Statement s, String ins)
 {
  int rval=0;
  try{
   s.executeUpdate(ins);
   rval=0;
  }
  catch(Exception e){
   rval=1;
  }
  return(rval);
 }
}

jsp code is

  MyConnection con = new MyConnection();
  Statement stmt = con.getCon(1);
  String qry="update hrm_employee_mas set emp_empname = '" +
request.getParameter("ename") + "'";
  int rval = con.doInsert(stmt,qry);

it gives me Response has already been committed

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



JavaBean Vs Java Class

2002-06-05 Thread Senthoorkumaran

Hi Guys,

I need to write a static method in a class to do a specific task. I can
simple import the class at the top and use the method in my JSP. However
I am wondering is there any difference in using a class as a JavaBean
rather than simply importing it and using it...

Senthoor

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How to run Shall Scripts from Java

2002-06-05 Thread Artigas, Ricardo Y.

You can invoke exec() from Runtime class:
E.g.:
  Process child = Runtime.getRuntime().exec(command);



:~)
Ricky Y. Artigas, MCDBA
Microsoft Certified Professional
Database Administrator /
Systems Analyst/Programmer
Information Technology Division
Easycall Communications Phils., Inc.
Tel #: (632) 5338001 loc.6610

> ---
> IMPORTANT NOTICE:

> This message (and any attachment hereto) may contain privileged and/or
> confidential information specific to EasyCall. If you are not the intended
> addressee indicated in this message, you may not copy or disseminate this
> message (or any attachment hereto) to anyone. Instead, please destroy this
> message (and any attachment hereto), and kindly notify the sender by reply
> email. Any information in this message (and any attachment thereto) that
> do not relate to the official business of EasyCall shall be understood as
> neither given nor endorsed by the company.
>
>
> -Original Message-
> From: Murali Mohan [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 05, 2002 3:24 PM
> To:   [EMAIL PROTECTED]
> Subject:  How to run Shall Scripts from Java
>
> Hai,
>
> How to run Shall Scripts from Java? I am using JSP and Java Beans.
>
> Thanks in advance.
>
> Murali
>
> ==
> =
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How to run Shall Scripts from Java

2002-06-05 Thread Abhishek Sharan

have a look at Runtime interface...
 -Abhi

> -Original Message-
> From: ext Murali Mohan [mailto:[EMAIL PROTECTED]]
> Sent: 05. June 2002 10:24
> To: [EMAIL PROTECTED]
> Subject: How to run Shall Scripts from Java
> 
> 
> Hai,
> 
> How to run Shall Scripts from Java? I am using JSP and Java Beans.
> 
> Thanks in advance.
> 
> Murali
> 
> ==
> =
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



How to run Shall Scripts from Java

2002-06-05 Thread Murali Mohan

Hai,

How to run Shall Scripts from Java? I am using JSP and Java Beans.

Thanks in advance.

Murali

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com