8. Log4J
...
Max
-- Original message --
From: "Lim Siew Cheng" <[EMAIL PROTECTED]>
Date: Tuesday, November 20, 2001, 6:54:11 PM
Subject: Debugging a servlet
LSC> 1.JLog
LSC> 2. out.println
LSC> 3. Systm.out.println.
LSC> 4.System.err.println
LSC> 5. Debug.out.println ( )
LSC> 6. try + catc
hi,
your browser tries to download the servlet's
class file???
is it possible that the server you're using
doesn't support servlets?
Its Tomcat with
apache
use the security features that have been around with servlets for ages -
HTTP basic auth, etc. a reading of the servlet spec should give you enough
info. above and beyond that, individual servlet containers (especially
commercial ones like weblogic, websphere) have extensions to that security
mode
hello,
environment:
1. windows 2000 server.
2. iplanet web server 6.0 enterprise
3. sql server 7.0
i am using JDBC to connect the servlet with sql sever
i am not using bean or connection pooling.
when i test the servlet and after 4 or 5 request my iplanet web server is shutting
Hi All,
I'm trying to make sure that an entry in a database
doesn't exist before I enter data into the database -- based on information
entered in on a form.
How do I go about doing that? Any help would be
appreciated.
Thanks
MD
Solution: use Netscape or Mozilla... ;-)
Sorry, I couldn't resist. AFAIK IE has never supported server push, from
the earliest days. I never heard any explanation of *why* they didn't
support this. The best you can do with IE is use browser refresh (with a
META refresh header, for best compatibil
Dear all,
When my jsp retrieve data from mysql. All the chinese characters cannot be
displayed and become special symbol. However, if I type a chinese characted
in jsp file. It can display. So I think this is the mm driver problem or
jdbc.
Is there any suggestion or hints ??
Regards,
Dick Won
But how plugin call javascript function ?
Anselm Yuan
- Original Message -
From: "Godbey, David" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 21, 2001 1:30 AM
Subject: Re: Can applet call javascript function?
> I don't suppose you have this working
Hi
All,
I am trying to make
a servlet filters, but I found there are two different Filter Interface on my
system,
first the interface
from sun servlet spec 2.3 looks like this:
public
abstract void init(FilterConfig filterconfig) throws
ServletException;
public
abstract void doFilter(Servl
These are not "packages" and commenting any extraneous imports would do
nothing to your program except debilitate it. Java imports are similar of C
#includes. The Java Runtime Engine picks only those classes you have
declared in your import statements relevant to your code. You could have
impor
I commented out the import java.util.* and import java.text.* packages.
I left these alone:
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
That's all and compiled and I could see my simple output.
talk to you later,
Will
-Original Message-
Fr
"...comment out some packages...?" I'd be interested in what you did to
make it work.
Cheers!
Mark
- Original Message -
From: "Kwan, William" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 20, 2001 5:36 PM
Subject: Re: servlet and java web server
> Hi Geeta,
>
>
Hi Geeta,
that didnt help. I had to actually comment out some packages and it worked.
thanks,
Will
-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 18, 2001 9:49 AM
To: [EMAIL PROTECTED]
Subject: Re: servlet and java web server
Hi Will:
Write
Java Developer's Journal just published a fine article on this very subject
in either the Oct or Sep issue.
(Too lazy to get up and dig it out :-) )
Cheers!
Mark
- Original Message -
From: "Tom & Sharon Kochanowicz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 19,
I did this about a year ago with SMIL, but I don't
remember how. I think it involved using the applet's AppletContext
class. This gives you access to the DOM which spawned the applet.
Check out the API on this.
Cheers!
Mark
- Original Message -
From:
yuan
To: [EMAIL
Hi,
I try to use "server push" to have a servlet return several pages all in response to the same request. It works fine in Netscape, but it fails in IE. It's kind of painful. Anyone has some solutions or alternatives? I appreciate it.
Regards,
StellaGet your FREE download of MSN Explorer
Richard,
I commented out some packages and it worked. I then added them back in and
it now works.
I dont know why, does anybody have an answer??
thanks,
Will
-Original Message-
From: Richard Yee [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 18, 2001 12:52 PM
To: [EMAIL PROTECTED]
Hi
Instead of putting the parameter in the link to the servlet you can put it in a hidden
input field in a form that you submit with the POST method, and catch it with
doPost(). That way it's invisible to the user; though it's not as safe as the sessions
approach that Michael Weller suggested
I personally find Tomcat4.x easier to set up. I am using it in a development
environment, debugging with JBuilder5, and using Cocoon2rc2. It has better
support for contexts and .war files among other things... I have had no
problems, although I am not in a live commercial environment...
-Orig
Hi,
I tried to put the resultset into an array and send that to the jsp page but
I think I'm doing it wrong. Is there an easier way, like passing the
resultset over??
here some code:
does this set the rsArray to have the data from the resultset??
request.setAttribute(dbrs.getString(i+1),
Sounds like your best approach is to just fetch the raw bytes and send
them on, rather than try to parse the bytes into an Image and then
encode the Image back to bytes. If you want to make edits to the
picture, then the techniques in Chapter 6 will be handy (like on p. 181
where I talk about the
hi,
why don't you simply work with the session mechanism provided by the servlet
api to keep a list of documents the current user may view or to keep
information about the user to check if he shall be allowed to view the
requested document.
hope this helps!
-mw
- Original Message -
From
hi,
there's a great article about exactly this topic
http://www.javaworld.com/javaworld/jw-03-2000/jw-03-pushlet.html (sometimes
google is the best help) !!!
-mw
- Original Message -
From: "Guillermo de Jesús HOYOS RIVERA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, Novemb
hi,
your browser tries to download the servlet's class
file???
is it possible that the server you're using doesn't
support servlets?
-mw
- Original Message -
From:
Javier Alonso
To: [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 6:50
PM
Subject: PrintWr
Hey folks,
I'm working with this old code, trying to get it running under
weblogic. The old code has about eighty little servlets and uses
classpath/classname mappings to bounce back and forth. I.e. one servlet
will have a form targeted ACTION="foo/bar/Baz", which by default maps
to WEB-IN
HEllo every one. I´ve a problem (again). When i
try to print out a servlet in the inet browser using a Printwriter , and
calling the servlet using a form my browser tries to download the servlet
instead of showing it on screen. Can anybody tell me why?. The Context type is
set t
No,
you've got it right. Keep on going...
-Original Message-From: Sergey Kulik
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, November 20, 2001
11:37 AMTo: [EMAIL PROTECTED]Subject:
Servlet -> Applet communication
Hi Guys.
I am new in servlets. I have to make a
communication
I don't suppose you have this working for a Swing applet, using the JRE 1.3
(or 1.2) plugin, do you?
Thanks,
Dave
-Original Message-
From: Lim Siew Cheng [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 10:57 AM
To: [EMAIL PROTECTED]
Subject: Re: Can applet call javascript func
Hi Guys.
I am new in servlets. I have to make a
communication between applet and servlet I need transfer binary data to applet
and receive a response from it. I am trying to use Streams, URLConnection. Could
anybody tell me what more efficiently to use in this
case.
Thanks in advance.
Sergey
We have it working for IE5.0
As for Netscape (4.7 & above) I think one of our team mates is patching
something up...
But anything that spans across html to applet involving Javascript (like
ours...)
gives the maintainers ( ie. humans like us ) headaches :<
__
1.JLog
2. out.println
3. Systm.out.println.
4.System.err.println
5. Debug.out.println ( )
6. try + catch
7. The above 6
:)
At 09:18 AM 11/20/2001 -0600, you wrote:
>How does one debug a servlet? I am using NetBeans as my IDE for developing
>it.
>
>Mike Wills
>AS400 Programmer
>[EMAIL PROTEC
First, to qualify myself, I am relatively new to java. I am a RPG programmer
by trade.
We have web application (purchased) that does it's own document distribution
that. However in our environment, we are somewhat modifying it to adapt to
our evironment, but let it handle the front end security.
How does one debug a servlet? I am using NetBeans as my IDE for developing
it.
Mike Wills
AS400 Programmer
[EMAIL PROTECTED]
Comming soon to a web browser near you... koldark.net
_
Get your FREE download of MSN Explorer at http://
Oops. I promise, next time I will read the API documentation _before_
posting a question. :-)
I figured out what is going on there (when you are working on work in class,
you tend to be in a hurry ;-). I have it all figured out and working. I
looked in to the API documentation and realized I didn
Dear Michael Weller:
Thanks for your answer. Effectively the solutions you
propose me are very similar to that that I intuitively had thought (as you
can guess I am quite new to both, Java and Servlets).
I just would like to ask you an additional ques
hi,
mybe this would be an option:
> > class directoryFilter implements IFSFileFilter {
List fileNameList = new ArrayList();
> > public boolean accept(IFSFile file) {
> > try {
> > if (!file.isDirectory()) {
> > System.out.print(file.getName());
dirNameL
>Hello,
>
>This link should help you.
>
>http://www.apl.jhu.edu/~hall/java/JavaScript-from-Java.html
The web site say this only works with Netscape 3 & 4 and IE 4. Before I
start downloading stuff, Is this accurate or does it simply reflect the age
of the page?
Regards
Roger
__
Hi Javier,
seems like your requesting a column which is not within your resultset.
For testing and debugging you may try this sketched approach (please
check method names, I did my best to recall them correct :-) )
stmt = conn.createStatment();
rs = stmt.execute("...");
ResultSetMetaData rsMeta
Hello everyone. I´m still having problems with the BuscarNoticiasServlet i
posted.
THe problem is with the ResultSet thing.First i made another class just to
set some variable and get their values. Its a public class in the same
package.
Now after making the SQL connection and statement i´m trying
You may find it usefull to take a look at suns petstore J2EE sample
application and the J2EE patterns for frontend at sun site.
Peter
- Original Message -
From: Tom & Sharon Kochanowicz <[EMAIL PROTECTED]>
Date: Monday, November 19, 2001 10:10 pm
Subject: Model, View Controller & Struts
Geeta Ramani wrote:
> Tom, you ever considered using Expresso?
> ...
>>A while back (1yr ago) I developed some servlets and life was good. I am
>>now planning to try my hand at some more servlet/jsp development. I am
>>somewhat weak on JSP's so have been reading up on them and reading ar
41 matches
Mail list logo