Re: Problems to send arrays to my DB

2001-09-21 Thread Saurabh Shukla
1) Read About Array Discriptors. You can go to .oradoc.com , they have some good documentation on this. HTH, Shuklix -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Vikramjit Singh Sent: Saturday, Sep

Re: query image to my database and showing in jsp

2001-09-21 Thread Vikramjit Singh
hi christian, for inserting pictures in Oracle database you have to use PreparedStatements. How i have done is first i have executed the query in that i have to write EMPTY_BLOB(). and then using PreparedStatements you have to update the record. the picture has to be converted into an InputStream.

Re: How to set the PageSize in JSP ???

2001-09-21 Thread Vikramjit Singh
hi, i think that its not a good idea to store your vector into a session. Since vectors are already very heavy and storing them in the session will only hamper your performance. i think that its better to fetch the records from the database in which only the count of the number of records changes

Re: Problems to send arrays to my DB

2001-09-21 Thread Vikramjit Singh
hi christian, If i get you right you must be trying to insert records into nested table. if you are using arrays you must be using classes12.zip or 816classes12b.zip drivers provided by Oracle. In the documentation if you go through you have to insert an array you have to write a class which imple

Re: JBoss

2001-09-21 Thread Vikramjit Singh
hi wilhelm, there are some good articles on www.theserverside.com you can check this one out http://www.theserverside.com/reviews/thread.jsp?thread_id=6215. Vikramjit singh, eAngel Team, Global Tele-systems Ltd. Ph. 7612929-3140 -Original Message- From: Wilhelm Colln [mailto:[EMAIL PRO

Tomcat Beans not avaliable when running as NTService

2001-09-21 Thread SriHari
Hai All I have installed Tomcat as nt service I am able to run the examples jsp files and jsp files in my Project My Problem is that i am unable to access my java Beans which i am calling in the Project jsp's when i am running Tomcat as a NT Service The same code Works Fine when Tomcat is started

Re: Gaining a Position

2001-09-21 Thread cupid1
Title: Re: Gaining a Position Joel,   You have inspiring story. You might be able to answer a few questions that I have about Java certification. I never tried exam because my biggest problem is understanding and using shift operators. How important are shift operators for passing the exam?

jdbc error.

2001-09-21 Thread ivy chen
Hi,all I connected MSsql server with type4 jdbc driver. I want to execute two update statement in a transaction.the code as below: .. dbCon.setAutoCommit(false); strSql="update ms_empType set type_desc=? ,salary_type=?,prob_after=?,prob_unit=?,"+ "fix

Tomcat Catalina Backward Compatibility

2001-09-21 Thread Neeraj Vora
I have a web-application I developed using Tomcat-3.2.3. I dropped the WAR file into Tomcat-4.0 to try it out. I'm getting the following error. The class it is complaining about is present in the WEB-INF/classes folder, but I don't understand why it is looking for it in the package org.apache.jsp.

Re: tomcat error 500

2001-09-21 Thread horwat
Well, take a look at your stack trace. It shows you that a NullPointerException occured at line 17 of "querry.java". Now, if you look at the java api docs in: http://java.sun.com/products/jdk/1.2/docs/api/index.html and lookup NullPointerException. There you will find information on why the exc

Re: question on tomcat

2001-09-21 Thread horwat
The error occurs when a socket connection between a server and client is broken. A browser, for instance, establishes a connection the the server and it remains open until the server sends a response. If the browser for whatever reason closes the connection before the server response is complete,

Re: Lang stack overflow

2001-09-21 Thread horwat
The java stringTokenizer is recursive. So if you are parsing an exceptionally long string and you are unfortunate your stack will grow until you encounter a separator. The StackOverFlowError occurs because your stack has grown too big as a result of the string tokenizer recursion. You might want t

Re: how to access servlet from the jsp page

2001-09-21 Thread Steve Bang
The upcoming JSP technology Hans is referring to is called JavaServer Faces (not JavaFaces). What little information is available can be found at: http://jcp.org/jsr/detail/127.jsp. Also, I noticed in a press release about Web Services Pack (http://java.sun.com/pr/2001/06/pr010604-03.html), it s

Re: how to access servlet from the jsp page

2001-09-21 Thread Hans Bergsten
"David Gee (MAYA Design)" wrote: > > yeah, it can be done with ASP because COM objects are put into the HTML > document using the tag, which is part of the DOM and can be > manipulated as such. JavaBeans never end up as objects in the rendered HTML > page, the tag is processed on the server and

Re: how to access servlet from the jsp page

2001-09-21 Thread David Gee (MAYA Design)
> yeah, it can be done with ASP because COM objects are put into the HTML > document using the tag, which is part of the DOM and can be > manipulated as such. JavaBeans never end up as objects in the rendered HTML > page, the tag is processed on the server and ripped out of the > rendered file.

Re: how to access servlet from the jsp page

2001-09-21 Thread David Gee (MAYA Design)
yeah, it can be done with ASP because COM objects are put into the HTML document using the tag, which is part of the DOM and can be manipulated as such. JavaBeans never end up as objects in the rendered HTML page, the tag is processed on the server and ripped out of the rendered file. View sourc

Re: Null Pointer handling in bean

2001-09-21 Thread Scott Watson
Title: Null Pointer handling in bean I am a newbie in this domain but perhaps a fresh set of eyes will help..   I believe you can set up an error page and in this error page you can check if you have a null pointer exception and if so you could forward the user to the page of your choice. 

Re: Null Pointer handling in bean

2001-09-21 Thread Richard Yee
Peter, You can either use the errorPage attribute in the page directive or use put the code in a try block and forward or redirect to the other page in the catch block. -Richard At 01:36 PM 9/21/01 -0500, you wrote: >I have a dilemma. The application I'm working on depends on a poller >mechani

Re: how to access servlet from the jsp page

2001-09-21 Thread Richard Yee
DAVID, (In the last email I confused your name w/ one from another email. Sorry) I'm not that familiar with using the display= in a div tag. Perhaps you could elaborate more on how it works. One question, can your ideal solution be done in ASP now? What you described seems to be able to be don

Null Pointer handling in bean

2001-09-21 Thread Peter Claesson (EUS)
Title: Null Pointer handling in bean I have a dilemma. The application I'm working on depends on a poller mechanism being active on the client browser. This works fine, even the timeout on the server for detecting if the poller stops. The problem arises when the client hits the Browser Stop b

Re: How to set the PageSize in JSP ???

2001-09-21 Thread Christopher K. St. John
Gustavo Saramago wrote: > > Common issues like record pagination and connection > pooling are frequent. > > As a result, we see many third party classes and tag > libraries to address those issues and try to make our > lives easier. This solves some problems an give us > others: the right choices.

Re: query image to my database and showing in jsp

2001-09-21 Thread Richard Yee
Christian, Just use an IMG tag in the JSP and set the src parameter to be the URL of a servlet that can accesses the DB and returns the image. -Richard At 12:45 PM 9/21/01 -0500, you wrote: >Hi All >i want to store some pics in my database using BLOB but i dont know how can >i do with java, besi

Re: how to access servlet from the jsp page

2001-09-21 Thread David Gee (MAYA Design)
> Dick, hey, there's no need for name-calling ;p > I can't imagine anyone ever trying to tie an event such as a rollover to a > server-side class. The network latency would make the UI not very > useable. What is supposed to happen on the UI when the rollover or click > event happens? actuall

Re: Problems to send arrays to my DB

2001-09-21 Thread Richard Yee
Christian, You might find more information by searching the JDBC-Interest archives. Here's a link to a post in the servlet-interest group that also might answer your question. http://archives.java.sun.com/cgi-bin/wa?S2=servlet-interest&q=Oracle+Array&s=&f=&a=&b= Regards, Richard At 12:43 PM 9

query image to my database and showing in jsp

2001-09-21 Thread Christian Hamann L
Hi All i want to store some pics in my database using BLOB but i dont know how can i do with java, besides how can i get from my database and show them with jsp.. have you done this? atte Christian Hamann L. === To unsubscrib

Re: Include JSP file to show form

2001-09-21 Thread Richard Yee
Isak, You can also just import a Java class and invoke methods on it. Depending on your application, the JavaBean solution just might be easier. -Richard At 08:49 PM 9/19/01 +0700, you wrote: >Thank's for your input , I will try it.. > >but ... is there another way? >or the solution only with j

Re: Is there anyway to disable the getForcus and inout for textbo x entry?

2001-09-21 Thread Peter Claesson (EUS)
Title: RE: Is there anyway to disable the getForcus and inout for textbox entry? Use javascript to accomplish this. For example, removes focus from the text box as soon as the user tries to put the cursor there. /Peter -Original Message- From: Richard Yee [mailto:[EMAIL PROTEC

Problems to send arrays to my DB

2001-09-21 Thread Christian Hamann L
Hi All I have my web page which contain manyinformation to fill, but i would like save this information in an array and this array send to my Db to work it with my store procedure, but i dont know how can i send array to my db with java.. My database is Oracle, so it use Types like Record o Table,

Re: OFF TOPIC: Terrorist attacks

2001-09-21 Thread Nitin Tomer
will somebody please UNSUBSCRIBE this guy. - Original Message - From: "cupid1" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 19, 2001 11:52 PM Subject: Re: OFF TOPIC: Terrorist attacks > Mike, > same to u buddy! > > - Original Message - > From: "Mike Vie

Re: how to access servlet from the jsp page

2001-09-21 Thread Richard Yee
Dick, I can't imagine anyone ever trying to tie an event such as a rollover to a server-side class. The network latency would make the UI not very useable. What is supposed to happen on the UI when the rollover or click event happens? -Richard At 11:46 AM 9/21/01 -0400, you wrote: > > Hi Dav

Re: Is there anyway to disable the getForcus and inout for textbox entry?

2001-09-21 Thread Richard Yee
Dick, You can use the 'DISABLED' modifier for the input tag. ex. It works on IE 5.5 and Netscape 6.0. I don't think it works on earlier versions of Netscape. As for the other browsers, I don't know. Regards, Richard At 05:43 PM 9/21/01 +0800, you wrote: >Dear all, > >I create a entry form

Re: how to access servlet from the jsp page

2001-09-21 Thread Haseltine, Celeste
David, I've never tried to tie a user event on the browser side back to an object on the server. To my knowledge, JS runs only on the browser side, and Java class Beans are resident on the server side. I don't know how you would capture an event generated on the browser side, pass it back to th

Re: how to access servlet from the jsp page

2001-09-21 Thread David Gee (MAYA Design)
yeah, if it comes down to having to use applets, i'd rather just create an IFRAME on a page and fake it. The reason I want to be able to do flashy stuff like this is that I finally have the opportunity to work with a big client who wants a cutting-edge site - DOM compliant only browsers, no Netsca

Re: how to access servlet from the jsp page

2001-09-21 Thread Paul Foxton
Ah, I see - sorry for giving you a lesson you didn't need ;¬) The last time I did anything like tying events to user input I was using ActionListeners in applets. probably be too heavyweight a front end tho if you're after tying beans to javascript events. > -Original Message- > From: Da

JBoss

2001-09-21 Thread Wilhelm Colln
Any experiences with JBoss. I want to decide my development platform and just receive some info. How about Orion ? Wilhelm === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [

Re: how to access servlet from the jsp page

2001-09-21 Thread David Gee (MAYA Design)
> Hi David, > > To use something similar to VBScript/COM objects in java you would use > JSP/JavaBeans. I know, I'm already (successfully) doing that. My problem is tying Javabean method calls into user events (clicks, rollovers, etc). This is possible with VBScript/COM, but I haven't been able t

Re: how to access servlet from the jsp page

2001-09-21 Thread Paul Foxton
Hi David, To use something similar to VBScript/COM objects in java you would use JSP/JavaBeans. You then have compiled java classes (your beans) like your COM objects which are used by JSP pages (like your ASP pages). You can also include any java class you like in your JSP page with the 'impor

Re: Gaining a Position

2001-09-21 Thread Haseltine, Celeste
Isak, I'm not in the US on a visa, I am an American citizen, so others on this forum may have better advice than me. But I did want to give you a heads up. Your timing for wanting to obtain an H1-B visa to work in the US is not good. The economy in the US took a "nosedive" the last quarter of

Re: How to set the PageSize in JSP ???

2001-09-21 Thread Mohan Kumar Chintala
Hi Wong, There is a work around for this problem. U can fetch only the required records from the database. U need to maintain the lowerbound or higherbound and calculate the other. You can store the Lower or Upper bound as a hidden varibale in your JSP Page. Use the following SQL. Replace

Re: how to access servlet from the jsp page

2001-09-21 Thread David Gee (MAYA Design)
I've been trying to do something similar, with no luck. I know you can do this with ASP, as shown at: http://www.microsoft.com/downloads/search.asp? (view the source) but I've found no way of doing anything like this with JSP, which is a pretty serious shortcoming. It's a pity Javascript doesn'

Re: tomcat error 500

2001-09-21 Thread Gustavo Saramago
getInitParameter returns a String containing the value of the named initialization parameter, or null if the parameter does not exist. Try comparing aganist null instead of "". - Original Message - From: "Haering Christian" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, Septem

Re: Gaining a Position

2001-09-21 Thread Isak Rickyanto
I see a lot of India programmer in this mailing list... I take conclusion from the names .. I know from the media that a lot of IT people in India.. and a lot of them go abroad to get better job.. I am Indonesian... but I think I am interested to get job abroad too.. especially to be Java Progra

Re: Include JSP file to show form

2001-09-21 Thread Isak Rickyanto
Thank's for your input , I will try it.. but ... is there another way? or the solution only with java bean? - Original Message - From: "Richard Yee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 21, 2001 1:19 AM Subject: Re: Include JSP file to show form > Isak, >

AW: tomcat error 500

2001-09-21 Thread Michael Jäger
Well, the error message is quite explicite: You have a NullPointerException in line 17 of your code, which is, as I suppose, in the if-statement of your init()-method. For some reason, at least one of your attributes sDB_URL, sDB_DRIVER etc. is assigned no value, i.e., it is NULL, not ""! To avoid

Re: How to set the PageSize in JSP ???

2001-09-21 Thread LouisVoo
Hi Udaya, I have more than 100 record for 1 user, and if they are 10 user login together, is it ok using session to store ? My server only have 512mb RAM. Louis - Original Message - From: "Kumar, Udaya" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 21, 2001 1:

tomcat error 500

2001-09-21 Thread Haering Christian
hi everybody could anybody point me, y i'm getting this error? Error: 500 Location: /servlet/IfI.querryInternal Servlet Error:java.lang.NullPointerException at IfI.querry.init(querry.java:17) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapp

Re: How to set the PageSize in JSP ???

2001-09-21 Thread Gustavo Saramago
If we maka an statistic of the most common quentions on furums like this, we can figure out some of the major weekness in JSP/Servlet specification. Common issues like record pagination and connection pooling are frequent. As a result, we see many third party classes and tag libraries to address

Re: Gaining a Position

2001-09-21 Thread Zahid Rahman
Interview questions :- I was also asked how to do dynamic Workflow. Yes, Pay www.logsys.co.uk for their API which they developed. I was asked what can webspere do and it can't do. Find out yourself. -Original Message- From: Zahid Rahman Sent: 21 September 2

Re: Gaining a Position

2001-09-21 Thread Zahid Rahman
Can I recommend something which may not have occurred to you. Have a look at the Java card. You should get/buy yourself a hardware development kit. development kit - I know you can development from the UK Open University which provides you with a mother board and thermometer set. This gives you

Re: Tomcat as Nt service

2001-09-21 Thread Ganszky, Balazs (GEL,MSX)
Full dox under: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/appdev/web.xml.txt web.xml: controller This servlet plays the "controller" role in the MVC architecture used in this application. It is generally mapped to the ".do" filename extension w

Re: Is there anyway to disable the getForcus and inout for textbo x entry?

2001-09-21 Thread Vikramjit Singh
hey dick it seems that we both are working on the same thing ;) even i have provided this facility but i am displaying the search results and sort by on the same page. what i think is a good idea is that u pass the search parameters in the form of query string as i have done. u have to take care t

Re: Tomcat as Nt service

2001-09-21 Thread Ganszky, Balazs (GEL,MSX)
1. Try to restart the service 2. Follow the direcory structure of the example applications /servlets / jsps 3. For using servlets you have to register them in the server.xml or web.xml -Original Message- From: SriHari [mailto:[EMAIL PROTECTED]] Sent: Friday, September 21, 2001 11:29 To:

Re: Tomcat as Nt service

2001-09-21 Thread anoop
which wrapper class are u talking abt?? tell me where hv u stored ur class and other files.   anoop.. - Original Message - From: SriHari To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 2:58 PM Subject: Tomcat as Nt service Hai AllI have installed Tomcat as nt

Is there anyway to disable the getForcus and inout for textbox entry?

2001-09-21 Thread Dick Wong
Dear all, I create a entry form for Customer Master and I would also like to display the data on same form when user click the search button. Is there any way to disable the getfocus and input when user search record. Or should I seperate it into two form, one for data entry and the other is for

Tomcat as Nt service

2001-09-21 Thread SriHari
Hai All I have installed Tomcat as nt service I am able to run the examples jsp files but not my project is there ant thing i have to set in the Wrapper class Pl Help Regards SriHari === To unsubscribe: mailto [EMAIL PROTE

Passing session in new window

2001-09-21 Thread Vibha Jindal
Title: Re: Gaining a Position Hi,   I am usinf window.open and am invoking a servlet through this. I am doing this in my JSP, but my session is not getting passed to teh servlet, as I am not getting the sessionId in the servlet. I nees some session attributes in teh servlet. Can anyone please

Lang stack overflow

2001-09-21 Thread Ganszky, Balazs (GEL,MSX)
Hi, I'm reciving this error on SUN/Solaris/NES3.6/NAS4.0sp1 : compiling template: GreenBook/jsp/greenrip.jsp, Exception Stack Trace: java.lang.StackOverflowError at java.lang.Character.isWhitespace(Compiled Code) at com.netscape.server.servlet.jsp.JSPTokenizer.nextToken(Compiled

Re: Gaining a Position

2001-09-21 Thread Joel Carklin
Title: Re: Gaining a Position Hi Peter, I've recently managed to get work as a Java programmer, after teaching myself and coming from a background with no programming experience whatsoever. I did a 6 month correspondence course, did all the online tutorials I could find (the one from Sun is ver

Re: How to set the PageSize in JSP ???

2001-09-21 Thread Kumar, Udaya
If you are keeping your application state in session (say Vector of Objects).you can set the count depending on whethere user clicks next or previous option as vikramjit mentioned. I think it is better option than getting data from database every time. Udaya. -Original Message- From: Vik

Re: Why java.lang.StackOverflowError? man?

2001-09-21 Thread Mattias Jiderhamn
>From your stack trace it seems your ehr.BaseObject.readDB calls ehr.FunctionTree.readDB which calls ehr.BaseObject.readDB and so you have a possibly infinite loop. What happens is that after a while you get too many method calls after each other (placed on the "call stack") that the JVM (or poss

Re: How to set the PageSize in JSP ???

2001-09-21 Thread Vikramjit Singh
hi dick, i dont think there is any pagesize method in jsp. even i had to do pagination showing 10 records on one page. For that i had to write an algorithm. u can check this site http://jsptags.com/tags/navigation/pager/. U should be knowing how to use taglibs. Vikramjit singh, eAngel Team, Globa