Re: code snippet...

2003-04-02 Thread Martin Gainty

OO Rules state that memory allocation (new) should never take place in constructoror init methods.You want your original object to completely allocate and initialise itself before constructing any more objects. The same would apply for all 'new' objects downthe hierarchy chain.
Make Sense?









Martin Gainty



__

Disclaimer and confidentiality note

Everything in this e-mail and any attachments relating to the official business of Laconia Data Systems (LDS) is proprietary to the company. It is confidential, legally privileged and protected by law. LDS does not own and endorse any other content.
<



>From: "Ceron, Jay" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: code snippet...
>Date: Wed, 2 Apr 2003 16:20:33 -0500
>MIME-Version: 1.0
>Received: from mc5-f41.law1.hotmail.com ([65.54.252.48]) by mc5-s19.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 2 Apr 2003 13:22:52 -0800
>Received: from swjscmail2.java.sun.com ([192.18.99.108]) by mc5-f41.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 2 Apr 2003 13:21:25 -0800
>Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid 484DC22CFC; Wed, 2 Apr 2003 14:17:04 -0700 (MST)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 6476942 for [EMAIL PROTECTED]; Wed, 2 Apr 2003 14:14:19 -0700
>Received: from insws8501.gs.com (insws8501.gs.com [204.4.182.10]) by swjscmail1.java.sun.com (Postfix) with ESMTP id C4C7A4950; Wed, 2 Apr 2003 14:14:19 -0700 (MST)
>Received: from insvsod01.inz.gs.com (unknown [207.17.36.78]) by insws8501.gs.com (Postfix) with ESMTP id C69611C7B7; Wed, 2 Apr 2003 16:20:35 -0500 (EST)
>Received: from gsnmp03es.ny.fw.gs.com by insvsod01.inz.gs.com with ESMTP; Wed, 2 Apr 2003 16:20:35 -0500
>Received: by gsnmp03es.ny.fw.gs.com with Internet Mail Service (5.5.2655.55) id ; Wed, 2 Apr 2003 16:20:42 -0500
>X-Message-Info: HQbIehuYceTG3lK8qEopaa0XObMOo5hD
>Delivered-To: [EMAIL PROTECTED]
>X-Mailer: Internet Mail Service (5.5.2655.55)
>Message-ID: <[EMAIL PROTECTED]>
>Sender: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>Comments: To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>Return-Path: [EMAIL PROTECTED]
>X-OriginalArrivalTime: 02 Apr 2003 21:21:26.0468 (UTC) FILETIME=[D1AA7840:01C2F95D]
>
>The following snippet works without a problem:
>
>try
>{
> ...
>
> ReferenceDataBean ref = new ReferenceDataBean();
> ref.connect();
>
> session.setAttribute("resultsbean", ref);
>
>
>getServletContext().getRequestDispatcher("/idpayCreateDist.jsp").forward(req
>uest, response);
>}
>
>But when I make the reference bean a member of the servlet class, allocating
>with new in the init() function, I get a null exception.
>
>try
>{
> ...
>
> session.setAttribute("resultsbean", ref); // ref is a class
>attribute
>
>
>getServletContext().getRequestDispatcher("/idpayCreateDist.jsp").forward(req
>uest, response);
>}
>
>Does anyone know why?
>
> > 
> > Goldman, Sachs & Co.
> > 10 Hanover Square 16th Floor | New York, New York 10005
> > Tel: 212-902-7887 | Fax: 212-357-3045
> > email: [EMAIL PROTECTED]
> >
> > Jay C. Ceron
> > Financial Technology Division Goldman Sachs
> >
> > __
> >
> >
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>
>Some relevant archives, FAQs and Forums on JSPs can be found at:
>
> http://java.sun.com/products/jsp
> http://archives.java.sun.com/jsp-interest.html
> http://forums.java.sun.com
> http://www.jspinsider.com
Help STOP SPAM with the new MSN 8  and get 2 months FREE*

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


code snippet...

2003-04-02 Thread Ceron, Jay
The following snippet works without a problem:

try
{
...

ReferenceDataBean ref = new ReferenceDataBean();
ref.connect();

session.setAttribute("resultsbean", ref);


getServletContext().getRequestDispatcher("/idpayCreateDist.jsp").forward(req
uest, response);
}

But when I make the reference bean a member of the servlet class, allocating
with new in the init() function, I get a null exception.

try
{
...

session.setAttribute("resultsbean", ref);   // ref is a class
attribute


getServletContext().getRequestDispatcher("/idpayCreateDist.jsp").forward(req
uest, response);
}

Does anyone know why?

> 
> Goldman, Sachs & Co.
> 10 Hanover Square 16th Floor | New York, New York 10005
> Tel:  212-902-7887  |  Fax:  212-357-3045
> email:   [EMAIL PROTECTED]
>
> Jay C. Ceron
> Financial Technology Division Goldman Sachs
>
> __
>
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: How to hand in the passwords to users [urgent!]

2003-04-02 Thread Nancy Crisostomo Martinez
Thanks to all!
I have notice that all of you had told me that the best and correct way would be
the e-mail. But the problem is  that we don't know all the students'e-mails and the
only one way to recover their e-mails is to let them enter to the site. And the
problem begin. they could not enter without their passwords.
What can I do?
Regards,
Nancy.

"karthikeyan.balasubramanian" wrote:

> To add ICING on the Cake you might want to explore Gnu Privacy Gaurd(GPG).
> To send encrypted messages
> which are difficult to read even if the get hold of it in between.
>
> http://www.flexistentialist.org/archives/000207.shtml
>
> I got this with just a single search on google.
>
> Have a great day.
>
> Karthikeyan.
>
> -- Original Message -
> From: "Velmurugan (Java Team)" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 02, 2003 11:12 AM
> Subject: Re: How to hand in the passwords to users [urgent!]
>
> David,
> That is good idea.
>
> Nancy,
> E-mail is best way to handover the password to the user.Most of the on-line
> websites following this approach.
> Please follow the same.
>
> Regards,
> Velmurugan P
> Java Team.
>
> - Original Message -
> From: "Karr, David" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 02, 2003 3:11 AM
> Subject: Re: How to hand in the passwords to users [urgent!]
>
> > Ah, ok, that's another occasional scenario.
> >
> > A good way to resolve this is to have either the student id or their web
> > site registration associated with an email address.  The registration
> > for the web site will construct a random password and email it to the
> > user.  The user can't log in until they get the password from their
> > email.  They can't get the password unless they can get to the email
> > account for that student id (or the address they enter for the
> > registration).
> >
> > > -Original Message-
> > > From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]
> > >
> > > Thanks David,
> > > Not exactly,
> > >
> > > My application is some kind of schoolar system. In it the students
> > could
> > > find all
> > > their schoolar information by their own. Yor know, grades, schedules,
> > > finantial
> > > information, etc.. So  the user id is given by their student id... so
> > that
> > > is
> > > clear... but the problem begin because we need to give their passwords
> > to
> > > enter to
> > > the site We don't want to give a general password for all, because
> > > some 'bad'
> > > friends of some students could know his/her student id and enter to
> > the
> > > site with
> > > the general password and do some 'changes'...
> > > We need some help to find the most secure way to hand in or to let the
> > > users know
> > > their password to enter to the site.
> > >
> > > Thanks!
> > >
> > > Nancy
> > >
> > > "Karr, David" wrote:
> > >
> > > > Your requirements aren't quite clear, but it sounds like your
> > > > application security would look like most online vendor sites, where
> > the
> > > > user self-registers themselves, deciding on their own password, but
> > they
> > > > can't get into the rest of the site until they accomplish that.  Is
> > that
> > > > what you're looking for?
> > > >
> > > > > -Original Message-
> > > > > From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]
> > > > >
> > > > > I'm trying to entablish the best way to hand in their own user_id
> > and
> > > > > password to the 3000 users of an applicattion developed.
> > > > >
> > > > > I don't know which could be the best way to do this without
> > forgetting
> > > > > the security because each user has some confidential information
> > in
> > > > > his/her session.
> > > > >
> > > > > Could you please help me?
> > > > > Any clue could help me!
> > > > > Thanks in advance!
> > > >
> > > >
> > >
> > 
> > ==
> > > =
> > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-
> > > INTEREST".
> > > > For digest: mailto [EMAIL PROTECTED] with body: "set
> > JSP-INTEREST
> > > DIGEST".
> > > >
> > > > Some relevant archives, FAQs and Forums on JSPs can be found at:
> > > >
> > > >  http://java.sun.com/products/jsp
> > > >  http://archives.java.sun.com/jsp-interest.html
> > > >  http://forums.java.sun.com
> > > >  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 archives, FAQs and Forums on JSPs can be found at:
> > >
> > >  http://java.sun.com/products/jsp
> > >  http://archives.java.sun.com/jsp-interest.html
> > >  http://forums.java.sun.com
> > >  http://www.jspinsider.com
> >
> >
> ===
> > To unsubscrib

Re: passing parameters to a servlet

2003-04-02 Thread Gurumoorthy Raghupathy
what type of parameter is it ? object / string ?

-Original Message-
From: Ceron, Jay [mailto:[EMAIL PROTECTED]
Sent: 02 April 2003 14:16
To: [EMAIL PROTECTED]
Subject: passing parameters to a servlet


How do I pass a parameter to a servlet from an HTML or JSP page?

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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: passing parameters to a servlet

2003-04-02 Thread Ceron, Jay
Thanks.

-Original Message-
From: Peter Dolukhanov [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 8:31 AM
To: [EMAIL PROTECTED]
Subject: Re: passing parameters to a servlet


A servlet acts much in the same way as a JSP page i.e.

http://servername/servlet?parameter=value¶meter2=value

is the way to pass variables (or it can be done by POSTing a form).

The servlet can retrieve it by using the
HttpServletRequest.getParameter(String name) method..

Regards,
Peter Dolukhanov

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED] On Behalf Of Ceron, Jay
Sent: 02 April 2003 14:16
To: [EMAIL PROTECTED]
Subject: passing parameters to a servlet

How do I pass a parameter to a servlet from an HTML or JSP page?

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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: passing parameters to a servlet

2003-04-02 Thread Peter Dolukhanov
A servlet acts much in the same way as a JSP page i.e.

http://servername/servlet?parameter=value¶meter2=value

is the way to pass variables (or it can be done by POSTing a form).

The servlet can retrieve it by using the
HttpServletRequest.getParameter(String name) method..

Regards,
Peter Dolukhanov

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED] On Behalf Of Ceron, Jay
Sent: 02 April 2003 14:16
To: [EMAIL PROTECTED]
Subject: passing parameters to a servlet

How do I pass a parameter to a servlet from an HTML or JSP page?

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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


passing parameters to a servlet

2003-04-02 Thread Ceron, Jay
How do I pass a parameter to a servlet from an HTML or JSP page?

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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com