Technical help - urgent..

2002-09-12 Thread It, Cockpit (CAP, Contractor)
Hi All, We have one Web Application called Hummingbird BI Web Report. It is browser based Application. It is Reporting Application.There user can view Reports which is created in one more tool called BI Query Admin and published into BI Web. To View a Report user has to have valid username and pa

iPlanet to IBM WAS porting!

2002-08-29 Thread It, Cockpit (CAP, Contractor)
Dear Friends, I need some info/suggestions/guidlines/work arounds from you all. Currently I have an requirement to port an application which is running on iPlanet version4.0 (Not on iPlanet Application Server). This has the following structure html & jsp => /usr/netscape/server4/doc

Off topic: Apache Problem!

2002-08-21 Thread It, Cockpit (CAP, Contractor)
Dear Friends, I have a problem in my IBM HTTP server which has been built on top of Apache web server. My problem is like this I have a virtual folder which has been mapped to Crystal Report's sechduler. This scheduler will generate files and put them in to this folder... Then our users will

Re: help needed(java.sql.SQLException: Invalid Oracle URL specifi ed)

2002-07-11 Thread It, Cockpit (CAP, Contractor)
Dear Ramesh, You are missing ":" next to thin... If you give as follows it will work try this... conn = DriverManager.getConnection("jdbc:oracle:[EMAIL PROTECTED]:1521:BIST 1", "oaxapr","oaxapr"); Yogaraj -Original Message- From: Ramesh Kadirisani [mailto:[EMAIL PROTECTED]] Sent

[no subject]

2002-06-24 Thread It, Cockpit (CAP, Contractor)
Hi Vikramjit, IMHO, both the practices are not much laudable. Yes its overhead to the resources to open and close the physical connection to the database for each request that arrives to your application. So, this is not better practice to use it. What your colleague is doing is also wrong. It mi

Re: resultset in resultset not working

2002-06-24 Thread It, Cockpit (CAP, Contractor)
>From JDK documentation... public interface Statement The object used for executing a static SQL statement and obtaining the results produced by it. Only one ResultSet per Statement can be open at any point in time. Therefore, if the reading of one ResultSet is interleaved with the reading of a

Re: resultset in resultset not working

2002-06-24 Thread It, Cockpit (CAP, Contractor)
Dear Vishali, I don't know whether there is a problem in the pseudo code that you have displayed was wrong or you had made the same mistake in your code also. First of all you can not execute/run a query/cmd in a result set but your code shows rs2.executeQuery(cmd). If you really want to execute

Distributed Transaction!

2002-06-13 Thread It, Cockpit (CAP, Contractor)
Hello Friends, Hello Friends, I read an article about Understanding JTS (http://www-106.ibm.com/developerworks/java/library/j-jtp0410/?loc=j#7) in IBM web site. It was really an interesting and eye opening stuff for me with respect to my understanding about transactions. So I just wanted to t

Re: Check This

2002-06-07 Thread It, Cockpit (CAP, Contractor)
This code will surely throw up an error if name variable is null you have to check like if(!name == null || !name.length() ==0 ) { instead... because you are checking the lenght of the String first which possibly null... Happy Programming.. YOgaraj -Original Message- From: Da

Re: help

2002-06-07 Thread It, Cockpit (CAP, Contractor)
Hi First check if your ename is ename or EName ...some times this might be a problem... Then before assigning into the variable...just do like if (request.getParameter("ename")!=null && !request.getParameter("ename").equals("")) String name=request.getParameter("ename"); just be sur

Re: what is Response has already been committed?

2002-05-30 Thread It, Cockpit (CAP, Contractor)
After writing some thing into the output stream.. If you try to make any changes in your header information ... This error will come... Example... Out.println(blah blah); response.setHeader("pragma","no-cache"); Then...the error that you are getting will come... Yogaraj -Original Message--

Re: can not get parameter (It's urgent)

2002-05-28 Thread It, Cockpit (CAP, Contractor)
You should have used String d = request.getParameter(txtdesc[r]); It would work the way you want it -Original Message- From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 1:18 PM To: [EMAIL PROTECTED] Subject: Re: can not get parameter (It's urgent) no,

Re: download popup

2002-05-14 Thread It, Cockpit (CAP, Contractor)
Hello Ramesh, This is not browser that does force the file to download... Its basically a content type property that you are setting... the following code will force your browser to give your file as download. response.setContentType("application/csv"); response.setHeader("Content-Disposition","a

JDBC Connection!

2002-04-24 Thread It, Cockpit (CAP, Contractor)
HI Friends, I have a question. Say, In one of my JSP pages I am instansiating a connection which is already there in the connection pool. Then My JSP page sets Conn.setAutoCommit(false); If my JSP page did not set it again to true, will it be the same auto commit false in the next request in the

Re: how to convert lowercase letters to higher case while enterin g

2002-04-18 Thread It, Cockpit (CAP, Contractor)
, Murali "It, Cockpit (CAP, Contractor)" wrote: > Hi Murali Mohan, > Use this java script function which takes care of converting lower case into > upper. > // Function which Converts the lowercase letters entered by user to upper > case letters >function t

Re: how to convert lowercase letters to higher case while enterin g

2002-04-18 Thread It, Cockpit (CAP, Contractor)
Hi Murali Mohan, Use this java script function which takes care of converting lower case into upper. // Function which Converts the lowercase letters entered by user to upper case letters function toUpper() { if ((window.event.keyCode>=97) && (window.event.keyCode<=122)) {

Re: Briish summer Time formating.

2002-04-03 Thread It, Cockpit (CAP, Contractor)
Better you can try Using GregorianCalendar which has the facility to take timezone as an argument and works fine according to the given timezone. Actually we used it in our project and succeeded. Thanx Yogaraj -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED]] Sent: Thursday

Re: File Downloading from server to local disk

2002-04-02 Thread It, Cockpit (CAP, Contractor)
Hello Sameer, Are you using frame set with in which you have this html file which will call a servlet and that servlet will actually download the .txt file that you are giving it as download, isn't it? And your download file name is "downloadFile.htm" right? If you use frame set and inside that

Re: STOPPING A JSP

2002-04-02 Thread It, Cockpit (CAP, Contractor)
Just insert a return; statement in the middle then the execution of JSP will be terminated in that point. Regards Yogaraj -Original Message- From: Dmitry Namiot [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 4:54 PM To: [EMAIL PROTECTED] Subject: Re: STOPPING A JSP See for exa

Re: Visual Age For Java!

2002-03-17 Thread It, Cockpit (CAP, Contractor)
hance, you might want to upgrade to Websphere Application Developer. It doesn't use the WTE which is the flakiest part of VAJ. Plus it has better tools for web development if you have a need for that. good luck -Original Message----- From: It, Cockpit (CAP, Contractor) [mailto:[EMAIL

Visual Age For Java!

2002-03-15 Thread It, Cockpit (CAP, Contractor)
Dear Friends, I am using Visual Age For Java 3.5. It was working very fine till before 30 Mins. Suddenly my Websphere test environment is not working. When I start my servlet engine it shows in the consol window that the webserver is running on local host on the port 8080. But when I call my pages

Re: Pop3 Mail client.

2002-03-15 Thread It, Cockpit (CAP, Contractor)
helps, Smita "It, Cockpit (CAP, Contractor)" <[EMAIL PROTECTED]>: > Dear Friends, > Do any one know where can I find source code in servlet to read mails > from > pop3 server. > Actually my requirement is to read a subject line of one particular mail > id, > a

Pop3 Mail client.

2002-03-14 Thread It, Cockpit (CAP, Contractor)
Dear Friends, Do any one know where can I find source code in servlet to read mails from pop3 server. Actually my requirement is to read a subject line of one particular mail id, and should parse the body message then should update them into the database. My database is Oracle, and my pop3 mail se

SMTP in Websphere 4.0

2002-03-11 Thread It, Cockpit (CAP, Contractor)
Hi Friends, I need to send mail from my jsp page. I have code to send mail. But my need is, is there a default SMTP server available in Websphere Application Server 4.0. The admin server has provision to create the mail session. Is that enough for me to send mail or Should I have to have a separat

Re: Setting focus in JSP

2002-02-28 Thread It, Cockpit (CAP, Contractor)
Call this function in your body load as Yogaraj -Original Message- From: Henry S. Hayden [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 2:13 AM To: [EMAIL PROTECTED] Subject: Setting focus in JSP I would like to be able to set a form's focus to the first textbox on a JSP. As

Re: vector cast to int

2002-02-27 Thread It, Cockpit (CAP, Contractor)
Actually the value in Vector is object. So you can do like this int totalNum = 100; int tempTotal = Integer.parseInt(pollVotecount.elementAt(i).toString()); or you can do like this. int tempTotal =((Integer)pollVotecount.elementAt(i)).integerValue(); int tempNum = tempTotal / totalVotes); Eithe

Problem in upload and download!

2002-02-27 Thread It, Cockpit (CAP, Contractor)
Hi all, I am in a serious problem, I am downloading one CSV file from a jsp page. Which contains complete csv data. Actually I have a jsp file in the name of admin.jsp from this file Onclick of a button I will call file name AdminFileDownload.jsp with moveTo(1000,1000) and periodically I will cal

Removing cookie!

2002-02-25 Thread It, Cockpit (CAP, Contractor)
Dear Friends, I have set cookies in my web site. If I want to log out the user I have to remove the cookie manually, right..? How do I do that in JSP? I am not able to overwrite the cookie using "" value. Please help me. Yogaraj "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FO

Re: How to be sure

2002-02-21 Thread It, Cockpit (CAP, Contractor)
Hi Ajit, Basically this error was not because of your tomcat, You would have written code only for doPost method inside your receiver servlet, if you did so, please make some changes as public void doGet(httpServletRequest request,HttpServletResponse Response)throws HttpServletException{ doPost(re

Re: How do I ?

2002-02-21 Thread It, Cockpit (CAP, Contractor)
p you. Sami. -Mensaje original- De: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]En nombre de It, Cockpit (CAP, Contractor) Enviado el: Miércoles, 20 de Febrero de 2002 10:35 p.m. Para: [EMAIL PROTECTED] Asunto: How do I ? Dear Friends, I ha

How do I ?

2002-02-20 Thread It, Cockpit (CAP, Contractor)
Dear Friends, I have an urgent requirement. How do I call other than Service method of a servlet from my stand alone Java programe? Help me please! Yogaraj "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information.

IIS and WAS4.0!

2002-02-20 Thread It, Cockpit (CAP, Contractor)
Dear Friends and Experts, I have an interesting query for which I expect a good solution from you guys. I have IIS running on Windows NT, And my Websphere Application Server is running on Sun Solaris. Now my question is, Is there any way out there to configure IIS as my Web Server for my Applica

Problem with CSV File download !

2002-02-19 Thread It, Cockpit (CAP, Contractor)
Hi Guys, I have a problem, my application should give a template of some format. Which is going to be a CSV file. So I am using response.setContentType("application/csv"); response.setHeader("Content-Disposition","attachment; filename=UPLOAD.csv;"); When I tried this the download was very fine w

Re: CSV file generation using JSP!

2002-02-18 Thread It, Cockpit (CAP, Contractor)
Hi Paulo, Its really a magic, I never knew that %> <% will add a new line... Thanx a lot.. Regards Yogaraj -Original Message- From: Paulo Henrique de Abreu Pontes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 12:41 AM To: [EMAIL PROTECTED] Subject: Re: CSV file generation us

CSV file generation using JSP!

2002-02-18 Thread It, Cockpit (CAP, Contractor)
Hello ALL, I am generating CSV file on the fly. So I am using response.setContentType("application/csv"); response.setHeader("Content-Disposition","attachment; filename="UPLOAD.csv;"); These two lines, Now problem is, the downloaded file contains unnecessary new lines in the beggining. My firs

Re: Websphere Application Server V4.0

2002-02-17 Thread It, Cockpit (CAP, Contractor)
- From: "It, Cockpit (CAP, Contractor)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 16, 2002 2:15 AM Subject: Websphere Application Server V4.0 > Dear Friends, > > Currently I am handling WAS v4.0, Here I have a problem in administring the >

Websphere Application Server V4.0

2002-02-15 Thread It, Cockpit (CAP, Contractor)
Dear Friends, Currently I am handling WAS v4.0, Here I have a problem in administring the same. My problem description is this, I have created my web application using AAT(Application Assembly Tool). I have installed the EAR file on the server. After the installation of the Enterprise Archive(EAR

Re: DDL using JSP !

2002-02-15 Thread It, Cockpit (CAP, Contractor)
! Importance: Low Hi, If you are Using Oracle Database Version 8i or higher you can use "Execute Immediate" Statement in a JDBC call. Regards Juergen -Ursprüngliche Nachricht----- Von: It, Cockpit (CAP, Contractor) [mailto:[EMAIL PROTECTED]] Gesendet am: Freitag, 15. Februar 200

DDL using JSP !

2002-02-14 Thread It, Cockpit (CAP, Contractor)
Hi Friends, I have one requirement, I have to frequently add a field in my particular table. Currently we are doing it manually.. Is there any work around to automate this. I should be able to alter my table through JSP/Servlet is this possible..? Can I do that..? Regards Yogaraj "THIS E-MAIL

Re: Urgent Help needed !

2002-02-14 Thread It, Cockpit (CAP, Contractor)
Try to use Oracle Rownum property and you will get a good result. Say If your query returns 1000 records put another condition in your query as rownum<100 and then for next time put the condition as rownum>100 and rownum<200 you will get it solved. Thanx Yogaraj -Original Message- From: J

Hi All!

2002-02-10 Thread It, Cockpit (CAP, Contractor)
I am in the need of your help. Currently I am working on a web site development which is in JSP and servlet. Actually we are using Visual Age for java for the development of the same. But I have a problem in this regard. I am having an SQL query which runs fine in Oracle client. But its not retur