Re: Question: servlet to extract HTML from a webpage

2000-11-29 Thread Matt Penner
In order to receive the data back and parse it for whatever you can do something like this: URL u = new URL("www.yahoo.com/whatever"); // URL to post data to URLConnection uc = u.openConnection(); uc.setUseCaches(false); uc.setDoOutput(true); // Lets you write to the connecti

Trying t ouse JDBC in Applet

2000-11-29 Thread Naresh Chhabria
HI all, I'am sending this mail again becoz earlier I did not write a subject, so did not get a reply from anybody. M yproblem is as follows:- I was trying to use the JDBC driver = "oracle.jdbc.driver.OracleDriver" in an applet, but it was just not registering itself with theDriverManager

Question: servlet to extract HTML from a webpage

2000-11-29 Thread Kronos B
Hi, This question might be really basic, but I just 2 weeks old as a servlet developer. I have written a servlet which serves as a stock quote wrapper, ie, if you type a stock ticker, say MSFT in the box provided, the servlet sends the request to yahoo-finance, and gets the results. This servlet

File Download

2000-11-29 Thread Vamsi Krishna N
Hi, Can anyone there tell how to download a word document to the local disk. Thanks in advance, Vamsi ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". A

Re: Help to install JDSK

2000-11-29 Thread Naresh Chhabria
Firstly you will have to decide as to what type of servlet engine you want to install , for example I have Apache web server on Sun solaris , so i have installed ApacheJserv. Similarly there is Jrun from Live software , Servlet express from IBM etc . You will have to first install a version for Un

Servlet Connecting to DB2 using Websphere Connection Pooling

2000-11-29 Thread Chris Irvine
I am attempting to setup the IBM DB2 sample database on a local web server. I have imported the code that IBM uses and changed the userid and password and owner as well as the dbname value to sample. I export the servlet to Webpshere and attempt to load the servlet. In the IBM code there is an i

Re: servlet e directory

2000-11-29 Thread Abhay
HI ! U can use list() method of File class. It would return a string array containing list of files in the folder. Abhay - Original Message - From: Alessandro Campi <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 29, 2000 8:00 PM Subject: servlet e directory > C

Re: Strategies for dependent multiple selectors on a single page

2000-11-29 Thread Craig R. McClanahan
"Godbey, David" wrote: > [snip] > Some folks here contend that round trips to the server should always be > avoided if possible. I'm not sure that is always necessary - do you? I don't think there is a right answer that is true in all circumstances -- it depends on the network environment you ar

Combo app/servlet?

2000-11-29 Thread Matthew
Is it possible to create one class file with both a main() and doGet(), so that I can interchangably use it as an application or a servlet? Do I still extend HttpServlet? -Matt ___ To unsubscribe, send email to [EMAIL PROTECT

Re: How does one forward a POST request when the POST data has al read y been processed?

2000-11-29 Thread Albert Wong
Typically information to be displayed by the JSP is communicated via the ServletRequest.setAttribute and the RequestDispatcher. For example, ServletA performs the business logic and stores the results using setAttribute(java.lang.String name, java.lang.Object o), and the servlet or jsp retreives

How does one forward a POST request when the POST data has alread y been processed?

2000-11-29 Thread Duane Morse
I ran into a problem with the Tomcat 3.2-b8 release, and it has implications beyond the Tomcat implementation; hence my posting here. I have a servlet which processes a form which uses the POST method, and it forwards the request to another servlet (in this case, a JSP) after adding a data struc

No Subject

2000-11-29 Thread Naresh Chhabria
HI all, I was trying to use the JDBC driver "oracle.jdbc.driver.OracleDriver" in an applet, but it was just not registering itself with the DriverManager, for reasons I do not know because the program compiles properly and also does not throw any exceptions. But when I used Servlets to perform

Re: Help to install JDSK

2000-11-29 Thread Ibrahim, Sultan (IndSys,MKT)
Hi sanchez, You can download the Java Server Development Kit(JSDK2.0 or more) from java.sun.com site. In that development kit itself, you can start using servletrunner as your server. Lot of examples also there in the kit. If you are using different server let me know. You can download the ja

JDBC-Error!!!!

2000-11-29 Thread sharif mohammed
Hi I have a jsp page with Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); and Connection con = DriverManager.getConnection("jdbc:odbc:DBS","","");   DBS is a DataSource name on MS-Access.. When i type my local machine name on the LAN i get results.  We have IBM WebServer. We mapped a ip address to

Help to install JDSK

2000-11-29 Thread Fabiola Sanchez
Hello!! ii am going to start to use JAVA Servlets then i need to install the servlets server in my server, what i must to do? thank you Fabiola ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of

help required..

2000-11-29 Thread Anupam, Kumar
Hi all, How can i save a web page as a html file...using java? The page should be able to be printed as displayed on the screen. tia anupam ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the me

Re: redirect a form to another servlet

2000-11-29 Thread Pablo Iaria
I'm facing the same problem. I did a wrapper (implementing the HttpServletRequest interface) for the HttpServletRequest object that is received in the servlet with the addParameter message. In the servlet I have the following code: public void performTask(javax.servlet.http.HttpServletRequest req

Re: Uploading files

2000-11-29 Thread sunil madan
Hi Huu, Have u ever heard about MultipartRequest. In HTML you can use file tag and form's ENCTYPE should be multipart/form-data. and on server side(Servlet) you can use a class MultipartRequest by oriely. or have a look at.. http://www.servlets.com/resources/com.oreilly.servlet/MultipartRequest.h

Re: Applet->Servlet->Database

2000-11-29 Thread SERVE 'EM - Dan Coggeshall
I would suggest giving up on using a conventional servlet. The role (Middle Tier) is a great idea, but if you are sending objects to the Applet, then sending object back to the servlet would be the best way. Using RMI or CORBA would be my recommended solution. This way you also (if you wanted)

Re: redirect a form to another servlet

2000-11-29 Thread Duane Morse
Use the RequestDispatcher and its forward() method. Duane Morse, Eldorado Computing Inc., Phoenix AZ -Original Message- From: Kevin Cooper [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 29, 2000 10:01 AM To: [EMAIL PROTECTED] Subject: redirect a form to another servlet Which is

Re: redirect a form to another servlet

2000-11-29 Thread G.Nagarajan
you cannot add any parameters to the request as there is no setParameter() for the request object. but you can put an object using setAttribute(). Just have a look at the RequestDispatcher object. -Original Message- From: A mailing list for discussion about Sun Microsystem's Java Servlet

redirect a form to another servlet

2000-11-29 Thread Kevin Cooper
Which is the best way to "redirect" a form submitted (my servlet adds some fields)by a user to another a servlet? Thanks in advance. Kevin Cooper. _ Get more from the Web. FREE MSN Explorer download : http://exp

showning random records from a database

2000-11-29 Thread Marcos
hi, i have a database with 100 records. nowadays i have some servlets to show the data from the database. but i would like to pick up, randomly, a number of records. i mean something like i make a query which puts all the records to the resultset. i make an array with 6 numbers randomly g

Re: Strategies for dependent multiple selectors on a single page

2000-11-29 Thread G.Nagarajan
somehow you have to make a http call to get the data. If it is not through an applet, the other two options are through an activeX control or multiple frames. but again, preloading hundreds of records will cause the browser to timeout or the user will simply click back or refresh button. In the c

problem with refresh

2000-11-29 Thread listo calisto
Hi i have a problem with refresh, data in the form send again. use : NT 4.0 sercice pack 5.0 IIS 4.0 JRUN 2.3.3 jsp ver 0.92 JDK 1.3 Thank Consigue tu dirección de email gratis y permanente en http://WWW.LETTERA.NET __

Re: Strategies for dependent multiple selectors on a single page

2000-11-29 Thread Godbey, David
Do you mean that you would make round trips to the server (and database) to populate the different frames based on selections made to the higher order frames? Some folks here contend that round trips to the server should always be avoided if possible. I'm not sure that is always necessary - do yo

Strategies for dependent multiple selectors on a single page

2000-11-29 Thread Godbey, David
Situation: Single web page. User is presented with a select box, and based on the selection made there, a second box is populated, and then possibly a third. I have some code from a previous project where the servlet runs three select statements, and constructs JavaScript with the data organized

Re: Strategies for dependent multiple selectors on a single page

2000-11-29 Thread G.Nagarajan
maybe four frames with a select box in each. Through javascript you can reset the location of each frame sending the conditions with the href. -Original Message- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of

Re: Difference between PrintWriter and ServletOutputStream

2000-11-29 Thread G.Nagarajan
PrintWriter -> for writing characters ServletOutputStream -> for writing binary data (images etc). -Original Message- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Rajesh Kumar Sent: Wednesday, November 29,

servlet e directory

2000-11-29 Thread Alessandro Campi
Can you help me to write a servlet capable to show an html page with the list of file contained in a directory. Thanks. Bye. Alex ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "si

Re: TOMCAT-APACHE configuration problem.

2000-11-29 Thread Christopher K. St. John
Shriranga K Kulkarni wrote: > > I am getting the following error while loading a servlet through > TOMCAT-APACHE configuration. Following is the configuration file in which > the error is also highlighted. Can any one help me in solving this. > You would be better off asking this on one of the

Re: JRun3.0 Servlet reloading problem.

2000-11-29 Thread Godbey, David
Gabi, Restarting JRun every change in the servlet is a bit tedious... 2 things: First, don't jar your servlet through the development process, wait until production. The previous JRun recognized changed jar files, but for some reason, JRun 3 does not. Second, if you actually change a member class

Re: session maximum inactive interval

2000-11-29 Thread Christopher K. St. John
Bartsch Axel wrote: > > I guess I found the error. > > Its an error in the JSDK (I think JSDK 2.2) documentation: > in the JSDK bug list the error is listed. U must use milliseconds. > > see bugnumber 4390372 at http://search.java.sun.com > 2.2 and the 2.3 final draft say seconds, and I think To

Difference between PrintWriter and ServletOutputStream

2000-11-29 Thread Rajesh Kumar
Hello all, Please clarify my following doubts. 1. Difference between PrintWriter and ServletOutputStream 2. When and where to use them. Thanks in advance... Rajesh.. ___ To unsubscribe, send email to [EMAIL PROTECTED] a

Re: Can I use Swing with applet on IE4 and IE5?

2000-11-29 Thread PIYUSH NIGAM
nothing all that complicated is needed. If your jre 1.2.2 is correctly installed the rest happens by itself. Are you using the html converter to get your html page ready Piyush Nigam [EMAIL PROTECTED] -Original Message- From: G S Sundar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, Novem

Re: JRun3.0 Servlet reloading problem.

2000-11-29 Thread PIYUSH NIGAM
This is a tried and tested way but new servlets placed in this folder do not load automatically. Restarting the server in such a situation helps Piyush Nigam [EMAIL PROTECTED] -Original Message- From: Abhay [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 29, 2000 4:51 PM To: [EMAIL

Re: JRun3.0 Servlet reloading problem.

2000-11-29 Thread Abhay
Hi sion95 ! I have heard that to make JRun 3.0 automatically reload the modified servlet class files, u have to do the following. 1.Create a new application in the JRun Default server, say abc, through JRun administration. 2.then keep all u'r class files in servers/default/abc/web-inf/

Re: JRun3.0 Servlet reloading problem.

2000-11-29 Thread PIYUSH NIGAM
restart the JRUN server Piyush Nigam [EMAIL PROTECTED] -Original Message- From: ??? [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 29, 2000 3:05 PM To: [EMAIL PROTECTED] Subject: JRun3.0 Servlet reloading problem. i don't know how can make JRun3.0 reload changed Servlet.. he

Websphere servlets + JNI

2000-11-29 Thread Tsao Su Jen
Hi, Has anyone used Websphere Application Server used JNI with servlets before? I'm using trying this in WAS 3.5, on AIX. After doing the following: - place *.so files in a directory /mylib - add -Djava.library.path=/mylib to the Command Line Arguments property of my ApplicationServer, usi

Re: Can I use Swing with applet on IE4 and IE5?

2000-11-29 Thread G S Sundar
Hello All, Java Console is not getting displayed after installing the JRE 1.2.2 1. I installed JDK1.2.2(without JRE) 2. after that i installed JRE 1.2.2 3. I set the "Java Run Time Environment to JRE 1.2 in C:\Program Files\JavaSoft\JRE\1.2 -- in Advanced Panel" in Java Plugin Control panel. 4.

Re: session maximum inactive interval

2000-11-29 Thread Bartsch Axel
I guess I found the error. Its an error in the JSDK (I think JSDK 2.2) documentation: in the JSDK bug list the error is listed. U must use milliseconds. see bugnumber 4390372 at http://search.java.sun.com Thanks for your help! By the way: Do u know how to see the JSDK version when reading the A

TOMCAT-APACHE configuration problem.

2000-11-29 Thread Shriranga K Kulkarni
Hello All, I am getting the following error while loading a servlet through TOMCAT-APACHE configuration. Following is the configuration file in which the error is also highlighted. Can any one help me in solving this. Thanks in advance Sriranga. Context log: path="/examples" Adding context pa

Re: JRun3.0 Servlet reloading problem.

2000-11-29 Thread Gabriel Ciuloaica
You need to stop the JRUN and after to start. Gabi - Original Message - From: "???" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 29, 2000 12:34 PM Subject: JRun3.0 Servlet reloading problem. > i don't know how can make JRun3.0 reload changed Servlet.. > help

Re: Can I use Swing with applet on IE4 and IE5?

2000-11-29 Thread PIYUSH NIGAM
You will need to install the jre plug in for your browser. It is available for free from the sun.java site Piyush Nigam [EMAIL PROTECTED] -Original Message- From: Anthony Mak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 29, 2000 2:47 PM To: [EMAIL PROTECTED] Subject: Can I use Sw

Re: how can i set the maxlength for textarea

2000-11-29 Thread Amarnath N.
hi set rows and cols for textarea and it will accept rowsXcols no. of characters amar - Original Message - From: somebody great <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 29, 2000 2:51 PM Subject: how can i set the maxlength for textarea > hai all, > how can

Re: Applet->Servlet->Database

2000-11-29 Thread PIYUSH NIGAM
Thanks guys for all the prompt help provided. The problem got fixed when I returned the number of rows inserted to the applet. In my SELECT situation there was an ObjectOutputStream and an ObjectInputStream in both the applet and the servlet while in the INSERT situation had only an OOS from the A

JRun3.0 Servlet reloading problem.

2000-11-29 Thread ???
i don't know how can make JRun3.0 reload changed Servlet.. help me...please ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://arch

How to configure Servlet engine

2000-11-29 Thread Balasubramanian S
hi i need help from u.are u using jswdk1.0.9. Before startserver ,it will look on webserver.xml. Based on this settings ,it will work like port number my doubt is 1) iam planning to do servlet chaining using aliasing For that ,we have to configure Servlet Engine . If it is java web server

how can i set the maxlength for textarea

2000-11-29 Thread somebody great
hai all, how can restrict the maximum number of characters a text area can take. thanks in advance, ram _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com ___

Re: Problem with an auto-load servlet

2000-11-29 Thread Tim Panton-Westhawk Ltd
Sandeep Tikoo <[EMAIL PROTECTED]> wrote: __ >Hi all, > >I have a problem and I hope that somebody will be able >to help me out. >I am using Websphere 3.02 on S390. I have a servlet >which calls CICS/COBOL programs in its init() method >using EXCI/CGI. >The servlet works fine as long as it

Can I use Swing with applet on IE4 and IE5?

2000-11-29 Thread Anthony Mak
Can I use Swing with applet on IE4 and IE5 without installing seperate library files on client machine? Anthony Mak --- $B%"%s%=%s%K!pJs%7%9%F%`3t<02qhttp://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LIS

Re: Where to put .js file...

2000-11-29 Thread G.Nagarajan
you have to refer to your .js file by the absolute path. i.e., if your script file is MyScript.js and is under the /emp directory under the document root, the html tag would be

Where to put .js file...

2000-11-29 Thread Manish Bhatnagar
Hi! >From a servlet I am generating an HTML page. For validating the page... I am using JavaScript. Where do I put the .js file in my Web server. I am using Java Web Server 2.0 on Windows 98. Thanx in advance, Manish -- +--Live-Your-Dream+ Obstacles

Re: Where to put .js file...

2000-11-29 Thread Amarnath N.
hi, keep it in public_html bye amar - Original Message - From: Manish Bhatnagar <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 29, 2000 2:14 PM Subject: Where to put .js file... > Hi! > >From a servlet I am generating an HTML page. For validating the page... > I a

Population of dynamic data in textarea of form

2000-11-29 Thread Pool Singh
Hi iam working on a project using MVC Pattern. I want to share the values between jsp forms. i want to write bean data to the textarea when unload event occurs. help is highlu apprecieted. thanks in advance Pool___ VISTAAR http://www.vistaar.com ___

Re: Applet->Servlet->Database

2000-11-29 Thread Raj Kumar Jha
Hi, Can you elaborate on the error. This is possible and there should be no problems. If you give some more details it will be easier to look where the problem is. Regards, Raj - Original Message - From: PIYUSH NIGAM To: [EMAIL PROTECTED] Sent: Wednesday, November 29, 2000 12:34 PM Sub

Re: Applet->Servlet->Database

2000-11-29 Thread G.Nagarajan
Hi Piyush, Are the values reaching the servlet? you can find this out by giving system.out.println("name: "+req.getParameter("name")) if the data is printed out, then there is something wrong with the JDBC part. If the data is null it means that the applet is not sending any data. Also throw all

Re: Applet->Servlet->Database

2000-11-29 Thread Daljit Singh Dhillon
Hi Piyush, Are you retrieving data from a database table or database view ???... You can insert values in a database table but not in a view !!! Well there could be some other reason also. I hope this information will help. Regards, Daljit -Original Message- From: PIYUSH NIGAM [SMT

Applet->Servlet->Database

2000-11-29 Thread PIYUSH NIGAM
Dear Java mates, I have a swing applet communicating to a servlet which in turn SELECTs values from the database and sends them as serialized objects to the applet. This communication is working fine values are going and coming across a URLConnectionBut when I pass values to the servlet to IN

Re: can u help me?

2000-11-29 Thread Amarnath N.
hai saravanan, out.println(""+"username: "+""+""); change above statement with this... out.println(""+"username: "+""+""); this will work bye amar - Original Message - From: s saravanan <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 28, 2000 7:11 PM Subject