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 password.
What it does ,it  first validate user credentials(user name and pwd) and
allows him to view any report.This application is developed in servlet and
webserver as tomcat(i hope so)..

Ok.Right now what i'm customizing that application. our client does like
that original Application's User interface(frond end).
so i'm customizing that application with some more functionalities..

My objective is pass user credentials paramaters from my web application to
BI Web application and get Session for that.
after that  pass parameters to view a report from my web application.

for eg..To login into original application i need to call this URL

http://servername:8070/biweb/request?biUName=administrator
http://servername:8070/biweb/request?biUName=administratorbiPwd=administra
tor biPwd=administrator  it is login into to BI web application ,creates
session for this user and shows it own user interface.

once u get a session for broswer we can viewt report using this url

http://servername:8070/biweb/request?action=viewreport
http://servername:8070/biweb/request?action=viewreporthrrtp=r1/test/testRe
port.rep hrrtp=r1/test/testReport.rep it shows testReport in your
browser.for that u should have valid session.


now what i want is get Session from original application to my own custom
application, and view report..

Now i'm using tomcat server 4.0.3 and trying with jsp.

i'm passing usercredentials to BiWeb application and try to get session of
that application and i dont want original application's user interface.

can we do with include and forward action in jsp or any other ways is there
for this?

i'm ready to use any web server and any web technology(ASP,servlet,jsp what
ever)?

Pls advice and get back to me asap. it is very urgent.

Thanks and Regards
Yogaraj


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



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 go and access those files over web...these files are
basically HTML files.

Now the problem is If the files are accessed over web one time...then the
webserver is not allowing me to
delete or over write these files until I bring down the webserver. But this
is not required.
Because the refreshed files will have to be overridden on these files
daily...

So please help me someone who knows where do I have to modify and what..?
I checked out Cache Accelerator functionality of Apache which says the
static files
will be cached for access acceleration...but it says the accelerator will
automatically load the
changed files...but my problem is, the web server is not at all allowing me
to change the existing files..

Pls help...
Thank you verymuch in Advance...


Yogaraj


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: 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: Thursday, July 11, 2002 8:27 PM
To: [EMAIL PROTECTED]
Subject: Re: help needed(java.sql.SQLException: Invalid Oracle URL
specified)


Hi Ben,
thanks for the response. i tried the way you suggested. no luck. is
there anything else i have to check?
thanks,
Ramesh Kadirisani.

Ben Steiner wrote:

 instead of
   conn =

DriverManager.getConnection(jdbc:oracle:[EMAIL PROTECTED]:1521:BIST
1:oaxapr/oaxapr);
 it should work this way...
   conn =

DriverManager.getConnection(jdbc:oracle:[EMAIL PROTECTED]:1521:BIST
1,
 oaxapr,oaxapr);

 Ben

  [EMAIL PROTECTED] 07/11/02 07:51AM 
 hi,
 i am trying to use oracle jdbc driver in my jsp program to connect to
 oracle database and i am getting the following error.

 java.sql.SQLException: Invalid Oracle URL specified

 The following is part of my coding:

 %@ page import=java.sql.*,java.io.*, oracle.jdbc.driver.*%
 %
 Connection conn;
 try
 {
  Class.forName (oracle.jdbc.driver.OracleDriver);
  conn =

DriverManager.getConnection(jdbc:oracle:[EMAIL PROTECTED]:1521:BIST
1:oaxapr/oaxapr);
 .
 %

 The following is the set up in my work environment:

 Server1: windows 2000, Webserver, ServletExec, JRE, Oracle client
 Server2: windows 2000, Oracle database
 tnsnames.ora on server1 has the service name BIST1 that refers to
 Oracle database on server2.
 i downloaded classes12.zip from oracle site into lib of JRE on
 server1.

 Could somebody please let me know
 the correct syntax to specify the Oracle URL?
 if the syntax whatever i used is correct, the reason for getting the
 above error?
 the way i am using the oracle jdbc drivers is correct or not?

 thanks in advance,
 Ramesh Kadirisani.


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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.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


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: 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 result set inside another result set you have
to create two seperate statements using which you can do.
This is not valid in JDBC1.0. In JDBC2.0 you can achieve this as follows...

Statement stmt1= con.createStatement();
Statement stmt2= con.createStatement();

ResultSet rs1= stmt1.executeQuery(YourQueryHere);
ResultSet rs2 = null;
while(rs.next()){

rs2=stmt2.executeQuery(YourQueryHere);
While (rs2.next()){
//do your work here.
}
}

Here instead of stmt2 you can replace this with PreparedStatement as this is
the exact situation where you have to use prepared statement.
When you use a same query more than one times PreparedStatement is there to
optimize it.
All the best

Yogaraj
-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 1:36 PM
To: [EMAIL PROTECTED]
Subject: resultset in resultset not working


hi friends

here 2 resultsets rs1 and rs2

while (rs1.next()){
  ;
  ;
  rs2.executeQuery(cmd);
  while(rs2.next()){
;
;
  }
  ;
  ;
}

there are some records in rs1 but after executing 1st  record it comes out
from while.
rs2 is working fine.
where I mistep?
can anyone make me correct?

Thanks
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


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: 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 another, each must have been generated by different Statements. All
statement execute methods implicitly close a statment's current ResultSet if
an open one exists.

Hope your doubts is cleared...

Yogaraj

-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 2:37 PM
To: [EMAIL PROTECTED]
Subject: Re: resultset in resultset not working


Yes
the prob was there only
u have u use 2 diff stmts when u r using 1 rs in 2nd
now it's working well
but what is the reason?

Regards
Vaishali
Reliance Ind Ltd.
A'bad




  It, Cockpit
  (CAP,To:
[EMAIL PROTECTED]
  Contractor) cc:
  Cockpit.It@GEINDSubject:  Re: resultset in
resultset not working
  .GE.COM
  Sent by: A
  mailing list
  about Java Server
  Pages
  specification and
  reference
  JSP-INTEREST@JAV
  A.SUN.COM


  06/24/02 02:20 PM
  Please respond to
  A mailing list
  about Java Server
  Pages
  specification and
  reference






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 result set inside another result set you have
to create two seperate statements using which you can do.
This is not valid in JDBC1.0. In JDBC2.0 you can achieve this as follows...

Statement stmt1= con.createStatement();
Statement stmt2= con.createStatement();

ResultSet rs1= stmt1.executeQuery(YourQueryHere);
ResultSet rs2 = null;
while(rs.next()){

rs2=stmt2.executeQuery(YourQueryHere);
While (rs2.next()){
//do your work here.
}
}

Here instead of stmt2 you can replace this with PreparedStatement as this
is
the exact situation where you have to use prepared statement.
When you use a same query more than one times PreparedStatement is there to
optimize it.
All the best

Yogaraj
-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 1:36 PM
To: [EMAIL PROTECTED]
Subject: resultset in resultset not working


hi friends

here 2 resultsets rs1 and rs2

while (rs1.next()){
  ;
  ;
  rs2.executeQuery(cmd);
  while(rs2.next()){
;
;
  }
  ;
  ;
}

there are some records in rs1 but after executing 1st  record it comes out
from while.
rs2 is working fine.
where I mistep?
can anyone make me correct?

Thanks
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


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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:

 

[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 might look right in one point
that He/She is allotting a single connection to a servlet which will be used
for all the request that particular servlet receives. But just think of a
scenarios
1. where in more than one requests are coming to that servlet...your
servlet will keep the request in a web server's queue.
Though your servlet is capable of handling more than one request at a time,
it won't. Because it does not have a database connection in hand, which
might be used by some other request arrived just before to this request.

2. Just think your application is having around 200 servlets which have to
interact with the database. so when all your servlets have been accessed by
the users at least for one time. Then your database will have 200
connections open till your webserver/app server restarts which will destroy
your servlets as well as connections. So Ideally you are locking the
connections. Just think that one of your servlet is being accessed once in a
week, that servlet will have a open connection till it's next request
reaches.

So the ideal way of handling connections would be ConnectionPooling. If you
use App Server you can make use of it, because all the app server, that I
know of, are providing facility for connection Pooling.

If you are working with Web server just try to implement your own connection
pooling concept, or just find one from the web, which are surely available
on the net.

But inefficient connection pool handling will also be a problem, so just
take care of it.

Basically in connection pool that has been implemented by your app server
vendor would have a wrapper class to your connection object. so when you say
connection.close() it basically tells the app server that you are done with
using your connection, so it will collect your connection back to the pool.
So using as minimum as 10 connections u can serve more than 100 users. Just
search for Connection pool on google. you will get more about it.
All the best.

Yogaraj

-Original Message-
From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 25, 2002 11:00 AM
To: [EMAIL PROTECTED]
Subject:


Hi all,

I have a doubt in which method is the proper way of getting connections. I
am putting the connections in the server context, and getting  the
connections from the context by

ServletContext context = getServletContext();
OracleConnectionPool ocpl =
(OracleConnectionPool)context.getAttribute(CONNECTION_POOL);
OracleConnection tmpDbCon = (OracleConnection)ocpl.getConnection();

First Method:
I usually get the connection by the above method by putting it in the doPost
method of the servlet.

like public void doPost(HttpServletRequest req, HttpServletResponse res){
ServletContext context = getServletContext();
OracleConnectionPool ocpl =
(OracleConnectionPool)context.getAttribute(CONNECTION_POOL);
OracleConnection tmpDbCon = (OracleConnection)ocpl.getConnection();
}

My colleague says that this method has its overheads since each and
everytime you fetch and release a connection. Which should be avoided.

So she tried the second method

Second Method:

Instead of fetching the connection from doPost method, she put it in the
init() method of the servlet like this

public void init()
{
ServletContext context = getServletContext();
OracleConnectionPool ocpl =
(OracleConnectionPool)context.getAttribute(CONNECTION_POOL);
OracleConnection tmpDbCon = (OracleConnection)ocpl.getConnection();

}

Now the servlet will always have a connection. This connection shall be
released only when the destroy() method of the servlet is called. She says
this is better, since you dont everytime have to get and release the
connection. You have assigned one connection to it. If many users access
this servlet, then the service method shall handle it.

Could some java gurus throw some light on this.

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

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy 

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 try distributed transaction implementation in my code. I
have got some sample code from Oracle web site and tried with that.
I deployed that code (a JSP page ) on my WebSphere Application Server 4.0,
Its just throwing an error as com.ibm.ejs.cm.JDBC2PhaseRF with no further
information.
This exceptions arises when I try to invoke the OracleXADataSource using the
JNDI look up (I replaced only these two lines from the sample that was given
in oracle site), URL :
http://download-west.oracle.com/otndoc/oracle9i/901_doc/java.901/a90211/xadi
stra.htm. Then I removed these two lines and just followed the code given in
the above URL, But now I am getting XAException with XAError Number : 65535.

I have been trying to figure this out and searched for around two days, I
did not  even get a single reference point either from IBM website or from
any other site.
But IBM site says that JTA can be used for Oracle only in CMP, I am confused
in this part. And also I read in BEA site that WebLogic provides its own
implementation to get the Transaction Manager using
TxHelper.getTransactionManager(), there is no indication about Transaction
Manager in IBM. The sample code given by oracle does not use any Transaction
Manager implementation class. Can you please help us to figure this out or
it will be of great help if you can give me some workable code which
implements Distributed Transaction.

Thank you very much in advance for your help.

Best Regards
Yogaraj



THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Inserting and Reading byte array with BLOB field in Oracle

2002-06-10 Thread Support, Cockpit (CAP, Contractor)

Hi All,
This is a page I coded to put a byte stream and read byte stream using blob
field.
Though it did not give any error it is not function.
While reading it does not read the blob field properly.
I do also know whether it has been inserted into the table.
Can somebody help me !!!


==
%@ page import=java.sql.*,DBConnect.*,oracle.sql.* %
jsp:useBean id=dbConnBean class=DBConnect.DBConnectBean scope=page/

%
Connection jdbcConn;
Statement stmt;
ResultSet rs;
oracle.sql.BLOB myblob;
try {
 jdbcConn = dbConnBean.makeConnection();
 stmt = jdbcConn.createStatement();

 //Writing data into a blob field
 byte[] data = {0,1,2,3,4,5,6,7};
 rs = stmt.executeQuery(select blob_col from lob_table);
 if(rs.next()) {
  myblob = (BLOB)rs.getObject(blob_col);
  java.io.OutputStream outstream = ((BLOB)myblob).getBinaryOutputStream();
  outstream.write(data);
  out.println(Data written successfullybr);
  for(int i = 0;i  data.length;i++) {
   out.println(data[i]+br);
  }
 }
 rs.close();

 //Reading data from a blob field
 byte[] mydata = new byte[10];
 rs = stmt.executeQuery(select blob_col from lob_table);
 if(rs.next()) {
  myblob = (BLOB)rs.getObject(blob_col);
  java.io.InputStream instream = myblob.getBinaryStream();
  int bytes_read = instream.read(mydata);
  out.println(bytes_read+Data read successfullybr);
  for(int i = 0;i  mydata.length;i++) {
   out.println(mydata[i]+br);
  }
 }
 rs.close();

 stmt.close();
 jdbcConn.close();
}
catch(Exception e) {
 out.println(e);
}
%

==

Thanks,
Srinivasan



THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: 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 sure that your ename has got valueonce again..just for cross
checking..

Happy programming...

Yogaraj

-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 1:47 PM
To: [EMAIL PROTECTED]
Subject: help


if (mode.equals(1)){
  String name=request.getParameter(ename);
  String updqry=update hrm_employee_mas set emp_empname = ' + name +
' where emp_employee_no =  + emp;
}


ename is my input text
i have some value in that but here always it gives me null in name.
why

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: 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: Daniel Jayapaul [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 2:13 PM
To: [EMAIL PROTECTED]
Subject: Check This


Hi Vaishali

Check This


if (mode.equals(1)){
  String name=request.getParameter(ename);
   if( !name.length() ==0 || !name == null) {
  String updqry=update hrm_employee_mas set emp_empname = ' + name +
' where emp_employee_no =  + emp;
 }else {
out.println(name);
}

}

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 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, all text is having name txtdesc and i was trying to get value of
txtdesc[r]
using
String d = request.getParameter(txtdesc[+r+]);

so it was not responding this statement and returning null
but now i take the values using
String[] d = request.getParameterValues(txtdesc);
and d[r] is working fine

Thanks
Vaishali
Relience Ind Ltd
A'bad




Adrian Janssen
ajanssen@TRUWORT   To:
[EMAIL PROTECTED]
HS.CO.ZA   cc:
Sent by: A  Subject: Re: can not get
parameter (It's
mailing list urgent)
about Java Server
Pages
specification and
reference
JSP-INTEREST@JAV
A.SUN.COM


05/28/02 01:18 PM
Please respond to
A mailing list
about Java Server
Pages
specification and
reference






do you have form fields named like txtdesc[1] ?

In other words like:

input type=hidden name=txtdesc[1]

This is what the code seems to be implying, if so, then reather use form
field like  txtdesc1, i.e. withou the [ and ] as these might casuer
problems.

then in your Servlet you can use:

String d = request.getParameter ( txtdesc + r );


 -Original Message-
 From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
 Sent: 28 May 2002 09:35
 To:   [EMAIL PROTECTED]
 Subject:  Re: can not get parameter (It's urgent)

 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

--
**
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.

Please report abuse to [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:

 

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,attachment;
filename=UPLOAD.csv;);
Do revert me if you anymore clarifications...

Yogaraj

-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


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



JDBC Connection!

2002-04-25 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 other page which instantiates the same connection from the pool or
will it be set to the default value by the connection pooling mechanism
itself...??? I am using Websphere Application Server4.0 which provides the
connection pooling for me.


Regards
Yogaraj


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: JDBC Connection!

2002-04-25 Thread Support, Cockpit (CAP, Contractor)

Hi friends,
I think the question How does the pooling mechanism works will unravel
much more details.
The idea is object is saved in the pool.
Still it should not carry over the instance variable values for subsequent
invocations.

Is some threading stuff involved
Is there any way to erase the values of the instance variables without
destroying the object.


Regards
Srinivasan

-Original Message-
From: It, Cockpit (CAP, Contractor) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 11:49 AM
To: [EMAIL PROTECTED]
Subject: JDBC Connection!


 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 other page which instantiates the same connection from the pool or
will it be set to the default value by the connection pooling mechanism
itself...??? I am using Websphere Application Server4.0 which provides the
connection pooling for me.


Regards
Yogaraj


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 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))
{
 window.event.keyCode=window.event.keyCode - 32;// Convert
to upcase
 //return true;
}
   }// End of function toUpper()

And please don't post question related to Javascript and any other client
side scripts here.
There are lot of sites out there which will provide you these kind of stuff.
Sorry if I am wrong...and thanx for accepting my point.

Regards
Yogaraj

-Original Message-
From: Murali Mohan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 1:30 AM
To: [EMAIL PROTECTED]
Subject: how to convert lowercase letters to higher case while entering


Hai ,

Does any one know how to convert lowercase letters to higher case while
entering only it shouldn't happen after submitting button or with
toUpperCase(0 method in Java.
Like in Oracle can we have any option to see only uppercase letters in
text field?

thanks in advance,
Murali

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 convert lowercase letters to higher case while enterin g

2002-04-18 Thread It, Cockpit (CAP, Contractor)

YOu can call that function onKeyPress of each text box...
or else if you want javascript function to convert it..
toUpperCase is available in Javascript also
Thanx
Yogaraj

-Original Message-
From: Murali Mohan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 2:20 AM
To: [EMAIL PROTECTED]
Subject: Re: how to convert lowercase letters to higher case while
entering


Hai Cockpit ,
thanks to your reply and advice. Actually I am doing a JSP project.
Still I have doubt. Where can I call the function? Means how to call it?
User
should not see lower case letters.
thanks,
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 toUpper()
{
 if ((window.event.keyCode=97)  (window.event.keyCode=122))
 {
  window.event.keyCode=window.event.keyCode - 32;// Convert
 to upcase
  //return true;
 }
}// End of function toUpper()

 And please don't post question related to Javascript and any other client
 side scripts here.
 There are lot of sites out there which will provide you these kind of
stuff.
 Sorry if I am wrong...and thanx for accepting my point.

 Regards
 Yogaraj

 -Original Message-
 From: Murali Mohan [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 18, 2001 1:30 AM
 To: [EMAIL PROTECTED]
 Subject: how to convert lowercase letters to higher case while entering

 Hai ,

 Does any one know how to convert lowercase letters to higher case while
 entering only it shouldn't happen after submitting button or with
 toUpperCase(0 method in Java.
 Like in Oracle can we have any option to see only uppercase letters in
 text field?

 thanks in advance,
 Murali


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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

 THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
 ADDRESSEE and may contain confidential and privileged information.
 If the reader of this message is not the intended recipient,
 you are notified that any dissemination, distribution or copy of this
 communication is strictly Prohibited.
 If you have received this message by error, please notify us
 immediately, return the original mail to the sender and delete the
 message from your system.


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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: 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, April 04, 2002 7:07 AM
To: [EMAIL PROTECTED]
Subject: Re: Briish summer Time formating.


I'd bet it has something to do with the fact that you're forcing it to use
the GMT Time Zone, which doesn't track Daylight Savings Time's.  You
probably just have to use the default Time Zone (if you're in the UK).
(*Chris*)

- Original Message -
From: Andy Cobley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 03, 2002 7:53 AM
Subject: [JSP-INTEREST] Briish summer Time formating.


 I do apologise to everyone for this question, but exactly how do I format
a
 time for British Summer Time ?  Currently I use:

 SimpleDateFormat formatter= new SimpleDateFormat (E hh:mm a (dd/MM));
 formatter.setTimeZone(TimeZone.getTimeZone(GMT));
 String OutString = formatter.format(DatePosted);

 I know I'm missing something but can't quite put my finger on it.
 Suggestions please ?

 Andy C


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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: 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 example Skip tag from Coldtags suite:
http://www.servletsuite.com/jsp.htm



Is there a similar command to break;

That allows you to stop the execution of a JSP.?

How can I stop the execution of a JSP before it reaches the end?

panos


--
Coldbeans Software - server-side Java (tm) components
http://www.servletsuite.com



__
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: 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 frame set you download any thing then
your download file will have the name of your parent frame name and it will
contain the html code of your parent frame.

I had the same problem previously. I have solved this problem using some
other work around.

I presume all that I have explained above were true and I will try to give
the idea that I have implemented to solve this problem.

Actually the problem is because the download file has the file name of the
name which is there in the address bar.
So, If the attachment file name is from the same file that is there in the
address bar it downloads the attachment file other wise it trys to download
the file in the address bar.

So I exploited this behaviour of browser and I tried like I called the file
downloading JSP/servlet in a serperate new window, I set the new Window's
width and height as 10,10 respectivley. So that the window won't be visible
for the user.

Then I wrote one java script method to close that window after a few
seconds. So the window will come and sit in your start menu bar, after some
time it will automatically closed by that Javascript function.


I hope this solves your problem..
Regards
Yogaraj

-Original Message-
From: ssmtech [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 31, 2002 10:44 PM
To: [EMAIL PROTECTED]
Subject: Re: File Downloading from server to local disk


Hello Vikramjit Singh,

 Thank you very much for your co-operation.
 I am experiencing a strange problem.The File which i want to Download
is
 1003-3.txt,but when i try to download this file the Dialouge box
window ask me for
 two options Open or Save to Disk  .If i go for Open ,the File
Opens Properly but
 when i try to Save To Disk the File which is getting Downloaded
is
 downloadFile.htm.

 The code is as follows.

 try
{

  File f= new File(c:/ssmtech/download/customers/1003-3.txt);

  res.setContentType(text/plain);
  res.setContentLength((int) f.length());

  res.setHeader(Content-Disposition,attachment; filename=\ + f+\);

  FileInputStream fis = new FileInputStream(f);
  ServletOutputStream os = res.getOutputStream();

  int i;
  while ((i = fis.read()) != -1)
   {
os.write(i);

   }
   fis.close();
   os.close();
   return res;
  }
 catch(Exception e)
   {
 System.out.println(the exception is...+e);
 return res;
   }
   }



 Can you please help me out with this problem.Thanks in advance.

Regards
Sameer





- Original Message -
From: Vikramjit Singh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 28, 2002 5:09 PM
Subject: Re: File Downloading from server to local disk


 hi,

 I also had the problem in downloading the file. I tried it this way.

 First, set the response's content type to APPLICATION/OCTET-STREAM. This
 value is not case-sensitive. Then, add an HTTP response header named
 Content-Disposition and give it this value:

 attachment; filename=theFileName


 Where theFileName is the default name for the file that appears on the
 File Download dialog box. This is normally the same name as the file, but
 does not need to be.

 Finally, this page demonstrates how to send a file to the user's browser:

 // fetch the file
 String filename = companySecret.txt;
 String filepath = C:\\;
 response.setContentType(
 APPLICATION/OCTET-STREAM);
 response.setHeader(Content-Disposition,
 attachment; filename=\
  + filename + \);

 java.io.FileInputStream fileInputStream =
 new java.io.FileInputStream(filepath
  + filename);
 int i;
 while ((i=fileInputStream.read()) != -1) {
 out.write(i);
 }
 fileInputStream.close();
 out.close();

 I had tried it on tomcat. Hope it helps.

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


 -Original Message-
 From: ssmtech [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 28, 2002 3:11 AM
 To: [EMAIL PROTECTED]
 Subject: File Downloading from server to local disk


 Hello All
 I have code for downloading a text file a server to the local
 system in a JSP page and not as a seperate Servlet,but it is giving me a
 IllegalStateException the snippet of the code is

  String fname1 = +user.getBusinessId();
  String fname2 = +user.getAccountId();
  String fname = fname1+-+fname2+.txt;
  response.setContentType(text/plain);
  response.setHeader(Content-Disposition,multi-part
 attachment;filename=\+fname+\;);
  ServletOutputStream 

Re: Visual Age For Java!

2002-03-17 Thread It, Cockpit (CAP, Contractor)

I have installed Visual Age for Java again.
Can anybody please tell me where should I put my servlet files so that I can
run and test it in VAJ.
I tried putting it in Default_app\web\Web-inf\Classes folder.
But its not working...:-(
Please help...
Regards
Yogaraj

-Original Message-
From: Eric Cho [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 17, 2002 11:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Visual Age For Java!


Yes,

VAJ is a little flakey sometimes.  Just reinstall again.  But make sure you
export all your classes if you're not using a repository.

If you have the chance, 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 PROTECTED]]
Sent: Saturday, March 16, 2002 12:44 AM
To: [EMAIL PROTECTED]
Subject: Visual Age For Java!


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 in browser its not coming
Anybody has any clue on whats happening in my VAJ...
Please help me I have checked in the documentation of the samebut no
clue..
Looking forward a good solution...

Or else should Reinstall it again..?

Regards
Yogaraj


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: Pop3 Mail client.

2002-03-15 Thread It, Cockpit (CAP, Contractor)

If you could give me some sample code snippet it would be of great help.
Please try to give some code..
Thanx a lot for your response..
Yogaraj

-Original Message-
From: Smita Kotnis [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 5:59 PM
To: [EMAIL PROTECTED]
Subject: Re: Pop3 Mail client.


Hi,
This you can do with using Javamail for sure. You may also wish to have
a look at taglib at following URL

http://www.servletsuite.com/servlets/poptag.htm

I did one of my projects exactly on your lines, but it was not updaing the
database is the only difference.

Hope this 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,
 and should parse the body message then should update them into the
 database.
 My database is Oracle, and my pop3 mail server is MS Exchange Server.
 I should use servlet code. And also can I read attachment file using
 Servlet
 or any java API..?

 Please help me..
 thanx in Advance..
 Yogaraj


 THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR
 THE
 ADDRESSEE and may contain confidential and privileged information.
 If the reader of this message is not the intended recipient,
 you are notified that any dissemination, distribution or copy of this
 communication is strictly Prohibited.
 If you have received this message by error, please notify us
 immediately, return the original mail to the sender and delete the
 message from your system.


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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.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 mail helped a tree grow. Know more at http://green.sify.com

Take the shortest route to success!
Click here to know how http://education.sify.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



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 in browser its not coming
Anybody has any clue on whats happening in my VAJ...
Please help me I have checked in the documentation of the samebut no
clue..
Looking forward a good solution...

Or else should Reinstall it again..?

Regards
Yogaraj


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



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 server is MS Exchange Server.
I should use servlet code. And also can I read attachment file using Servlet
or any java API..?

Please help me..
thanx in Advance..
Yogaraj


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



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 separate SMTP server
to send mails..?


Please reply...

Regards
Yogaraj


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: Setting focus in JSP

2002-02-28 Thread It, Cockpit (CAP, Contractor)

Call this function in your body load as body onLoad=FirstFocus();
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 this is client-side programming, must I do it via JavaScript?
I've tried inserting the following at the top of a JSP, without the
desired effect:

   Script LANGUAGE=JavaScript TYPE=text/javascript
  function FirstFocus() {
 document.frmEmployee.txtName.focus();
  }
   /SCRIPT

Am I really way off base?  Please let me know.  Thanks!


Henry

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



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 call a function which will close
the child window.

win=window.open('AdminFileDownload.jsp?period='+document.frmupload.hidFreq.v
alue,'DownloadWindow','location=0,scrollbars=0,toolbar=0,resizable=0,height=
410,width=410,menubar=0,status=0');
win.moveTo(1000,1000);
window.setTimeout(closeWin(),3);

My downloaded CSV file contains complete csv data, No problem at all.

Then I am uploading the same file using Oreilly file upload component to my
another directory.

When I open that file it contains complete Javascript and html code of my
admin.jsp and the HTTP request that I sent to AdminFileUpload.jsp and all
the setting I have done in my server and the cookies I have set on this
domain.

Before download I am using

response.setHeader(Cache-Control,no-store);
response.setHeader(Pragma,no-cache);
response.setDateHeader (Expires, 0);
response.setContentType(application/csv);
response.setHeader(Content-Disposition,attachment;filename=TRIGGER_UPLOA
D.csv);


Before upload also I am using

response.setHeader(Cache-Control,no-store);
response.setHeader(Pragma,no-cache);
response.setDateHeader (Expires, 0);

But I donno How and where this csv file stores all the informations...or
else is this problem with oreilly upload component.
I don't think its problem with oreilly upload component, because I tried
uploading the file in seperate window by writting seperate upload file.
But still it was able to read the value of my cookie and other thing that I
have mentioned above.

Please help me to solve this problem.

Thank you very much in advance.
Regards
Yogaraj


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: 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);

Either way it will work

Thanx
Yogaraj

-Original Message-
From: Lai, Kenny [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 11:33 AM
To: [EMAIL PROTECTED]
Subject: vector cast to int


i'm trying to do an explicit cast from vector object to int..

if you look at the below stripped out code, where tempTotal is defined, that
(int) conversion doesnt work..

ultimately i'm trying to perform a division computation w/ totalVotes.
anyone have a solution???


java.sql.ResultSet regularPoll = null;
try {
  regularPoll = db.execSQL( select votecount from sometable where
id=someid);
} catch (SQLException e) {
System.err.println(e.toString());
}
Vector pollVotecount = new Vector();
while(regularPoll.next()) {
   pollVotecount.addElement(regularPoll.getString(votecount));
}
int totalNum = 100;
int tempTotal = (int) pollVotecount.elementAt(i);
int tempNum = tempTotal / totalVotes);

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



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 FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 do I ?

2002-02-21 Thread It, Cockpit (CAP, Contractor)

Can you give me some more idea please.
Actually using URLConnection also I can request a servlet from my stand
alone Java program.
But the thing is, to call a method in a servlet I have to get an instance of
that servlet.
My doubt is How do I get that instance to call that servlet's specific
method other than service/get/post methods.
Because If I send a request to a servlet by default you can call get or post
or service method(if it is generic servlet).
Please clarify.
And thanx for you response.Yours was the only response that I had got.:-(
Regards
Yogaraj 


-Original Message-
From: Sami J. Casab. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 11:45 PM
To: [EMAIL PROTECTED]
Subject: Re: How do I ?


you can use geturl method. With this method you can call a servlet, jsp or
an http document in general form your standalone application. I hope this
help 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 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.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this 
communication is strictly Prohibited. 
If you have received this message by error, please notify us 
immediately, return the original mail to the sender and delete the 
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 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(request,response);
}

This will solve your problem. Then your servlet will respond for both get
and post methods...

Yogaraj

-Original Message-
From: Singh, Ajit [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 10:21 AM
To: [EMAIL PROTECTED]
Subject: How to be sure


HI There;

I am using first time war file,with Tomcat 4.0,  my confusion is
when i say startup.bat on command line, there are catalina console  comes up
and few messages are there,  I want to deploy simple.war given in the
webapp  directory. how can i be sure that it (simple.war has been
deployed) as per tomcat documnetation all the .war files in the webapp
directory will be deployed automatically in the tomcat.
Do I need to do some entry in the server.xml in the conf directory.
If i try to give URL on the browser, :

http://localhost:8080/simple/receiver

Apache Tomcat/4.0.1 - HTTP Status 405 - HTTP method GET is not supported by
this URL

type Status report
message HTTP method GET is not supported by this URL
description The specified HTTP method is not allowed for the requested
resource (HTTP method GET is not supported by this URL).


PLease do help me if some body has done this.

Thanks
Ajit
Have a nice day




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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



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 Application server.

Thanx in advance..
Yogaraj


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



How 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.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



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 with the download filename as
upload.csv.

But the same file when I put it in frames it downloads the html content of
the main file which is in the address bar.

Meaning say if my download file's name is download.jsp and I am calling it
directly it downloads the upload.csv file.

When I put the same file in frames say main.jsp contains header.jsp and
datascreen.jsp, onclick of a button in the datascreen.jsp I will call my
filedownload.jsp file.

When I click the button it downloads html content of the main.jsp instead of
the upload.csv on the fly.

I tried, on click of the button I called the file in open in new window but
it downloads upload.csv correct but the window stays back, I should close
that window once the download is over. Then I gave win.close() in the next
line, but it closed the window before the request was processed.

Then I gave the size of the window to move it from the visibility of the
user but no use it throws some exception .

Now my requirement is this, can any one tell me how do I close the window
once my download is over.

Hope my explanation is clear, if you need some more details please point
back your fingers to me.

Waiting ...

Thanx in Advance
Yogaraj


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



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 first out.println contains heading but before the heading there are four
new lines in the downloaded CSV file.
How do I remove that empty lines.
Any clue...?
Thanx in advance...
Yogaraj


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: 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 using JSP!


Em 18 Feb 2002, A mailing list about Java Server Pages specification and
reference escreveu:

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 first out.println contains heading but before the heading there are four
new lines in the downloaded CSV file.
How do I remove that empty lines.
Any clue...?
Thanx in advance...
Yogaraj

at any
%
%
you are in reality adding an
out.print(\n);
so instead, you must use
%%
this should do the trick!

_
Oi! Você quer um iG-mail gratuito?
Então clique aqui: http://registro.ig.com.br/censo/igmail

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this 
communication is strictly Prohibited. 
If you have received this message by error, please notify us 
immediately, return the original mail to the sender and delete the 
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: Websphere Application Server V4.0

2002-02-17 Thread It, Cockpit (CAP, Contractor)

I did not get you..! Can you throw your doubt strongly.

-Original Message-
From: Maurice M [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 16, 2002 2:49 PM
To: [EMAIL PROTECTED]
Subject: Re: Websphere Application Server V4.0


Dude your ear fell off?

- Original Message -
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
 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), When I try to add some more files on the
installed
 EAR, Its not allowing me to do so, If some of the files are opened by any
of
 the developers or even its not allowing me to save the EAR file through
AAT
 if the application is opened in any of the browser.
 Its not possible to close all the files and browsers and then save my EAR
 file. If I try to save my EAR through AAT and some of the file was opened
by
 that time it throws an error saving Save failure original content was not
 replaced some thing.
 Can any one tell me How do I add files to the application EAR which was
 already installed and running on the server.
 How do I manage the installed applications..?


 Expecting your replies...

 Thanx in Advance
 Regards
 Yogaraj


 THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
 ADDRESSEE and may contain confidential and privileged information.
 If the reader of this message is not the intended recipient,
 you are notified that any dissemination, distribution or copy of this
 communication is strictly Prohibited.
 If you have received this message by error, please notify us
 immediately, return the original mail to the sender and delete the
 message from your system.


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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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: DDL using JSP !

2002-02-15 Thread It, Cockpit (CAP, Contractor)

I am using Oracle 8i only.
Can you please through some more light on the same.
Thanx in advance
Regards
Yogaraj

-Original Message-
From: Gruenewald, DP ITS, SMR, TR, extern
[mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 1:57 PM
To: [EMAIL PROTECTED]
Subject: AW: DDL using JSP !
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 2002 07:04
An: [EMAIL PROTECTED]
Betreff: DDL using JSP !

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 MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this 
communication is strictly Prohibited. 
If you have received this message by error, please notify us 
immediately, return the original mail to the sender and delete the 
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



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), When I try to add some more files on the installed
EAR, Its not allowing me to do so, If some of the files are opened by any of
the developers or even its not allowing me to save the EAR file through AAT
if the application is opened in any of the browser.
Its not possible to close all the files and browsers and then save my EAR
file. If I try to save my EAR through AAT and some of the file was opened by
that time it throws an error saving Save failure original content was not
replaced some thing.
Can any one tell me How do I add files to the application EAR which was
already installed and running on the server.
How do I manage the installed applications..?


Expecting your replies...

Thanx in Advance
Regards
Yogaraj


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Urgent 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 rownum100 and then for next time put the condition as rownum100 and
rownum200
you will get it solved.
Thanx
Yogaraj

-Original Message-
From: JOSHY MON M C [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 2:04 PM
To: [EMAIL PROTECTED]
Subject: Urgent Help needed !


Hi All,
Can Anybody help ?

I have a Oracle 9i table named Contacts which contain about 1 records. I
need to show them in a JSP page ordered by last name or first name or in any
other order (as per user request). But only 100 records should be shown at a
time. User can click Previous or Next links to see more records ( as in
Google/Yahoo search )

I have done this by creating a temporary table. Records are sorted and kept
in the temporary table . But this seems to be a very slow and inefficient
method. ( Each request involves a select from the original table, creation
of tempory table, insertion into temp table and finally select from temp
table. ) Can anybody suggest a better approach ?

Thanks
Joshy

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.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 E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



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 MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



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 returning any recorts when I try the same query through
stmt.executeQuery() method.

My query is

select dc_date from dc_dim_time_master where to_date(dc_date,'DD-MON-YY')
between to_date(sysdate-2,'DD-MON-YY') and
to_date(sysdate,'DD-MON-YY');

I tried the same thing in Websphere application server V4.0 also. BUt no
clue.

Can somebody through some light on the same.

Regards
Yogaraj


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com