Re: jsp:useBean How do I use a constructor with parameters????

1999-07-11 Thread John Zukowski

Obviously, you don't understand JavaBeans

Don't expect what you are looking for.

J

Thanks for your message at 08:22 PM 7/11/99 -0700, Kevin Burton:
Why can't a developer provide a constructor with a parameter list?

jsp:useBean id="test" scope="session" class="com.myCompany.test" /

Is is it just me or does this seem like a major pain.  If I want to use
a constructor with parameters I would have to write an initialize()
method and call it via:

%
test.initialize("var1", "var2");
%

IMO this just leads to bad code.  I am writing a bean that accesses an
Oracle database.  I would like to provde a database URL, logon and
password as part of the constructor.

Any ideas?  Is this slated to become a feature down the road?


John ZukowskiFocus on Java Guide / http://java.about.com
   Author Java AWT Reference / Mastering Java 2 / ...
   jGuru Java Training by the MageLang Institute
   http://www.magelang.com | [EMAIL PROTECTED] - Got Java?

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: JSP help

1999-07-10 Thread John Zukowski

WebSphere. it comes with JSP, though not the latest. Only .92 I think.

Talk to your employer if you want 1.0 support...

J

Thanks for your message at 11:37 AM 7/6/99 -0600, Pokala Sucharita:
Hello,

We are using IBM WebSphere environment for servlet implementation. We
would like
to use JSPs. Can anybody give us the list of packages we need to install to
start with  JSP.


John ZukowskiFocus on Java Guide / http://java.about.com
   Author Java AWT Reference / Mastering Java 2 / ...
   jGuru Java Training by the MageLang Institute
   http://www.magelang.com | [EMAIL PROTECTED] - Got Java?

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: first JSP

1999-07-09 Thread John Zukowski

http://java.about.com/library/weekly/aa062399.htm includes a description of
creating a first JSP program with the tools you mention.

J

Thanks for your message at 02:23 PM 7/9/99 -0500, C Kruppa:
Working on my first JSP.  It is just a simple HTML form and corresonding
JSP.  I'm using JSWDK1.0 and jdk1.2.1.  JSWDK runs all of the sample JSP's
and servlets, but it doesn't recognize any of the JSP tags in my page.  It
just takes everything that's not inside a JSP tag and treats it like
HTML.  I'm sure I have something set up wrong because all of the samples
run correctly.  Finally, I just copied the text of the "Snoop" example's
JSP into a new file, renamed it, and tried to run it.  I got the same
result: ignores all JSP tags and prints everything else.  Can anybody give
me a clue??

Clueless,
Carrie Beth


John ZukowskiFocus on Java Guide / http://java.about.com
   Author Java AWT Reference / Mastering Java 2 / ...
   jGuru Java Training by the MageLang Institute
   http://www.magelang.com | [EMAIL PROTECTED] - Got Java?

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: How to configure Jswdk

1999-06-28 Thread John Zukowski

http://java.about.com/library/weekly/aa062399.htm

includes a walkthrough to help you get started.

J

Thanks for your message at 09:31 AM 6/29/99 +0800, /servlet-interest Ng
Hang Fai, Calvin:
Dear all,

I have downloaded JSWDK from Javasoft, but i don't know how to configure it.
Can anybody have experience on it or where can i access some beginning
material on it? Thanks a lot

Regards,

Calvin Ng

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".


John ZukowskiFocus on Java Guide / http://java.about.com
  Author Java AWT Reference / Mastering Java 2 / ...
  jGuru Java Training by the MageLang Institute
  http://www.magelang.com | [EMAIL PROTECTED] - Got Java?

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: Threads

1999-06-23 Thread John Zukowski

5

Thanks for your message at 03:55 PM 6/23/99 +, Elena Palanca:
Hi,
does anybody know, how many threads the free version of Jrun is able to
support concurrently?
Thanks in advance.
Elena




John ZukowskiFocus on Java Guide / http://java.about.com
  Author Java AWT Reference / Mastering Java 2 / ...
  jGuru Java Training by the MageLang Institute
  http://www.magelang.com | [EMAIL PROTECTED] - Got Java?

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: Help

1999-06-14 Thread John Zukowski

Read the JSP FAQ at http://www.esperanto.org.nz/jsp/jspfaq.html.

J

Thanks for your message at 03:19 PM 6/14/99 -0500, Mehdi Hassanipour:
I'm new to JSP. Downloaded  installed the latest version from javasoft.
Tried example JSP pages but got the following error message.
Unhandled error! You might want to consider having an error page to report
such errors more gracefully
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at com.sun.jsp.compiler.Main.compile(Compiled Code)
at com.sun.jsp.runtime.JspLoader.loadJSP(Compiled Code)
at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compiled
Code)
at com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(Compiled
Code)
at com.sun.jsp.runtime.JspServlet.serviceJspFile(Compiled Code)
at com.sun.jsp.runtime.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at com.sun.web.core.ServletWrapper.handleRequest(Compiled Code)
at com.sun.web.core.Context.handleRequest(Compiled Code)
at com.sun.web.server.ConnectionHandler.run(Compiled Code)

Anybody with ideas, please respond to my private
e-mail([EMAIL PROTECTED])

using JDK 1.2.1, JSP 1.0, Windows NT and Netscape Navigator 4.04

i.e. Servlet examples work OK.

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".


John ZukowskiFocus on Java Guide / http://java.about.com
  Author Java AWT Reference / Mastering Java 2 / ...
  jGuru Java Training by the MageLang Institute
  http://www.magelang.com | [EMAIL PROTECTED] - Got Java?

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: How to use JSP 1.0 (JRun or Sun) in JRun 2.2.1 ????

1999-06-13 Thread John Zukowski

See http://www.jrun.com/products/jrun/jspUpdate.html for patch

Thanks for your message at 02:09 AM 6/14/99 +0700, Along Chansoi:
Hi All,

I have two question about JSP 1.0 release.
1. How to use Sun JSP 1.0 in JRun 2.2.1 on NT Server with IIS 4.0
2. How to use JRun JSP 1.0 beta x in JRun 2.2.1 on NT Server with IIS 4.0


Thanks in advance,

Narong Chansoi


John ZukowskiFocus on Java Guide / http://java.about.com
  Author Java AWT Reference / Mastering Java 2 / ...
  jGuru Java Training by the MageLang Institute
  http://www.magelang.com | [EMAIL PROTECTED] - Got Java?

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: jsp:useBean and serialized bean instances

1999-06-02 Thread John Zukowski

I just tried accessing a serialized bean through JSP 1.0 and it worked fine

Basic steps...

Define bean, make sure it is Serializable. Compile...
Create program to save serialized bean. Basically, create new bean, set
state, and save it to a file named classname.ser.
Place classname.ser file in the same directory as the classname.class file.
jsp:useBean ... will load the .ser file if it is found

J

John ZukowskiFocus on Java Guide / http://java.about.com
[EMAIL PROTECTED] | [EMAIL PROTECTED]
Author Java AWT Reference / Borland's JBuilder No Experience Required
MageLang Institute  / Mastering Java 2
http://www.magelang.com  Have fun, you'll learn as you go.

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: JSP / headache

1999-06-01 Thread John Zukowski

Reflection allows you to do what you want.

J

Thanks for your message at 09:55 PM 6/1/99 -0500, Jason Puyleart:
Is there a way to have a method work with the specifics of an object at
runtime?

Let's say that I have a method that I want to pass in a vector of objects

public CheckBoxList(Vector objects, String anObject, String value)

Can I do something like this:

anObject item;

item = (anObject)object.elementAt(index);

item.value

Basically, I want to be able to create a method that will be able to use
certain methods of an object
without knowing them until runtime...

This probably doesn't make any sense - it's been a long day  Any
thoughts would be appreciated!


John ZukowskiFocus on Java Guide / http://java.about.com
[EMAIL PROTECTED] | [EMAIL PROTECTED]
Author Java AWT Reference / Borland's JBuilder No Experience Required
MageLang Institute  / Mastering Java 2
http://www.magelang.com  Have fun, you'll learn as you go.

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: ANN: Java Web Server 2.0 Beta2 now available for download

1999-05-26 Thread John Zukowski

With the announcement of the imminent demise of the Java Web Server and
Sun supporting Netscape's current server

What exactly is the status of the Java Web Server? Why is production
continuing?

J

Thanks for your message at 04:00 PM 5/26/99 -0700, Isa Hashim:
The Java Web Server team is pleased to announce Java Web Server
2.0 Beta 2 . You can download this early access trial version
from:

http://www.sun.com/software/jwebserver/20beta/index.html

New in 2.0:
- Servlet 2.1 API
- Bundled JRE1.1.7
- Runnable against Java(r) 2 (previously codenamed "Java 1.2")
- JSP support
- Many bug fixes and enhancements

New in Beta2:
- Preliminary JSP 1.0 support
- SSL support when running against Java(r) 2
- Bug fixes

Keep in mind that this is early access to software that is still under
development and is intended for evaluation purposes only. Please send
Beta comments, questions, or bugs to:


John ZukowskiFocus on Java Guide / http://java.miningco.com
[EMAIL PROTECTED] | [EMAIL PROTECTED]
Author Java AWT Reference / Borland's JBuilder No Experience Required
MageLang Institute  / Mastering Java 1.2
http://www.magelang.com  Have fun, you'll learn as you go.

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



JWS Demise...

1999-05-26 Thread John Zukowski

For those interested... Sorry should have included in first message

http://www.news.com/News/Item/0,4,37053,00.html

The Sun-Netscape Alliance will kill off Sun's two Web servers in favor of
Netscape's technology as part of an effort to pare down duplicate software.


John ZukowskiFocus on Java Guide / http://java.miningco.com
[EMAIL PROTECTED] | [EMAIL PROTECTED]
Author Java AWT Reference / Borland's JBuilder No Experience Required
MageLang Institute  / Mastering Java 1.2
http://www.magelang.com  Have fun, you'll learn as you go.

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Servlet Mailing list

1999-05-24 Thread John Zukowski

Someone the other day asked abut a servlet mailing list. I forgot which
mailing list the message came in. Sorry. But, Sun manages one at

http://java.sun.com/products/servlet/list.html

J

John ZukowskiFocus on Java Guide / http://java.miningco.com
[EMAIL PROTECTED] | [EMAIL PROTECTED]
Author Java AWT Reference / Borland's JBuilder No Experience Required
MageLang Institute  / Mastering Java 1.2
http://www.magelang.com  Have fun, you'll learn as you go.

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".