Re: jdbc url for sqlServer

2002-07-23 Thread Bhushan_Bhangale

Hey Ash,

Check the documentation of the driver which you are using. The url is different for 
different drivers. Below are the two examples which I have used earlier in projects:-

jdbc:microsoft:sqlserver://Simple2SVR:1433 for SQLServerDriver

jdbc:JSQLConnect://Simple2SVR:1433 for JSQLDriver

-Original Message-
From: Shahata, Ash [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 2:02 PM
To: [EMAIL PROTECTED]
Subject: jdbc url for sqlServer


Hi all,
does anyone know what would the jdbc url value be if I'm using Microsoft Sql
Server? I want to use opta2000 as the jdbc driver. I already have a
connection with mySQL :

try{
Class.forName(org.gjt.mm.mysql.Driver).newInstance();
con = DriverManager.getConnection(jdbc:mysql://localhost/test
?user=namepassword=pass);
..
..
}

I want to find out which values would I use with forName and getConnection
if I'm using the opta2000 driver to connect to sql Server?

Thanks
Ash

===
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: Regarding I-Planet

2002-07-23 Thread Bhushan_Bhangale

yaa at least u can start with... after doing this you can read other documents 
which come when u install iPlanet
all the best!!

-Original Message-
From: Vijayanand [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 7:53 AM
To: [EMAIL PROTECTED]
Subject: Re: Regarding I-Planet


thanks,

I will work into it as you said. I think it wil be more helpful for me
to work in I-Planet.

- Original Message -
From: Bhushan_Bhangale [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 23, 2002 4:12 PM
Subject: Re: Regarding I-Planet


 Here is one which I hve made for one training earlier:-

 Installation Steps for iPlanet web server

 1.  Pre-requisite JDK 1.2 or higher must be installed on your OS.
 2.  Start the installation by clicking on iws60sp2-nt.exe file.
 3.  Select installation type as Custom.
 4.  The default installation directory will be C:\iPlanet\Servers. If
you want to change, you can but better to keep as it is, only drive should
be changed as per hard disk space.
 5.  Specify username and password. It can be any, not necessarily of
OS.
 6.  The default administration port is . If you want you can
change.
 7.  The default HTTP port is 80. If you want you can change.
 8.  The default Content Root is C:/iPlanet/Servers/docs. If you want
you can change, but no need to change as Web applications seldom uses it.
 9.  Enable the Use custom java development kit check box. In JDK home
text field write the JDK home directory path, e.g., C:\ j2sdk1.4.0. Do not
specify anything in other text fields.
 10. Now installation is complete.
 11. To test installation, first start iPlanet administration from
program menu or from services. Go to http://localhost: to see the web
server web administration interface.
 12. Now start the web server either from the Web administration
interface or services. Go to http://localhost, you will see iPlanetTM Web
Server, Enterprise Edition 6.0.

 Configuration Steps of Web Application in iPlanet web server

 1.  Suppose IPLANET_HOME=C:\iPlanet\Servers and
HOST_MACHINE=https-PUNHJW13014.ad.infosys.com for my installation.
 2.  Open IPLANET_HOME\HOST_MACHINE\config\web-apps.xml in notepad
and add web-app uri=/assignment dir=C:/Assignment enable=true/ under
vs/vs tag.
 3.  Create a directory C:/Assignment. Create a WEB-INF folder inside.
Now create a classes folder inside WEB-INF folder.
 4.  Create web.xml file under WEB-INF folder. Here is an example of a
web.xml file.

 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 web-app
 servlet
 servlet-name
 StartupServlet
 /servlet-name
 servlet-class

in.co.infosys.treasurehunt.common.handler.StartupServlet
 /servlet-class
 load-on-startup
 2147483646
 /load-on-startup
 /servlet
 servlet
 servlet-name
 RegisterServlet
 /servlet-name
 servlet-class

in.co.infosys.treasurehunt.hunt.handler.RegisterServlet
 /servlet-class
 /servlet

 servlet-mapping
 servlet-name
 RegisterServlet
 /servlet-name
 url-pattern
 /Register
 /url-pattern
 /servlet-mapping

 welcome-file-list
 welcome-file
 index.html
 /welcome-file
 /welcome-file-list
 /web-app

 5.  All the servlets needs to be registered in web.xml.
 6.  Following table explains the attributes used in web.xml.

 Web.xml attributes  Description
 servlet-class   Fully qualified name of Servlet class
 servlet-nameAny name that you want for this Servlet, but it should be
unique for this web application.
 url-pattern URL pattern to access this Servlet
 welcome-fileFirst file which gets called when you will go to
http://localhost/assignment. It cannot be a Servlet.
 load-on-startup Time in seconds after which the Servlet will get
initialized again. If this attribute is specified with a Servlet it will
always initialize when the server will start. It can be used to start some
services as soon as the server starts.

 7.  Put all your java classes under classes folder which you have
created above.
 8.  Keep all your JSPs, HTML, Images, etc outside WEB-INF folder.
 9.  Restart the web server.
 10. To access your application go to http://localhost/assignment.

 -Original Message-
 From: Vijayanand [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 23, 2002 5:22 AM
 To: [EMAIL PROTECTED]
 Subject: Regarding I-Planet


 Hi All,

 Iam very new to I-Planet. I

Re: How to avoid entire directory tree display

2002-07-23 Thread Bhushan_Bhangale

Some where in your app server you need to stop directory browsing.

-Original Message-
From: Arunkumar_N [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 4:55 PM
To: [EMAIL PROTECTED]
Subject: How to avoid entire directory tree display


Hello,
In one of my portal development application,I am making use of
websphere.
if I type in the browser the IP address for
Ex: xxx.xx.xx.xxx,it goes to the root of the HTTP server where
we can browse the entire directory tree.

How to avoid this problem.

Thanks  Regards
Arun

 -
**
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

===
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: Request Dispatcher Problem - Pls reply ASAP !

2002-07-22 Thread Bhushan_Bhangale

Please answer some of the things:
1. You said the document root path is docs/servlet whereas it should be docs since 
you are keeping jsps in docs folder.
2. Is the com/gm/hangtag/presentation directory inside docs folder.
3. Remove the http:// protocol from the URL as you using request dispatcher which 
should be used to redirect on the internal urls.

-Original Message-
From: Saurabh Sahay [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 7:31 PM
To: [EMAIL PROTECTED]
Subject: Request Dispatcher Problem - Pls reply ASAP !


I am deploying my application in IPlanet Web Server where I keep the JSP
inside docs, while the java files inside docs/servlet. Since the
document root path is docs/servlet, whenever I am trying to forward from
a servlet to a JSP, I think it is trying to search the JSP inside the
servlet directory, but it is present in the docs directory itself.

the concerned lines in Servlet are as follows:

package com.gm.hangtag.controller;
String   strJSPPage
= http://server/com/gm/hangtag/presentation/AddInquireGradingAndDisclosure.jsp;;
dispatcher = context.getRequestDispatcher(strJSPNext);
dispatcher.forward(request, response);


but everytime it is giving forward call failed...What is the reason for
this?

Thanks for your help


Disclaimer

The views of the author may not necessarily reflect those
of the Company. All liability is excluded to the extent
permitted by law for any claims arising as a result of the
use of this medium to transmit information by or to
IT Solutions (India) Pvt. Ltd.

We have taken precautions to minimize the risk of
transmitting software viruses, but we advise you to
carry out your own virus checks on any attachment to
this message.  We cannot accept liability for any loss or
damage caused by software viruses.

Disclaimer

===
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: Regarding I-Planet

2002-07-22 Thread Bhushan_Bhangale

Here is one which I hve made for one training earlier:-

Installation Steps for iPlanet web server

1.  Pre-requisite JDK 1.2 or higher must be installed on your OS.
2.  Start the installation by clicking on iws60sp2-nt.exe file.
3.  Select installation type as Custom.
4.  The default installation directory will be C:\iPlanet\Servers. If you want to 
change, you can but better to keep as it is, only drive should be changed as per hard 
disk space.
5.  Specify username and password. It can be any, not necessarily of OS.
6.  The default administration port is . If you want you can change.
7.  The default HTTP port is 80. If you want you can change.
8.  The default Content Root is C:/iPlanet/Servers/docs. If you want you can 
change, but no need to change as Web applications seldom uses it.
9.  Enable the Use custom java development kit check box. In JDK home text field 
write the JDK home directory path, e.g., C:\ j2sdk1.4.0. Do not specify anything in 
other text fields.
10. Now installation is complete. 
11. To test installation, first start iPlanet administration from program menu or 
from services. Go to http://localhost: to see the web server web administration 
interface. 
12. Now start the web server either from the Web administration interface or 
services. Go to http://localhost, you will see iPlanetTM Web Server, Enterprise 
Edition 6.0.
 
Configuration Steps of Web Application in iPlanet web server

1.  Suppose IPLANET_HOME=C:\iPlanet\Servers and 
HOST_MACHINE=https-PUNHJW13014.ad.infosys.com for my installation.
2.  Open IPLANET_HOME\HOST_MACHINE\config\web-apps.xml in notepad and add 
web-app uri=/assignment dir=C:/Assignment enable=true/ under vs/vs tag.
3.  Create a directory C:/Assignment. Create a WEB-INF folder inside. Now create a 
classes folder inside WEB-INF folder.
4.  Create web.xml file under WEB-INF folder. Here is an example of a web.xml file.

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
web-app
servlet
servlet-name
StartupServlet
/servlet-name
servlet-class
in.co.infosys.treasurehunt.common.handler.StartupServlet
/servlet-class
load-on-startup
2147483646
/load-on-startup
/servlet
servlet
servlet-name
RegisterServlet
/servlet-name
servlet-class
in.co.infosys.treasurehunt.hunt.handler.RegisterServlet
/servlet-class
/servlet

servlet-mapping
servlet-name
RegisterServlet
/servlet-name
url-pattern
/Register
/url-pattern
/servlet-mapping

welcome-file-list
welcome-file
index.html
/welcome-file
/welcome-file-list
/web-app

5.  All the servlets needs to be registered in web.xml.
6.  Following table explains the attributes used in web.xml.

Web.xml attributes  Description
servlet-class   Fully qualified name of Servlet class
servlet-nameAny name that you want for this Servlet, but it should be unique for 
this web application.
url-pattern URL pattern to access this Servlet
welcome-fileFirst file which gets called when you will go to 
http://localhost/assignment. It cannot be a Servlet.
load-on-startup Time in seconds after which the Servlet will get initialized again. If 
this attribute is specified with a Servlet it will always initialize when the server 
will start. It can be used to start some services as soon as the server starts.

7.  Put all your java classes under classes folder which you have created above.
8.  Keep all your JSPs, HTML, Images, etc outside WEB-INF folder.
9.  Restart the web server.
10. To access your application go to http://localhost/assignment.

-Original Message-
From: Vijayanand [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 5:22 AM
To: [EMAIL PROTECTED]
Subject: Regarding I-Planet


Hi All,

Iam very new to I-Planet. I have never used it before. Just I wanted to learn 
about I-Planet. Can any one send me the documents of how to configure i-planet, how to 
run an application in it. It would be very helpful, if any one can send me those.

thanks in advance,
vijay

=
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
 

Re: Starting Java Class at the boot time

2002-07-21 Thread Bhushan_Bhangale

Make a batch file which starts the class and add that batch file in the startup script 
of the OS. In windows you can do it by adding the bat file in the Startup menu while 
in unix you can add it in the .profile file.

-Original Message-
From: Shamshad Alam [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 21, 2002 12:57 AM
To: [EMAIL PROTECTED]
Subject: Starting Java Class at the boot time


Dear All
I would apprecciat if you could help me sharing your knowledge about how
to start a java class file when the computer boots up.
Thanks a lot in anticipation!
--Shamshad
Alam

-
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/

===
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: setAttribuve vs setValue

2002-07-17 Thread Bhushan_Bhangale

Hi Manuel,

For which class these methods you are talking about? There is no setValue method in 
HttpServletRequest or HttpSession class infact putValue which is deprecated now in 
Httpsession. Can you elaborate your question a little bit?

-Original Message-
From: Manuel Rodriguez Diaz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 1:53 PM
To: [EMAIL PROTECTED]
Subject: setAttribuve vs setValue


Which is the difference between setAttribute and setValue?
Are both the same?

===
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: setAttribuve vs setValue

2002-07-17 Thread Bhushan_Bhangale

So in session object there is not setValue method but putValue is there that too 
deprecated. the new method is setAttribute.

-Original Message-
From: Manuel Rodriguez Diaz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 4:37 PM
To: [EMAIL PROTECTED]
Subject: Re: setAttribuve vs setValue


Sorry,
i'm writting about session object.

Bhushan_Bhangale escribió:

 Hi Manuel,

 For which class these methods you are talking about? There is no setValue method in 
HttpServletRequest or HttpSession class infact putValue which is deprecated now in 
Httpsession. Can you elaborate your question a little bit?

 -Original Message-
 From: Manuel Rodriguez Diaz [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 17, 2002 1:53 PM
 To: [EMAIL PROTECTED]
 Subject: setAttribuve vs setValue

 Which is the difference between setAttribute and setValue?
 Are both the same?

 ===
 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: session error

2002-07-16 Thread Bhushan_Bhangale

Is the login.jsp in same directory as of emp.jsp? If not then the sendRedirect path of 
login.jsp is wrong.

But in any case the browser should not hang.

-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: session error


hi
i've used session in my app.
i putValue in session in login.jsp page after successfull login
  session.putValue(utype,utype);
and in all other pages(like emp.jsp) i getValue.
  String utype = (String)session.getValue(utype);
  if (utype==null || utype.equals()){
response.sendRedirect(login.jsp);
  }
but...
here when i try to open this emp.jsp or any other page directly it should
go to login.jsp but
it takes to much time and at last gives me page not found type browser
error and hangs up.

Can anybody help me please?
Thanks
Vaishali
Reliance Ind Ltd
Ahmedabad

===
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: Environment Variable

2002-07-11 Thread Bhushan_Bhangale

Check the java.lang.System class there using the setProperty method you can do. But 
tell me what you want to achieve?

Thanks  Regards 
Bhushan Bhangale 
Programmer Analyst 
Infosys Technologies Ltd. 
Pune - 411042 
Tel: (Office) +91 (20) 2932800/01 Ext. 6129 
E-mail: [EMAIL PROTECTED] 


-Original Message-
From: Aruniima Chakrabarti
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 2:55 PM
To: [EMAIL PROTECTED]
Subject: Environment Variable


How Can I set environment variables using Java code??

Regards,
aruniima




This message contains privileged and confidential information and is
intended only for the individual named. If you are not the intended
recepient you should not disseminate, distribute, store, print, copy or
deliver this message. Please notify the sender immediately by e-mail if you
have received this e-mail by mistake and immediately delete this e-mail from
your system.


E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of e-mail transmission.  If verification is required
please request a hard-copy version.


--

===
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: Environment Variable

2002-07-11 Thread Bhushan_Bhangale

Try this

System.out.println(System.getProperty(user.name));
System.setProperty(user.name,a);
System.out.println(System.getProperty(user.name));

It prints the changed value.

-Original Message-
From: Aruniima Chakrabarti
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 3:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Environment Variable


I am using the following code but it is still not changing the env variable
as I want it to... it still remains same as the old user name... any idea
why so???


class SetEnv
{
public static void main(String[] args)
{
SetEnv se = new SetEnv();
String user = System.getProperty(user.name);
System.out.println(user);
System.setProperty(user.name,a);
System.out.println(done);

}


}

Regards,
aruniima

 -Original Message-
From:   Bhushan_Bhangale [mailto:[EMAIL PROTECTED]]
Sent:   11 Jul,2002 3:02 PM
To: [EMAIL PROTECTED]
Subject:Re: Environment Variable

Check the java.lang.System class there using the setProperty method you can
do. But tell me what you want to achieve?

Thanks  Regards
Bhushan Bhangale
Programmer Analyst
Infosys Technologies Ltd.
Pune - 411042
Tel: (Office) +91 (20) 2932800/01 Ext. 6129
E-mail: [EMAIL PROTECTED]


-Original Message-
From: Aruniima Chakrabarti
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 2:55 PM
To: [EMAIL PROTECTED]
Subject: Environment Variable


How Can I set environment variables using Java code??

Regards,
aruniima




This message contains privileged and confidential information and is
intended only for the individual named. If you are not the intended
recepient you should not disseminate, distribute, store, print, copy or
deliver this message. Please notify the sender immediately by e-mail if you
have received this e-mail by mistake and immediately delete this e-mail from
your system.


E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of e-mail transmission.  If verification is required
please request a hard-copy version.


--

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


This message contains privileged and confidential information and is
intended only for the individual named. If you are not the intended
recepient you should not disseminate, distribute, store, print, copy or
deliver this message. Please notify the sender immediately by e-mail if you
have received this e-mail by mistake and immediately delete this e-mail from
your system.


E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of e-mail transmission.  If verification is required
please request a hard-copy version.


--

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

Re: Variable i may not have been initialized. for ( int i = 0; i fc2List.size(); i++ ) ...... Please help

2002-07-09 Thread Bhushan_Bhangale

If he would have done that then he would have got variable not defined.

-Original Message-
From: Emmanuel Eze [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 12:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Variable i may not have been initialized. for ( int i = 0;
i  fc2List.size(); i++ ) .. Please help


Are u sure u are not using the variable i anywhere outside the for() loop?

Emma

-Original Message-
From: Lisa Xu [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 8:59 AM
To: [EMAIL PROTECTED]
Subject: Re: Variable i may not have been initialized. for ( int i = 0;
i  fc2List.size(); i++ ) .. Please help


Hi Anoop

Thanks for replying. This might sound all to stupid, but I have tried
declare I outside the loop or not declare it at all. The funny thing is, if
I don't declare it, the compiler knows it, but declare it anywhere in the
program, I get this error msg.  May not have been initialised? I just
don't get it.

Regards,

- Original Message -
From: Anoop Kumar V [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 08, 2002 4:47 PM
Subject: Re: Variable i may not have been initialized. for ( int i = 0; i 
fc2List.size(); i++ ) .. Please help


 Lisa,
 ideally u shd not be getting this error.
 Maybe u can send more of ur code...

 Or else try this. declare int i outside the for loop.
 then inside th for loop use (i=0;ifc2List.size();i++).

 -anoop

 -Original Message-
 From: Lisa Xu [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 08, 2002 11:55 AM
 To: [EMAIL PROTECTED]
 Subject: Variable i may not have been initialized. for ( int i = 0; i 
 fc2List.size(); i++ ) .. Please help


 Hi

 The jsp page i created keeps coming up this error msg.
 I am stuck here, and i don't see why int i has not been initialized.

 Please help

 Regards,


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

  http://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: Password encryption

2002-07-04 Thread Bhushan_Bhangale

Enjoy!!!

following are the two classess for encrypting and decrypting. Define a key(write 
anything abc342d) in key.txt. Data which needs to be encrypted in data.txt. the 
encrypted data will be written in encrypted.txt when you will run the program. Same 
for decryption. You can modify the classes if you data is coming from somewhere and 
going somewhere instead of .txt files.

//EncryptUser.java
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.security.Key;
import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.crypto.spec.SecretKeySpec;

public class EncryptUser {
public static void main(String[] args) {
try {
FileInputStream fiskey = new FileInputStream(key.txt);
byte[] byteData = new byte[8];
fiskey.read(byteData);
fiskey.close();
 
SecretKeySpec secretKey = new SecretKeySpec(byteData, DES);

Key mykey = secretKey;

// initialize the Cipher objects
Cipher cipher = Cipher.getInstance(DES, SunJCE);
cipher.init(Cipher.ENCRYPT_MODE, mykey);

// creating the encrypting cipher stream
FileInputStream fis = new FileInputStream(data.txt);
CipherInputStream cis = new CipherInputStream(fis, cipher);

// writing the encrypted data to output file
  FileOutputStream fos = new FileOutputStream(encrypted.txt);

  byteData = new byte[1024];
  int intValue = 0;
  
  while ((intValue = cis.read(byteData)) != -1) {
fos.write(byteData, 0, intValue);
  }
  
  fis.close();
  fos.close();
  cis.close();
} catch (Exception exp) {
  exp.printStackTrace();
}
  }
}

//DecryptUser.java
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.security.Key;
import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.crypto.spec.SecretKeySpec;

public class DecryptUser {
  public static void main(String[] args) {
try {
FileInputStream fiskey = new FileInputStream(key.txt);
byte[] byteData = new byte[8];
fiskey.read(byteData);
fiskey.close();
 
SecretKeySpec secretKey = new SecretKeySpec(byteData, DES);

Key mykey = secretKey;

// initialize the Cipher objects
Cipher cipher = Cipher.getInstance(DES, SunJCE);
cipher.init(Cipher.DECRYPT_MODE, mykey);

// creating the encrypting cipher stream
FileInputStream fis = new FileInputStream(encrypted.txt);
CipherInputStream cis = new CipherInputStream(fis, cipher);

// writing the encrypted data to output file
  FileOutputStream fos = new FileOutputStream(decrypted.txt);

  byteData = new byte[1024];
  int intValue = 0;
  
  while ((intValue = cis.read(byteData)) != -1) {
fos.write(byteData, 0, intValue);
  }
  
  fos.close();
  cis.close();
} catch (Exception exp) {
  exp.printStackTrace();
}
  }
}

-Original Message-
From: srinivas tadikonda [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 04, 2002 2:08 PM
To: [EMAIL PROTECTED]
Subject: Password encryption


Hi,
 How can I do password encryption and decryption. Please sned code for encryption and 
decryption.
Regards
Srinivas









MSN Photos is the easiest way to share and print your photos: Click Here
=== 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: Password encryption

2002-07-04 Thread Bhushan_Bhangale

This is fine but can be easily cracked. Initially i too have used this kind of logic 
but later on came to know that this kind of simple encryption are easy to crack. The 
public key and private key cryptography technique provides very strong encryption. As 
without a private key its very difficult to crack the encryption.

-Original Message-
From: Aruniima Chakrabarti
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 04, 2002 3:08 PM
To: [EMAIL PROTECTED]
Subject: Re: Password encryption


Hi,
 I am attaching the code to encrypt a password  to decrypt the same

Regards,
aruniima

==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: Password encryption

2002-07-04 Thread Bhushan_Bhangale

This is also fine but there comes situations where we need to send the password to the 
user. I faced this situation with my client and we had to move from Md5 algo to 
Cryptography.

-Original Message-
From: Clayton Nash [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 04, 2002 3:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Password encryption


Both of these replies are good, but what you really want to do is MD5 or
SHA encode the password and store the hashed result. Then when the user
enters their password, you apply the same algorithm to that, and compare
the results. Advantage is that you never store the user's password so
even if someone get's the list of passwords, they can't decode them --
in theory no-one ever can.

Clayton

==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: ATG Dynamo vs. JSP

2002-07-03 Thread Bhushan_Bhangale

It is a very good App server and ATG calls it Dynamo. They provide a whole Dynamo 
Product suit which come with an App Server, Personalization server, Commerce Server 
and Scenario server. Fairly strong and rapid development as they provide lots of 
inbuild API.
For more info go to http://www.atg.com 

-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 5:15 PM
To: [EMAIL PROTECTED]
Subject: Re: ATG Dynamo vs. JSP


Can anybody explain about ATG Dynamo?
i would like to know st about.

Thanks
Vaishali
Reliance Ind Ltd
Ahmedabd



  Ronny Van der
  Perre [Smart IT  To:   [EMAIL PROTECTED]
  Systems]cc:
  [EMAIL PROTECTED]Subject:  ATG Dynamo vs. JSP
  Sent by: A
  mailing list
  about Java Server
  Pages
  specification and
  reference
  JSP-INTEREST@JAV
  A.SUN.COM


  07/03/02 12:44 PM
  Please respond to
  rvdp






hi,

i'm building an application in JSP on ATG Dynamo in which i have to upload
a
file (a jpeg) via a form.
allmost all source examples i found (and adapted) work fine in tomcat but
refuse to function on ATG Dynamo.
and it is almost impossible to find ATG Dynamo - JSP recsources on the net.

can anybody send me his ATG Dynamo - JSP resource favourites?
please mail them to [EMAIL PROTECTED]

much obliged,


ronny

===
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: how to pass current value in function of jsp?

2002-07-02 Thread Bhushan_Bhangale

No shortcut you have to go serverside to check whether that employee already exists or 
not.

-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: Re: how to pass current value in function of jsp?


Yes bhushan u r right
i did check this today only and got the point
actually i wanted to do something like shortcut so i do not have to submit
my page
but no alternate is there i suppose and i have to go for it.
right?

Thanks
Vaishali
Reliance Ind Ltd
A'bad




  Bhushan_Bhangale
  Bhushan_Bhangale@ITo:   [EMAIL PROTECTED]
  NFOSYS.COMcc:
  Sent by: A mailing Subject:  Re: how to pass current 
value in function of jsp?
  list about Java
  Server Pages
  specification and
  reference
  JSP-INTEREST@JAVA.
  SUN.COM


  07/02/02 10:34 AM
  Please respond to A
  mailing list about
  Java Server Pages
  specification and
  reference






Hello Vaishali,

I guess you are doing something wrong here. Tell me are you thinking that
when the onBlur event will occur your code will execute the
checkemp(String) method? If yes then you are wrong as the checkemp method
will execute when the JSP will get served. So in the source of generated
html you will see onBlur=change(true/false) already written there. This
way you can't pass the emp_no value tho that method. To do so you need to
submit the form to serverside.

-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 5:01 PM
To: [EMAIL PROTECTED]
Subject: how to pass current value in function of jsp?


%!
  public static boolean checkemp(String emp){
MyConnection con=new MyConnection();
Statement stmt = null;
ResultSet rs = null;
try{
  stmt = con.getCon(1);
  rs = stmt.executeQuery(select * from hrm_employee_mas
where emp_employee_no =  + emp);
  if (rs.next()){
return (true);
  }
  else{
return (false);
  }
}
catch(Exception e){
  System.out.println(e);
}
return (true);
  }
%
script
  function change(res){
if (res==true){
  alert(Employee allready exists);
  document.femp.emp_no.focus();
}
/script

INPUT type=text name=emp_no  value=%=emp%  onblur=change(%=checkemp
(?)%)

what should i write here ?
i want to pass current value of emp_no
in javascript i can write this.value
what about jsp?
any idea?
Thanks in advace

Regards
Vaishali
Reliance Ind Ltd
A'bad

===
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: Problemas con la recursividad

2002-07-02 Thread Bhushan_Bhangale

The whole JSP gets converted into a servlet with only a single method named service() 
in that servlet class. So the session, out, etc JSP variables gets declared and 
initialized in the service() method only. The function which you define in %! % tags 
gets created outside the service method. Now I guess you can understand why you get 
error when you try to access those objects in the function. You need to always pass 
this objects to your function in JSP.

-Original Message-
From: Manuel Rodriguez Diaz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 2:59 PM
To: [EMAIL PROTECTED]
Subject: Problemas con la recursividad


Hi,
I have write a function inside the %! % tags of a JSP page that is
called recursivelly.
The fact is that i'm not able to access implicit JSP objects like
session or out.
¿Is that true or am i doing something wrong?
¿How can i bypass this problem?

Thankyou

===
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: Input parameters in JSp

2002-07-01 Thread Bhushan_Bhangale

Hi Sreeni,

You are specifying the encoding type of POST method as multipart. So in second.jsp you 
need to use file upload API which provides method to extract request parameters from a 
multipart request.

-Original Message-
From: K Sreenivasulu , Gurgaon [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 28, 2002 10:31 PM
To: [EMAIL PROTECTED]
Subject: Input parameters in JSp


Hi All,

When I set the form tag in my JSP page as below, I am not able to get the
input parameter values in servlet through the Request object.

 form method = post ENCTYPE = multipart/formdata ACTION = second.jsp

..
.
/form

If I remove the encoding type I am able to get the values in the second.jsp.

Can anyone suggest any solution for this?

Thanks in Advance.

Regards,
K.Sreenivasulu,
Software Engineer
HCL Technologies
No : 3, Phase-1, Udyog Vihar
Gurgaon --HR.
INDIA.
Ph:6439900-05 Ext. 2245

___
Disclaimer

This document is intended for transmission to the named recipient only.  If
you are not that person, you should note that legal rights reside in this
document and you are not authorized to access, read, disclose, copy, use or
otherwise deal with it and any such actions are prohibited and may be
unlawful. The views expressed in this document are not necessarily those of
HCL Technologies Ltd. Notice is hereby given that no representation,
contract or other binding obligation shall be created by this e-mail, which
must be interpreted accordingly. Any representations, contractual rights or
obligations shall be separately communicated in writing and signed in the
original by a duly authorized officer of the relevant company.
___

===
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 pass current value in function of jsp?

2002-07-01 Thread Bhushan_Bhangale

Hello Vaishali,

I guess you are doing something wrong here. Tell me are you thinking that when the 
onBlur event will occur your code will execute the checkemp(String) method? If yes 
then you are wrong as the checkemp method will execute when the JSP will get served. 
So in the source of generated html you will see onBlur=change(true/false) already 
written there. This way you can't pass the emp_no value tho that method. To do so you 
need to submit the form to serverside.

-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 5:01 PM
To: [EMAIL PROTECTED]
Subject: how to pass current value in function of jsp?


%!
  public static boolean checkemp(String emp){
MyConnection con=new MyConnection();
Statement stmt = null;
ResultSet rs = null;
try{
  stmt = con.getCon(1);
  rs = stmt.executeQuery(select * from hrm_employee_mas
where emp_employee_no =  + emp);
  if (rs.next()){
return (true);
  }
  else{
return (false);
  }
}
catch(Exception e){
  System.out.println(e);
}
return (true);
  }
%
script
  function change(res){
if (res==true){
  alert(Employee allready exists);
  document.femp.emp_no.focus();
}
/script

INPUT type=text name=emp_no  value=%=emp%  onblur=change(%=checkemp
(?)%)

what should i write here ?
i want to pass current value of emp_no
in javascript i can write this.value
what about jsp?
any idea?
Thanks in advace

Regards
Vaishali
Reliance Ind Ltd
A'bad

===
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: response.sendRedirect problem

2002-06-27 Thread Bhushan_Bhangale

After the sendRedirect statement write return statement.

-Original Message-
From: srinivas tadikonda [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 28, 2002 9:52 AM
To: [EMAIL PROTECTED]
Subject: Re: response.sendRedirect problem


Hi,
 In my project I am useing 'response.sendRedirect(somefilename.jsp)' . Its working 
fine. but my problem is each and every page I am checking my session whether its 
expired or not..if expired I am redirecting to Login page using response.sendRedirect. 
but once I am useing this , after response.sendRedirect I put some code in my page.  
Even this is also execting. Actually it should not execute. example code I given 
here...
Here i given two system.out.println statements. Once page redirected means second 
System.out.println statement will not execute.  But  its coming to my server. I am 
useing tomcat 3.2.3.
Pleae tell me whether my code is wrong or behavior is like that.. Please tell me 
solution also
%
System.out.println(Redirecting);
response.sendRedirect(trailrecords.jsp);
System.out.println(Redireced);
%




Join the world's largest e-mail service with MSN Hotmail. Click Here
=== 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 and time parser

2002-05-28 Thread Bhushan_Bhangale

What you have made is not efficient as it is parsing the Date object as many times you 
want some date field value. Also making a number of objects. Instead use the Calendar 
solution which is parsing only once and then using the Calendar class returning the 
required values.

-Original Message-
From: Gading [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 27, 2002 5:53 PM
To: [EMAIL PROTECTED]
Subject: Re: Date and time parser


At 05:21 PM 5/27/2002 +0530, you wrote:
Try like this:-

Timestamp objTimestamp = getTimestamp(date_time)
Calendar objCalendar = Calendar.getInstance();
objCalendar.setTime(objTimestamp.getDate());
int year = objCalendar.get(Calendar.YEAR);
int month = objCalendar.get(Calendar.MONTH);
int date = objCalendar.get(Calendar.DATE);
int hour = objCalendar.get(Calendar.HOUR_OF_DAY);
int minute = objCalendar.get(Calendar.MINUTE);

and so on you check the API of Calendar class.

Thanks. I've found another way to get this, didn't know which is better.

SimpleDateFormat y = new SimpleDateFormat();
SimpleDateFormat m = new SimpleDateFormat(M);
SimpleDateFormat d = new SimpleDateFormat(d);
int year= 0, mon = 0, day= 0;
try {
 Date theDate= auc.getDateCol(dlv_date_1);
 year= Integer.parseInt(y.format(theDate));
 mon= Integer.parseInt(m.format(theDate));
 day= Integer.parseInt(d.format(theDate));
} catch (Exception ignore){ }

===
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: can not get parameter (It's urgent)

2002-05-28 Thread Bhushan_Bhangale

Send the html code as the servlet code is fine.

-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 12:06 PM
To: [EMAIL PROTECTED]
Subject: can not get parameter (It's urgent)


hi all
i took an array or text in my page
on click of save button i just change the chmode=1 in mysave() of
javascript
and when submit the form it is

 String mode = request.getParameter(chmode);
 if (mode == null){
  mode = 0;
 }
 else{
  String tr = request.getParameter(totrow);
  int tot=Integer.parseInt(tr);
  for(int r=0;i=tot;i++{
   String d = request.getParameter(txtdesc[+r+]);
   String node=request.getParameter(txtnode[+r+]);
   String lvl1=request.getParameter(txtlvl[+r+]);
   INSERT..
   OR
   UPDATE
  }
 }

but here i can not get txtdesc's value
it gives me null all time
even txtnode and txtlvl too i find null
see i gave some value in all and then click the save button but always it
takes null and make the array balnk.
what to do?
pls help it's urgent

answers will be appreciated

Thanks in advance
Vaishali
Relience Ind Ltd
A'bad

===
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 and time parser

2002-05-27 Thread Bhushan_Bhangale

Try like this:-

Timestamp objTimestamp = getTimestamp(date_time)
Calendar objCalendar = Calendar.getInstance();
objCalendar.setTime(objTimestamp.getDate());
int year = objCalendar.get(Calendar.YEAR);
int month = objCalendar.get(Calendar.MONTH);
int date = objCalendar.get(Calendar.DATE);
int hour = objCalendar.get(Calendar.HOUR_OF_DAY);
int minute = objCalendar.get(Calendar.MINUTE);

and so on you check the API of Calendar class.

-Original Message-
From: Gading [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 27, 2002 1:07 PM
To: [EMAIL PROTECTED]
Subject: Date and time parser


Hi,
I have a timestamp object, obtain from DB using getTimestamp(date_time).
output is something like 2002-05-27 14:17:00.
How to get year, month, date, hour and minute in string (or int is also ok)?

===
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: problems with include directive

2002-05-22 Thread Bhushan_Bhangale

Dear Stefanie,

Include file takes absolute path and not virtual path. The path you are giving is 
virtual which is used by webserver to show the content. But in case of include 
directives in jsp it is the job of jsp engine to resolve them and it uses absolute 
paths only.

-Original Message-
From: Richter, Stefanie (Student Assistant)
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:05 PM
To: [EMAIL PROTECTED]
Subject: problems with include directive


hello,
can anybody help me.
I want to use the include directive with JSP in Tomcat 4.0.3. Therefore I
want to use the relative path.

For example if I use the relative path for: img
src=/examples/images/code.gif it works, but if I want to include:
%@ include file=/examples/jsp/include/foo.jsp %
I get the error file not found.
Does anybody hnow why and how I could solve this problem?

I am using Apache 1.3 and Tomcat 4.0.3.

Do I have to make an entry in Tomcats server.xml or web.xml so that the
relative paths are found?

Regards,
Steffi Richter

===
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: Passing array parameters from one page to another

2002-05-22 Thread Bhushan_Bhangale

Why don't you read the API doc of StringTokenizer class?

-Original Message-
From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:28 PM
To: [EMAIL PROTECTED]
Subject: Re: Passing array parameters from one page to another


i have a string in opennode and the deli is  #
see the syntex i wrote.

StringTokenizer ONs = new StringTokenizer(opennode,#);

can i get all the strings in ONs?
ONs will be an array or what?
can u explain some more pls.

Vaishali
Relience Ind Ltd
A'bad



you can use stringtokenizer

Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573

 -Original Message-
 From: [Vaishali S. Pandya] [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, May 22, 2002 11:18 AM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Passing array parameters from one page to another

 hay julia

 Have u find the solution?
 cause i didn't find any answer for ur que in the list
 pls forword me if any one u found as i am also facing the same.
 but as i know your url can not have more than 256 chars
 right?
 what to do it it became more lenghty?

 Vaishali
 Relience Ind Ltd
 Ahm'd



 Hi all!!
 I want to pass an undetermined number of names, for example, from one
page
 to another.
 I guess the only way to do this is to add all the names in one string,
 separated by a special character, and
 then spliting the string at the target page.

 Any better ways??
 I'm try to doing this but
 String name = request.getParameter(name);
 String names[] = name.split(*);

 but I get an error saying this method is deprecated ??
 I have imported java.lang.*.

 Thanks in advance,

 Julia


 -
 Este correo electrónico y, en su caso, cualquier fichero anexo al mismo,
 contiene información de carácter confidencial exclusivamente dirigida a
su
 destinatario o destinatarios. Queda prohibida su divulgación, copia o
 distribución a terceros sin la previa autorización escrita de Indra. En
el
 caso de haber recibido este correo electrónico por error, se ruega
 notifíquese inmediatamente esta circunstancia mediante reenvío a la
 dirección electrónica del remitente.
 -
 The information in this e-mail and in any attachments is confidential and
 solely for the attention and use of the named addressee(s). You are
hereby
 notified that any dissemination, distribution or copy of this
 communication
 is prohibited without the prior written consent of Indra. If you have
 received this communication in error, please, notify the sender by reply
 e-mail.
 -

 =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
 

Re: problems with include directive

2002-05-22 Thread Bhushan_Bhangale

No need to modify server.xml 
It should work fine.
Try ./filename or ../filename concept instead of starting from C:/


-Original Message-
From: Richter, Stefanie (Student Assistant)
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:54 PM
To: [EMAIL PROTECTED]
Subject: Re: problems with include directive


Thank you!

so if I have to set the absolute path how can I do it?
Do I have to modify the server.xml of tomcat or use the absolute path in JSP
include tag?

Because I tried to set the absolute path in the JSP tag and got the error:

org.apache.jasper.compiler.CompileException:
/home_user_test_absolute_path.jsp(23,5) File C:/Program Files/Apache Tomcat
4.0/webapps/docuinfo/heading_menue.jsp not found
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:782)

I guess I have to modify something, do I?

Thanks anyway.
Regards,
Steffi


-Original Message-
From: Bhushan_Bhangale [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 22. Mai 2002 10:03
To: [EMAIL PROTECTED]
Subject: Re: problems with include directive


Dear Stefanie,

Include file takes absolute path and not virtual path. The path you are
giving is virtual which is used by webserver to show the content. But in
case of include directives in jsp it is the job of jsp engine to resolve
them and it uses absolute paths only.

-Original Message-
From: Richter, Stefanie (Student Assistant)
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:05 PM
To: [EMAIL PROTECTED]
Subject: problems with include directive


hello,
can anybody help me.
I want to use the include directive with JSP in Tomcat 4.0.3. Therefore I
want to use the relative path.

For example if I use the relative path for: img
src=/examples/images/code.gif it works, but if I want to include:
%@ include file=/examples/jsp/include/foo.jsp %
I get the error file not found.
Does anybody hnow why and how I could solve this problem?

I am using Apache 1.3 and Tomcat 4.0.3.

Do I have to make an entry in Tomcats server.xml or web.xml so that the
relative paths are found?

Regards,
Steffi Richter

===
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: Redirection from Servlet to JSP

2002-05-21 Thread Bhushan_Bhangale

The address in bar will be of the Servlet only as you are dispathcing the request to 
another JSP and not redirecting the URL. If you will redirect using 
Response,sendRedirect() then the URL will get changed.

What error you are getting for CSS? I thinking the URL for CSS in your JSP may be 
wrong. You must ahve defined it relative, define it virtual and it will work for you.

-Original Message-
From: Biji Harees [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 3:16 PM
To: [EMAIL PROTECTED]
Subject: Redirection from Servlet to JSP


Hi All,

I am facing problem while redirecting from servlet to JSP. Although JSP
page is displaying properly, the CSS used in it is not working properly.
Also the address showed in the address bar of the browser is of servlet.
I am using following command for redirection from servlet
getServletConfig().getServletContext().getRequestDispatcher(StoreOpen.j
sp)
 If any one could kindly explain me what more to do to make JSP address
visible in the bar rather than servlet address, it would be of great help
for me.

Thanking you all

Biji Harees
Amsoft India Ltd
Bangalore

===
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: share jsp pages from other servlet contexts

2002-05-21 Thread Bhushan_Bhangale

Why don't you copy the jsps in the other Web App as well?
Now everybody will say it won't be managable. For this you can setup Interwoven Open 
deploy which keeps all the files in sink.

-Original Message-
From: Frank Shen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 10:48 PM
To: [EMAIL PROTECTED]
Subject: share jsp pages from other servlet contexts


Under tomcat 4 webapps, I have an authorization app which contains JSPs to do login 
for other apps. I am using a simbolic link(on Unix box) to authorization app's JSPs so 
each app won't have to jump context and still share the authorization app's JSPs.

I was told by network administrator that simbolic link is bad for scalability. Is it 
true?

But since I need to store some user info in the session after login, I couldn't jump 
servlet contexts. That is why I use simbolic link. By using simbolic link, several 
apps can share common JSP pages.

But our network administrator still refuse to do so. He said resources in one context 
shouldn't be available for other apps for security reasons. Is it true?

All I want is to share jsp pages by many servlet contexts. Can anybody give me advice?

Thanks

Frank Shen
Software Developer

===
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: Redirection from Servlet to JSP

2002-05-21 Thread Bhushan_Bhangale

Send some code snippet and your directory structure. I have done the same way and it 
works for me.

-Original Message-
From: Biji Harees [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 3:58 PM
To: [EMAIL PROTECTED]
Subject: Re: Redirection from Servlet to JSP


Hi,
It is not giving any error but Style sheet defined is not working and
display itslef is changed fully. Again after redirection if I try to submit
using a select box, it is giving error.
response.sendRedirect doesn't work when you try to redirect from a servlet
to JSP. Is there any solution for this problem.

Thanx

Biji Harees
Amsoft India Ltd
Bangalore

-Original Message-
From:   Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, May 22, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject:Re: Redirection from Servlet to JSP

The address in bar will be of the Servlet only as you are dispathcing the
request to another JSP and not redirecting the URL. If you will redirect
using Response,sendRedirect() then the URL will get changed.

What error you are getting for CSS? I thinking the URL for CSS in your JSP
may be wrong. You must ahve defined it relative, define it virtual and it
will work for you.

-Original Message-
From: Biji Harees [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 3:16 PM
To: [EMAIL PROTECTED]
Subject: Redirection from Servlet to JSP


Hi All,

I am facing problem while redirecting from servlet to JSP. Although JSP
page is displaying properly, the CSS used in it is not working properly.
Also the address showed in the address bar of the browser is of servlet.
I am using following command for redirection from servlet
getServletConfig().getServletContext().getRequestDispatcher(StoreOpen.j
sp)
 If any one could kindly explain me what more to do to make JSP address
visible in the bar rather than servlet address, it would be of great help
for me.

Thanking you all

Biji Harees
Amsoft India Ltd
Bangalore

===
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: sendRedirect() from within a jsp:include?

2002-05-20 Thread Bhushan_Bhangale

Before the forward call you should not write anything to the response object. If you 
will write anything to response object and then you will forward to some other URL 
then you will always get the error.

-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 9:57 PM
To: [EMAIL PROTECTED]
Subject: sendRedirect() from within a jsp:include?


Obviously I'm missing some important detail about the mechanics of using
jsp:include.

I've got a JSP with nothing in it but a
htmljsp:include,,,/jsp:include/html.  The page for the
jsp:include is a direct call to my servlet.  The only thing my servlet
does is a sendRedirect() to another page.

When I request my JSP, I get back just html/html, which means the
redirect failed, the jsp:include did nothing, and I didn't get any
exceptions (like an IllegalStateException showing the response was already
committed).

What am I missing about trying to do things this way?  BTW, I'm using
Tomcat 4.0.3.

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

==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: javamail - offtopic but urgent

2002-05-16 Thread Bhushan_Bhangale

Are you able to send mails to other ids?

From the error it is clrealy understood that the program is unable to make SMTP 
connection. You give the local ip address of the SMTP server if both the machine on 
which program is running and the SMTP server is inside firewall. If you are giving 
the external IP address then firewall needs to be opened for port 25.

-Original Message-
From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 2:11 PM
To: [EMAIL PROTECTED]
Subject: javamail - offtopic but urgent


Hi all,

 when i try to send an email to me itself i get the following exception

javax.mail.MessagingException: Could not connect to SMTP host: ip address,
port: 25;

Properties prop = new Properties();
prop.put(mail.smtp.host, hostName);

where hostName  is ip address

i know this is offtopic but if someone can let me know where i am wrong , i
would appreciate it.


Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573

===
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: javamail - offtopic but urgent

2002-05-16 Thread Bhushan_Bhangale

So now have you implemented my solution? What happened?

-Original Message-
From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 2:41 PM
To: [EMAIL PROTECTED]
Subject: Re: javamail - offtopic but urgent


Hi,
Are you able to send mails to other ids?
no i am not able to send emails within my compnay itself.

 -Original Message-
 From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 2:20 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: javamail - offtopic but urgent


 From the error it is clrealy understood that the program is unable to make
 SMTP connection. You give the local ip address of the SMTP server if both
 the machine on which program is running and the SMTP server is inside
 firewall. If you are giving the external IP address then firewall needs to
 be opened for port 25.

 -Original Message-
 From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 2:11 PM
 To: [EMAIL PROTECTED]
 Subject: javamail - offtopic but urgent


 Hi all,

  when i try to send an email to me itself i get the following exception

 javax.mail.MessagingException: Could not connect to SMTP host: ip
 address,
 port: 25;

 Properties prop = new Properties();
 prop.put(mail.smtp.host, hostName);

 where hostName  is ip address

 i know this is offtopic but if someone can let me know where i am wrong ,
 i
 would appreciate it.


 Regards

 Ramesh Kesavanarayanan
 [EMAIL PROTECTED]
 Off: 91-44-8113801 ext 2333
 Res:91-44-2265360
 Mob : 91-98412-73573

 ==
 =
 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: javamail - offtopic but urgent

2002-05-16 Thread Bhushan_Bhangale

Yaa Gunaseelan is right. As such you shouldn't face any problem while sending mail to 
yahoo, hotmail, etc. If in case it does then the Mail Server Administrator knows how 
to configure the relay.

-Original Message-
From: Gunaseelan Nagarajan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 3:53 PM
To: [EMAIL PROTECTED]
Subject: Re: javamail - offtopic but urgent


hi,
if you get an error like relaying not allowed while sending mail to yahoo
or hotmail, it means that the SMTP server has to be configured. Your network
administrator should know how to change the sendmail configuration if you are
using sendmail or the configuration of the mail server that you are using.

regards,
Nagarajan

On Thursday 16 May 2002 11:38, you wrote:
 yes,
  nowi could send within my compnay. what will i do if i want to send
 outside say to hotmail / yahoo etc.,

  -Original Message-
  From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
  Sent: Thursday, May 16, 2002 2:44 PM
  To:   [EMAIL PROTECTED]
  Subject:  Re: javamail - offtopic but urgent
 
  So now have you implemented my solution? What happened?
 
  -Original Message-
  From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, May 16, 2002 2:41 PM
  To: [EMAIL PROTECTED]
  Subject: Re: javamail - offtopic but urgent
 
 
  Hi,
  Are you able to send mails to other ids?
  no i am not able to send emails within my compnay itself.
 
   -Original Message-
   From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
   Sent: Thursday, May 16, 2002 2:20 PM
   To:   [EMAIL PROTECTED]
   Subject:  Re: javamail - offtopic but urgent
  
  
   From the error it is clrealy understood that the program is unable to
 
  make
 
   SMTP connection. You give the local ip address of the SMTP server if
 
  both
 
   the machine on which program is running and the SMTP server is inside
   firewall. If you are giving the external IP address then firewall needs
 
  to
 
   be opened for port 25.
  
   -Original Message-
   From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, May 16, 2002 2:11 PM
   To: [EMAIL PROTECTED]
   Subject: javamail - offtopic but urgent
  
  
   Hi all,
  
when i try to send an email to me itself i get the following exception
  
   javax.mail.MessagingException: Could not connect to SMTP host: ip
   address,
   port: 25;
  
   Properties prop = new Properties();
   prop.put(mail.smtp.host, hostName);
  
   where hostName  is ip address
  
   i know this is offtopic but if someone can let me know where i am wrong
 
  ,
 
   i
   would appreciate it.
  
  
   Regards
  
   Ramesh Kesavanarayanan
   [EMAIL PROTECTED]
   Off: 91-44-8113801 ext 2333
   Res:91-44-2265360
   Mob : 91-98412-73573
 
  =
 =
 
   =
   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

Re: How to do this?

2002-05-16 Thread Bhushan_Bhangale

Yaa you are doing right by sending the data as query string.

The other way is only send the job name id(ofcourse needs to be unique in database) 
and in the next page extract all the required info from the database for the passed 
job name id.

-Original Message-
From: [ Swetha Prakash] [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 5:42 AM
To: [EMAIL PROTECTED]
Subject: Re: How to do this?


Hi Dharmendra,
Ya, u understood what I am asking. May be u can tell me this. First Screen
I have


Job Name   Program ScheduleSystemComments.

x  y      
qqq

Now I want to make a link to other jsp say (second.jsp) by using ahref to
job name. Second. jsp should be a form with all the information like this.


Job Name :  xx (in a text box which should be editable)
Progam :  yy(in a text box which should be editable)
Schedule :  ((in a text box which should be editable))
System:  (in a text box which should be editable)
Comments:  q(in a text box which should be editable)

Post Data(Button)   Clear Data (Button)

Now user can edit the information and can post it (Kind of Updation) or he
can clear the data (which is deletion process).

My Question is how to pass these values to second.jsp?

It should be some thing like ahref=second.jsp  ?jobname=x  +
?Program=   + Schedule= + System=+ Comments =qqq

Can u make this clear to me. How to use this?  so that I can use

request.getParameter in the second.jsp to put it in text boxes?







Regards,
Bhanu Prakash
(805) 955-1057
Ext:92- 582-1057

===
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: properties file

2002-05-15 Thread Bhushan_Bhangale

You can put the properties file in any folder, by keeping one thing in mind that the 
folder should be in classpath of your application.

Now reading those properties file has no relation with the class packages. You can 
read the file from any class of any package.

-Original Message-
From: Adrian Janssen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 12:28 PM
To: [EMAIL PROTECTED]
Subject: Re: properties file


my 2c:

I always put the properties file in the same directory as the class file
that will read it and this has always worked for me.

If you need to read it off disk from two different classes in different
packages, then I dont know as I don't ever do this.

Cheers

 -Original Message-
 From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
 Sent: 15 May 2002 06:31
 To:   [EMAIL PROTECTED]
 Subject:  Re: properties file

 Yaa it picks from both man otherwise what is the classes directory doing
 there in WEB-INF folder.

 Read class-loader-howto.html file from the tomcat docs to know about the
 Class loader of tomcat.

 -Original Message-
 From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 15, 2002 9:55 AM
 To: [EMAIL PROTECTED]
 Subject: Re: properties file


 tomcat picks the files which are in lib directory by setting TOMCAT_HOME.
 i
 dont think it picks the ones in classes folder.

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


 -Original Message-
 From: Bhushan_Bhangale [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 14, 2002 9:16 PM
 To: [EMAIL PROTECTED]
 Subject: Re: properties file


 No it works fine. There is no need to set classpath explicitly as what
 ever
 class and properties files are there in the WEB-INF/classes gets picked
 when
 the tomcat starts.

 -Original Message-
 From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 15, 2002 9:18 AM
 To: [EMAIL PROTECTED]
 Subject: Re: properties file


 if you do that also, still it does not get the properties file, atleast
 not
 in my case, in which i had made an i18n demo. but yeah after setting the
 classpath it did solve my problem.

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


 -Original Message-
 From: Bhushan_Bhangale [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 14, 2002 8:48 PM
 To: [EMAIL PROTECTED]
 Subject: Re: properties file


 You should put all the properties file in the WEB-INF/classes directory if
 you are reading the property files using ResourceBundle or ClassLoader.

 -Original Message-
 From: Michael Nicholson [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 15, 2002 1:34 AM
 To: [EMAIL PROTECTED]
 Subject: properties file


 I can't seem to put the properties file in the right place.  I've finally
 managed to get Tomcat to run and even run jsp's, but it won't run mine
 because it can't find the properties file (which is all over the place).
 Is
 there somewhere I set an appropriate classpath type variable or something
 like that that I'm missing?  Help!

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

Re: Accessing self created packages in Tomcat3.3

2002-05-15 Thread Bhushan_Bhangale

Check you Forte CF classpath whether it is rightly pointing to all the needed classess 
and jar files for compilation.

==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: Accessing self created packages in Tomcat3.3

2002-05-15 Thread Bhushan_Bhangale

Yaa you are right in assuming that Tomcat refrences all the WEB-INF\lib dorectories. 
You don't need to add those in classpath explicitly.

-Original Message-
From: Gare, Tref [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 12:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Accessing self created packages in Tomcat3.3


I take your point Adrian,

it's probably more a local system issue as we seem to be having a few of
them.  However I'm getting increasingly confused about correct usage of
the classpath.  I was running under the assumption that Tomcat would be
referencing all the web-inf\lib directories automatically.  I'd heard that
it's not recomended to be adding every single reference into the system
classpath.. apart from the fact that it would grow huge there's the
portability issue.  Have you any thoughts in this area?

cheers

Tref

 -Original Message-
 From: Adrian Janssen [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday,15 May 2002 5:03
 To:   [EMAIL PROTECTED]
 Subject:  Re: Accessing self created packages in Tomcat3.3

 if your problems are at compile time then I suspect that it has very
 little
 to do with TOMCAT, are you sure that the
 TOMCAT_HOME\webapps\ourTest\WEB-INF\classes\com\ue\ueUtils directory is in
 your classpath? try something like:

 javac -classpath
 %classpath%;TOMCAT_HOME\webapps\ourTest\WEB-INF\classes\com\ue\ueUtils
 someBean.java

 does that help?

 Cheers

  -Original Message-
  From: Gare, Tref [SMTP:[EMAIL PROTECTED]]
  Sent: 15 May 2002 07:11
  To:   [EMAIL PROTECTED]
  Subject:  Re: Accessing self created packages in Tomcat3.3
 
  Thanks for the response.
 
  Unfortunately that's exactly what we've been trying and to date no
  success.
  Also Tomcat 3.3 doesn't have a TOMCAT_HOME\classes directory in it's
  native
  state.  We seem to be having some very strange caching issues with
 classes
  refusing to compile due to not recognising other classes within their
  package.  We're using Forte CE which may have something to do with it,
 but
  exactly what remains a mystery.
 
  Tref
 
   -Original Message-
   From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
   Sent: Wednesday,15 May 2002 2:21
   To:   [EMAIL PROTECTED]
   Subject:  Re: Accessing self created packages in Tomcat3.3
  
   I didn't understood your question fully as it is not clear.
  
   What I understood is that you have some classes which are generic and
  you
   want to use them across the Web Apps deployed in tomcat. If what I
   understood is right then put your this generic class structure under
   TOMCAT_HOME/classes folder or make a jar file and put under
   TOMCAT_HOME/lib. Restart Tomcat and it will work fine.
  
   -Original Message-
   From: Gare, Tref [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, May 15, 2002 4:38 AM
   To: [EMAIL PROTECTED]
   Subject: Accessing self created packages in Tomcat3.3
  
  
   Hi all,
  
   Another question that is threatening my remaining follicles.
  
   We've created a bunch of javabeans for one app which are all working
  fine.
   However we've decided that 4 of them should be made more generally
   available
   for other apps we're building.  To that end I've created a package
  called
   com.ue.ueUtils and altered each of the beans such that the are now
   referencing that package.
  
   I've created the relevant folder structure ie
   TOMCAT_HOME\webapps\ourTest\WEB-INF\classes\com\ue\ueUtils , and
 placed
   the
   four beans in question in there, then attempted to recompile them.
  Three
   of
   them work fine but the fourth, which references 2 of the others in the
   package, fails saying the package does not exist.
  
   The other beans in the original packages (com.ue.fai 
 com.ue.servlets)
   can't see the ueUtils package either.
  
   I've tried jarring the package and putting that jar in the lib folder
 of
   the
   relevant app ie: TOMCAT_HOME\webapps\ourTest\WEB-INF\lib but this
 hasn't
   solved the problem either.
  
   The final resorts of reboots and restarts have failed to shift
 anything.
  
   Any advice will be gratefully recieved,
  
   Thanks
  
   Tref
  
 

 --
 **
 The Truworths e-mail facility may not be used for the distribution of
 chain letters or offensive email.  Truworths hereby distances itself
 from and accepts no liability for the unauthorised use of its e-mail
 facility or the sending of e-mail communications for other than
 strictly business purposes.  Truworths furthermore disclaims liability
 for any unauthorised instruction for which permission was not granted.

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

Re: off topic (javascript :var from main to popup window)

2002-05-15 Thread Bhushan_Bhangale

The most simple way is by defining a target in the href tag like this:-

a href=history.jsp?name=GoLive target=_newhistory/a

Other way is by using javascript window.open method:

a href=JavaScript:window.open('history.jsp?name=GoLive', 'WindowName', 
'directories=no,height=480,width=590,left=50,location=no,menubar=no,resizable=no,scrollbars=no,toolbar=no,top=50,maximize=no');void(0);history/a

-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 1:05 AM
To: [EMAIL PROTECTED]
Subject: off topic (javascript :var from main to popup window)


I have main.jsp window that has a link :

tda href=history.jsp?name=GoLive onMouseover=showtip(this,event,'Who
took it!') onMouseout=hidetip()history/a/td

And I want to popup a window history.jsp when clicking in the link.

How to do it ?
How to pass the variable name to history.jsp.

thanks, your help is appreciated.


_
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com

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

 http://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 make login.jsp default?

2002-05-15 Thread Bhushan_Bhangale

Define the welcome file list in your web.xml of the Web App whose context name is 
vaishali. In the welcome file list give the file as login.jsp.

-Original Message-
From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 9:59 AM
To: [EMAIL PROTECTED]
Subject: how to make login.jsp default?


my path is
//vaishali/*.jsp

i have to many jsp and html files in my folder
when i give url

/../vaishali/
it gives me list of all files
well i know updating server.xml i can bypass it
but i want that when i give this path the login.jsp should execute which is
there in vaishali.
how to do?

ThankX
Vaishali
RIL
Ahm'd

===
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: Error page

2002-05-15 Thread Bhushan_Bhangale

I think you need to specify the full virtual path of errorpage.jsp while defining the 
errorPage attribute in main.jsp

-Original Message-
From: Gading [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 11:00 AM
To: [EMAIL PROTECTED]
Subject: Error page


Hi all,

I have 2 page one is main and one is for error page.

main.jsp

%@ page errorPage=errorpage.jsp %
!-- plus some code --

errorpage.jsp

%@ page isErrorPage=true %
!-- plus some code --

When there is error in main, it doesnt redirect to errorpage.js, but shows
internel server error (500).

I'm using Orion 1.54

Am i missing something?
Thanks.

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

 http://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 service contd

2002-05-15 Thread Bhushan_Bhangale

Vijay,

There is nothing like InvalidDateException in Java. Kesav might have created his own 
exception. You need to define that or just remove it from the code.

-Original Message-
From: vijay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 11:14 AM
To: [EMAIL PROTECTED]
Subject: Re: date service contd


hi,

i tried to compile the program.. but iam getting the following error..

D:\TestJavaPrograms\DateService.java:47: cannot resolve symbol
symbol  : class InvalidDateException
location: class DateService
 public static String format(Date date, String simpleFormat) throws
InvalidDateException
   ^
1 error

thanks  regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: Kesav, Ramesh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 15, 2002 4:39 PM
Subject: date service contd


public final static java.util.Date getTime(int hours, int min, int sec)
throws InvalidDateException {
try {
Calendar cal = Calendar.getInstance(); java.util.Date today =
cal.getTime();
int year = getYear(today); int month = getMonth(today) - 1;
int date = getDay(today); cal.clear();
cal.set(year, month, date, hours, min, sec);
return cal.getTime();
} catch (Exception e) {
if (e instanceof InvalidDateException)
throw (InvalidDateException) e;
else {
String input =  + hours + ':' + min + ':'+ sec;
}
}
}
public final static java.util.Date getTime(int year,int month,int day,int
hours,int min,intsec)
throws InvalidDateException {
try {
Calendar cal = Calendar.getInstance();   cal.clear();
cal.set(year, month-1, day, hours, min, sec);   return
cal.getTime();
} catch (Exception e) {
if (e instanceof InvalidDateException)
throw (InvalidDateException) e;
else {
String input =  + hours + ':' + min + ':' + sec;
}
}

}
public static String getXML(Date date) throws InvalidDateException{
return getXML(date, Year, Month, Day);
}
public static String getXML(Date date, String yearTag, String monthTag,
String dayTag) throws InvalidDateException{
try {
Calendar cal = Calendar.getInstance();cal.clear();
cal.setTime(date);StringBuffer buffer = new
StringBuffer(41);
 buffer.append();
buffer.append(yearTag);buffer.append();

buffer.append(cal.get(cal.YEAR));buffer.append(/);buffer.append(yearTag);

buffer.append();buffer.append();buffer.append(monthTag);
buffer.append();buffer.append(cal.get(cal.MONTH) +
1);buffer.append(/);

buffer.append(monthTag);buffer.append();buffer.append();buffer.append(
dayTag);

buffer.append();buffer.append(cal.get(cal.DATE));buffer.append(/);
buffer.append(dayTag);buffer.append();return
buffer.toString();
} catch (Exception e) {}
}
 public static int getYear(Date date) throws InvalidDateException{
try {
Calendar cal = Calendar.getInstance();cal.clear();
cal.setTime(date);int yy = cal.get(Calendar.YEAR);
if (yy  100)
yy += 1900;
return yy;
} catch (Exception e) { }
}
public static boolean isSameDay(Date date1, Date date2) {
if ( date1 == null  date2 == null ){
return true;
}
if ( date1 == null || date2 == null ){
return false;
}
Calendar cal1 = Calendar.getInstance();   cal1.setTime(date1);
Calendar cal2 = Calendar.getInstance();   cal2.setTime(date2);
return (cal1.get(Calendar.DAY_OF_MONTH) ==
cal2.get(Calendar.DAY_OF_MONTH)
 cal1.get(Calendar.MONTH) == cal2.get(Calendar.MONTH)
 cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR));
}
   public static Date parse( String date, String simpleFormat ) throws
InvalidDateException
   {
  try
  {
return new SimpleDateFormat(simpleFormat).parse(date);
  }
  catch ( Exception e )
  { }
   }
public static Date toStandardDate(String date) throws InvalidDateException{
try{
return dateFormatter.parse(date);
} catch (Exception e){}
}
public static Date toStandardDateTime(String date) throws
InvalidDateException{
try{
return dateTimeFormatter.parse(date);
} catch (Exception e){  }
}
public static String toStandardString(Date date) throws
InvalidDateException{
try{
return dateFormatter.format(date);
} catch (Exception e){}
}
public static String toStandardTimeString(Date date) throws
InvalidDateException{
try{
return dateTimeFormatter.format(date);
} catch (Exception e){}
}
}


Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]


Running Servlet in Tomcat

2002-05-14 Thread Bhushan_Bhangale

Hi All,

I have installed Tomcat 4.0.3 and was able to run the examples Web application.

I deployed my application but unable to run the servlets. The JSPs are running fine. I 
have defined everything including web.xml but nothing is happening. The same 
application is running fine with IPlanet 6.0 Web server.

Can anyone help?

Thanks  Regards
Bhushan Bhangale
Programmer Analyst
Infosys Technologies Ltd.
Pune - 411042
Tel: (Office) +91 (20) 2932800/01 Ext. 1176
Mobile: +91 9822454603
E-mail: [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: Running Servlet in Tomcat

2002-05-14 Thread Bhushan_Bhangale

Solved installed tomcat again.

-Original Message-
From: Bhushan_Bhangale 
Sent: Tuesday, May 14, 2002 11:58 AM
To: [EMAIL PROTECTED]
Subject: Running Servlet in Tomcat


Hi All,

I have installed Tomcat 4.0.3 and was able to run the examples Web application.

I deployed my application but unable to run the servlets. The JSPs are running fine. I 
have defined everything including web.xml but nothing is happening. The same 
application is running fine with IPlanet 6.0 Web server.

Can anyone help?

Thanks  Regards
Bhushan Bhangale
Programmer Analyst
Infosys Technologies Ltd.
Pune - 411042
Tel: (Office) +91 (20) 2932800/01 Ext. 1176
Mobile: +91 9822454603
E-mail: [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

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



Apache Tomcat Configuration problem

2002-05-14 Thread Bhushan_Bhangale

Hi All,

Does Tomcat 4.0.3 and Apace Web Server 1.3.9 works on Windows NT 4.0?

I configured Apache WS with Tomcat but unable to run JSP and Servlet.

Can anybody help me?

Thanks  Regards
Bhushan Bhangale
Programmer Analyst
Infosys Technologies Ltd.
Pune - 411042
Tel: (Office) +91 (20) 2932800/01 Ext. 1176
Mobile: +91 9822454603
E-mail: [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: download popup

2002-05-14 Thread Bhushan_Bhangale

It automatically comes when to show the requested mime type, browser needs a third 
party plugin to show.

-Original Message-
From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 5:29 PM
To: [EMAIL PROTECTED]
Subject: download popup


Hi all,

 when you start to download from websites you see a popup window asking  you
to open from the same location / save it to disk.
can anybody let me know how to do this.

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

==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: download popup

2002-05-14 Thread Bhushan_Bhangale

I think the Tomcat mime type doesn't have a setting for xls type. If not present 
specify it and restart.

-Original Message-
From: subbu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 6:34 PM
To: [EMAIL PROTECTED]
Subject: Re: download popup


Hai,iam pointing the URL to an excelfile (test.xls)(NOTE : iam usins  tomcat
4.01.)

Url is like this

http://localhost/iontest/test.xls



but iam not getiing the download popup .the content is displayed in plain
text in the browser itself.
Can some body help me out in this...

regads
s.subramanian.




- Original Message -
From: Bhushan_Bhangale [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 14, 2002 5:32 PM
Subject: Re: download popup


It automatically comes when to show the requested mime type, browser needs a
third party plugin to show.

-Original Message-
From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 5:29 PM
To: [EMAIL PROTECTED]
Subject: download popup


Hi all,

 when you start to download from websites you see a popup window asking  you
to open from the same location / save it to disk.
can anybody let me know how to do this.

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

=
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: properties file

2002-05-14 Thread Bhushan_Bhangale

You should put all the properties file in the WEB-INF/classes directory if you are 
reading the property files using ResourceBundle or ClassLoader.

-Original Message-
From: Michael Nicholson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 1:34 AM
To: [EMAIL PROTECTED]
Subject: properties file


I can't seem to put the properties file in the right place.  I've finally
managed to get Tomcat to run and even run jsp's, but it won't run mine
because it can't find the properties file (which is all over the place).  Is
there somewhere I set an appropriate classpath type variable or something
like that that I'm missing?  Help!

===
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: properties file

2002-05-14 Thread Bhushan_Bhangale

No it works fine. There is no need to set classpath explicitly as what ever class and 
properties files are there in the WEB-INF/classes gets picked when the tomcat starts.

-Original Message-
From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 9:18 AM
To: [EMAIL PROTECTED]
Subject: Re: properties file


if you do that also, still it does not get the properties file, atleast not
in my case, in which i had made an i18n demo. but yeah after setting the
classpath it did solve my problem.

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


-Original Message-
From: Bhushan_Bhangale [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 8:48 PM
To: [EMAIL PROTECTED]
Subject: Re: properties file


You should put all the properties file in the WEB-INF/classes directory if
you are reading the property files using ResourceBundle or ClassLoader.

-Original Message-
From: Michael Nicholson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 1:34 AM
To: [EMAIL PROTECTED]
Subject: properties file


I can't seem to put the properties file in the right place.  I've finally
managed to get Tomcat to run and even run jsp's, but it won't run mine
because it can't find the properties file (which is all over the place).  Is
there somewhere I set an appropriate classpath type variable or something
like that that I'm missing?  Help!

===
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: Accessing self created packages in Tomcat3.3

2002-05-14 Thread Bhushan_Bhangale

I didn't understood your question fully as it is not clear.

What I understood is that you have some classes which are generic and you want to use 
them across the Web Apps deployed in tomcat. If what I understood is right then put 
your this generic class structure under TOMCAT_HOME/classes folder or make a jar file 
and put under TOMCAT_HOME/lib. Restart Tomcat and it will work fine.

-Original Message-
From: Gare, Tref [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 4:38 AM
To: [EMAIL PROTECTED]
Subject: Accessing self created packages in Tomcat3.3


Hi all,

Another question that is threatening my remaining follicles.

We've created a bunch of javabeans for one app which are all working fine.
However we've decided that 4 of them should be made more generally available
for other apps we're building.  To that end I've created a package called
com.ue.ueUtils and altered each of the beans such that the are now
referencing that package.

I've created the relevant folder structure ie
TOMCAT_HOME\webapps\ourTest\WEB-INF\classes\com\ue\ueUtils , and placed the
four beans in question in there, then attempted to recompile them.  Three of
them work fine but the fourth, which references 2 of the others in the
package, fails saying the package does not exist.

The other beans in the original packages (com.ue.fai  com.ue.servlets)
can't see the ueUtils package either.

I've tried jarring the package and putting that jar in the lib folder of the
relevant app ie: TOMCAT_HOME\webapps\ourTest\WEB-INF\lib but this hasn't
solved the problem either.

The final resorts of reboots and restarts have failed to shift anything.

Any advice will be gratefully recieved,

Thanks

Tref

 -Original Message-
 From: Karbiner, Jacob [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday,14 May 2002 12:58
 To:   [EMAIL PROTECTED]
 Subject:  Re: JDBC connection failing to Oracle 8i with Tomcat3.3

 Try renaming classes12.zip to classes12.jar this worked for me

 -Original Message-
 From: Lloyd Wiggins [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 10:44 AM
 To: [EMAIL PROTECTED]
 Subject: Re: JDBC connection failing to Oracle 8i with Tomcat3.3


 What we did for this problem was to write a wrapper script for the
 startup.sh script. In the wrapper script set the classpath
 explicitly to point to the needed jar files and then call the normal
 startup
 script.

 Yes it's a hack but it solved the problem for us, as tomcat3.2.1 refused
 to
 load
 the jar files in the WEB-INF directory.

 Good luck.


  -Original Message-
  From: Emmanuel Eze [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 1:37 AM
  To: [EMAIL PROTECTED]
  Subject: Re: JDBC connection failing to Oracle 8i with Tomcat3.3
 
 
  Try to extract your driver jar file into your web server default class
  directory.  That way it will surely see the classes.
 
  -Original Message-
  From: Gare, Tref [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 10:23 AM
  To: [EMAIL PROTECTED]
  Subject: JDBC connection failing to Oracle 8i with Tomcat3.3
 
 
  Hi to all,
 
  Any help on this one will help save the remaining hair on my
  head for which
  I will be truly grateful.  We're having enormous dificulty
  with getting an
  Oracle JDBC driver recognised in our webapp.  A day of
  trawling google and
  the archives have brought up a variety of solutions which
  we've gone through
  but so far to no avail..
 
  The base error we're getting is the following
  Root cause:java.lang.ClassNotFoundException:
  oracle.jdbc.driver.OracleDriver
  The environment is NT4, Tomcat 3.3, jdk1.3.1_01 and Oracle 8i
 
  Todate we have:
  * downloaded the oracle JDBC driver classes12.zip and dumped
  it into the the
  tomcat\lib directory both as the original zip and then
  renamed as a jar  -
  no success
  * Tried it in the specific web-app's lib folder.
  * Edited the class path such that wherever it is can be seen
  by the jdk and
  attempted to run a small test app/class
  * Expanded the zip file into the above directories one by one
 
  Our connection code looks pretty standard
 
  Class.forName(oracle.jdbc.driver.OracleDriver);
  Connection conn =
  DriverManager.getConnection(jdbc:oracle:thin:@123.123.12.123:
  dbname,user
  ,pwd);
 
  but we're getting nowhere.
 
  Does anyone have any thoughts?
 
  Thanks in advance
 
 
  Tref Gare
 
  ==
  =
  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 

Re: properties file

2002-05-14 Thread Bhushan_Bhangale

Yaa it picks from both man otherwise what is the classes directory doing there in 
WEB-INF folder.

Read class-loader-howto.html file from the tomcat docs to know about the Class loader 
of tomcat.

-Original Message-
From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 9:55 AM
To: [EMAIL PROTECTED]
Subject: Re: properties file


tomcat picks the files which are in lib directory by setting TOMCAT_HOME. i
dont think it picks the ones in classes folder.

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


-Original Message-
From: Bhushan_Bhangale [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 9:16 PM
To: [EMAIL PROTECTED]
Subject: Re: properties file


No it works fine. There is no need to set classpath explicitly as what ever
class and properties files are there in the WEB-INF/classes gets picked when
the tomcat starts.

-Original Message-
From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 9:18 AM
To: [EMAIL PROTECTED]
Subject: Re: properties file


if you do that also, still it does not get the properties file, atleast not
in my case, in which i had made an i18n demo. but yeah after setting the
classpath it did solve my problem.

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


-Original Message-
From: Bhushan_Bhangale [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 8:48 PM
To: [EMAIL PROTECTED]
Subject: Re: properties file


You should put all the properties file in the WEB-INF/classes directory if
you are reading the property files using ResourceBundle or ClassLoader.

-Original Message-
From: Michael Nicholson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 1:34 AM
To: [EMAIL PROTECTED]
Subject: properties file


I can't seem to put the properties file in the right place.  I've finally
managed to get Tomcat to run and even run jsp's, but it won't run mine
because it can't find the properties file (which is all over the place).  Is
there somewhere I set an appropriate classpath type variable or something
like that that I'm missing?  Help!

===
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://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: why this is not working

2002-05-13 Thread Bhushan_Bhangale

The factorial method which you have written is fine, but I don't understand why you 
want to store the numbers in myVal array. You remove it and just call the method and 
it will give you the desired result.

Static variables are class variables which has only one copy for all the instances. 
All the instances share the same reference of those variables. So if a instance change 
its value to some xyz then the other instance when refer the variable it will give the 
xyz value.

To call Static method on e doesn't need to instantiate the class, just by saying 
Class.method it can access the method. Normally the methods which doesn't change the 
state of the object can be made static.

Hope this helps.

-Original Message-
From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 11:24 AM
To: [EMAIL PROTECTED]
Subject: why this is not working


No completime error is there
but the output is unexpected

HTML
HEAD
%!
 int myval[]= new int[100];
 int v=0;
%
TITLE Factorial /TITLE
/HEAD
BODY
%
 int a=0;
 out.println(v);
 %br%
 for (a=0;av;a++){
  out.println(myval[a]);
 }
 out.println(fact(5));
%
%!
 public int fact(int i){
  myval[v++] = i;
  if (i==1){
   return i;
  }
  return i*fact(i-1);
 }
%
/BODY
/HTML

===
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: can't use out.println in function

2002-05-12 Thread Bhushan_Bhangale

I tried your code on IPlanet 6.0 webserver and there System.out worked fine after 
setting the out stream 

System.setOut(new PrintStream(new 
FileOutputStream(D:/TreasureHunt/Code/logs/error.log)));

The out.println will not work in the declared method as the out is declared and 
initialized in the service method when the jsp gets converted to servlet. Thus the out 
won't be accessible in the declared method.

-Original Message-
From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 11, 2002 4:00 PM
To: [EMAIL PROTECTED]
Subject: Re: can't use out.println in function


no dear
it is also not working
and as per my calique, this statment will print the line on server(tomcat)
try this
HTML
HEAD
TITLE Factorial /TITLE
/HEAD
BODY
%!
 public static int fact(int i){
  System.out.println(i);
  if (i==1){
   return i;
  }
  return i*fact(i-1);
 }
%
%
 out.println(fact(5));
%
/BODY
/HTML






%!
fun(){
'
%Hello%
'
'
}
%
%
 fun();
%

I think you can use the above instead of System.out.println(Hello);

===
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 use global variable?

2002-05-12 Thread Bhushan_Bhangale

By defining the variable like this

%!
//declare global variable here
%

-Original Message-
From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 10:12 AM
To: [EMAIL PROTECTED]
Subject: how to use global variable?


hello all
good morning
as my prev que,
i tried to use function and not able to use out.println in function
so now i want to use a global array and want to add all values in array and
will print that array in main code
but i don't know how to make an array global.

see the code

HTML
HEAD
TITLE Factorial /TITLE
/HEAD
BODY
%!
 public static int fact(int i){
//System.out.println(i);
  myval[v++] = i;
  if (i==1){
   return i;
  }
  return i*fact(i-1);
 }
%
%
 for(a=0;av;a++)
  out.println(myval[a]);
 out.println(fact(5));
%
/BODY
/HTML

here array myval and int v must be global so i can use it in main code as
well as in function
how?

ThankX
Vaishali
Reliance Ind Ltd
Ahmedabad

===
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 use global variable?

2002-05-12 Thread Bhushan_Bhangale

You have declared the method as static and the variable is a nonstatic one. Either 
declare the variable as static or make the method nonstatic.

-Original Message-
From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 10:40 AM
To: [EMAIL PROTECTED]
Subject: Re: how to use global variable?


Can't make a static reference to nonstatic variable myval

this is the error i get in this code

HTML
HEAD
TITLE Factorial /TITLE
/HEAD
BODY
%!
 int myval[]= new int[100];
 int v=0;
%
%
 int a=0;
 out.println(v);
 for (a=0;av;a++){
  out.println(myval[a]);
 }
 out.println(fact(5));
%
%!
 public static int fact(int i){
  myval[v++] = i;
  if (i==1){
   return i;
  }
  return i*fact(i-1);
 }
%
/BODY
/HTML



By defining the variable like this

%!
//declare global variable here
%

-Original Message-
From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 10:12 AM
To: [EMAIL PROTECTED]
Subject: how to use global variable?


hello all
good morning
as my prev que,
i tried to use function and not able to use out.println in function
so now i want to use a global array and want to add all values in array and
will print that array in main code
but i don't know how to make an array global.

see the code

HTML
HEAD
TITLE Factorial /TITLE
/HEAD
BODY
%!
 public static int fact(int i){
//System.out.println(i);
  myval[v++] = i;
  if (i==1){
   return i;
  }
  return i*fact(i-1);
 }
%
%
 for(a=0;av;a++)
  out.println(myval[a]);
 out.println(fact(5));
%
/BODY
/HTML

here array myval and int v must be global so i can use it in main code as
well as in function
how?

ThankX
Vaishali
Reliance Ind Ltd
Ahmedabad

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



Where can I find document for Apache WS Tomcat configuration?

2002-05-10 Thread Bhushan_Bhangale

Thanks  Regards
Bhushan Bhangale
Programmer Analyst
Infosys Technologies Ltd.
Pune - 411042
Tel: (Office) +91 (20) 2932800/01 Ext. 1176
Mobile: +91 9822454603
E-mail: [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: Where can I find document for Apache WS Tomcat configuration?

2002-05-10 Thread Bhushan_Bhangale

There is nothing like in my directory structure of 4.0

-Original Message-
From: subbu [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 1:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Where can I find document for Apache WS  Tomcat
configuration?


in side tomcat folder U can find a doc folder.
in this u can find an user guide which describes it.

in my system it is in

 E:\tomcat\doc\uguide\tomcat_ug.html

regards
s.subramanian
IonIdea Enterprise Solutions
Bangalore
India.





- Original Message -
From: Bhushan_Bhangale [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 10, 2002 12:05 PM
Subject: Where can I find document for Apache WS  Tomcat configuration?


Thanks  Regards
Bhushan Bhangale
Programmer Analyst
Infosys Technologies Ltd.
Pune - 411042
Tel: (Office) +91 (20) 2932800/01 Ext. 1176
Mobile: +91 9822454603
E-mail: [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

===
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: Where can I find document for Apache WS Tomcat configuration?

2002-05-10 Thread Bhushan_Bhangale

I have don't have net connection :-(

-Original Message-
From: Manoj Nahar [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 2:08 PM
To: [EMAIL PROTECTED]
Subject: Re: Where can I find document for Apache WS  Tomcat
configuration?


try this

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html

Manoj Nahar

At 12:05 PM 5/10/2002 +0530, you wrote:

Thanks  Regards
Bhushan Bhangale
Programmer Analyst
Infosys Technologies Ltd.
Pune - 411042
Tel: (Office) +91 (20) 2932800/01 Ext. 1176
Mobile: +91 9822454603
E-mail: [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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release Date: 5/7/2002

==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: Where can I find document for Apache WS Tomcat configuration?

2002-05-10 Thread Bhushan_Bhangale

I have WinNT 4.0
But the structure which SS is saying is not present and the docs which are there, I 
have read them fully but nothing about configuration with Web Server.

-Original Message-
From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 1:43 PM
To: [EMAIL PROTECTED]
Subject: Re: Where can I find document for Apache WS  Tomcat
configuration?


u don't have tomcat directory?
it must be there if u have tomcat.
and then follow the path given by ss.
which os u r using?




There is nothing like in my directory structure of 4.0

-Original Message-
From: subbu [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 1:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Where can I find document for Apache WS  Tomcat
configuration?


in side tomcat folder U can find a doc folder.
in this u can find an user guide which describes it.

in my system it is in

 E:\tomcat\doc\uguide\tomcat_ug.html

regards
s.subramanian
IonIdea Enterprise Solutions
Bangalore
India.





- Original Message -
From: Bhushan_Bhangale [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 10, 2002 12:05 PM
Subject: Where can I find document for Apache WS  Tomcat configuration?


Thanks  Regards
Bhushan Bhangale
Programmer Analyst
Infosys Technologies Ltd.
Pune - 411042
Tel: (Office) +91 (20) 2932800/01 Ext. 1176
Mobile: +91 9822454603
E-mail: [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

===
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: TOMCAT IIS

2002-05-09 Thread Bhushan_Bhangale

Then I think the problem is with the configuration only. But what that is a good 
question ;-)

-Original Message-
From: vtr [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 9:17 AM
To: [EMAIL PROTECTED]
Subject: Re: TOMCAT  IIS


the location bar indicates
http://ccx_raj:8080/vtr/jsp/bbb.jsp

which is correct but i am unable to determine why the  server resets

===
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: sql Date

2002-05-07 Thread Bhushan_Bhangale

First of all:-

java.util.sql birthday = null;   should be   java.util.Date birthday = null;

as the Calendar.getTime() method returns a util date object.

-Original Message-
From: Emmanuel Eze [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 1:34 PM
To: [EMAIL PROTECTED]
Subject: sql Date


Hi all,

Can somebody pls tell me how I can insert a Date type into a database table
with a Date datatype?

I have the year, month, and day as integer values.  I need to convert these
values into an sql Date object so I can now insert the Date object into the
table, right?

I have the following code:
Calendar cbirthday = null;
java.util.sql birthday = null;
.
.
.
cbirthday = Calendar.getInstance();
cbirthday.set(Integer.parseInt(year), Integer.parseInt(month),
Integer.parseInt(day));
birthday = cbirthday.getTime();

This last statement throws a cast exception!  Even when I change it to:
birthday = (java.sql.Date) cbirthday.getTime();

Pls tell me what I'm doing wrongly.

Emma

===
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: sql Date

2002-05-07 Thread Bhushan_Bhangale

You cannot cast a java.util.Date to a java.sql.Date since the util.Date is
the parent class of sql Date.

-Original Message-
From: Emmanuel Eze [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 1:46 PM
To: [EMAIL PROTECTED]
Subject: Re: sql Date


Even if I do that, how do I then convert the java.util.Date to
java.sql.Date?


-Original Message-
From: Bhushan_Bhangale [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 11:05 AM
To: [EMAIL PROTECTED]
Subject: Re: sql Date


First of all:-

java.util.sql birthday = null;   should be   java.util.Date birthday = null;

as the Calendar.getTime() method returns a util date object.

-Original Message-
From: Emmanuel Eze [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 1:34 PM
To: [EMAIL PROTECTED]
Subject: sql Date


Hi all,

Can somebody pls tell me how I can insert a Date type into a database table
with a Date datatype?

I have the year, month, and day as integer values.  I need to convert these
values into an sql Date object so I can now insert the Date object into the
table, right?

I have the following code:
Calendar cbirthday = null;
java.util.sql birthday = null;
.
.
.
cbirthday = Calendar.getInstance();
cbirthday.set(Integer.parseInt(year), Integer.parseInt(month),
Integer.parseInt(day));
birthday = cbirthday.getTime();

This last statement throws a cast exception!  Even when I change it to:
birthday = (java.sql.Date) cbirthday.getTime();

Pls tell me what I'm doing wrongly.

Emma

===
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: sql Date

2002-05-07 Thread Bhushan_Bhangale

It returns java.util.Date and not long.

By the Emmanuel Eze have you found the solution for your problem yet or not?

-Original Message-
From: Adrian Janssen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 3:25 PM
To: [EMAIL PROTECTED]
Subject: Re: sql Date


cbirthday.getTime() returns a long - which cannot be cast to any type of
Date. Change your code to:

birthday = new java.sql.Date ( cbirthday.getTime() );


 -Original Message-
 From: Emmanuel Eze [SMTP:[EMAIL PROTECTED]]
 Sent: 07 May 2002 10:50
 To:   [EMAIL PROTECTED]
 Subject:  Re: sql Date

 how do I acheive explicit casting because that is what the compiler
 complained about?
 I thought the following line should be ok but it rejects it.

 birthday = (java.sql.Date) cbirthday.getTime();



 -Original Message-
 From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 07, 2002 11:17 AM
 To: [EMAIL PROTECTED]
 Subject: Re: sql Date


 just make that as explicit casting like what have you done is correct.

 use preparedstatement and then use setObject method.

 Regards

 Ramesh Kesavanarayanan
 [EMAIL PROTECTED]
 Off : 8113801 ext 2333
 Res : 2265360
 Mob : 98412 73573


  -Original Message-
  From: Emmanuel Eze [SMTP:[EMAIL PROTECTED]]
  Sent: Tuesday, May 07, 2002 1:46 PM
  To:   [EMAIL PROTECTED]
  Subject:  Re: sql Date
 
  Even if I do that, how do I then convert the java.util.Date to
  java.sql.Date?
 
 
  -Original Message-
  From: Bhushan_Bhangale [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, May 07, 2002 11:05 AM
  To: [EMAIL PROTECTED]
  Subject: Re: sql Date
 
 
  First of all:-
 
  java.util.sql birthday = null;   should be   java.util.Date birthday =
  null;
 
  as the Calendar.getTime() method returns a util date object.
 
  -Original Message-
  From: Emmanuel Eze [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, May 07, 2002 1:34 PM
  To: [EMAIL PROTECTED]
  Subject: sql Date
 
 
  Hi all,
 
  Can somebody pls tell me how I can insert a Date type into a database
  table
  with a Date datatype?
 
  I have the year, month, and day as integer values.  I need to convert
  these
  values into an sql Date object so I can now insert the Date object into
  the
  table, right?
 
  I have the following code:
  Calendar cbirthday = null;
  java.util.sql birthday = null;
  .
  .
  .
  cbirthday = Calendar.getInstance();
  cbirthday.set(Integer.parseInt(year), Integer.parseInt(month),
  Integer.parseInt(day));
  birthday = cbirthday.getTime();
 
  This last statement throws a cast exception!  Even when I change it to:
  birthday = (java.sql.Date) cbirthday.getTime();
 
  Pls tell me what I'm doing wrongly.
 
  Emma
 
 
 ==
  =
  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

Re: JSP compilation problem.

2002-04-28 Thread Bhushan_Bhangale

Seema,

The Number Format exception should be from your code only. In the exception stack 
trace look for the line and jsp where it has thrown the exception, may be you find 
something or send the code.

-Original Message-
From: Seema Pandey [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 28, 2002 7:27 PM
To: [EMAIL PROTECTED]
Subject: JSP compilation problem.


Hi,

I am new to writing JSP pages.

First problem i am getting is Jasper Exception followed by Number Format
Exception 500. I am not using any parseInt method explicitly to convert any
string to int.
But i am trying to read data from session (where we have our own classes).

I am not sure if the exception is in my code or because of my tomcat
configuration.

Second problem is i have my pages in the examples directory of Tomcat. First
time after installation i access the JSP page it is able to access it. But
if in between
sometime i stop my Tomcat and then access the same page, it gives error
saying the page is not accessible although i have not moved anything.

Can anyboby help me with an answer for any or both the questions.

Regards,
Seema Pandey


SIEMENS SPCNL SCS B2, Blr.
Wireline: +91 80 5062 400
Wireless: 98442 58931
Mail me @: mailto:[EMAIL PROTECTED]

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

 http://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



UPPER or LOWER function for MS Access

2002-04-27 Thread Bhushan_Bhangale

Hi,

Does anybody know the alternative of UPPER or LOWER function for MS Access? This UPPER 
 LOWER functions works in ORACLE but in MS Access it says Undefined function. Please 
help.

Thanks  Regards
Bhushan Bhangale
Infosys Technologies Ltd.
Pune - 411042
Tel : (Office) +91 (20) 2932800 Ext - 1176
Mobile : +91 9822454603
E-mail : [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: Logging System.out.print or System.err.print

2002-04-22 Thread Bhushan_Bhangale

You can use System.setOut(PrintStream) method to set the o/p stream to a file.

-Original Message-
From: Ranjan Sarkar [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 3:24 PM
To: [EMAIL PROTECTED]
Subject: Logging System.out.print or System.err.print


Hi All,

Genarally System.out.print prints to the standard output device and System.err.print 
prints to standard error device.
Most time, the two devices are same, namely, the console.

My question is can we redirect them to a file?

Actually I want to store all the System.out.println or System.err.println
into a log file for later use,  Can we redirect the content of stadard output or error 
device to a file?

-Ranjan

=
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: Logging System.out.print or System.err.print

2002-04-22 Thread Bhushan_Bhangale

You can use System.setErr(PrintStream) method to set the error o/p stream to a file.

-Original Message-
From: Ranjan Sarkar [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 3:24 PM
To: [EMAIL PROTECTED]
Subject: Logging System.out.print or System.err.print


Hi All,

Genarally System.out.print prints to the standard output device and System.err.print 
prints to standard error device.
Most time, the two devices are same, namely, the console.

My question is can we redirect them to a file?

Actually I want to store all the System.out.println or System.err.println
into a log file for later use,  Can we redirect the content of stadard output or error 
device to a file?

-Ranjan

=
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: Question about page parameters type. String?

2002-04-19 Thread Bhushan_Bhangale

The problem is related to objects. Whenever we define a variable for object only the 
reference of memory(where the actually data of object is stored) gets stored in it. 
The == operater is used to compare the values actually stored in those variables. So 
incase of object variables the == operator gets the memory address and not the value 
stored at that memory address.

The String is an object so it also applies to it.

I hope I manage to explain it, if still have any doubt than you can ask again.

-Original Message-
From: Villén Pizarro, Julia [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 1:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Question about page parameters type. String?


This answers are very helpfull and my problem is solved, but not my curiosity. 
As you can see I'm not a Java expert but I don't understand why do I have to use this 
methods when color is a String.
Just curiosity, 
thanks,
Julia


-Mensaje original-
De: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 19 de abril de 2002 5:54
Para: [EMAIL PROTECTED]
Asunto: Re: Question about page parameters type. String?


or a much faster way is like this

%
String color;
color=request.getParameter(color)

if (color.intern() ==red) {
--
whatever1
}
else {whatever2}

%

using intern() is quite fast since in equals() each character is checked
which is quite time consuming which intern() gives you the canonical
representation of the string.
in your applications try to use intern() rather than equals().

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


-Original Message-
From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 5:19 AM
To: [EMAIL PROTECTED]
Subject: Re: Question about page parameters type. String?


Hi bhusan,

 That's one point  but she is trying to compare using == method which is for
object referecne but not the value.


No need of casting as paramater always comes as a String and your color
variable in the code is also a String so no need of casting.
-Original Message-
From:   Villén Pizarro, Julia [mailto:[EMAIL PROTECTED]]
mailto:[mailto:[EMAIL PROTECTED]] 
Sent:   Thursday, April 18, 2002 5:22 PM
To: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
Subject:Question about page parameters type. String?


Hi all!
I call my_page.jsp this way
http://my_server/my_page.jsp?color=red
http://my_server/my_page.jsp?color=red 

Then I retrieve the value of the parameter color and then try to match it,
in the following way:

%
String color;
color=request.getParameter(color)
if (color==red) {
whatever1
}
else {whatever2}

%

The answer is whatever2. I made sure the page is getting the parameter right
by writing it out. The question is if I have to do any kind of casting.
Thaks in advance,
Julia

=
To unsubscribe: mailto [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] 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://archives.java.sun.com/jsp-interest.html 
http://java.sun.com/products/jsp/faq.html
http://java.sun.com/products/jsp/faq.html 
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.esperanto.org.nz/jsp/jspfaq.jsp 
http://www.jguru.com/faq/index.jsp http://www.jguru.com/faq/index.jsp 
http://www.jspinsider.com http://www.jspinsider.com 

==To
unsubscribe: mailto [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] 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://archives.java.sun.com/jsp-interest.html 
http://java.sun.com/products/jsp/faq.html
http://java.sun.com/products/jsp/faq.html 
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.esperanto.org.nz/jsp/jspfaq.jsp 
http://www.jguru.com/faq/index.jsp http://www.jguru.com/faq/index.jsp 
http://www.jspinsider.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 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
 

Re: Question about page parameters type. String?

2002-04-18 Thread Bhushan_Bhangale

No need of casting as paramater always comes as a String and your color variable in 
the code is also a String so no need of casting.

-Original Message-
From: Villén Pizarro, Julia [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 5:22 PM
To: [EMAIL PROTECTED]
Subject: Question about page parameters type. String?


Hi all!

I call my_page.jsp this way
http://my_server/my_page.jsp?color=red

Then I retrieve the value of the parameter color and then try to match it, in the 
following way:

%
String color;
color=request.getParameter(color)
if (color==red) {
whatever1
}
else {whatever2}

%

The answer is whatever2. I made sure the page is getting the parameter right by 
writing it out. The question is
if I have to do any kind of casting.

Thaks in advance,

Julia

=
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: SQL SELECT Problem

2002-04-18 Thread Bhushan_Bhangale

No its wrong

sql = SELECT Username FROM join11 WHERE eappname = ' +EappName+ '
and eappsurname = ' +EappSurname+ ' and address=  ' +address+ ' and
towncity =  ' +TownCity+ ' and postcode =  ' +Postcode+ 'and phone =  '
+Phone+ 'and email =  ' +email+ ';

After this query execute it and get the Username as

String Username = rs.getString(Username);

then only you can say
out.println(p+Username+/p);

Since you never defined the Username variable in your JSP, you were getting compile 
time error.
-Original Message-
From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 11:14 AM
To: [EMAIL PROTECTED]
Subject: Re: SQL SELECT Problem


May be the query should look like this

 sql=SELECT Username FROM join11 WHERE eappname = (' +EappName+ '
and eappsurname =  ' +EappSurname+ ' and address=  ' +address+ 'and
towncity =  ' +TownCity+ ' and postcode =  ' +Postcode+ 'and phone =  '
+Phone+ 'and email =  ' +email+ ' );


Regards

Ramesh Kesavanarayanan
Off : 91-44-8113801 ext 2333
Tel:91-44-2265360
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]



-Original Message-
From:   ASALAM [SMTP:[EMAIL PROTECTED]]
Sent:   Tuesday, March 19, 2002 8:46 AM
To: [EMAIL PROTECTED]
Subject:Re: SQL SELECT Problem

Pls make your intention clear.
The problem seems to be Username is not declared.
Also I doubt whether  the query is well formed.

Pls post the entire source code.

ASalam.
- Original Message -
From: Graeme McLaren [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 18, 2002 11:44 PM
Subject: SQL SELECT Problem


 Hi all, thank you for all the replies to my earlier SQL question,
I've now
 managed to INSERT data to my database.  Now I have a problem
selecting the
 data which I have inserted.

 I have a form which is to be filled out to retrieve a username
when a user
 fills in their personal details.  I'm getting the following error:

 97. out.println(+Username+);
   --
 *** Error: No entity named Username was found in this
environment.

 In my JSP I have:

 String EappName=request.getParameter(EappName);
 String EappSurname=request.getParameter(EappSurname);
 String address=request.getParameter(address);
 String TownCity=request.getParameter(TownCity);
 String Postcode=request.getParameter(Postcode);
 String Phone=request.getParameter(Phone);
 String email=request.getParameter(email);

 sql=SELECT Username FROM join11 WHERE(' +EappName+ ', '
+EappSurname+
 ', ' +address+ ', ' +TownCity+ ', ' +Postcode+ ', '
+Phone+ ', '
 +email+ ' );

 out.println(p+EappName+/p);
 out.println(p+EappSurname+/p);
 out.println(p+address+/p);
 out.println(p+TownCity+/p);
 out.println(p+Postcode+/p);
 out.println(p+Phone+/p);
 out.println(p+Username+/p);
 out.println(p+email+/p);

 What has gone wrong here?  Any advice is greatly appreciated.

 Thank you in advance,

 Graeme :)

 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com



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

  http://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 

Re: jsp:forward tag strange problem

2002-04-16 Thread Bhushan_Bhangale

Hi,

First jsp -

form name=form1 action=forward1.jsp
input type=text name=name
input type=submit value=Submit
/form

Second jsp -

%
String name = request.getParameter(name);
%
jsp:forward page=forward2.jsp
jsp:param name=name1 value=%=name% /
/jsp:forward

Third jsp -

%
out.println(name =  + request.getParameter(name));
out.println(brname1 =  + request.getParameter(name1));
%

It works very fine in IPlanet. I hope you are also doing the same thing. If yes then 
it may be a problem with WL.

==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: jsp:forward tag strange problem

2002-04-16 Thread Bhushan_Bhangale

Ok do one thing what ever you want to do with request do it on second page but while 
calling forward to third don't pass anything as the same request will be still valid 
on third page.

If you do this are you getting null values for getParameter or something else.

-Original Message-
From: Ashwani Kalra [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 4:53 PM
To: [EMAIL PROTECTED]
Subject: Re: jsp:forward tag strange problem


Yes I am doing exactly same. What I have noticed is if in second jsp  I
comment request.get... line and pass some hardcoded value , its working.
That means if I do something with request object, things are not working.
But I cannot avoid this.


Thanks
Ashwani Kalra



-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Bhushan_Bhangale
Sent: Tuesday, April 16, 2002 4:42 PM
To: [EMAIL PROTECTED]
Subject: Re: jsp:forward tag strange problem


Hi,

First jsp -

form name=form1 action=forward1.jsp
input type=text name=name
input type=submit value=Submit
/form

Second jsp -

%
String name = request.getParameter(name);
%
jsp:forward page=forward2.jsp
jsp:param name=name1 value=%=name% /
/jsp:forward

Third jsp -

%
out.println(name =  + request.getParameter(name));
out.println(brname1 =  + request.getParameter(name1));
%

It works very fine in IPlanet. I hope you are also doing the same thing. If
yes then it may be a problem with WL.

=
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: JSPs/DBs and HTML Forms

2002-04-15 Thread Bhushan_Bhangale

Its very simple to write a SQL after getting all the form elements values in some 
variables. You just need to concatenate all the values and need to create a INSERT 
statement. See for example  :-

String var1 = request.getParameter(var1);
String var2 = request.getParameter(var2);
String var3 = request.getParameter(var3);

String query = INSERT INTO TABLENAME(VAR1, VAR2, VAR3) VALUES(;
if (var1 != null  var1.trim().length() != 0)
query += ' + var1  ',;
if (var2 != null  var2.trim().length() != 0)
query += ' + var2  ',;
if (var3 != null  var3.trim().length() != 0)
query += ' + var3  ',;

if (query.charAt(query.length() - 1) == ',') 
query = query.substring(0, query.length()); 

Now your whole query is ready in query variable.

If still have any doubt then you can ask me.

This is just an approach. You can take care of all kinds of types here like int, date, 
etc and instead of String for query use StringBuffer which is much more efficient.

-Original Message-
From: Graeme McLaren [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 4:20 AM
To: [EMAIL PROTECTED]
Subject: JSPs/DBs and HTML Forms


Hi everyone, I'm completely new to JSPs and I'm finding a somewhat daunting
area.  Specifically I'm having a problem inserting information from an html
form to a database using a JSP.

Basically I've got the problem of getting the parameter and the value from
the form then inserting it in to the database with SQL.

I can use  mystring=request.getParameter(TheNameOfTheFormInput);  to get
the value from the form elements.  Once I've done this I'm completely lost
as to how to write the SQL to insert the values from the form elements INTO
the database.

Can anyone guide me through this, point me in the right direction or give me
any tips at all.  Any advice would be greatly appreciated.

Thank you in advance,

Graeme :)

P.S. Currently I've got a JSP like this:

!-- imports the JDBC functions --
%@ page import=java.sql.* %
html
head
titleJDBC Example/title
/head
body
h1JDBC with JSP/h1
%
/* various variable declarations */
Connection dbc;
Statement st;
String sql;
ResultSet rs;
ResultSetMetaData rsmd;

try {
  /* load JDBC driver for PostgreSQL database */
  Class.forName(postgresql.Driver);

  /* make a connection to the database */

dbc=DriverManager.getConnection(jdbc:postgresql://localhost/webtest,www-d
ata,);

  /* create and execute a statement */
  st=dbc.createStatement();
  sql=(SELECT * FROM example);
  st.executeQuery(sql);

  /* get the results and metadata */
  rs=st.getResultSet();
  rsmd=rs.getMetaData();

  /* how many columns are there? */
  int numcols=rsmd.getColumnCount();

  /* start table and print headings */
  out.println(table\nthead\ntr);
  int i;
  for (i=1;i=numcols;i++)
out.print(th+rsmd.getColumnLabel(i)+/th);
  out.println(/tr\n/thead\ntbody);

  /* print the rows of the table */
  while (rs.next()) {
out.print(tr);
for (i=1;i=numcols;i++)
  out.print(td+rs.getObject(i)+/td);
out.print(/tr);
}

  /* end table and close DB */
  out.print(/tbody\n/table\n);
  dbc.close();

  /* error handling */
  } catch (Exception e) {
out.println(pError in JDBC database access/p);
out.println(p+e+/p);
  } ;

%
/body
/html

Thanks again,

G :)

Public Sub House()

On Error Resume drink

 If PintGlass.empty = True Then
 PintGlass.refill
   Else
 PintGlass.drink
 End if

stomach.add PintGlass

MsgBox  I've had    stomach.count   Pints
MsgBox VERY DRUNK

End Sub


_
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com

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

 http://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