Re: Servlets vs EJB performance

2000-08-21 Thread Sven van 't Veer

wtngoh wrote:
>
> Hi,
>
> I am not sure about the performance comparison.  Is there any
> real application running on the web to show how nice is the EJB in terms of
> performance? Any recommendations as to where I can find such comparisions?
>
I don't know if you can call it a 'preformance issue', but AFIK,  EJB is
slower than servlets/jsp simply because it's a transactional framework
for mission critical Enterprise Applications. jsp/servlets is not. If
you're going to need transactions, go for EJB. If you don't need
transactions, go for JSP/Servlets.

Sven

--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Multiple submits within a form

2000-08-15 Thread Sven van 't Veer

sunil mallya wrote:
>
> Hello all,
>I have a form . In that form there is a link
> and a submit button. Now depending on what i click, it
> should take me to two different servlets . Now is that
> possible within a form? if so how  ?
>
use Javascript:onPost()

sven
--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Strange Problem with request dispatching...

2000-08-12 Thread Sven van 't Veer

"Shehrawat, Rishi" wrote:

>
> is this supposed to happen ??  is the thread killed right after the client
> request is handled.. or is it supposed to come back to some kind of a thread
> pool maintained by the server..
>
Of course it is supposed to happen. If you call a method (methodB) from
within a method (methodA), the code after the call to methodB is
executed and methodB returns, execution within methodA will continue,
ulnless you call return or an exception occurs withing methodB.
This is ALWAYS true. Servlets are no different.

sven

--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: calling member functions of servlet...

2000-08-11 Thread Sven van 't Veer

"Rajesh R.Basawa" wrote:
>
> Hi all,
> I have basic question regarding servlets.I have a servlet which has some member 
>functions apart from doGet and doPost.How could I call these methods from the other 
>servlet.I don't want to load the servlet on my own .It should be loaded as normal 
>servlet from servlet engine.
What you describe is not a good design. Migrate these methods to a
separate class, instantiate the class and call the methods

sven

--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Parameter Count

2000-08-10 Thread Sven van 't Veer

Amar Das wrote:
>
> Let consider I am have the following URL
> http://./servlet/MakeList?ID1=STN001&ID2=STN002 etc.

>
> String req1=request.getParameter("ID1");
> String req2=request.getParameter("ID2"):
>
> But I need some help, how to handle things when I do not know how many
> parameters passed.
Take a look at the docs. There are some methods like getParameterNames()
and getParameters().

sven


--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Number of Records

2000-08-09 Thread Sven van 't Veer

Andrew Wallace wrote:

> But for those of you using JDBC 2.0 how about:
>
> if (rs.next()) {
>   rs.afterLast();
>   rs.previous();
>   noOfRecords = rs.getRow();
> }
and in that case why not:
if (rs.next()) {
  rs.Last();
  noOfRecords = rs.getRow();
}


sven

--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Number of Records

2000-08-09 Thread Sven van 't Veer

Silvia Gaspar wrote:
>
> What function give us the number of records retrieved by a query?
> I'm using JDBC.
>
SELECT COUNT(*) FROM TABLE

sven

--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: JSP in iPlanet 4.1

2000-08-09 Thread Sven van 't Veer

Deepu L K wrote:

> [09/Aug/2000:00:35:34] info (15290): Internal Info: loading servlet
> /Check.jsp
> [09/Aug/2000:00:35:35] warning (15290): Internal error: Unexpected Java
> exception thrown (java.lang.NoClassDefFoundError:
> sun/tools/javac/Main,sun/tools/javac/Main), stack:
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
I don't know much about iPlanet, but the error you're getting is very
common in all app servers and JSP engines. It means the engine cannot
fing tools.jar (javac) to compile the jsp's. Look in the docs to make
sure how to resolve this in iPlanet, but my guess is to copy
/path/to/jdk/lib/tools.jar into the iplanet/lib/ directory.

sven


--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: database Search with the servlets and sql.

2000-07-19 Thread Sven van 't Veer

Kaushik wrote:
>
> database Search with the servlets.
> Can you please sort my issue.
>
> 1. what method is there to count the no. of records in a resultset(
> direct method with out looping).
Depends on the driver if it's JDBC 1.0, you can't. In JDBC 2 you can:
resultSet.last();
resultSet.getRow();

In any case you can do "SELECT COUNT(*) FROM MYTABLE"

> 2. what is the syntax of 'like' in the below line.
>
>String str1="select * from TableInd where Detail like '"+%kw[0]%+"'";
>
> I want to check the 'Detail' field with the workds matching 'kw[0]';
> the above is giving error.
>
Jep, you just can't do that. Should be like:
Detail like '%" + kw[0] + "%' [or Detail like '%" + kw[0] + "%']
etc.

sven

--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Interbase BLOB data type

2000-07-19 Thread Sven van 't Veer

Giovanni Azúa García wrote:
>
> Please could anyone at least explain how to show a BLOB field?
>
> out.println(queryDataSet.Format("TEXTDOC"));
>
A BLOB is bynary data, it can't be formated like that. You get it from
the resultset using getBinaryStrean or getByteStream.

sven
--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: getRuntime() java.lang.IllegalThreadStateException: process hasnot exited

2000-07-19 Thread Sven van 't Veer

Paolo Gallo wrote:
>

>   process = runtime.exec(cmd);
>  int i = process.exitValue();
> out.println("Executes:"+cmd);
>}
>   catch(IllegalThreadStateException  ex) {
> ex.printStackTrace(out);

>
before you get process.exitValue(), add a line process.waitFor();

sven

--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Empty string bug using String Tokenizer

2000-07-17 Thread Sven van 't Veer

Harkishin Nachnani wrote:
>
> I have a string : "1,2,,4"
> I am using String Tokenizer class with the delimiter ","
> I should get 4 strings : "1""2"" "   "4"
You probably would get this when you have "1,2, ,4" but probably not
with "1,2,,4" since there is no token to return.
> The 3rd String should be an empty string. But the String Tokenizer class
> gives me only 3 strings without the empty string.
That's because nextElement should return null in the case of ,,


sven


--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: SQL Web interface servlet

2000-07-12 Thread Sven van 't Veer

> Does anyone have any ideas where I could find some code to start with, or
> have a good
> resource for locating some?
>
There is a java MySql admin tool. Look at  the mysql site

--
======
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Servlet calling servlet (or nesting servlets).

2000-07-11 Thread Sven van 't Veer

"Hunter, Roger" wrote:
>
> I need some help calling a servlet from a servlet.

>
> To call the common servlet I then do:
>
> Object o = myServletContext.getAttribute(commonServlet.KEY);
> commonServlet varObject = (commonServlet) o;
> varObject.doAction(request,res);
>
> This way seems a bit messy. The common servlet must be called once before it
> can be used to run init().
For what you seem to be doing J2EE (jsp/servlet & EJB) seems more
apropriate. The sole purpose in the life of a servlet should be
rendering the user interface. Your business logic should not be inside a
servlet, it shoulde be inside other classes that provide the information
to the servlet on what exactly to render to the client. In your case you
will need statefull session beans or maybe entity beans sto hold the
userinformation.

sven

--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: help me about web servers

2000-07-11 Thread Sven van 't Veer

Kerem ÖKTEM wrote:
>
> hi,
> please god help me. and you guys too.
> I am working on a project consisting of servlets and i want to demonstrate
> that to myself whether it is working or not in my own computer. I tyied some
> servlers
> Apache Web Server
> Apache Jserv 1.1.2 together
> and the complexitiy to configure it almost killed me.
You could try jakarta-tomcat as a stand alone selvlet/jsp container.

sven

--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: IDE

2000-07-07 Thread Sven van 't Veer

Alec Belsky wrote:
>
> Hi all,
> I am writing some servlets and was wondering what environments people
> have had the best success with.  I was using Visual J++, but thought that
> was the wrong was to go.  What is the best package for making servlets.
> Thanks in advance
>
I like forte (sun)

sven

--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Width and Height of an Image

2000-07-04 Thread Sven van 't Veer

I'm storing images in a database using o'reilly MultipartRequest. I'm
encountering one small problem, I would like to know both height and
width of the image when storing it in the DB. Is there an easy way to do
this?

sven
--
==
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: iPlanet creating image servlet response

2000-07-04 Thread Sven van 't Veer

Nick McKenna wrote:
>
> Dear All
>
> I can't get iPlanet to create an instance of the class Image. I am trying to
> create a servlet that outputs a gif (ACME encoder) image.
>
> The code is:
>
> // Create the image
> Frame dummy = new Frame();
> image = dummy.createImage(width, height);
>
> The Frame constructor returns a null pointer which causes the
> dummy.createImage line to throw a null pointer exception.
The image is served in a second request (i.e. when the browser sees  a new request is made to the server.) You can't use
frames unless you use an applet. The way to do this is to create a
servlet that sever the request for the image:


In this image be sure to set the content type to image/gif or image/jpeg
and stream the image to the browser as a BufferedOutputStream:
BufferedOutputStream out = new
BufferedOutputStream(response.getOutputStream());
response.setContentType(rs.getString(2));
try{
  int BytesRead;
  byte[] buf = new byte[40];
  InputStream dbin = rs.getBinaryStream(1);
  while (((BytesRead=dbin.read(buf)) != -1)){
out.write(buf,0,BytesRead);
out.write(BytesRead);
  }
  out.flush();

sven

--
======
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: How can i do automatic update

2000-06-30 Thread Sven van 't Veer

> specific time (let's say Monday at 12:00).
> thanx to any help
If you're using Linux, use cron to run the job once a week, on monday
12:00

sven

--
======
Sven van 't Veer  http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
_/_
The answer /   \
to the ultimate questionnnn|.
.|nnn 42
=U

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Servlets and Images

2000-06-22 Thread Sven van 't Veer

Pavan Sulibhavi wrote:
>
> Can Somebody enlighten me. What are the advantages of using a servlet to
> display an image as compared to using applets for the same purpose.
> Pavan
>
The servlet just shows the image, just like the plain html  tag.
The applet downloads the applet, starts the jvm and then downloads the
image. Lots of clientside overhead.

sven

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Servlet question on passing variables

2000-06-14 Thread Sven van 't Veer

> How to I get the value of the select box and keep it for later use?
>
> Bill
>
Create a session object and do:
session.putValue("myCheckBox", "someValue");

sven

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Problems in setting up JSDK2.1

2000-06-06 Thread Sven van 't Veer

"" wrote:
>
> Hi
>
> I just installed JDK1.3 and JSDK2.1. I have added the following to the PATH
> variable to C:/JDK1.3/bin;C:/JSDK2.1
> and the CLASSPATH  to C:/JDK1.3/lib/tools.jar
>
> But when I compile the servlet code, I get the following error messages
>

you're missing servlet.jar in your classpath

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Why Off-Topic posts are wrong (was: Re: [Icon in TextArea orPanel , Canvas etc])

2000-05-10 Thread sven

>
> Perhaps those who help out the OT posters should stop completely?
> Thats what I have done and will continue to do until this abuse stops.
>
> We, as users of this list, have the right to point out the rules of use on
> here.
>
> Andy Bailey

Andy,

I agree wholeheartedly with you. However, sometimes it migh be necessary
to point out to someone that the soluition he is seeking can be easier
resolved using a non servlet solution by for example using js. It might
also be that someone new to servlet programming encounters a problem
which he thinks is something servlet related but is more related to
sys-admin. I dont think it's right to deny these people an answer.

I do however agree that JTextArea etc is completely off topic.

sven


--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: default security manager in jserv

2000-05-10 Thread sven

Qingyue Shirley Wang wrote:
>
>
> java.lang.IllegalArgumentException: Not writable:
> /local/src/ApacheJServ/servlets/access
> at oreilly.MultipartRequest.(MultipartRequest.java:145)
>
> Can anyone please offer some suggestions?  Any help would be greatly
> appreciated!
>
> ~Shirley
I don't think that this is a java security problem, it's more of a unix
security issue. Apache generally runs as user 'nobody'. This user
doesn't have write permissions in most directories. You should either
use /tmp to do your temporary writing, create a directory owned by
nobody (ex /home/nobody) with permissions to write and create files, or
you should set ownership of /usr/src/local/ApacheJServ/servlets/access
to nobody whith create/write permissions. But this last option is
probably a bad idea security wise. I'd go with option1 or 2.

sven

--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Space Character In URL

2000-05-09 Thread sven

"blueads.com" wrote:
>
> - I am running into the same problem as another poster had with spaces in a
> URL. I have tried replacing the space with a '+' sign using the code below.
> This worked fine with Internet Explorer but Not with Netscape.
>
> // String phrase needs '+' signs between spaces for http links.
>
> int length = phrase.length();
> String temp = phrase;
> char linkPhrase[] = temp.toCharArray();
>
> for (int i = 0; i < length; i++) {
> if(linkPhrase[i] == ' '){
> linkPhrase[i] = '+';
> }
> }
>
> - Someone suggested that using %20 works. How would I implement it based on
> the sample code above?
>
I had similar problems and resolved the. as follows:
mystring.replace(' ', '_');

whic worked fine for me

sven


--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: [Icon in TextArea or Panel , Canvas etc]

2000-05-08 Thread sven

QuantumMan wrote:
>
> chat software is a servlet
>
Ah, then explain to me how I can use AWT in my dynamic HTML. You're
talking sockets and applets

sven


--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Using forms and calling same Servlet over an over

2000-05-05 Thread sven

"Schmidt, Allen J." wrote:

>
> The mainframe aside, this is a general question of how to handle calling the
> same Servlet over and over again and getting deeper into the logic contained
> within. Am suggestions are appreciated. An off-list discussion would be
> great if anyone is willing.
>
> Thanks
>
> Allen Schmidt
> Northern VA Community College
>

I'm not using a mainframe, but have to do a lot of user validation too.
I found an article in  I think it's java world about single entrypoint
servlet applcations. It's interesting reading.
The theory behind it is that the servlet application should have one
single entry point which handels all requests through separate
RequestHandlers. I read the article, developed a small application using
this approach and must say it works fine for me. It's much easier to
maintain the code.

Just take a look at:
http://www.javaworld.com/javaworld/jw-09-1999/jw-09-servlet.html

Hope this is what you're looking for

sven


--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: FW: Virus Warning There is a new virus titled "I LOVE YOU" orsimilar,being circulated at present which cannot be detected bythe virusshields.

2000-05-04 Thread sven

Paul East wrote:
>
> fortunatley it only affects microsoft mail clients :-)
>
Actually it don't. I'm subscribed to 5 lists, and more than 80% of my
e-mails (200+) deal with this new virus...

ouch ;)

sven
--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: JWS && Servlets with Virtual Hosts

2000-05-03 Thread sven

> Adam Weigert wrote:
>
> Does anybody know how to make servlets specific to a certain virtual
> host. So that instead of  www.companyA.com/MyServlet and
> www.companyB.com/MyServlet being accessible by both hosts i want
> www.comapnyA.com/MyServlet only to run on www.companyA.com and not on
> www.companyB.com  if this is possible please tell me so... if not
> please tell me... so I don't waste countless hours trying...
>
It depends a lot on the servlet engine you use. For example in apache
with JServ you would add the ApJServMount /blabla /blabla directive
inside the  tags in the httpd.conf file,
instead of inside the JServ.conf file

sven

--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Package javax.servlet.http not found with JDK1.2.2 and JSDK2.1 onLinux.

2000-05-02 Thread sven

"Simonin, Bradley" wrote:
>
> I have been developing Java Servlets on Windows NT for some time.  Now I
> need to develop them on Linux.  I have jdk1.2.2 and jsdk2.1 installed on my
> Linux box in /usr/local.  My path has the following:
>
> ".:/usr/local/jdk1.2.2/bin:/usr/local/jdk1.2.2/lib/tools.jar:/usr/lo
> cal/jsdk2.1/servlet.jar:..."
>
> But I am still getting the infamous javax.servlet.http not found when I
> compile a servlet.  Does anyone with Linux experience know why?
You should edit your .bash_profile and add:
CLASSPATH=.:/usr/local/jsdk2.1/servlet.jar:

make sure the line:
EXPORT PATH etc. includes CLASSPATH

sven

--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: DB2 jdbc driver & servlet.

2000-04-28 Thread sven

"Eulogio Robles P." wrote:
>
> Are you sure that the DB2 driver class files are in your
> servlet engine classpath?
>
Well, I added wrapper.classpath=C:\bla\bla\db2java.zip to
jserv.properties I I would expect that to be correct.

sven
--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



DB2 jdbc driver & servlet.

2000-04-28 Thread sven

I've just installed DB2 v7.1 and am trying to create a simple servlet to
test the driver. I have some code that works perfectly well as an
application, but a soon as I try the same in a servlet, it does not
work.
public void doGet (HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException{
PrintStream out = new PrintStream (response.getOutputStream());
Connection conn = null;
Statement stmt = null;
response.setContentType ("text/html");
  try {
 // register the driver with DriverManager
 // The newInstance() call is needed for the sample to work with
 // JDK 1.1.1 on OS/2, where the Class.forName() method does not
 // run the static initializer. For other JDKs, the newInstance
 // call can be omitted.

Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");//.newInstance();
  } catch (Exception e) {
 e.printStackTrace(out);
  }

  try {
  // Get a DB connection from the Broker
  //for (int i = 0 ; i <= 1; i++);
  String url = "jdbc:db2:sample";
  String user = "like";
  String pwd = "duh!";
  conn = DriverManager.getConnection(url, user, pwd);

The error give is:
Error code: java.sql.SQLException: No suitable driver

Can anyone tell me what I'm doing wrong here ??

sven
--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: new to JDBC !!!

2000-04-28 Thread sven

Parvez Lanewala wrote:
>
> hi,
>
> i'm not getting why i'm getting this error.
> can someone help me.
>
> when i compile the following code :
>
> // this is in init() function
> .
> .
> Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
> Connection con=DriverManager.getConnection("jdbc:odbc:data1");
> Statement stmt=con.createStatement();
> ..
> ..
> protected void doPost(HttpServletRequest req,
> HttpServletResponse res)
> throws ServletException, IOException
> {
> ResultSet result;
> if(req.getParameter("action").equals("publisher"))
> {
> result=stmt.executeQuery("Select * from BookDetails");
> msg=result.getString(4);
> }
> ...
> ...
> ...
>
> This gives error as:
> --
> data1.java:59: Undefined variable or class name: stmt
> result=stmt.executeQuery("Select * from BookDetails");
> ^
> --
> Where do i define result ?
>
You went wrong in the init() method. In your case con and stmt are local
to the init() method. You should declare them as Fields of the class
(e.i. declare them right after you declare the class

public myclass{
  Connection con;
  Statement stmt;

  public void init(){
con = ...;
stmt = ...;
  }

}

This way it should work


--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: How to send an HTML email message

2000-04-28 Thread sven

Nabil Abbas wrote:
>
> Hello all,
>
> I am using Javamail to send an email message from a servlet.
> I want to send an HTML message, but when I set the content type to
> html/text I get sending failed error message, any help ?
>
> regards,
> Nabil
There is an excelent example in the example directory that comes with
javamail on how to send HTML emails using java mail.

sven
--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Constructors in Servlet

2000-04-28 Thread sven

"P.Yesudason" wrote:
>
> What is happening man.
>
> I am sure there is no concept of constructors in Servlet ..It is given in books.
>
> If yes Try to give the details ...seems to be intresting
>
> Yesudas
>
> sushilkumar wrote:
Since HttpServlet is a descendant of GenericServlet, which of course is
a descendant of java.lang.Object and since we know all descendants of
Object have a generic constructor, HttpServlet has a constructor too.
Some Code: (GenericServlet.java)

public abstract class GenericServlet
implements Servlet, ServletConfig, java.io.Serializable {

private transient ServletConfig config;

/**
 * The default constructor does no work.
 */
public GenericServlet () { }

The same code can be found in HttpServlet.java

sven

--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: stop

2000-04-28 Thread sven

David,
> actually we need to
> load another page immediately after the servlet starts, so the white page
> comes after the other page,
Couldn't you write a Thread that does the work for you ? You spawn the
thread, and send the page you want to send. IMHO, you shouldn't let your
servlet do a lot of db work. You spawn the thread and send the page you
want. You won't even get the blank page.

sven
--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Are servlets being used in large sites ???

2000-04-22 Thread sven

"Kwan, Kenneth Y" wrote:
>
> Try http://my.cwhktmobile.com <http://my.cwhktmobile.com> . The site was
> originally written in Perl/CGI and migrated to completely Java Servlets for
> performance and additional functionality offered by Java. To me, I would
> choose only between servlets and VB/ASP.
>
I don't know the location of the site, but there's this huge casino site
done in servlets too.

--
---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



No Subject

2000-04-06 Thread Sven E. van 't Veer

Ajai Peddapanga wrote:
>
> SIGNOFF SERVLET-INTEREST
> -Original Message-
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of amod
> deshpande
> Sent: Thursday, April 06, 2000 6:47 AM
> To: [EMAIL PROTECTED]
> Subject:
>
> hi...
>
> how to invalidate the session when the browser is closed?
>
> thanks in advance
>
If the browser is closed, there is no session to invalidate

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: NScape v.6 with java 1.2 support

2000-04-06 Thread Sven E. van 't Veer

Eike Hirsch wrote:
>
> hi,
> i am tying to download it for about 6 houres, but can't get connection. Could
> you send me the files?
> eike
>
Try ftp8.netscape.com dir = /pub/netscape6/english/6_PR1   much smoother
than web download..

sven

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Sending EMails AUTOMATICALLY thro' Servlets and JavaMail

2000-03-31 Thread Sven E. van 't Veer

> I
> think it will be too costly to have a thread running in the
> background, calculating the time. What should be the optimised
> approach?

Depends a bit on the OS you're using. In Linux, i would use cron to
schedule the mail program to run at a specific time. In NT there must be
something like a task scheduler too. All other unixes have job
schedulers similar to cron.

sven

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Servlet Authentication

2000-03-29 Thread Sven E. van 't Veer

pat wrote:
>
> Hi all !
>
> There has been a lot of discussion on servlet authentication
> in the last few days
> I was successful in getting the dialog box to pop up  and collect the
> username and pwdi verify the pwd and give access to the system
> Now i want to log the user out forcibly ...how do i do this?...
> On pressing the refresh button (ie when the same Authentication servlet is
> invoked again ), the browser doent pop up the box !
> Why does the webserver "remember" that i had logged in the system ?...and
> how can i make it "forget" ??
if you're using sessiontracking, invalidate the session.

sven
--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Invoking Program from servlets

2000-03-29 Thread Sven E. van 't Veer

Alec Matias wrote:
>
> Hi!
>
> How can I run an external exe program from servlets with parameters?
> Example I had an existing program.exe that needs to be executed with the
> command like this.
>
> program.exe test 123 -f -o
>
> This is just a sample.Thanks.
check out the java.lang.Runtime.exec() methods..

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: url size

2000-03-27 Thread Sven E. van 't Veer

Carlos Proal wrote:
>
>   hi all, anyone know if there is a limit size about the url string ??
>
>   i mean, i want to send something like:
>
>   http://www.lolo.com:8080/servlets/myservletparam=12345663...etc
>
afik, it's 256 bytes for a get and unlimited for post.

sven
--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: servlets & linux

2000-03-24 Thread Sven E. van 't Veer

Rob Hazlewood wrote:
>
> hi!
> I need to develop some kinda large servlets and am looking at doing it in
> linux. Is there a servlet developers kit for linux?
> also, I also need a linux web server with servlet support - does apache
> support servlets? if it doesn't, how should I overcome the problem? (plugins
> or different server?)
>
> thanks in advance
> Rob
You'll need to install the Solaris version of the JSWDK. Apache in
itself does not support servlets. You'll need to install mod_jserv which
you can find on the apache site. Another possibility which I'm currently
using for testing is JavaWebServer (Solaris version runs on linux).

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: thread permission

2000-03-23 Thread Sven E. van 't Veer

James Skehan wrote:

> Does the thread not have the same
> permission as the servlet itself or is it a web server configuration
> problem?
Does the user under which the ServletExec runs have read/write rights in
the dir where you are creating the text file ?

Sven

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: How to run servlets

2000-03-18 Thread Sven E. van 't Veer

Satish Satish wrote:
>
> Hi all:
>  I have downloaded the Tomcat software, it is running okay.
>  (1) Is there anything else to be configured.
>
>  (2) how to run the servlets ?
>
>  (3)I have written a simple hello world servlet, but when I compile it gives
> errors as mentioned below:
>
>  HelloWorld.java:2: Package javax.servlet not found in import.
> import javax.servlet.*;
>^
> HelloWorld.java:3: Package javax.servlet.http not found in import.
> import javax.servlet.http.*;
>^
> HelloWorld.java:5: Superclass HttpServlet of class HelloWorld not found.
> public class HelloWorld extends HttpServlet {
> ^
> 3 errors
Statish,

It seems that either you did not install JSDK or you have not set your
classpath correctly. It should include /path/to/jsdk/jsdk.jar

sven

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Web Servers

2000-03-18 Thread Sven E. van 't Veer

Madeleine Pengelley wrote:
>
> I
> really like Java Web Server (not so happy about NT :-( ) for development and
> testing.  Is there any reason not to use it in production?  It seems too
> good to be true ;-)
The one I can think of at the top of my head is the fact that it runs on
NT. Afik, there is a solaris version though.

Sven

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



No Subject

2000-03-17 Thread Sven E. van 't Veer

Mahesh Chenga Reddy wrote:
>
> Idea is if we want to move to UNIX later,  wanted to make use of these
> SERVLETS. Does it make sense?.
>
Sure does, but why not move to unix right now. However, afik, there is
an apache version that runs on NT (www.apache.org). You will need a
build that allows for the use of mod_jserv or tomcat to run the servlets
in apache.

sven


--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: best servlet development environment to a guy with "not sodeep pockets"

2000-03-17 Thread sven

Bradley McLain wrote:
>
> the best ide i have found is called 'textpad' ;-)  it'll run you about 30
> bucks.
>
> www.textpad.com
Hmm the one I'm using is free right now.. It's the best I've seen,
better than VisualAge For Java and J++ builder. Right now it's available
for free at www.netbeans.com.br. Just sign up for the Early Access
Program and download it.


Sven

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Can we call a pre-written HTML file directly instead of writingthe HTML tags in a servlet ????

2000-03-11 Thread Sven E. van 't Veer

"C.S.Sriram" wrote:
>
> Hi,
>
> Instead of writing the HTML in the servlet code
> like
> out.println("blah blah b
>
> can we call a Html file that contains these HTML tags directly into Servlert
> code???
>
> Is that possible?? If so how??
>
sure is possible. I do it like this:
  private void sendHTMLForm(HttpServletResponse res){
PrintWriter out = null;
try{
  out = res.getWriter();
} catch (IOException ex){
  ex.printStackTrace(System.out);
}
try{
  BufferedReader in = new BufferedReader(new
InputStreamReader(new
FileInputStream("/usr/local/jserv/reciadmin/incluir_pago_form.txt")));
  String line = "";
  while((line = in.readLine()) != null){
out.println(line);
  }
} catch (IOException ex){
  ex.printStackTrace(out);
}
  }  // from sendTitForm();

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: help

2000-03-10 Thread Sven E. van 't Veer

Mahesh Acharya wrote:
>
> Hi,
>
> How can we set init parameter in the web server configuration ?
>
> Basically, I want to get the values something like this, in the init
> method of the servlet
>
> String filename ;
> public void init(ServletConfig config) throws ServletException
> {
>  super.init(config);
>  filename = config.getInitParameter("addressfile");
> ...
depends on the servlet engine you use. In the case of mod_jserv (apache)
you would set these in the zone.properties file. In the case of tomcat
there is some xml file to set those options

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: help about servlets on linux

2000-03-10 Thread Sven E. van 't Veer

Faiyaz Memon wrote:
>
> hi all,
>  anybody knows where i can get jsdk2.0 for linux
>  i tried jsdk2.0 for solaris but it doesn't work
>
>  also, I tried jsdk2.0 provided with a CD but the problem is
> if i'm installing jsdk2.0 then the java stops working It shows the
> class not found exception in main. if i'm uninstalling the jsdk2.0
> then it works alright.
You must have done something wrong with the installation. Did you set
the classpath variables correctly? You must set it to
/path/to/JSDK2.0/lib/jsdk.jar for it to work. The correct version is the
one for Solaris.

Good luck

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Java Question

2000-03-05 Thread Sven E. van 't Veer

Parag Thakker wrote:
>
> Hi
>
> In Java how do we declare String on multiple line
>
> say String str =
> " Select User   
> - Select (or change) the users below.";
>
> What character needs to be put in end
> Basically i want to send HTML text on a page
> is it possible to do without reformatting and
> concating?
String str = "This is var1: "
+ foo
+ " and this is var2: "
+ bar
+ "!";

if foo == 15 and bar == 13.38, your string will be:
This is var1: 15 and this is var2: 13.38



--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Qué herramientas para servlets

2000-03-05 Thread Sven E. van 't Veer

>
> Hi!
> Best is IBM Visual Age for Java (requires lots of memory--64 MB for decent
> performance)
> then JBuilder 3
> Jdeveloper is an older version of JBuilder which Oracle bought
> Hope it helps
> Amit Raj
I used both, but recently I started using Forte4j (Sun) It's still under
development and also requires much memory (64 mb min). In layout it's
comparable to most Borland IDE's, which is btw exaclty the way I like
it. Visual Age imho has a strange way of doing things. Forte4j still has
some bugs, but it's really nice to work with. Check it out at
www.netbeans.com, look for the EAP and download it. It's fully modular,
so you can update modules once they come available. It's got COBRA and
EJB support.

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: store *.gif and *.jpg from file in a database

2000-03-05 Thread Sven E. van 't Veer

> >
> > How can I store an *.gif or *.jpg file in a Database
> > and after display in a browser with servlet.
> > Specialy, I d'ont now how to read the picture-file
> > with a servlet and store this information in the
> > attribut of database. After, I want read the image
> > with a sevlet in the database and show in the browser.
> > Have somebody examples of servletcode??
> >
> > Very thanks for help
> >
A good idea is definately to get the oreilly util package
(www.servlets.com). It handels the multipart request from a HTTP post
operation. Here's an example:

try{
  MultipartRequest m = new MultipartRequest(req, "/tmp");
  Enumeration files = m.getFileNames();
  String nome = m.getParameter("nome");
  PrintWriter out = null;
  try {
out = res.getWriter();
  } catch (IOException ex){
ex.printStackTrace(System.out);
  }
  int InsertResult;
  try{
Properties info = new Properties();
info.put("user", "user");
info.put("password", "password");
DbConnection db = new DbConnection(dbUrl, info);
Connection con = (Connection)db.getConnection();
Statement s = (Statement)con.createStatement();
InsertResult = (int)s.executeUpdate(Query);
if (InsertResult > 0){
  Query = "select LAST_INSERT_ID() from marcas";
  ResultSet r = (ResultSet)s.executeQuery(Query);
  if (r.next()){
int id = r.getInt(1);
Query = "insert into marca_img values('" + id + "', ?, ?,
'', '')";
PreparedStatement ps =
(PreparedStatement)con.prepareStatement(Query);
try{
  if (files.hasMoreElements()){
String name = (String)files.nextElement();
String filename = m.getFilesystemName(name);
String type = m.getContentType(name);
File f = m.getFile(name);
FileInputStream img = new FileInputStream(f);
ps.setString(2, type);
ps.setBinaryStream(1, img, (int)f.length());
int result = ps.executeUpdate();
img.close();
f.delete();
if (result < 1){

Then to  show the image on a page, create a tag on the page 
and the GetImage servlet should look something like this:

  try{
dbconnection = new DbConnection(dbUrl, info);
connection = (Connection)dbconnection.getConnection();
Statement smt = (Statement)connection.createStatement();
String Query = "select image, content from marca_img where ndx="
+ id;
ResultSet rs = (ResultSet)smt.executeQuery(Query);
while (rs.next()){
   response.setContentType(rs.getString(2));
   try{
 int BytesRead;
 byte[] buf = new byte[64000];
 InputStream dbin = rs.getBinaryStream(1);
 while (((BytesRead=dbin.read(buf)) != -1)){
   out.write(buf,0,BytesRead);
   out.write(BytesRead);
 }
 out.flush();
 rs.close();
 smt.close();
   } catch (IOException e) {
     e.printStackTrace(System.out);
   }
}

P.S. the ByteArray os declared as byte[64000] since I use mysql, and the
mysql jdbc driver has a bug, and cannot handle files of over 64k

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



JServ zone woes

2000-03-03 Thread Sven E. van 't Veer

I've tried desperately to deploy a set of servlets from my development
machine to my apache server. It's the first time I deploy servlets on
the net.
My Host (apache on linux with mod_jserv) has a certain IP address
(x.x.x.145) and the VirtualHosts in Apache are defined as x.x.x.129 ( on
th same machine)
I get it working when I have
ApJServMount /admin /admin
This means any.virtualhost.com.br/admin/login (on my machine) will show
the LoginServlet. I don't want this.. so I tried
ApJServMount /admin ajpv12://the.domain.com.br:8007/admin
But this does not work..
mod_jserv.log:
(EMERGENCY) ajp12: can not connect to host x.x.x.129

So I set security allowed addresses and included x.x.x.129

same error..

Any Ideas..


sven
--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Limit to the number of records pulled to the browser

2000-03-01 Thread Sven E. van 't Veer

"Nayak, Lingaraj (CAP)" wrote:
>

> MB to store 1000 records with all the html tags. And for each MB of data the

I do not know what db you use, but MySql for example implements a LIMIT
clause in SQL which limit's the number of records fetched from the
database, ex:
SELECT * FROM FOO WHERE BAR=1 LIMIT 30

this would fetch 30 records from table FOO

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: SERVLET - inserting databse values from an HTML form.

2000-03-01 Thread Sven E. van 't Veer

"Lambert, Stephen : CO IR" wrote:
>
Lambert,

If you try to POST from a form in HTML  you should
implement the doPost method of HttpServlet and not doGet...

> My servlet "JdbcServlet3" is listed below and will compile without errors.
> However, when I try to POST the HTML FORM, I recieve the following error:
> Bad Request
> Your browser sent a request that this server could not understand.

> public class JdbcServlet3 extends HttpServlet
>  implements SingleThreadModel {
>
>   private Connection conn;
> private void dbConnect() throws SQLException {
>
>DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
>conn = DriverManager.getConnection
> ("jdbc:oracle:thin:@w121c20.legacyhs:1521:FIRST",
>"slambert", "password");
> }
>
>   /**
>* doGet method is called in response to a GET request
>*/
> public void doGet(HttpServletRequest request,
>   HttpServletResponse response) throws ServletException,
>   IOException

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Servlet and gif images

2000-02-27 Thread Sven E. van 't Veer

Massimo Casella wrote:
>
> I have an image stored in a field of my database. I must show this image in
> a html page on Apache server.
> Can I show the images without write before the file in the server
> filesistem?
>
Your HTML page should include an image tag like this:

your getImage servlet than gets the image from the db and shows it on
the page.

the code in the getImage servlet should looke somethin like this:
 try{
dbconnection = new
DbConnection("jdbc:mysql://foo-bar.com:3306/shopping", info);
connection = dbconnection.getConnection();
Statement smt = connection.createStatement();
String Query = "select * from bar_table where num=" + someInfo;
ResultSet rs = smt.executeQuery(Query);
while (rs.next()){
   try{
 int BytesRead;
 byte[] buf = new byte[4];
 InputStream dbin = rs.getBinaryStream(6);
 while (((BytesRead=dbin.read(buf)) != -1)){
   out.write(buf,0,BytesRead);
   out.write(BytesRead);
 }
 out.flush();
 rs.close();
 smt.close();
   } catch (IOException e) {
 out.println("oops!");
 ex.printStackTrace(out);
   }
}

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: How to create directories on server

2000-02-27 Thread Sven E. van 't Veer

"Meng, Dong J (CAP, CDI)" wrote:
>
> Hi:
>
> We have Netscape web server and Jrun on New York. This web server can access
> our Unix server on Atlanta. I try to use browser to fill directory
> information, then go through Web Server, create directories on our Unix
> server. For example, our Unix server IP is 3.79.30.234, I want create one
> directory called JavaCode under /custapps/dev. Do you know how to do it? Do
> you have sample code?
>
> Thanks in advance.
I have not come to this level of Java development yet, But I could
imagine a solution where your webserver talks through a socket with your
unix sever in Atlanta. the socket in Atlanta then uses Runtime.exec() to
do a mkdir on the server. You might also want to look into java.rmi.

sven

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: VIRUS on "How to remove a line from a JTextArea"

2000-02-23 Thread Sven E. van 't Veer

Ron Reynolds wrote:
>
> also i would say this is a
> VERY GOOD reason to add some form of filtering at the mail-server to remove
> attachments and script blocks from these damn HTML emails.
> just my humble opinion, of course...
I agree, but AFIK it's a setting missing in MS Outlook Express. In
netscape on my LinuxBox I have the option to not alow the execution of
scripts in mail messages.
Anyway, it would be a good idea to reject any HTML messages sent to the
list. And that's my humble opinion..

sven


--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Silly Question

2000-02-22 Thread Sven E. van 't Veer

Moloy Biswas wrote:
>
> do I have to do anything in Java Web Server for JDBC connection to load
> the Oracle driver
>
No. You load the driver is your java application.

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: On Linux! Typical Problem

2000-02-18 Thread Sven E. van 't Veer

>
> codelet will be most wellcome with some sample
> book information.
>
  Properties info = new Properties();
  info.put("user", "someuser");
  info.put("password", "somepassword");
  try{
 DbConnection db = new
DbConnection("jdbc:mysql://myhost.com:3306/somedb", info);
 Connection c = db.getConnection();
 Statement s = c.createStatement();


--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: How to create the DSN name under linux.

2000-02-17 Thread Sven E. van 't Veer

P wrote:
>
> "sun/jdbc/odbc/JdbcOdbcDriver" not found.
>
take a look at your CLASSPATH variable. (in .bash_profile)
make sure it contains a line:
CLASSPATH=$CLASSPATH:.:/path/to/sun/jdbc/odbc/JdbcOdbcDriver/: (some
othe java classes)

and that the line
EXPORT . contains CLASSPATH


that sould do it.

sven
--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Redirection and framsets

2000-02-14 Thread Sven E. van 't Veer

I'm doing a database application in servlets. After the user has logged
in, I send a page with two frames to the client. The left side contains
the menu and the right side is where the user can enter/alter data
depending on the menu option chosen. In some cases the right side may
contain two frames (top and bottom) where the user can enter search
criteria in the top frame and the data is displayed on the bottom.
I keep track of the users session through the session object. If the
server invalidates the session after let's say 30 minutes of inactivity
I do a sendRedirect to the loginservlet whenever the user clicks at any
of the buttons. The loginservlet however displays the login page in the
target frame but I want the page to be shown using the whole browser
window. The code I'm using

  String url = baseUrl + "adminLoginServlet";
  res.setStatus(HttpServletResponse.SC_RESET_CONTENT);
  res.sendRedirect(url);


Does anyone have any Idea on how to resolve this.

Sven

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: getParameters

2000-02-11 Thread Sven E. van 't Veer

Darko wrote:
>
> Hello,
>
> How do I retrieve all the parameter names and/or values at once from an
> html page ?
> I have around 100 paramaters on my html page and when I call a servlet
> to process them, I use  following code to retrieve parameter names
>
> Enumeration enum = req.getParameterNames();
>while (enum.hasMoreElements()) {
>   String name = (String) enum.nextElement();
>   out.println("name = "+i+" "+name);
>   i++;
>   out.println();
>
> But I get only about 30 parameter names, I dont know what happened with
> the rest.
You're probably using GET to pass the info. Try using post.

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: Calling a Windows Line Command from a Servlet

2000-02-10 Thread Sven E. van 't Veer

Jay Macarty wrote:
>
> I have a servlet which needs to interact with another application. The
> problem is that the application normally works from commands entered at a
> DOS prompt window. I need to be able to invoke the command and trap the
> output. I think I have seen this done before but can't remember where.
>
try the exec(String Args[]) from the java.lang.Runtime class



--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: help: connection pool

2000-02-10 Thread Sven E. van 't Veer

Luc Saint-Elie wrote:
>
> Hello,
>
> I use Hans Bergsten connection pool for tests every day and it work fine
> right out of the box (its so cool that it could be part of every java
> server side installation :-)
Please tell me where I can find it

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: PLEASE stop sending HTML mail

2000-02-10 Thread Sven E. van 't Veer

> and you should know
> more about purpose, bandwidth and -why not?- netiquette, to require effort
> on the other end of a communication channel, instead of sticking to the
> baseline.
>
I do not understand something here I gues.. But ehhrr.. why would anyone
send a question on servlets in HTML format knowing that those who might
have the answer can't read the question in the first place.

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: (sorry for dual post) PLEASE stop sending HTML mail

2000-02-08 Thread Sven E. van 't Veer

Arnaud D wrote:
>
> Isn't this a list to talk about servlets ?
>
> PS : I agree with Simon. Last time i checked my emails on a text terminal
> was in college on a bull DPX2 (unix) in 1996, before the school decided to
> run linux over bull proprietary unix.
>
Well I do use an HTML enabled email reader on a linux box and I don't
like HTML mail much, Some people use font's so small it's hardly
readable.

While HTML works for some, plaintext-ASCII works for everyone.


--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: RH Linux 6.1 + Apache + JServ + IBM JDK 118 Prolems

2000-02-08 Thread Sven E. van 't Veer

Sean Merritt wrote:

> Everytime I access a servlet the error logs indicate that the JVM starts and the
> dies
> in rapid succession.
>
> Any insight from those who have this or a VERY similar configuration going
> greatly appriciated.
> Please no pointers to the Apache FAQ , been there with little results. In fact
> last attempt to access it
> failed to load the Jserv FAQ at all... FAQ-omatic indeed.
Using the same setup, (Only difference is I use a home brewed apache) I
had exactly the same problem with IBM's jdk 1.1.8. I decided to switch
to sun's jdk 1.2 and the problem stoped.

sven

--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: It just does not want to work.

2000-02-04 Thread Sven E. van 't Veer

Tarek Shaar wrote:
>

>
> even though the name of my class is ClientSide1.java and the name of the amin class 
>in the code is the same.
>
> When I run it using IE
> "Can't find class ClientSide1.class!Why Why !!!
>
> The class file ClientSide1 and the html page clientSidePage.html are placed in the
> same directory "on my Java Webserver 2.0" in public_html.
I'm just guessing here, but try
http://foo.bar.com/path/to/applets/ClientSide1.class"
  NAME = "ClientSide1"
  WIDTH= 400
  HEIGHT   = 300
  HSPACE   = 0
  VSPACE   = 0
  ALIGN= middle
>



--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Images from database.

2000-01-26 Thread Sven E. van 't Veer

I had this working in PHP and would like to do the same thing with
servlets.
On one page can include some data, including an image to a database
(mysql) and on an otherpage he can retrieve the data from the database,
including the image.

I've been working on the second part, retrieving the image, and cannot
get it to work. I'm rather new to java programming and would like some
hint's, code snippets of this kind of operation.

What I figured is that I have to get the image from the as a byte[], but
i cannot get it written to the output stream

Thanks in advance
--
Sven E. van 't Veer

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Session Tracking

1999-06-08 Thread Sven Fuchs

Hello everyone.

A real newby question, I suppose. But I've searched the faqs etc. and
haven't found it.

I'd like to track sessions but avoid cookies. I've found the info, that
getSession() determines wheater the browser can place cookies or not. But I
don't want the user be asked for cookies ... Everything I've found starts
with

HttpSession session = req.getSession(true);

When I write a doGet() method with nothing in except for this line and start
it from Netscape 4.0, Netscape asks me if I want to accept a cookie.

So from where can I get a session or sessionID for rewriting URLs to avoid
cookies?

Thanks in advance,

Sven Fuchs

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



MailFormHandler - no mail from sendmail

1999-05-20 Thread Sven Fuchs

Hello everyone!

[new to this list, please tell me if my question has been answered and is to
be found in the archives - haven't found anything about it there]

I've written a shoppingcart-servlet including an mailform-handler to send
the order-form per email. Everything is very fine, working with servlets.
But there's one problem I'm not able to solve:

When I send the mail from the class' main() (to test it) from my hd, the
mail arrives my mailbox. When I send it from the servlet's doPost() from the
external server, the mail never arrives me. Everything else is the same
code, same mailadress, same mailserver etc. There's no exception thrown
getting the outputstream from socket, nothing. My servlet tells me, that the
mail has been send, but it doesn't arrive me - but only if I try to send it
from the upload servlet via doPost().

I've been wondering and wondering ... Has someone a hint?

Thanks in advance.

Greets,

Sven Fuchs
[EMAIL PROTECTED]

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html