RE: Java/JSP/Servlet Programmer [off topic]

2003-10-17 Thread Brendle, Douglas A.
Have you tried using ResultetMetaData to get row count BEFORE you 
process the Resultset?

-Original Message-
From: epyonne [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:44 PM
To: Tomcat Users List
Subject: Re: Java/JSP/Servlet Programmer [off topic]


Pardon me that it is off topics

Speaking about re-usable ResultSet, I am having a little problem with a
ResultSet and I cannot find the solution.

I have a routine in my servlet to call an Oracle stored procedure, using
CallableStatement.  Everything works fine.  Then, I want to get the row
count of the ResultSet.  I can do that by using the rs.last() method.
However, that requires the ResultSet to be scrollable.  So I change the code
accordingly.  After that, I keep getting the error message of:
SQLException: Invalid operation of forward only resultset: last

I can't figure out why.  I thought I have defined the ResultSet to be
scrollable already.  The following is the snippets:
//code begins--
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
String url = jdbc:oracle:thin:@..;
conn = DriverManager.getConnection(url,);
String plsql = begin my stored procedure(?,?,?); end;;
CallableStatement cs = conn.prepareCall(plsql,
  ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
cs.registerOutParameter(1, OracleTypes.CURSOR);
cs.setString(2, InputParam1);
cs.registerOutParameter(3, Types.INTEGER);
cs.execute();
ResultSet rs = null;
rs = (ResultSet)cs.getObject(1);
rs.last();
//code ends

Any help will be very much appreciated.



- Original Message -
From: Mike Curwen [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 03:12 PM
Subject: RE: Java/JSP/Servlet Programmer


 I would send y'all my resume, but ever since the humiliation of the
 re-usable ResultSet, I'm sure I'm one of those that can't walk yet.   ;)



  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 3:08 PM
  To: Tomcat Users List
  Subject: RE: Java/JSP/Servlet Programmer
 
 
  I agree. I'm getting funds to hire a new person and I dread it. I've
  screened a lot of people on the last time I hired someone an
  still got a
  lemon. Lot's of people talk to talk, but can't even walk yet.
 
 
  Thank You,
 
  Justin A. Stanczak
  Web Manager
  Shake Learning Resource Center
  Vincennes University
  (812)888-5813
 
 
 
 
  Hart, Justin [EMAIL PROTECTED]
  10/17/2003 03:00 PM
  Please respond to Tomcat Users List
 
 
  To: Tomcat Users List [EMAIL PROTECTED]
  cc:
  Subject:RE: Java/JSP/Servlet Programmer
 
 
  That's what I've found.  The market is full of tech workers, but that
  doesn't mean that they're a programmer, or as familiar with
  technology X
  (for position Y) as they should be.  I went to a job fair a
  couple years
  ago for 4 job opennings, 2 for programmers.  2 for techs.
  1000 people
  showed up, and I spoke with only 4-5 that I really thought
  qualified for
  the programming jobs or had credentials that showed that they
  qualified
  for the job.
 
  -Original Message-
  From: Ruben Gamez [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 3:57 PM
  To: Tomcat Users List
  Subject: RE: Java/JSP/Servlet Programmer
 
 
  I would think so, but it's true.  I've gotten several people
  that interview well, but none that can pass a couple of
  simple tests (I consider them simple).
 
  -Original Message-
  From: epyonne [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 3:55 PM
  To: Tomcat Users List
  Subject: Re: Java/JSP/Servlet Programmer
 
  Cannot find anyone?!?!?!  It is rather hard to believe based
  on current job market.
 
 
  - Original Message -
  From: Ruben Gamez [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 02:33 PM
  Subject: Java/JSP/Servlet Programmer
 
 
  I'm looking for an experienced JSP/Servlet programmer located
  in our area.  We're located in West Palm Beach, FL.  We've
  tried posting the Job on Monster, and looking for candidates
  on there, but still cannot find someone that can do the job.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




RE: Java/JSP/Servlet Programmer

2003-10-17 Thread Brendle, Douglas A.
Hmmm Direct from the Servlet API

To implement this interface, you can write a generic servlet that extends 
javax.servlet.GenericServlet or an HTTP servlet that extends 
javax.servlet.http.HttpServlet. 

-Original Message-
From: mike jackson [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:46 PM
To: 'Tomcat Users List'
Subject: RE: Java/JSP/Servlet Programmer


Hmm, I could see where people would have difficulty.  Since the answers are
there's 5 methods and nothing (servlet is an interface).

--mikej
-=--
mike jackson
[EMAIL PROTECTED]

 -Original Message-
 From: Ruben Gamez [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 17, 2003 12:33 PM
 To: Tomcat Users List
 Subject: RE: Java/JSP/Servlet Programmer
 
 Ok... here's two questions...
 
 1. Off the top of your head, what two methods are required in a Servlet?
 What two parameters do they take?
 
 2. What does a Servlet extend?
 
 
 -Original Message-
 From: Mike Curwen [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 17, 2003 4:30 PM
 To: 'Tomcat Users List'
 Subject: RE: Java/JSP/Servlet Programmer
 
 As off-topic as it is, I'm sure lots of us are *real* curious by now
 what an example question would be on your 'simple test'.  :)
 
 
 
  -Original Message-
  From: Ruben Gamez [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 3:23 PM
  To: Tomcat Users List
  Subject: RE: Java/JSP/Servlet Programmer
 
 
  Yes, well, I'm only asking for 1 1/2+ years experience in JSP
   Servlets and I'm still having trouble.  I was asking for
  ColdFusion as well, but I've given up on that.  I'll just
  have to train the new developer on CF later on.
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 4:15 PM
  To: Tomcat Users List
  Subject: Re: Java/JSP/Servlet Programmer
 
  I agree. I worked for a place that listed C++ in all there
  job listings,
 
  but there was not one line of C in the whole company. I asked who was
  programming C, but they didn't know what I was talking about. LOL
 
 
  Thank You,
 
  Justin A. Stanczak
  Web Manager
  Shake Learning Resource Center
  Vincennes University
  (812)888-5813
 
 
 
 
  John B. Moore [EMAIL PROTECTED]
  10/17/2003 03:10 PM
  Please respond to Tomcat Users List
 
 
  To: Tomcat Users List [EMAIL PROTECTED]
  cc:
  Subject:Re: Java/JSP/Servlet Programmer
 
 
  Yeah, and those of us that do have the credentials get lost in the
  forest.  (Not to mention the observation that many of these job
  postings want the person to have x years of experience in
  6-7 different
 
  areas, mostly unrelated and the total experience years exceeds most
  normal human's productive lifespans, even accounting for reasonable
  overlap...G)
 
  John..
 
  Hart, Justin wrote:
 
  That's what I've found.  The market is full of tech workers, but that
  doesn't mean that they're a programmer, or as familiar with
  technology X
 
  (for position Y) as they should be.  I went to a job fair a
  couple years
 
  ago for 4 job opennings, 2 for programmers.  2 for techs.
  1000 people
  showed up, and I spoke with only 4-5 that I really thought
  qualified for
 
  the programming jobs or had credentials that showed that they
  qualified
  for the job.
  
  -Original Message-
  From: Ruben Gamez [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 3:57 PM
  To: Tomcat Users List
  Subject: RE: Java/JSP/Servlet Programmer
  
  
  I would think so, but it's true.  I've gotten several people that
  interview well, but none that can pass a couple of simple tests (I
  consider them simple).
  
  -Original Message-
  From: epyonne [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 3:55 PM
  To: Tomcat Users List
  Subject: Re: Java/JSP/Servlet Programmer
  
  Cannot find anyone?!?!?!  It is rather hard to believe based
  on current
  job
  market.
  
  
  - Original Message -
  From: Ruben Gamez [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 02:33 PM
  Subject: Java/JSP/Servlet Programmer
  
  
  I'm looking for an experienced JSP/Servlet programmer located in our
  area.  We're located in West Palm Beach, FL.  We've tried posting the
  Job on Monster, and looking for candidates on there, but still cannot
  find someone that can do the job.
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
 
 
  

RE: Java/JSP/Servlet Programmer [off topic]

2003-10-17 Thread Brendle, Douglas A.
Also OT...

I've an older implementation of Apache ( i.e. not Tomcat and pre-webservice ).
I am trying to send data from my servlet to co-workers webservice.
Using the java.net.URL package I am opening a connection to his page
and using an OutputStream and OutputStreamWriter to write my data to his
page and an InputStream to read his reply. We are both using ntlm 
authentication for our apps but I am receiving a 401 error when reading
from the InputStream. Seems it's either losing the authenticated user or
user a different account. Any ideas?

-Original Message-
From: epyonne [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:44 PM
To: Tomcat Users List
Subject: Re: Java/JSP/Servlet Programmer [off topic]


Pardon me that it is off topics

Speaking about re-usable ResultSet, I am having a little problem with a
ResultSet and I cannot find the solution.

I have a routine in my servlet to call an Oracle stored procedure, using
CallableStatement.  Everything works fine.  Then, I want to get the row
count of the ResultSet.  I can do that by using the rs.last() method.
However, that requires the ResultSet to be scrollable.  So I change the code
accordingly.  After that, I keep getting the error message of:
SQLException: Invalid operation of forward only resultset: last

I can't figure out why.  I thought I have defined the ResultSet to be
scrollable already.  The following is the snippets:
//code begins--
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
String url = jdbc:oracle:thin:@..;
conn = DriverManager.getConnection(url,);
String plsql = begin my stored procedure(?,?,?); end;;
CallableStatement cs = conn.prepareCall(plsql,
  ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
cs.registerOutParameter(1, OracleTypes.CURSOR);
cs.setString(2, InputParam1);
cs.registerOutParameter(3, Types.INTEGER);
cs.execute();
ResultSet rs = null;
rs = (ResultSet)cs.getObject(1);
rs.last();
//code ends

Any help will be very much appreciated.



- Original Message -
From: Mike Curwen [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 03:12 PM
Subject: RE: Java/JSP/Servlet Programmer


 I would send y'all my resume, but ever since the humiliation of the
 re-usable ResultSet, I'm sure I'm one of those that can't walk yet.   ;)



  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 3:08 PM
  To: Tomcat Users List
  Subject: RE: Java/JSP/Servlet Programmer
 
 
  I agree. I'm getting funds to hire a new person and I dread it. I've
  screened a lot of people on the last time I hired someone an
  still got a
  lemon. Lot's of people talk to talk, but can't even walk yet.
 
 
  Thank You,
 
  Justin A. Stanczak
  Web Manager
  Shake Learning Resource Center
  Vincennes University
  (812)888-5813
 
 
 
 
  Hart, Justin [EMAIL PROTECTED]
  10/17/2003 03:00 PM
  Please respond to Tomcat Users List
 
 
  To: Tomcat Users List [EMAIL PROTECTED]
  cc:
  Subject:RE: Java/JSP/Servlet Programmer
 
 
  That's what I've found.  The market is full of tech workers, but that
  doesn't mean that they're a programmer, or as familiar with
  technology X
  (for position Y) as they should be.  I went to a job fair a
  couple years
  ago for 4 job opennings, 2 for programmers.  2 for techs.
  1000 people
  showed up, and I spoke with only 4-5 that I really thought
  qualified for
  the programming jobs or had credentials that showed that they
  qualified
  for the job.
 
  -Original Message-
  From: Ruben Gamez [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 3:57 PM
  To: Tomcat Users List
  Subject: RE: Java/JSP/Servlet Programmer
 
 
  I would think so, but it's true.  I've gotten several people
  that interview well, but none that can pass a couple of
  simple tests (I consider them simple).
 
  -Original Message-
  From: epyonne [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 3:55 PM
  To: Tomcat Users List
  Subject: Re: Java/JSP/Servlet Programmer
 
  Cannot find anyone?!?!?!  It is rather hard to believe based
  on current job market.
 
 
  - Original Message -
  From: Ruben Gamez [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 02:33 PM
  Subject: Java/JSP/Servlet Programmer
 
 
  I'm looking for an experienced JSP/Servlet programmer located
  in our area.  We're located in West Palm Beach, FL.  We've
  tried posting the Job on Monster, and looking for candidates
  on there, but still cannot find someone that can do the job.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, 

RE: Java/JSP/Servlet Programmer [off topic]

2003-10-17 Thread Brendle, Douglas A.
My mistake. After reading Justin's reply I looked back at my code.
I am using getRow from ResultSet.

-Original Message-
From: epyonne [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:54 PM
To: Tomcat Users List
Subject: Re: Java/JSP/Servlet Programmer [off topic]


Thanks for the reply.  I searched for ResultSetMetaData in JavaDoc, and
there is no method to get row count.  It only has column count.  Did I miss
something?  Please explain.

Thank you very much.


- Original Message -
From: Brendle, Douglas A. [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 03:45 PM
Subject: RE: Java/JSP/Servlet Programmer [off topic]


Have you tried using ResultetMetaData to get row count BEFORE you
process the Resultset?

-Original Message-
From: epyonne [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:44 PM
To: Tomcat Users List
Subject: Re: Java/JSP/Servlet Programmer [off topic]


Pardon me that it is off topics

Speaking about re-usable ResultSet, I am having a little problem with a
ResultSet and I cannot find the solution.

I have a routine in my servlet to call an Oracle stored procedure, using
CallableStatement.  Everything works fine.  Then, I want to get the row
count of the ResultSet.  I can do that by using the rs.last() method.
However, that requires the ResultSet to be scrollable.  So I change the code
accordingly.  After that, I keep getting the error message of:
SQLException: Invalid operation of forward only resultset: last

I can't figure out why.  I thought I have defined the ResultSet to be
scrollable already.  The following is the snippets:
//code begins--
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
String url = jdbc:oracle:thin:@..;
conn = DriverManager.getConnection(url,);
String plsql = begin my stored procedure(?,?,?); end;;
CallableStatement cs = conn.prepareCall(plsql,
  ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
cs.registerOutParameter(1, OracleTypes.CURSOR);
cs.setString(2, InputParam1);
cs.registerOutParameter(3, Types.INTEGER);
cs.execute();
ResultSet rs = null;
rs = (ResultSet)cs.getObject(1);
rs.last();
//code ends

Any help will be very much appreciated.



- Original Message -
From: Mike Curwen [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 03:12 PM
Subject: RE: Java/JSP/Servlet Programmer


 I would send y'all my resume, but ever since the humiliation of the
 re-usable ResultSet, I'm sure I'm one of those that can't walk yet.   ;)



  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 3:08 PM
  To: Tomcat Users List
  Subject: RE: Java/JSP/Servlet Programmer
 
 
  I agree. I'm getting funds to hire a new person and I dread it. I've
  screened a lot of people on the last time I hired someone an
  still got a
  lemon. Lot's of people talk to talk, but can't even walk yet.
 
 
  Thank You,
 
  Justin A. Stanczak
  Web Manager
  Shake Learning Resource Center
  Vincennes University
  (812)888-5813
 
 
 
 
  Hart, Justin [EMAIL PROTECTED]
  10/17/2003 03:00 PM
  Please respond to Tomcat Users List
 
 
  To: Tomcat Users List [EMAIL PROTECTED]
  cc:
  Subject:RE: Java/JSP/Servlet Programmer
 
 
  That's what I've found.  The market is full of tech workers, but that
  doesn't mean that they're a programmer, or as familiar with
  technology X
  (for position Y) as they should be.  I went to a job fair a
  couple years
  ago for 4 job opennings, 2 for programmers.  2 for techs.
  1000 people
  showed up, and I spoke with only 4-5 that I really thought
  qualified for
  the programming jobs or had credentials that showed that they
  qualified
  for the job.
 
  -Original Message-
  From: Ruben Gamez [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 3:57 PM
  To: Tomcat Users List
  Subject: RE: Java/JSP/Servlet Programmer
 
 
  I would think so, but it's true.  I've gotten several people
  that interview well, but none that can pass a couple of
  simple tests (I consider them simple).
 
  -Original Message-
  From: epyonne [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 3:55 PM
  To: Tomcat Users List
  Subject: Re: Java/JSP/Servlet Programmer
 
  Cannot find anyone?!?!?!  It is rather hard to believe based
  on current job market.
 
 
  - Original Message -
  From: Ruben Gamez [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, October 17, 2003 02:33 PM
  Subject: Java/JSP/Servlet Programmer
 
 
  I'm looking for an experienced JSP/Servlet programmer located
  in our area.  We're located in West Palm Beach, FL.  We've
  tried posting the Job on Monster, and looking for candidates
  on there, but still cannot find someone that can do the job

RE: [SPAM:56%] Using File class in Tomcat

2003-06-12 Thread Brendle, Douglas A.

don't use the mapped drive name. Use it's unc name.
If your mapped drive is G:\ and it's mapped to 
someDir on someServer, refer to it as \\someServer\someDir.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 10:56 AM
To: [EMAIL PROTECTED]
Subject: [SPAM:56%] Using File class in Tomcat


Hi,

I am using the java.io.File class to get a list of all the files in a
directory.  If the directory I am trying to read is a local one, all is fine
and good.  However, if it is a mapped drive (I am using Win2k) then the
class can not see it.  I ran the same code reading the mapped drive in
command window (java myclass) and it is fine.

Is there a setting in Tomcat that I have to set so that I can read a mapped
drive?  

I am using Tc 4.0.2

Thanks.


Bao-Ha Dam Bui
[EMAIL PROTECTED]
St. Jude Medical, Inc
 



* 
This communication may contain information that is proprietary, privileged,
confidential or legally exempt from disclosure.  If you are not a named
addressee, you are notified that you are not authorized to read, print,
retain, copy or disseminate this communication without the consent of the
sender and that doing so may be unlawful. If you have received this
communication in error, please notify the sender via return e-mail and
delete it from your computer. Thank you. St. Jude Medical, Inc. 
*

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Loading Different XML Parser

2003-06-06 Thread Brendle, Douglas A.
Hi all,
 
I'm using the JDOM api for xml parsing. Trouble is,
Tomcat still tries Xerces no matter where I install
the jdom.jar file. I've put it in /shared, /common and
/webapp but no luck. Any ideas?
 
 


Tomcat Not Using JDOM API

2003-06-06 Thread Brendle, Douglas A.
I'm trying to port my applications from JServ to Tomcat.
The servlets making API calls to JDOM in Jserv work fine.
But in Tomcat, the JDOM calls generate a NoSuchMethod error.
How can I get Tomcat to recognize the JDOM API?
I've tried copying the .jar file to /common/lib, /common/endorsed,
/shared/lib and /myWebApp/WEB-INF/lib and no luck.
 
I put in some debug code to print the 
System.getProperty(javax.xml.parsers.SAXParserFactory)
and it is null. Works fine in Jserv.
Any ideas?