Urgent !!!!!!!! Please help me

2001-12-12 Thread Ravindra



Dear All,
 
    Problem : 
        
            I have a jsp page, 
which should talk to database and fetches file name from the table and prints 
the file on to browser.
 
    Current Result :
        
            No error, but there is 
no single data from the file are not written to the browser.
 
    Request :
        
            Can any body send me 
the code for my requirement, earliest.
 
Code :
 
<%-- * PrintFiles.jsp * 
Created on December 13, 2001, 4:00 PM--%>
 
<%@ page import = "java.io.*" %><%@ 
page import = "java.sql.*" %><%@ page import = "javax.servlet.*" 
%>
 
<%-- * @author Ravindra 
Varna * @version 
1.0.0--%>   <%!   Connection 
con;   CallableStatement 
cstmt;   ResultSet rs;   String Hi = 
"Ravindra Varna";   PrintWriter 
out;  %>  <%!   void 
getConnection()   {try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con 
= 
DriverManager.getConnection("jdbc:odbc:DB","sa","");}catch(Exception 
e){ file://out.println(e);}   }  %>  <%=Hi 
%>  <%!   void 
getResultSet()   {String 
mysql_Statement;String 
file_Name;try{ mysql_Statement 
= "{call DB_Sl_FileName}"; cstmt = 
con.prepareCall(mysql_Statement); rs = 
cstmt.executeQuery();  while 
(rs.next()) {  file_Name 
= rs.getString(2);  FileReader fr = new 
FileReader(file_Name);  int c = 
0;  while (c != 
-1)  {   c 
= 
fr.read();   out.println((char)c);  } }}catch(Exception 
e){ out.println(e);}   }  %>  <%=Hi 
%> 
 
 
 
 
Thanks
 
Varna.


Urgent !!!!!!!! Please help me

2001-12-12 Thread ShriKant Vashishtha

Hi,

My JSP contains the following things

A text box
and a GO button which fetches the result based on the criteria entered in
textbox.

The GO button has a validation for a blank search criteria and displayes
alert
message if we press GO without entering anything.

But the problem is, if I hit on ENTER, it fetches me the result even if I
haven't entered anything in the text box. It does not go through the
validation which executes on pressing on GO button.

Please help...
-ShriKant

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

2001-12-12 Thread Chen, Gin



If 
this is the page in question then the problem is that you are not calling any of 
the methods. Also, you might want to make sure that the jsp page actually 
compiles. I dont know what  file://out.println(e); is but I'm sure it wont 
compile.
-Tim

  -Original Message-From: Ravindra 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 12, 2001 
  6:40 AMTo: [EMAIL PROTECTED]Subject: Urgent 
   Please help me
  Dear All,
   
      Problem : 
          
              I have a jsp page, 
  which should talk to database and fetches file name from the table and prints 
  the file on to browser.
   
      Current Result :
          
              No error, but there 
  is no single data from the file are not written to the browser.
   
      Request :
          
              Can any body send me 
  the code for my requirement, earliest.
   
  Code :
   
  <%-- * PrintFiles.jsp * 
  Created on December 13, 2001, 4:00 PM--%>
   
  <%@ page import = "java.io.*" 
  %><%@ page import = "java.sql.*" %><%@ page import = 
  "javax.servlet.*" %>
   
  <%-- * @author Ravindra 
  Varna * @version 
  1.0.0--%>   <%!   Connection 
  con;   CallableStatement 
  cstmt;   ResultSet rs;   String Hi = 
  "Ravindra Varna";   PrintWriter 
  out;  %>  <%!   void 
  getConnection()   {try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con 
  = 
  DriverManager.getConnection("jdbc:odbc:DB","sa","");}catch(Exception 
  e){ file://out.println(e);}   }  %>  <%=Hi 
  %>  <%!   void 
  getResultSet()   {String 
  mysql_Statement;String 
  file_Name;try{ mysql_Statement 
  = "{call DB_Sl_FileName}"; cstmt = 
  con.prepareCall(mysql_Statement); rs = 
  cstmt.executeQuery();  while 
  (rs.next()) {  file_Name 
  = rs.getString(2);  FileReader fr = new 
  FileReader(file_Name);  int c = 
  0;  while (c != 
  -1)  {   c 
  = 
  fr.read();   out.println((char)c);  } }}catch(Exception 
  e){ out.println(e);}   }  %>  <%=Hi 
  %> 
   
   
   
   
  Thanks
   
  Varna.


Re: Urgent !!!!!!!! Please help me

2001-12-12 Thread Praveen Potineni



Hey Ravindra,
One suggestion i would like to give you ..is that 
ur .jsp file looks more like a .java file. Eliminate all your java code and 
database connections, statements and put them in a .java file. That will make ur 
job easy later on...Access database thru a java 
bean from a JSP. U should put the java code in a java file and then compile the 
java file and call the methods in the java file.  
Instead of  file://out.println(e); use
System.out.println(" Exception: +e");
 
Hope it helps.
Praveen

  - Original Message - 
  From: 
  Chen, 
  Gin 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, December 12, 2001 8:36 
  AM
  Subject: Re: Urgent !!!! Please help 
  me
  
  If 
  this is the page in question then the problem is that you are not calling any 
  of the methods. Also, you might want to make sure that the jsp page actually 
  compiles. I dont know what  file://out.println(e); is but I'm sure it wont 
  compile.
  -Tim
  
-Original Message-From: Ravindra 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 12, 2001 
6:40 AMTo: [EMAIL PROTECTED]Subject: Urgent 
!!!! Please help me
Dear All,
 
    Problem : 
        
            I have a jsp page, 
which should talk to database and fetches file name from the table and 
prints the file on to browser.
 
    Current Result 
:
        
            No error, but there 
is no single data from the file are not written to the browser.
 
    Request :
        
            Can any body send 
me the code for my requirement, earliest.
 
Code :
 
<%-- * PrintFiles.jsp * 
Created on December 13, 2001, 4:00 PM--%>
 
<%@ page import = "java.io.*" 
%><%@ page import = "java.sql.*" %><%@ page import = 
"javax.servlet.*" %>
 
<%-- * @author Ravindra 
Varna * @version 
1.0.0--%>   <%!   Connection 
con;   CallableStatement 
cstmt;   ResultSet rs;   String Hi = 
"Ravindra Varna";   PrintWriter 
out;  %>  <%!   void 
getConnection()   {try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con 
= 
DriverManager.getConnection("jdbc:odbc:DB","sa","");}catch(Exception 
e){ file://out.println(e);}   }  %>  <%=Hi 
%>  <%!   void 
getResultSet()   {String 
mysql_Statement;String 
file_Name;try{ mysql_Statement 
= "{call DB_Sl_FileName}"; cstmt = 
con.prepareCall(mysql_Statement); rs = 
cstmt.executeQuery();  while 
(rs.next()) {  file_Name 
= rs.getString(2);  FileReader fr = 
new FileReader(file_Name);  int c = 
0;  while (c != 
-1)  {   c 
= 
fr.read();   out.println((char)c);  } }}catch(Exception 
e){ out.println(e);}   }  %>  <%=Hi 
%> 
 
 
 
 
Thanks
 
Varna.


Re: Urgent !!!!!!!! Please help me

2001-12-12 Thread Joe Cheng



Ravindra,
 
Since 
you're using the <%! directive, you're just declaring methods, not actually 
calling them.  You need to actually call them.
 
You should 
also be aware that what you're doing is incredibly dangerous.  If two 
requests hit this page at the same time your output will be corrupt.  The 
best way is to put this Java code in a real class, but if you must do it in JSP 
do this--take out all the <%! declarations.
 

<%-- * PrintFiles.jsp * 
Created on December 13, 2001, 4:00 PM--%>
 
<%@ page import = "java.io.*" %><%@ 
page import = "java.sql.*" %><%@ page import = "javax.servlet.*" 
%>
 
<%-- * @author Ravindra 
Varna * @version 
1.0.0--%>   <%   Connection 
con;   CallableStatement 
cstmt;   ResultSet rs;   String Hi = 
"Ravindra Varna";   PrintWriter out;
try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con 
= 
DriverManager.getConnection("jdbc:odbc:DB","sa","");}catch(Exception 
e){
   out.println(e);
}
 
String 
mysql_Statement;String 
file_Name;try{ mysql_Statement 
= "{call DB_Sl_FileName}"; cstmt = 
con.prepareCall(mysql_Statement); rs = 
cstmt.executeQuery();  while 
(rs.next()) {  file_Name 
= rs.getString(2);  FileReader fr = new 
FileReader(file_Name);  int c = 
0;  while (c != 
-1)  {   c 
= 
fr.read();   out.println((char)c);  } }}catch(Exception 
e){ out.println(e);}  %> 
 


Re: Urgent !!!!!!!! Please help me

2001-12-12 Thread Ravindra



Dear Joe,
 
Thanks for your suggestion, if you don't mind can u 
send me the code itself.Becos i have a another task, which should be completed 
very soon.It's a personal request for every member of our community.Don't mind, 
if this hurts anybody feeling or status.
 
 
Thanks 
 
Varna...

  - Original Message - 
  From: 
  Joe Cheng 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, December 12, 2001 9:53 
  PM
  Subject: Re: Urgent !!!! Please help 
  me
  
  Ravindra,
   
  Since 
  you're using the <%! directive, you're just declaring methods, not actually 
  calling them.  You need to actually call them.
   
  You 
  should also be aware that what you're doing is incredibly dangerous.  If 
  two requests hit this page at the same time your output will be corrupt.  
  The best way is to put this Java code in a real class, but if you must do it 
  in JSP do this--take out all the <%! declarations.
   
  
  <%-- * PrintFiles.jsp * 
  Created on December 13, 2001, 4:00 PM--%>
   
  <%@ page import = "java.io.*" 
  %><%@ page import = "java.sql.*" %><%@ page import = 
  "javax.servlet.*" %>
   
  <%-- * @author Ravindra 
  Varna * @version 
  1.0.0--%>   <%   Connection 
  con;   CallableStatement 
  cstmt;   ResultSet rs;   String Hi = 
  "Ravindra Varna";   PrintWriter out;
  try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con 
  = 
  DriverManager.getConnection("jdbc:odbc:DB","sa","");}catch(Exception 
  e){
     
out.println(e);
  }
   
  String 
  mysql_Statement;String 
  file_Name;try{ mysql_Statement 
  = "{call DB_Sl_FileName}"; cstmt = 
  con.prepareCall(mysql_Statement); rs = 
  cstmt.executeQuery();  while 
  (rs.next()) {  file_Name 
  = rs.getString(2);  FileReader fr = new 
  FileReader(file_Name);  int c = 
  0;  while (c != 
  -1)  {   c 
  = 
  fr.read();   out.println((char)c);  } }}catch(Exception 
  e){ out.println(e);}  %> 
   


SV: Urgent !!!!!!!! Please help me

2001-12-12 Thread Jan Areno

I'm not sure of this but can't you connect it to an javascript event?

document.form.onsubmit(myfuction)

As I said, I don't know if there is a onsubmit event on the form, but if it
is, I would recomend it...

Another way to do it is to have the go button make the function call (I't
probably how you do it today, i'm not sure)



the function returns false if something is wrong and true otherwise... Since
the submit always is run (even if enter is pressed) you will run this
function. return is used so the submit is canceled if there is something
wrong (you don't want to give a error message and then continue)

Hoped it helped..

// Jan Areno


-Ursprungligt meddelande-
Fran: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]For ShriKant Vashishtha
Skickat: den 13 december 2001 08:27
Till: [EMAIL PROTECTED]
Amne: Urgent  Please help me


Hi,

My JSP contains the following things
 A text box
and a GO button which fetches the result based on the criteria entered in
textbox.

The GO button has a validation for a blank search criteria and displayes
alert
message if we press GO without entering anything.

But the problem is, if I hit on ENTER, it fetches me the result even if I
haven't entered anything in the text box. It does not go through the
validation which executes on pressing on GO button.

Please help...
-ShriKant

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

2001-12-12 Thread Gochwal Meenu

U can try this way also


var i=window.event.keyCode;

window.status = "Ready";

if(i=!13){
//fetch ur result here
}

Meenu


> -Original Message-
> From: ShriKant Vashishtha [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, December 13, 2001 12:57 PM
> To:   [EMAIL PROTECTED]
> Subject:      Urgent  Please help me
>
> Hi,
>
> My JSP contains the following things
>
> A text box
> and a GO button which fetches the result based on the criteria entered in
> textbox.
>
> The GO button has a validation for a blank search criteria and displayes
> alert
> message if we press GO without entering anything.
>
> But the problem is, if I hit on ENTER, it fetches me the result even if I
> haven't entered anything in the text box. It does not go through the
> validation which executes on pressing on GO button.
>
> Please help...
> -ShriKant
>
> ==
> =
> 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: Urgent !!!!!!!! Please help me

2001-12-13 Thread Kwan, William

Hi,

Try the following.

function verifydate()
{
if (document.form1.txtbox.value == "") then
{
document.form1.txtbox.focus();
return false;
}else
return true;
}





.






talk to you later,
Will


-Original Message-
From: ShriKant Vashishtha [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 11:27 PM
To: [EMAIL PROTECTED]
Subject: Urgent !!!! Please help me


Hi,

My JSP contains the following things

A text box
and a GO button which fetches the result based on the criteria entered in
textbox.

The GO button has a validation for a blank search criteria and displayes
alert
message if we press GO without entering anything.

But the problem is, if I hit on ENTER, it fetches me the result even if I
haven't entered anything in the text box. It does not go through the
validation which executes on pressing on GO button.

Please help...
-ShriKant

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

2001-12-17 Thread Ravindra

Hi All,

String string_Name = new String("Tendulkar");

String string_Name = "Tendulkar";

In Above two statements which is compatible(Speed,Instantiating and other
parameters.) for java compiler.

thanks

Varna.

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

2001-12-17 Thread Rajinder Sandhu

second one

-Original Message-
From: Ravindra [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 11:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Urgent  Please help me


Hi All,

String string_Name = new String("Tendulkar");

String string_Name = "Tendulkar";

In Above two statements which is compatible(Speed,Instantiating and other
parameters.) for java compiler.

thanks

Varna.

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

2001-12-17 Thread Gare, Trefor

Not quite sure what you're after but the second will allow the JVM to use a
single String object for multiple references (if there are any other strings
"Tendulkar").  The first will always create a new String object.  In that
way the second is a more economical way of creating/referencing the object.
Is that a help?



Tref Gare
Web Developer MCSD
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

> -Original Message-
> From: Ravindra [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday,18 December 2001 5:24
> To:   [EMAIL PROTECTED]
> Subject:      Re: Urgent  Please help me
>
> Hi All,
>
> String string_Name = new String("Tendulkar");
>
> String string_Name = "Tendulkar";
>
> In Above two statements which is compatible(Speed,Instantiating and other
> parameters.) for java compiler.
>
> thanks
>
> Varna.
>
> ==
> =
> 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: Urgent !!!!!!!! Please help me

2001-12-17 Thread Komaravolu Vasudha

hello
I think the first one is more compatbile

-Original Message-
From: Ravindra [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 11:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Urgent  Please help me


Hi All,

String string_Name = new String("Tendulkar");

String string_Name = "Tendulkar";

In Above two statements which is compatible(Speed,Instantiating and other
parameters.) for java compiler.

thanks

Varna.

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

2001-12-17 Thread Ravindra

Thanks Gare,
I want to check the second option for referencing more than one value.It
will take the last referenced value for display.

String string_Name = "Sachin";
  string_Name = "Tendulkar";
  System.out.println(string_Name); >Result is : Tendulkar

So i just testing it's behaviour.

Thanks

Varna.





- Original Message -
From: "Gare, Trefor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 11:57 AM
Subject: Re: Urgent  Please help me


> Not quite sure what you're after but the second will allow the JVM to use
a
> single String object for multiple references (if there are any other
strings
> "Tendulkar").  The first will always create a new String object.  In that
> way the second is a more economical way of creating/referencing the
object.
> Is that a help?
>
>
>
> Tref Gare
> Web Developer MCSD
> eCommerce Group
> Phone:  (03) 9221 4106
> Mobile: 0409 556 478
> Fax:(03) 9941 4295
>
> > -Original Message-
> > From: Ravindra [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday,18 December 2001 5:24
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: Urgent  Please help me
> >
> > Hi All,
> >
> > String string_Name = new String("Tendulkar");
> >
> > String string_Name = "Tendulkar";
> >
> > In Above two statements which is compatible(Speed,Instantiating and
other
> > parameters.) for java compiler.
> >
> > thanks
> >
> > Varna.
> >
> >
==
> > =
> > 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: Urgent !!!!!!!! Please help me

2001-12-17 Thread Leo

I think "second will allow the JVM to use a single String object for multiple 
references"  is like this:

String s1 = "abc";
String s2 = "abc";
System.out.println(s1==s2);

String s3 = new String("abc");
String s4 = new String("abc");
System.out.println(s3==s4);

Result:
true
false

- Original Message - 
From: "Ravindra" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 2:40 PM
Subject: Re: Urgent  Please help me


> Thanks Gare,
> I want to check the second option for referencing more than one value.It
> will take the last referenced value for display.
> 
> String string_Name = "Sachin";
>   string_Name = "Tendulkar";
>   System.out.println(string_Name); >Result is : Tendulkar
> 
> So i just testing it's behaviour.
> 
> Thanks
> 
> Varna.
> 
> 
> 
> 
> 
> - Original Message -----
> From: "Gare, Trefor" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 18, 2001 11:57 AM
> Subject: Re: Urgent  Please help me
> 
> 
> > Not quite sure what you're after but the second will allow the JVM to use
> a
> > single String object for multiple references (if there are any other
> strings
> > "Tendulkar").  The first will always create a new String object.  In that
> > way the second is a more economical way of creating/referencing the
> object.
> > Is that a help?
> >
> >
> >
> > Tref Gare
> > Web Developer MCSD
> > eCommerce Group
> > Phone:  (03) 9221 4106
> > Mobile: 0409 556 478
> > Fax:(03) 9941 4295
> >
> > > -Original Message-
> > > From: Ravindra [SMTP:[EMAIL PROTECTED]]
> > > Sent: Tuesday,18 December 2001 5:24
> > > To:   [EMAIL PROTECTED]
> > > Subject:  Re: Urgent  Please help me
> > >
> > > Hi All,
> > >
> > > String string_Name = new String("Tendulkar");
> > >
> > > String string_Name = "Tendulkar";
> > >
> > > In Above two statements which is compatible(Speed,Instantiating and
> other
> > > parameters.) for java compiler.
> > >
> > > thanks
> > >
> > > Varna.
> > >
> > >
> ==
> > > =
> > > 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
¢éì¹»®&ޙ¨¥¶‰b²Û®øÚ½«.Ê&Â+an‡r²('¡÷ÉHò
LDDI1h­Ø zËfj)m¢X¬¶Ç«¾6¯j˧r‰°ŠØ[¡Ü¬zÒR<ƒSL2$Ò¢g«zW¯j{E(œ”ý'«¾W­±Æ§mçèºwZ¶m§ÿÚ­Èb½ë#jö¬ºw(›øì¦)íz·¬¶f–m§ÿãjö¬ºw(›úk¡Ûœ¶Ï㲟ßj¨mšXm¶ŸÿÃ
²—«j{h¢¸'Ïøì§øì¥öªŽÊa¶Úÿ0Ž«¹Ê&ýöªþ)Ý{ì¦m§ÿðÃì¦)ì‰×«r‰


Re: Urgent !!!!!!!! Please help me

2001-12-18 Thread ShriKant Vashishtha

Hi All,

1.  for (int i = 0; i < count; i++) {
   Node cld = list.item(i).getFirstChild();
 }

2. Node cld = null;
for (int i = 0; i < count; i++) {
cld = list.item(i).getFirstChild();
}

Which one is more efficient between the two and why.

Thanks,
-ShriKant



"Gare, Trefor" wrote:

> Not quite sure what you're after but the second will allow the JVM to use a
> single String object for multiple references (if there are any other strings
> "Tendulkar").  The first will always create a new String object.  In that
> way the second is a more economical way of creating/referencing the object.
> Is that a help?
>
> Tref Gare
> Web Developer MCSD
> eCommerce Group
> Phone:  (03) 9221 4106
> Mobile: 0409 556 478
> Fax:(03) 9941 4295
>
> > -Original Message-
> > From: Ravindra [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday,18 December 2001 5:24
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: Urgent  Please help me
> >
> > Hi All,
> >
> > String string_Name = new String("Tendulkar");
> >
> > String string_Name = "Tendulkar";
> >
> > In Above two statements which is compatible(Speed,Instantiating and other
> > parameters.) for java compiler.
> >
> > thanks
> >
> > Varna.
> >
> > ==
> > =
> > 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: Urgent !!!!!!!! Please help me

2001-12-18 Thread Komaravolu Vasudha

hello srikanth,
second one is more efficient as in the first case the node cld will
be creating each and every time. So if the count value is larger then that
many times this object will be created.


-Original Message-
From: ShriKant Vashishtha [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 1:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Urgent  Please help me


Hi All,

1.  for (int i = 0; i < count; i++) {
   Node cld = list.item(i).getFirstChild();
 }

2. Node cld = null;
for (int i = 0; i < count; i++) {
cld = list.item(i).getFirstChild();
}

Which one is more efficient between the two and why.

Thanks,
-ShriKant



"Gare, Trefor" wrote:

> Not quite sure what you're after but the second will allow the JVM to use
a
> single String object for multiple references (if there are any other
strings
> "Tendulkar").  The first will always create a new String object.  In that
> way the second is a more economical way of creating/referencing the
object.
> Is that a help?
>
> Tref Gare
> Web Developer MCSD
> eCommerce Group
> Phone:  (03) 9221 4106
> Mobile: 0409 556 478
> Fax:(03) 9941 4295
>
> > -Original Message-
> > From: Ravindra [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday,18 December 2001 5:24
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: Urgent  Please help me
> >
> > Hi All,
> >
> > String string_Name = new String("Tendulkar");
> >
> > String string_Name = "Tendulkar";
> >
> > In Above two statements which is compatible(Speed,Instantiating and
other
> > parameters.) for java compiler.
> >
> > thanks
> >
> > Varna.
> >
> >
==
> > =
> > 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: Urgent !!!!!!!! Please help me

2001-12-18 Thread ShriKant Vashishtha


Hi,
I am little puzzled. Let me clear my understanding.
When I say
Node cld = list.item(i).getFirstChild();
am I calling any constructor of the object, if yes which one?
Do we have any kind of copy constructor like C++. If we do then what
is the syntex of that constructor and how does it internally invoked.
Thanks,
-ShriKant
Komaravolu Vasudha wrote:
hello srikanth,
    second one is more efficient
as in the first case the node cld will
be creating each and every time. So if the count value is larger then
that
many times this object will be created.
-Original Message-
From: ShriKant Vashishtha [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 1:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Urgent  Please help me
Hi All,
1.  for (int i = 0; i < count; i++) {
   Node cld = list.item(i).getFirstChild();
 }
2. Node cld = null;
    for (int i = 0; i < count; i++) {
    cld = list.item(i).getFirstChild();
    }
Which one is more efficient between the two and why.
Thanks,
-ShriKant
"Gare, Trefor" wrote:
> Not quite sure what you're after but the second will allow the JVM
to use
a
> single String object for multiple references (if there are any other
strings
> "Tendulkar").  The first will always create a new String object. 
In that
> way the second is a more economical way of creating/referencing the
object.
> Is that a help?
>
> Tref Gare
> Web Developer MCSD
> eCommerce Group
> Phone:  (03) 9221 4106
> Mobile: 0409 556 478
> Fax:    (03) 9941 4295
>
> > -Original Message-
> > From: Ravindra [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday,18 December 2001 5:24
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: Urgent  Please
help me
> >
> > Hi All,
> >
> > String string_Name = new String("Tendulkar");
> >
> > String string_Name = "Tendulkar";
> >
> > In Above two statements which is compatible(Speed,Instantiating
and
other
> > parameters.) for java compiler.
> >
> > thanks
> >
> > Varna.
> >
> >
==
> > =
> > 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: Urgent !!!!!!!! Please help me

2001-12-18 Thread ShriKant Vashishtha

Hi,

I am little puzzled. Let me clear my understanding.
When I say
Node cld = list.item(i).getFirstChild();
am I calling any constructor of the object, if yes which one?
Do we have any kind of copy constructor like C++. If we do then what is the syntex
of that constructor and how does it internally
invoked.

Thanks,
-ShriKant

Komaravolu Vasudha wrote:

> hello srikanth,
> second one is more efficient as in the first case the node cld will
> be creating each and every time. So if the count value is larger then that
> many times this object will be created.
>
> -Original Message-
> From: ShriKant Vashishtha [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 1:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Urgent  Please help me
>
> Hi All,
>
> 1.  for (int i = 0; i < count; i++) {
>Node cld = list.item(i).getFirstChild();
>  }
>
> 2. Node cld = null;
> for (int i = 0; i < count; i++) {
> cld = list.item(i).getFirstChild();
> }
>
> Which one is more efficient between the two and why.
>
> Thanks,
> -ShriKant
>
> "Gare, Trefor" wrote:
>
> > Not quite sure what you're after but the second will allow the JVM to use
> a
> > single String object for multiple references (if there are any other
> strings
> > "Tendulkar").  The first will always create a new String object.  In that
> > way the second is a more economical way of creating/referencing the
> object.
> > Is that a help?
> >
> > Tref Gare
> > Web Developer MCSD
> > eCommerce Group
> > Phone:  (03) 9221 4106
> > Mobile: 0409 556 478
> > Fax:(03) 9941 4295
> >
> > > -Original Message-
> > > From: Ravindra [SMTP:[EMAIL PROTECTED]]
> > > Sent: Tuesday,18 December 2001 5:24
> > > To:   [EMAIL PROTECTED]
> > > Subject:  Re: Urgent  Please help me
> > >
> > > Hi All,
> > >
> > > String string_Name = new String("Tendulkar");
> > >
> > > String string_Name = "Tendulkar";
> > >
> > > In Above two statements which is compatible(Speed,Instantiating and
> other
> > > parameters.) for java compiler.
> > >
> > > thanks
> > >
> > > Varna.
> > >
> > >
> ==
> > > =
> > > 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: Urgent !!!!!!!! Please help me

2001-12-18 Thread Haseltine, Celeste

I did not run your code, but if my memory serves me correctly, you will get
an error on 1 when you re-enter the loop, as the object cld will already
exists.

These questions look very much like those asked on a Java final exam.  Are
you getting help from the board for your take home final?

Celeste

-Original Message-
From: ShriKant Vashishtha [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 2:12 AM
To: [EMAIL PROTECTED]
Subject: Re: Urgent  Please help me


Hi All,

1.  for (int i = 0; i < count; i++) {
   Node cld = list.item(i).getFirstChild();
 }

2. Node cld = null;
for (int i = 0; i < count; i++) {
cld = list.item(i).getFirstChild();
}

Which one is more efficient between the two and why.

Thanks,
-ShriKant



"Gare, Trefor" wrote:

> Not quite sure what you're after but the second will allow the JVM to use
a
> single String object for multiple references (if there are any other
strings
> "Tendulkar").  The first will always create a new String object.  In that
> way the second is a more economical way of creating/referencing the
object.
> Is that a help?
>
> Tref Gare
> Web Developer MCSD
> eCommerce Group
> Phone:  (03) 9221 4106
> Mobile: 0409 556 478
> Fax:(03) 9941 4295
>
> > -Original Message-
> > From: Ravindra [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday,18 December 2001 5:24
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: Urgent  Please help me
> >
> > Hi All,
> >
> > String string_Name = new String("Tendulkar");
> >
> > String string_Name = "Tendulkar";
> >
> > In Above two statements which is compatible(Speed,Instantiating and
other
> > parameters.) for java compiler.
> >
> > thanks
> >
> > Varna.
> >
> >
==
> > =
> > 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