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
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
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
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
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
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
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
"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
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
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
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
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
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
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
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
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
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
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
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)
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
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
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
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
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
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
__
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
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
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
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,
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
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
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
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
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
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
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
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/
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
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
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.
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
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
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
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
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
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
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
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
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
___
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 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
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
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
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
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
___
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
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
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
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
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
60 matches
Mail list logo