Re: please help...

2003-01-20 Thread Haseltine, Celeste
Ravi,

Check on Symantec's web site, but I remember reading that Visual Cafe was
going open source this year, and that Symantec was not going to sell/support
the product any longer.  It may be that the version your university has
installed was the last "sold" version prior to going to open source, and
pointing to a different JDK library to build against may not be a feature in
the version you are using.  But check this out on their web site.

Celeste

-Original Message-
From: Ravi Kumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 8:53 PM
To: [EMAIL PROTECTED]
Subject: please help...


How do I make symantec visual cafe enterprise edition (version 3) use java's
1.4 api and swing components  rather than those shipped with the ide
(com.sun.java.swing.JFrame)??

The copy of visual cafe i am using is installed in my university computers.
Is it legal for me to use it to develop software and sell it? (I would not
compile to any native format. I simpy need the visual development
environment.) Can i also ship Java's run time environment with my software
without inviting trouble?

Please reply soon.

Ravi Kumar.

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com



Re: Can anyone help.......??

2002-11-15 Thread Haseltine, Celeste
No Tomcat does not support EJB's.

A free version of an EJB container is JBoss.  Or you can purchase an
application server that supports all three, EJB's, Servlets, JSP's.
Examples are Macromedia's JRUN 4.0, IBM WebSphere, BEA Weblogic, etc

Celeste

-Original Message-
From: Emmanuel Eze [mailto:eze@;SYSTEMSPECS.COM.NG]
Sent: Friday, November 15, 2002 4:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Can anyone help...??


Does Apache Tomcat has support EJB?  Can anyone please tell an application
server supports JSP, Servlet, EJB.

Thanks
Emma

-Original Message-
From: Karr, David [mailto:david.karr@;ATTWS.COM]
Sent: Friday, November 15, 2002 12:39 AM
To: [EMAIL PROTECTED]
Subject: Re: Can anyone help...??


The easiest choice is Apache Tomcat, which you can read about and
download at the following URL:
http://jakarta.apache.org/tomcat/index.html

You should install the latest released version of version 4.1.  There is
good documentation on installing it and running simple pages.  Past
that, you have a lot of reading to do.

> -Original Message-
> From: T.M [mailto:tm5004@;YAHOO.COM]
>
> How to get started runing jsp pages?What server do I need and
> how to set it up

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Report displaying and printing in JSP's

2002-10-10 Thread Haseltine, Celeste

My thanks to everyone who provided me with suggestions and links to products
they had tried.  I figured someone in the user community had probably
already tackled this problem, and could provide recommendations/advice.

Thanks again to everyone who responded!!!

Celeste Haseltine, PE
MTL, Inc

-Original Message-
From: ROLDAN, Gabriel raul [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 1:04 AM
To: [EMAIL PROTECTED]
Subject: Re: Report displaying and printing in JSP's


I am using iText (www.lowagie.com) pdf generator for creating
reports in my intranet with great success.

using confidential production data and images gathered from
an image map server, I can generate a pdf document writen directly
to the client via HTTP without the need of storing it in the server
filesystem, and the best, pdf documents are encrypted with 128 bit keys
and have permission just for printing.

if this aproach seems interesting for you, feel free to contact me
at [EMAIL PROTECTED] or [EMAIL PROTECTED]

I'll help the most I can.

Gabriel


-Mensaje original-
De: Dror Matalon [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 10 de octubre de 2002 1:09
Para: [EMAIL PROTECTED]
Asunto: Re: Report displaying and printing in JSP's


On Wed, Oct 09, 2002 at 03:34:54PM -0700, Steve Bang wrote:
> I haven't had a chance to try the following, but they look like
interesting
> options:
>
> For report generation:
>
>   JasperReports
>   http://jasperreports.sf.net
>
>   JFreeReport
>   http://www.object-refinery.com/jfreereport/index.html


Don't both of these rely on a *client* side java program to generate the
report? I also believe that JasperReports generates a class that needs to be
loaded for every report, which seems a little cumbersome in a JSP
environment.

>
> For PDF generation:
>
>   iText
>   http://www.lowagie.com/iText/
>
>   Big Faceless Report Generator
>   http://big.faceless.org/index.jsp
>
>
> Any comments on experience with these products would be appreciated.
>
> Steve
>
> > -Original Message-
> > From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 09, 2002 3:14 PM
> > To: [EMAIL PROTECTED]
> > Subject: Report displaying and printing in JSP's
> >
> >
> > I'm interested in knowing what options other people have used
> > successfully,
> > and not so successfully,  to generate and display report
> > information and
> > format it for printer output in jsp/servlets.  Our product is
> > a jsp/servlet
> > intranet application, and we would like to now add a report generation
> > feature for the management team.  There will be numerous
> > types of reports,
> > and all will utilize production data contained in the
> > database.  I've looked
> > into Crystal Reports, but it does have port conflict issues with our
> > application server JRUN 3.1.  I know that XML format is great for
> > displaying, but I understand that it has limitations when it comes to
> > formatting the report for various types of printer output.  Other than
> > looking into PDF format, does anyone else have any
> > suggestions/options that
> > they would like to recommend?
> >
> > My thanks in advance for any recommendations/advice.
> >
> > Celeste Haseltine, PE
> > MTL, Inc.
> >
> > ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > "signoff JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> > JSP-INTEREST DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
> >
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

--
Dror Matalon
Zapatec Inc
1700 MLK Way
Berkeley, CA 94709
http://www.zapatec.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest:

Report displaying and printing in JSP's

2002-10-09 Thread Haseltine, Celeste

I'm interested in knowing what options other people have used successfully,
and not so successfully,  to generate and display report information and
format it for printer output in jsp/servlets.  Our product is a jsp/servlet
intranet application, and we would like to now add a report generation
feature for the management team.  There will be numerous types of reports,
and all will utilize production data contained in the database.  I've looked
into Crystal Reports, but it does have port conflict issues with our
application server JRUN 3.1.  I know that XML format is great for
displaying, but I understand that it has limitations when it comes to
formatting the report for various types of printer output.  Other than
looking into PDF format, does anyone else have any suggestions/options that
they would like to recommend?

My thanks in advance for any recommendations/advice.

Celeste Haseltine, PE
MTL, Inc.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JSTL and Connection Pooling

2002-10-09 Thread Haseltine, Celeste

I have to interject one comment to this discussion thread.  Make sure that
you NEED to use an MVC architecture to complete the task at hand.  I can't
count the number of times I have seen the Model II (MVC) architecture used
when it was overkill for the project at hand, and EJB's for that matter
also.  Small apps that have a short life cycle(less than 12-18 months),
prototype applications (used to "feel out" the viability of a possibly
project or technology, or to do a "song and dance" for the CEO, CIO
management types), or applications that you know will very rarely be
modified (such as support of manufacturing equipment/medical diagnostic
equipment) do NOT necessarily need an MVC architecture.  And keep in mind
that using an MVC architecture does increase your development time AND your
development cost, as the number of lines of code it takes to complete a
"stage or segment" in an MVC architecture application can be up to 33% more
than the lines of code it takes using the traditional Model I architecture.

Examples of some of the types of applications I have worked on that did NOT
need the overhead of a Model II architecture include an intranet JSP/servlet
front end to support an industrial printing manufacturing line, and a
JSP/servlet GUI front end for medical diagnostic equipment.  These types of
apps usually have a long life span, but are very rarely modified over the
life of the product, as they are much more dependent on the type of hardware
being used.  Examples of applications that would probably require a LOT of
modification/maintenance over the life of the product, and that you would
want to consider using an Model II architecture include warehouse/product
inventory applications, web ordering applications, transportation
applications, and invoicing/billing applications.  So make sure that you use
the type of architecture necessary to get the job done AND that gives your
client the "best bang" for their money.

Just my 2 cents worth.

Celeste Haseltine, PE
MTL, Inc

-Original Message-
From: Hans Bergsten [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 8:54 PM
To: [EMAIL PROTECTED]
Subject: Re: JSTL and Connection Pooling


Joseph Ottinger wrote:
 > Hans, I fully agree in that there are more than one side -- but I'd
 > still stand by my statement to Troy, with a caveat in place.
 >
 > I have NO problem with Hans Bergsten, or Shawn Bayern, or James
 > Strachan, etc., using the SQL tags. An expert can bend or break the
 > rules, and generally does so when the situation calls for it - and
 > because of expertise, you're generally sure that it's been done with
 > logic and reason behind it. I've done the same myself. That said, I
 > don't think someone who's willing to wonder if it should be done
 > should do so, because the wonderment itself shows a lack of enough
 > knowledge to make a correct choice. (I'm really not trying to be
 > insulting to those who wonder - I mean, you have to start questioning
 > methods SOMEWHERE. But let's pretend I'm speaking VERY generally,
 > with the understanding that whoever's reading this is an obvious
 > exception.)
 >
 > That's really my problem with the JSTL having SQL tags - instead of
 > them being a tool chosen deliberately, they are being "blessed" by
 > virtue of the JSTL mantle into being a commonly acceptable tool. I'm
 > sorry; I realise JSP is fully able to serve as controller, model,
 > *and* view, but I would hope that by now we'd realise that the first
 > two roles aren't what it's suited for, and encouraging it in those
 > roles is counterproductive.

I don't want to start a long debate about this (I think the thread I
pointed to covers it pertty well), but I'll add one comment and try
to answer Troy's follow-up questions at the same time.

Troy, the main reason many consider it bad practice to include database
access in a JSP page has nothing to do with performance, no matter if
you use the JSTL SQL actions or some other approach. It's all about
design and using appropriate abstractions to make the application
easier to maintain. If you include SQL in your JSP pages, you expose
the database schema in a part of the application that should not know
these details (the View in the MVC pattern). Or, a similar argument,
your using a technology (JSP) that is primarily intended for the View
(user interface) part of the application.

I agree with Joseph that you should be aware of the drawbacks (an
application that may be hard to maintain and extend), but I still
think including SQL actions in JSTL was the right choice. If we didn't,
people who are not programmers but still like to use JSP to develop a
simple application would either use Java scriptlets with raw JDBC code
(and we've all seen the catastrophic results of a non-programmer doing
this), use one of the many third-party SQL custom tag libraries that
are available (better), or give up on using JSP altogether (sad); they
would _not_ learn OO design, how to program in Java, develo

Re: Web Server / JSP-Servlet Container (newbie)

2002-09-12 Thread Haseltine, Celeste

Pablo,

The web server (Apache or MS IIS) serves up only static content such as
HTML.  Your application server on the other hand (Tomcat, Websphere,
Weblogic, JRUN, Orion, etc), actually contains a compiler, which "converts"
your JSP code to servlet code, and then "serves up" the resulting HTML code
back to the web server (if both are configured to work together, which they
should), which then hands it back up to the requesting browser.  In this
type of configuration, the web server does what it does best, which is
server up static content, and the application server does what it does best,
compile JSP code to servlet code, and then hand off the resulting HTML back
to the web server.

EJB's on the other hand require their own server/container.  In this case,
Tomcat does not come coupled with it's own EJB container/server, so many
people use JBoss, which is a free EJB container.  Most commercial
application packages come bundled with an EJB server, so Webspher, Weblogic,
and JRUN will handle both JSP/servlets and EJB's.  Commercial application
servers also come with some "bells and whistles" and a friendly GUI
interface which allows you to set up items such as your JDBC data source,
and to deploy EJB's.

Celeste Haseltine, PE
MTL, Inc
Dallas, TX


-Original Message-
From: Pablo Bryan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 2:37 PM
To: [EMAIL PROTECTED]
Subject: Web Server / JSP-Servlet Container (newbie)


Can someone tell me why in a production application I would need to have a
web
server (Apache, Jetty, etc) with an App Server (JBoss, Tomcat, etc) ?

Let's say I have an app with servlets and JSP and static HTML. Would I need
Tomcat and Apache or can it work just with apache? Remember I need it to be
production quality.

When would I need to combine apache and tomcat? or jetty and jboss?

Thanks,


Pablo

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JSP application conversion to a disconnected mode

2002-09-09 Thread Haseltine, Celeste

Martin,

Though applets can be used in a web site, I don't recommend them.  For one
thing, IE is no longer shipped with a JRE, and you would need to rely on
your user to install a JRE properly on their local machine in order to run
your site.

Although I may have mis-understood his initial question, I thought he was
asking if there was a tool that he could use to convert a JSP/servlet web
application to an exe desktop application.  If I'm correct, then using
applets would not help him solve his initial problem.

Celeste



-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 6:27 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: JSP application conversion to a disconnected mode



Gabriel:

With all deference to the lady from Texas.
You can use Awt/Swing for putting the code into a Windows executable.
Awt/Swing swings to building both Web Browser based applet and desktop
executable..No HTML is needed for applets excepting of course the code to
load it...(no html code for display is needed)
The main difference being instead of applet init() you'll have a main() for
the executable
Every IDE has a New Project Tab notice the choices for applet and
executable.
Keep us apprised how you make out,

Martin Gainty




__



Jack Welch makes 9,000,000 per annum in retirement. Can you make the same
claim?
 _GMT-5___



>From: "Haseltine, Celeste"
>Reply-To: A mailing list about Java Server Pages specification and
reference
>To: [EMAIL PROTECTED]
>Subject: Re: JSP application conversion to a disconnected mode
>Date: Fri, 6 Sep 2002 15:11:13 -0500
>MIME-Version: 1.0
>Received: from mc2-f28.law16.hotmail.com ([65.54.237.35]) by hotmail.com
with Microsoft SMTPSVC(5.0.2195.5600); Fri, 6 Sep 2002 14:52:34 -0700
>Received: from swjscmail2.java.sun.com ([192.18.99.108]) by
mc2-f28.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 6 Sep
2002 13:15:53 -0700
>Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by
swjscmail2.java.sun.com (Postfix) with ESMTPid D40EB22584; Fri, 6 Sep 2002
14:12:45 -0600 (MDT)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d)
with spool id 2682509 for [EMAIL PROTECTED]; Fri, 6 Sep 2002
14:10:55 -0600
>Received: from svr-mail.magtkt.com (unknown [208.1.247.29]) by
swjscmail1.java.sun.com (Postfix) with ESMTP id B762C4801 for ; Fri, 6 Sep
2002 14:10:54 -0600 (MDT)
>Delivered-To: [EMAIL PROTECTED]
>Message-ID:
>Sender: A mailing list about Java Server Pages specification and reference
>Return-Path: [EMAIL PROTECTED]
>X-OriginalArrivalTime: 06 Sep 2002 20:15:54.0490 (UTC)
FILETIME=[341A3DA0:01C255E2]
>
>Gabriel,
>
>If I understand your problem correctly, you need to convert a web based
>application to a desktop application that does NOT run on any type of
>application server and/or web server (such as Tomcat/Apache or JRUN/IIS).
>
>To my knowledge there is no way to easily convert such a Java application
>over to a desktop application. Remember, your GUI in a web application is
>usually HTML/DHTML, where as the GUI in a desktop application is either
>SWING or AWT in Java, or the built-in Windows GUI objects in MS. So you are

>basically talking apples and oranges between a web based app and a desktop
>app. In addition, as someone who has worked on both sides of the fence (MS
>and Java), the GUI interface for Java applications running on a Windows box

>is not near as nice or easy to use/program with as the GUI interface is for

>a Windows application created in MS. One of the biggest losses I notice is
>the loss of the windows "hot keys" for navigation purposes. If you client
>requires windows hot key navigation in a Java application for disability
>standards/purposes (people who cannot use a mouse, or use special
>keyboards), you will find it impossible to get all the Windows hot key
>navigations working in a Java desktop application.
>
>For desktop applications, I always go the MS route, as I think Java SWING
>and AWT just is not there yet. But for internet/intranet applications, I
>always go the Java/JSP/Servlet route, as I think the security is MUCH
better
>in Java, not to mention the portability advantage of using Java over MS.
>
>If anyone else out there has found a tool that can convert a
>Java/JSP/Servlet web application over to a SWING/AWT desktop application, I

>would love to check it out. But I suspect that such a tool does not exists.

>
>Good luck, and let us know how this conversion goes for you and your
>company.
>
>Celeste Haseltine, PE
>MTL, Inc
>Dallas, TX
>
>
>
>
>-Original Message-
>From: Tanase, Gabriel (CAP, GEIH) [mailto:[EMAIL PROTECTED]]
&g

Re: JSP application conversion to a disconnected mode

2002-09-06 Thread Haseltine, Celeste

Gabriel,

If I understand your problem correctly, you need to convert a web based
application to a desktop application that does NOT run on any type of
application server and/or web server (such as Tomcat/Apache or JRUN/IIS).

To my knowledge there is no way to easily convert such a Java application
over to a desktop application.  Remember, your GUI in a web application is
usually HTML/DHTML, where as the GUI in a desktop application is either
SWING or AWT in Java, or the built-in Windows GUI objects in MS.  So you are
basically talking apples and oranges between a web based app and a desktop
app.  In addition, as someone who has worked on both sides of the fence (MS
and Java), the GUI interface for Java applications running on a Windows box
is not near as nice or easy to use/program with as the GUI interface is for
a Windows application created in MS.  One of the biggest losses I notice is
the loss of the windows "hot keys" for navigation purposes.  If you client
requires windows hot key navigation in a Java application for disability
standards/purposes (people who cannot use a mouse, or use special
keyboards), you will find it impossible to get all the Windows hot key
navigations working in a Java desktop application.

For desktop applications, I always go the MS route, as I think Java SWING
and AWT just is not there yet.  But for internet/intranet applications, I
always go the Java/JSP/Servlet route, as I think the security is MUCH better
in Java, not to mention the portability advantage of using Java over MS.

If anyone else out there has found a tool that can convert a
Java/JSP/Servlet web application over to a SWING/AWT desktop application, I
would love to check it out.  But I suspect that such a tool does not exists.

Good luck, and let us know how this conversion goes for you and your
company.

Celeste Haseltine, PE
MTL, Inc
Dallas, TX




-Original Message-
From: Tanase, Gabriel (CAP, GEIH) [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 11:31 AM
To: [EMAIL PROTECTED]
Subject: JSP application conversion to a disconnected mode


Hello everybody,

I am a new subscriber to the list and don't know much about JSP.
I have a business problem to solve by varying/modifying the design of a
JSP-based application.

We have this JSP application that it hosted by an ISP on behalf of the
company I'm working for. The current group of users (all external to our
company)) are using it over Internet.

We now have to convert / migrate / transpose / redevelop whatever this JSP
application so that it can run in disconnected mode, i.e. on desktops or
Intranets with no connection to Internet.
This requirement arose because Internet access is prohibited by the policies
and technical limitations of a new user group we need to serve.

Is there any tool out there that could *quickly* convert this functional JSP
app into
some kind of application that can run on a desktop or on the user group's
Intranets (it is unknown yet whether they have Intranets in all locations
and we don't like the cost of supporting many servers anyway)?
Preferably, it should be Java-based, but any MS technology may also be
acceptable. Will probably need a small footprint database underneath.

Our app will have to periodically communicate with its "mother ship" via an
encrypted channel (e.g. PGP email) both for updates of its parameters and
for sending back processing results.
The communications may need to be initiated manually.
Latency is not an issue; the business process needs data only once a week or
month.
However, it should be a "strong black box": the application users and local
sysadmins should have no way of tampering with its data and communications.

Very low cost of deployment (zero cost for licenses if possible) and
maintenance is a must.

I'll be grateful for any ideas.

Thank you,
Gabriel Tanase
IT Systems Designer
Shannon, Ireland
This communication contains information which may be confidential or
privileged. The information is intended solely for the use of the individual
or entity named above.  If you are not the intended recipient, be aware that
any disclosure, copying, distribution or use of the contents of this
information is prohibited.  If you have received this communication in
error, please notify me by telephone immediately.  Any opinions expressed
are those of the author, not the GE Insurance group. This communication does
not constitute either offer or acceptance of any contractually binding
agreement.  Such offer or acceptance must be communicated in writing.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.js

File.renameTo() method

2002-08-26 Thread Haseltine, Celeste

Forgive me if this doesn't belong on this forum, but I did check the Sun
listing of Java forums, and did not find one that matched the Java.IO
libraries.

As part of my web application, I am attempting via a Java class (NOT a bean
that runs in my web apps, but a separate class file that runs as a console
application) to rename a txt file that is FTP'd over to my server.  The file
is saved by the FTP program to my web applications subdirectory under IIS's
InetPub subdirectory.  The server is a Windows 2000 application server
running JRUN 3.1 and IIS 5.0.

Bottom line, I am unable to get the method File.renameTo() to work.  I've
done some research on this issue via Google and the Sun listservers, and
have found that this method of the File object often does NOT work on
Windows servers due to some type of Windows security issues.  I need to
rename this file by appending the system date to the beginning of the
filename, otherwise the file will be overwritten the next day when my
customer FTP's a new file over to me.  Does anyone have any suggestions as
to how I can rename this file successfully?  I am reluctant to use
runtime.exec() to start another thread, but I will do so if I have no other
options.

Thanks in advance for any assistance on this issue!

Celeste Haseltine, PE
MTL, Inc

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Separation of layout and code (similar to Visual Studio.net)?

2002-07-22 Thread Haseltine, Celeste

Ola,

I'm not really that familiar with ASP.NET, though I have worked in the
Visual Studio 6.0.  But I think I know where you are heading with this
question, so I will give it a shot.

MS has a very nice set of application development tools that are fully
integrated with each other for web development, whether you are using a
combination of C#, VB.NET, and/or ASP.NET.  I will give them credit for
that.  Although there are a LOT of IDE's and tools available for
JSP/servlet/Java development, integrating your favorite tools and
application server together for a development box can take you days.  But no
matter which tools you use, your not going to find the presentation of "GUI
separation from the code separation" that you find in the MS application
development environment (IDE).

Having said the above, I've never found a single Java/JSP/Servlet tool that
will give you the different "layered view" that you are use to in the MS
.NET environment.  Part of the problem is that the GUI controls you are
using in Windows are proprietary to Windows, and are NOT true HTML GUI
controls.  You can get close to the type of view you are use to seeing if
you follow the MVC architecture while developing your JSP/servlet/Java
code(In fact, you should have VERY little Java scripting code in your JSP's,
as the JSP's are considered your "view", and your logic should be embedded
in either servlets or Java class objects, or a combination of both).  Some
IDE tools will give you the ability to view and modify the HTML code and
HTML GUI objects in your JSP's, but they must be integrated with your
application server in order to "render" the HTML code in the JSP page as an
HTML view.  JRUN Studio is the IDE I use, and it give me that ability, but
only if I have it integrated with JRUN Server, and I have the server running
on my dev box at the time I "view" my JSP.  I understand that IBM Websphere
also has and IDE that can be used for it's application server, and that it
too can "render" HTML code for viewing that is contained in a JSP page.

I hope that this info helped you.  The biggest thing to remember between JSP
and ASP development is that JSP development is done "towards a common
standard" and that there are many vendors that you can choose from that
"meet" the Sun standard, and that you can purchase an IDE from or an
application server from.  ASP development on the other hand is done within a
proprietary application environment, NOT to a standard that is implemented
by many vendors.  Therefore, there is one defined IDE for .NET development,
one set of GUI's that are proprietary (NOT pure HTML GUI's, but you can use
HTML GUI's in .NET), and one way of developing and deploying a .NET
application within that proprietary application framework.  So it is very
hard for MS developers to go from the MS way of developing an application to
the Java/JSP way of developing an application, and it is NOT the development
language that is the biggest barrier in my opinion, but the difference in
philosophy that the development is done under.

So much for my two cents worth.

Celeste Haseltine, PE
Dallas, TX






-Original Message-
From: Ola Theander [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 7:48 AM
To: [EMAIL PROTECTED]
Subject: Q: Separation of layout and code (similar to Visual
Studio.net)?


Dear subscribers.

I would like to know if there is some JSP engine, class library or
similar that allows the Java code to be separated from the layout, i.e.
HTML code, similar to what's available in MS Visual Studio.net?

In VS.net a dynamic web page is built by two separate files, one file
containing the layout of the page and one page containing the code. The
code manages the objects in the layout file, e.g. a text box, list box
etc. as objects with properties and methods, pretty much as if you where
coding a GUI application. There is also the possibility to build more
complex object composed by existing objects and HTML. The big advantage
is that you as the developer will have an abstraction layer between the
code and the layout and the graphics designer doesn't need to worry
about the code.

My question is, is there something similar to this on the
JSP/Servlet/J2EE platform?

Kind regards, Ola Theander

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlet

Re: Writing scripts to the browser

2002-07-10 Thread Haseltine, Celeste

Sajag,

I am assuming that you are developing your site as a JSP/serlvet site, and
not an HTML site.  If that is the case, then yes, using the
response.setHeader() methods is a more effective way of controlling the
browser caching than using the HTML META tag equivalents.  Using the
response.setHeader() method is the recommended method because:

1.  Some browsers do not treat the  tags in the same way as the
equivalent HTTP header settings.

2.  On some browsers, the  tag equivalents do not work when the
callPage() method is used to load a JSP file that contains the  tags.

I do recall that IE 5.0 sometimes still had caching problems even if you
used the list of response.setHeader() methods I listed in my previous email.
To work around that, some developers append a random number to the end of
their servlet/jsp URL, but so far, we have not found a need to do this.
Another idea I have seen is to create Java Object called "now" with a
getTime method that returns the server time.  You can use the following then
to make sure that your cache is not used.

response.setDateHeader("Last-Modified", now.getTime() );
response.setDateHeader("Expires", now.getTime());

Hope this information helps!!

Celeste

-Original Message-
From: Sajag Patel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 12:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Writing scripts to the browser


Celeste,

   I am currently doing something similar to that through html code, but it
still doesn't seem to work. Do you think the jsp code will work better?
Here's the html script I have:









Sajag

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Haseltine, Celeste
Sent: Wednesday, July 10, 2002 1:54 PM
To: [EMAIL PROTECTED]
Subject: Re: Writing scripts to the browser


Sajag,

You don't want to approach this problem from the user's side (browser), you
want to control it from the server side (i.e. you as the programmer).

The following headers have worked for me in my JSP pages.  You may want to
use all of them, or just some of them, depending on your requirements.

response.setHeader("Cache-Control", "no-cache");//HTTP 1.0 refetch
completely next time document is
needed.
response.setHeader("Cache-Control", "must-revalidate");
response.setHeader("Cache-Control", "max-age=0");
response.setHeader("Pragma", "no-cache");//HTTP 1.1
response.setDateHeader ("Expires", 0); //prevents caching at the proxy
server, refetches ONLY if it
has been modified since last fetch
response.setHeader("Cache-Control","no-store"); //HTTP 1.1

Hope this helps!

Celeste

-Original Message-
From: Sajag Patel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 12:34 PM
To: [EMAIL PROTECTED]
Subject: Writing scripts to the browser


Hey guys,

  Does anyone know how to write script to the browser so that you can tell
the broswer to go get the file each time from the server instead of from the
cache.

  For instance, if I change the option on IE, under tools, internet options,
settings, and click the Get New Version for Every visit to the page, my app
works fine, other wise it gets the cached version with older results.

  So is there a way to check this everytime time and to automatically reset
it to my needs. Any feedback would be of great help. Thanks




Sajag

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index

Re: Writing scripts to the browser

2002-07-10 Thread Haseltine, Celeste

Sajag,

You don't want to approach this problem from the user's side (browser), you
want to control it from the server side (i.e. you as the programmer).

The following headers have worked for me in my JSP pages.  You may want to
use all of them, or just some of them, depending on your requirements.

response.setHeader("Cache-Control", "no-cache");//HTTP 1.0 refetch
completely next time document is
needed.
response.setHeader("Cache-Control", "must-revalidate");
response.setHeader("Cache-Control", "max-age=0");
response.setHeader("Pragma", "no-cache");//HTTP 1.1
response.setDateHeader ("Expires", 0); //prevents caching at the proxy
server, refetches ONLY if it
has been modified since last fetch
response.setHeader("Cache-Control","no-store"); //HTTP 1.1

Hope this helps!

Celeste

-Original Message-
From: Sajag Patel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 12:34 PM
To: [EMAIL PROTECTED]
Subject: Writing scripts to the browser


Hey guys,

  Does anyone know how to write script to the browser so that you can tell
the broswer to go get the file each time from the server instead of from the
cache.

  For instance, if I change the option on IE, under tools, internet options,
settings, and click the Get New Version for Every visit to the page, my app
works fine, other wise it gets the cached version with older results.

  So is there a way to check this everytime time and to automatically reset
it to my needs. Any feedback would be of great help. Thanks




Sajag

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Off-Topic Post: US IT Letter Writing Campaign to Members of C ongr ess/House on Sept 2, 2002

2002-07-09 Thread Haseltine, Celeste

Garann,

I don't know if labor rights is included, but it's a good issue to add to
the big picture.  If you are able to view the MonsterBoard discussion
thread, then you've probably gathered, as I have, that the responses to an
earlier thread were overwhelming and emotional, hence the idea of a letter
writing campaign.  Many of the responders on Monster are unemployed, and two
appear to have lost their jobs to cheaper H1-B replacements (or they claim
they have).  I sent a separate message to the moderator/initiator of the
idea of the letter writing campaign, via Yahoo, giving him my 2 cents worth
on not letting this move into an H1-B bashing affair.  As a former gov't
worker (like yourself), and a former protestor and activist, I wanted to
warn him that his good intentions could get subverted by people who are
looking for someone to blame for their current job/jobless situation.  If he
lets that happen, then he will have a hard time obtaining media support, and
support by respected groups like IEEE, whom he is hoping to solicit to join
his letter writing campaign.  None of these groups, and myself included,
want to be associated with any "radical" group that appears, or is perceived
to be, prejudiced against foreigners coming over to the US or working in the
US.  The focus should be maintained on the fact that there is NOT an IT
shortage in the US, and that there are plenty of US workers to fill the
jobs.

If you have a home PC, feel free to join via your home email address.  Or if
you are concerned about your identity being found out, sign up for a
hotmail/yahoo email account, and then join the yahoo group.  Either way, as
a former federal worker, I know that you are not required to recuse yourself
from political activities, as long as they do not directly contradict the
mission statement of the agency you are employed with.  Many of my activist
activities date back to when I was a federal worker in the 1980's.  Check
with whomever handles employee ethics in your agency to get guidance if you
have any concerns before joining the letter writing campaign.

Celeste


-Original Message-
From: Means, Garann R. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 3:05 PM
To: [EMAIL PROTECTED]
Subject: Re: Off-Topic Post: US IT Letter Writing Campaign to Members of
C ongr ess/House on Sept 2, 2002


Celeste,

That's an interesting thread. As a government employee, it's best that I not
get involved with political issues from my desk, so I didn't feel it was
appropriate for me to sign up for the Yahoo group, and thus can't see the
messages. Perhaps you could tell me, is the campaign at all trying to
address the labor rights (or lack thereof) of H1B workers? I notice you have
at least one former H1B worker responding to the thread in Monster - are you
trying to get other current and former H1B's involved to detail the extent
of what some perceive as abuses allowed to exist under that system? It seems
like an integral part of your argument - the possibility that the program is
good for neither citizens NOR foreign workers.

Just my two cents. Nice to see programmers thinking about the world outside
their boxes!
g.

-Original Message-
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]]
Sent: July 09, 2002 - Tuesday 11:50a
To: [EMAIL PROTECTED]
Subject: Off-Topic Post: US IT Letter Writing Campaign to Members of
Congr ess/House on Sept 2, 2002


This is an off-topic post, for those of you who wish to delete this item
prior to reading.

A couple of people who were corresponding on one of the Monster Board
forums, garnered enough feedback/support, that they have decided to start a
nationwide letter writing campaign to members of the US House and Senate on
Sept 2 (Labor day).  It is my understanding that the IEEE, and other various
IT related organizations in the US are considering participation in this
effort (see thread
http://forums.technology.monster.com/viewmessage.asp?messageid=2347554 on
MonsterBoard).  The intent of the campaign is to let our respective
representatives know that there is NOT a shortage of IT personnel in the US,
contrary to what recent studies/reports and the lobby groups for the Fortune
100's would like our representatives to believe.  A group has been formed on
Yahoo for this purpose, and you can go to http://groups.yahoo.com/ and
search for the group "htwprotest".  If you do not have a Yahoo memberID, you
will first need to sign up for one (it's free).  You can then sign up to a
participating member of this effort if you are interested.

Celeste Haseltine, PE

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-intere

Off-Topic Post: US IT Letter Writing Campaign to Members of Congr ess/House on Sept 2, 2002

2002-07-09 Thread Haseltine, Celeste

This is an off-topic post, for those of you who wish to delete this item
prior to reading.

A couple of people who were corresponding on one of the Monster Board
forums, garnered enough feedback/support, that they have decided to start a
nationwide letter writing campaign to members of the US House and Senate on
Sept 2 (Labor day).  It is my understanding that the IEEE, and other various
IT related organizations in the US are considering participation in this
effort (see thread
http://forums.technology.monster.com/viewmessage.asp?messageid=2347554 on
MonsterBoard).  The intent of the campaign is to let our respective
representatives know that there is NOT a shortage of IT personnel in the US,
contrary to what recent studies/reports and the lobby groups for the Fortune
100's would like our representatives to believe.  A group has been formed on
Yahoo for this purpose, and you can go to http://groups.yahoo.com/ and
search for the group "htwprotest".  If you do not have a Yahoo memberID, you
will first need to sign up for one (it's free).  You can then sign up to a
participating member of this effort if you are interested.

Celeste Haseltine, PE

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



US House resolutions will be in XML format starting Jan 2003

2002-07-08 Thread Haseltine, Celeste

Although this does not directly pertain to JSP's, I thought that the JSP
user community would be interested in this article recently published by
Gov't Computer News regarding DTD's that the gov't created and put into the
public domain for producing US House related documents in XML.  The story
starts at this link.

http://www.gcn.com/vol1_no1/e_gov/19207-1.html

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Somewhat off-topic: Should I learn WebSphere?

2002-06-13 Thread Haseltine, Celeste

John,

I agree with your advice.  Getting the depth of understanding of how to
design AND build a web site using JSP/servlets, JDBC, Java class beans (as
opposed to applets), tag libraries (Jakarta libraries or even JRUN's), XML,
and Model-View-Controller (MVC) architecture is MUCH more important at the
outset than the breadth of experience.  We are production shop that uses
JRUN, and although JRUN does not have the market share that IBM Websphere or
BEA Weblogic has, it is still one of the cheapest third party servers you
can purchase, unless you go open source (JBoss, Tomcat).

Once you have worked with one Sun certified compliant JDBC driver and
server, than you can easily pick up on the others.  The same is true in
regards to MVC architecture and to serlvet/EJB servers, in my opinion.
Struts is one of the most popular MVC architecture's around, but it is not
the only MVC open source architecture out there.  Another is Maverick, which
has some feature that Struts doesn't have.  But again, once you understand
MVC architecture, and how to design and build a MVC web site, which open
source architecture you choose to use, or even if you decide to write is
your own, is moot.

Interestingly enough, though I have always maintained this viewpoint in
regards to hiring people, this is the first time I seen anyone else express
this viewpoint.  Most other managers still believe if the individual "hasn't
worked in product A, then he's no use to me".  It's the basic understanding
of the concepts regarding what's involved in designing and building a site
or product, and the technology you are using, that is most important.  The
programming language and the software packages you choose to use to meet
that goal are second in my opinion.

Celeste

-Original Message-
From: John Slaman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 8:06 AM
To: [EMAIL PROTECTED]
Subject: Re: Somewhat off-topic: Should I learn WebSphere?


As I guy who conducts interviews.

Having the technology of the products used by the hiring company will help
get you the interviews.
However, unless you've used them in an industrial setting - the interviewer
will quickly see through your thin layer of skills.

The best use of your time (assuming you don't have a sheet of paper proving
you've learned this stuff) is to pick a group of technologies that work
together - and build an appropriate application & put it into production.

For example;  Java, Servlet, Struts, JSP, EJB.

This gives you something to put on your resume that looks like industry
experience, and you've done some learning in the process.  As well, it gives
you a story to tell during the interview.  What you did, what worked, what
didn't, what you learned, how you'd do things differently.

The other important thing to spend time is learning and understanding good
"design".  This is something harder to teach, harder to learn, but just as
important.

Some of the scariest things I see in the industry are guys from other
industries who've read a book, built an application, and then sell
themselves like professional IT guys; where their skills are no where near
the same level as the guy who's spent 4 years in university and many more
years practicing the trade.  I've worked with some very smart cookies who
were self taught; but these guys tend to be far and few between.  Make sure
you focus on UNDERSTANDING how everything works together.  Getting depth in
JRUN is more important then getting breath across JRUN, WebSphere, Weblogic,
etc - especially if you are entering the market as a junior guy!

Best of luck.



-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Andy Engle
Sent: Tuesday, June 11, 2002 9:11 PM
To: [EMAIL PROTECTED]
Subject: Somewhat off-topic: Should I learn WebSphere?

Hi all,

I'm a web hack who enjoys doing some web application programming.  While
this isn't my "day job", I wouldn't mind for it to be.  In the past, the web
applications I have written (for school assignments and other stuff like
that) have all be hosted on Jrun or Tomcat.  In thinking about any future
career moves, would I be well served to take the time to learn WebSphere?
Does WebSphere offer a large advantage over the other application servers,
or is it more the case of "you know one, you know them all"?  And if you
think I should learn WebSphere, what is the best way to do so?

Thanks for your advice -- I'm looking forward to reading what you have to
say.


Best Regards,
Andy

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.j

Re: Somewhat off-topic: Should I learn WebSphere?

2002-06-12 Thread Haseltine, Celeste

Is IBM Websphere all that cheap compared to JRUN Server?  JRUN Server also
comes with a development IDE, JRUN Studio, for an additional $400.00.  The
cost for the server is now under $1000.00.  I thought IBM Websphere was
still in the 20K-30K range (for the entire package including the development
Studio), which is a lot more money for a small business than JRUN Server.

Celeste

-Original Message-
From: Darrin Blocker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:23 PM
To: [EMAIL PROTECTED]
Subject: Re: Somewhat off-topic: Should I learn WebSphere?


Andy -

As you probably already know, IBM markets their product Websphere, in a
total package for developers, designers and Web Admins. As a programmer, I
wouldn't be too concerned about the App Server as much as I would be
concerned about the Application Development tool.  IBM's WSAD (WebSphere
Application Developer Studio) is designed in such a fashion as to compliment
the App Server and Vice Versa.

If you're looking towards a career in web design for small to mid size
corporations, then you might consider following IBM's road to Java. The nice
thing about WebSphere is that it has been ported to many platforms including
but not limited to  Linux, W2K and IBM's proprietary AS400/OS400( More
commonly known as I-Series 400).

On the other hand, if you're looking at a smaller entrepreneur approach to
tap into the market, then you might consider keeping with the open source
community.

To simply answer your question "Should I learn Websphere?".  I wouldn't
waste precious time learning WebSphere, however, you might want learn WSAD
or even VAJ (Visual Age for Java).  I've seen many job postings on dice.com
indicating a demand for programmers with knowledge of both.   HTH..

- Original Message -
From: Andy Engle <[EMAIL PROTECTED]>
Date: Tue, 11 Jun 2002 20:10:30 -0500
To: [EMAIL PROTECTED]
Subject:  Somewhat off-topic: Should I learn WebSphere?


> Hi all,
>
> I'm a web hack who enjoys doing some web application programming.  While
> this isn't my "day job", I wouldn't mind for it to be.  In the past, the
web
> applications I have written (for school assignments and other stuff like
> that) have all be hosted on Jrun or Tomcat.  In thinking about any future
> career moves, would I be well served to take the time to learn WebSphere?
> Does WebSphere offer a large advantage over the other application servers,
> or is it more the case of "you know one, you know them all"?  And if you
> think I should learn WebSphere, what is the best way to do so?
>
> Thanks for your advice -- I'm looking forward to reading what you have to
> say.
>
>
> Best Regards,
> Andy
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
>

--
___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: IIS 5.0 and Passing Parameters via the URL (URL rewriting)

2002-06-05 Thread Haseltine, Celeste

Tref,

Thank You!!!  I just got back into my office and read my email, and the
first URL you reference was the one I was remembering.  The similiar
vulnerablility you reference I was NOT aware of, but I will be taking steps
to check out our servers today.


Celeste

-Original Message-
From: Gare, Tref [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 02, 2002 7:18 PM
To: [EMAIL PROTECTED]
Subject: Re: IIS 5.0 and Passing Parameters via the URL (URL rewriting)


Hi Celeste

I believe it's the buffer overrun vulnerabilities you're speaking of.  I
found some info using the following query in google = buffer overrun IIS
query string..

http://www.atstake.com/research/advisories/2000/a120400-1.txt
and MS response/patch
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/
bulletin/ms00-094.asp

another similar vulnerability
http://www.legend.net.uk/scripts/nntp/article.php/legend.support/2873.html
MS patch
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/
bulletin/MS01-033.asp


Regards
Tref


> -Original Message-
> From: Haseltine, Celeste [SMTP:[EMAIL PROTECTED]]
> Sent: Saturday,1 June 2002 12:55
> To:   [EMAIL PROTECTED]
> Subject:  IIS 5.0 and Passing Parameters via the URL (URL rewriting)
>
> Back towards the end of 2001, I remember attending a free evening seminar
> in
> the Dallas, TX area, where an individual demonstrated exposing a security
> "hole" in IIS.  I cannot remember what info he passed via a URL string in
> his browser, but the result was that he was able to "get into" or "view"
> the
> directory structure of the wwwroot directory under the Windows Inetpub
> directory.  For those of use who use Windows servers with JSP/Servlet
> servers such as JRUN, someone could gain direct access to your web pages
> and
> thereby change your web site using the technique he demonstrated.   The
> gist
> of his demonstration was that you should never use URL rewriting,
> particularly on a Windows server, unless you absolutely have to.  He also
> mentioned some steps to take to prevent someone from accessing your
> server's
> directory structure via the technique he used in his demonstration.
>
> I cannot find any articles via Google.com that discuss this potential
> security breach in IIS.  Does this ring a bell with anyone in the user
> community?  If so, does anyone know where this information is documented,
> which would also detail how to "block" someone from entering an IIS
> directory structure as this individual demonstrated?
>
> Any insight/info regarding this subject would be appreciated.
>
> Celeste
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Recommend cheap/free HTML/JSP Editor for Java Developers

2002-06-03 Thread Haseltine, Celeste

I saw that JEdit has a plugin for JSP and XML development, but did not see
one for HTML development.  Can JEdit be used as a WYSISYG tool for HTML
development?

Celeste
-Original Message-
From: Richard L. Muller [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 10:00 AM
To: [EMAIL PROTECTED]
Subject: Re: Recommend cheap/free HTML/JSP Editor for Java Developers


http://www.jedit.org/, not .com :-)

- Original Message -
From: "Tonnie Philipsson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 03, 2002 10:09 AM
Subject: Re: Recommend cheap/free HTML/JSP Editor for Java Developers


> jEdit (www.jedit.com)
>
> John Slaman wrote:
>
> > I?m looking for a cheap or free HTML & JSP editor that give you both
source
> > code editing and WYSIWYG.
> > I know there are many available - but I want to know what people are
using
> > and recommend.
> >
> > The issue here is we don?t want to get a licensed copy of Dreamweaver
for
> > every java guy we have in house; since many focus primarily on back-end
> > development.  However, from time to time they do get involved in a
little
> > something on the front-end; and it?s inappropriate to expect them to
work in
> > notepad.
> >
> > Thanks.
> >
> >
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Recommend cheap/free HTML/JSP Editor for Java Developers

2002-06-03 Thread Haseltine, Celeste

The tool I use that does both HTML editing/viewing AND JSP development is
JRUN Studio.  Unfortunately, if you want to debug your JSP's (it has a JSP
debugger) or view your JSP's HTML output while you are developing, you have
to have a local copy of JRUN Server on your development machine.  It can
take a little while to figure out how to configure JRUN Server and JRUN
Studio to work together, but once you do it is a very neat IDE for JSP and
HTML development.  It combines the IDE of Homesite with a JSP IDE, inclusive
of the JRUN Server JSP Tag Libraries within the IDE.  Unfortunately, Allaire
has decided that they will NOT be maintaining/upgrading JRUN Studio beyond
version 3.01, so it doesn't work that well with their new version of JRUN
server version 4.0.

If anyone else has a good HTML/JSP IDE for under $500.00, I would be
interested in checking it out.

Celeste

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



IIS 5.0 and Passing Parameters via the URL (URL rewriting)

2002-05-31 Thread Haseltine, Celeste

Back towards the end of 2001, I remember attending a free evening seminar in
the Dallas, TX area, where an individual demonstrated exposing a security
"hole" in IIS.  I cannot remember what info he passed via a URL string in
his browser, but the result was that he was able to "get into" or "view" the
directory structure of the wwwroot directory under the Windows Inetpub
directory.  For those of use who use Windows servers with JSP/Servlet
servers such as JRUN, someone could gain direct access to your web pages and
thereby change your web site using the technique he demonstrated.   The gist
of his demonstration was that you should never use URL rewriting,
particularly on a Windows server, unless you absolutely have to.  He also
mentioned some steps to take to prevent someone from accessing your server's
directory structure via the technique he used in his demonstration.

I cannot find any articles via Google.com that discuss this potential
security breach in IIS.  Does this ring a bell with anyone in the user
community?  If so, does anyone know where this information is documented,
which would also detail how to "block" someone from entering an IIS
directory structure as this individual demonstrated?

Any insight/info regarding this subject would be appreciated.

Celeste

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Separation of HTML and Java work in a JSP

2002-05-28 Thread Haseltine, Celeste

Carlos, 

I don't know of anyone who actually works this way in the real world.  In
fact, we hired a jr individual who had no actual programming background,
including JavaScript, but did know HTML and could really create neat
graphics using Adobe Photoshop, FlashMX, etc.  Trying to teach him how to
write JSP's  and some JavaScript, using only JSP tag libraries and HTML for
the JSP's, has been more effort than it's really worth.  Although he tries
very hard, he has no background or experience by which to be able to "debug"
his JSP's or JavaScript.  And trying to get him to understand basic logic
such as for loops, for each, do until, if then else, switch/case, etc, has
been difficult.  He is GREAT HTML and graphics artist.  But he does not have
the mindset to "visualize" how to "code" his JPS's to produce the "final"
HTML.

I think this theory of using HTML/graphic artist types to create JSP's, and
using only your higher paid developers to create the backend using
servlets/Java Beans, etc, has come from both University/professor types who
have NO real world experience, and MBA/management types than those who are
more technical (with some business background) like us.  In theory it sounds
great, and to a high level manager with no actual technical
background/experience, it's the type of organizational structure that they
would eat up hook, line, and sinker, particularly since they can hire
HTML/graphic artist types at about 1/3 of what a mid level developer costs.
After going through it here with a total of 5 people on this project, I
would never recommend this type of setup in the real world.  Especially if
your a large development shop.  

Your suggestion of using JR developers to create the JSP's is more in line
with my experience in the real world.  As they gain experience and knowledge
of the product and the corporate culture, some of them will want to move
into the backend development, while others may want to specialize in
creating only custom tag libraries or deployment/upkeep of websites.  And
for the most part, they have the background and the "mindset" to visualize
what they need to do and how to accomplish that in a JSP page.

Just my two cents worth.  If anyone out there is really implementing this
"model" of using non-programmers to create JSP pages in their development
shops, I would be interested in knowing how well this has worked for you, if
you have any hard "cost savings" data that you can share, and whether you
would continue to use this model on future development projects.

Celeste 

-Original Message-
From: Carlos Vicente [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 11:36 AM
To: [EMAIL PROTECTED]
Subject: Re: Separation of HTML and Java work in a JSP


Uhhhm.
Really anybody works this way?

In any Enterprise, the web designers are the responsible of create the jsp´s
with tools such dreamweaver? I hear a lot such situation but i don´t know
anybody that work this way.

I think that usually are programmers (web programers but programmers(usually
the juniors)) wich take the HTML(only html) generated by the designers and
insert all the jsp and java stuff. Really JSP is a java class and is very
dangerous that people that don´t understand java programming touch a JSP(a
designer can understand a compilation error from the tomcat, Jrun, etc?).

If your project is very large is usual that certain programmers, work with
the logic stuff(beans, servlets, taglibs, ejb´s.) and other programmers
(web programmers) work with jsp or another template engines (velocity,
xsl).

But if anybody works this way, I´m happy to hear their impressions.




-Mensaje original-
De: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]En nombre de Greg Dunn
Enviado el: martes, 28 de mayo de 2002 18:10
Para: [EMAIL PROTECTED]
Asunto: Re: Separation of HTML and Java work in a JSP


In a perfect world, no Java code would go in the JSP itself, it would all be
in servlets, custom tags or beans.  Then the designer only needs to know how
to insert code for a tag or bean and what information the tags or bean will
return; and which servlet to use as a form action or whatever.  Designers
can also use something like Dreamweaver to help with tag libraries.

Greg



-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Luis Javier Beltrán
Sent: Tuesday, May 28, 2002 11:01 AM
To: [EMAIL PROTECTED]
Subject: Separation of HTML and Java work in a JSP


Hi everybody,

I'm a bit confused about the way JSPs should be programmed. Which is the
correct way to separate HTML design from Java logic? should a person be
responsible for the HTML and another person should take this result and
program the logic? but the presentation changes depending on the parameters
passed, so all these posibilities should be programmed by the designer?
I think the most practical way is that a person shoul

Off Topic But Interesting - MS Lobbing Pentagon to stop Using Ope n Source Software

2002-05-23 Thread Haseltine, Celeste

This is somewhat off-topic, but I thought some of you on this listserver
might be interested in an article that is being emailed around various gov't
agencies this morning.  I just received this from a friend who works for
Lockheed-Martin Ft. Worth, TX division, who received it from someone else
with DOD.  This tidbit is supposedly from an article in the 5/23 Washington
Post.


--
OPEN SOURCE FIGHT FLARES AT PENTAGON: Microsoft Corp. is aggressively
lobbying the Pentagon to squelch its growing use of freely distributed
computer software and switch to proprietary systems such as those sold by
the software giant, according to officials familiar with the campaign. In
what one military source called a "barrage" of contacts with officials at
the Defense Information Systems Agency and the office of Defense Secretary
Donald H. Rumsfeld over the past few months, the company said "open source"
software threatens security and its intellectual property. But the effort
may have backfired. A May 10 report prepared for the Defense Department
concluded that open source often results in more secure, less expensive
applications and that, if anything, its use should be expanded. "Banning
open source would have immediate, broad, and strongly negative impacts on
the ability of many sensitive and security-focused DoD groups to protect
themselves against cyberattacks," said the report, by Mitre Corp. A
Microsoft Corp. spokesman acknowledged discussions between the company and
the Pentagon but denied urging a ban on open-source software. He also said
Microsoft did not focus on potential security flaws. John Stenbit, an
assistant secretary of defense and the Defense Department's chief
information officer, said that Microsoft has said using free software with
commercial software might violate companies' intellectual-property rights.
Stenbit said the issue is legally "murky." The company also complained that
the Pentagon is funding research on making free software more secure, which
in effect subsidizes Microsoft's open-source competitors, Stenbit said.
Software is designated open source when its underlying computer code is
available for anyone to license, enhance or customize, often at no cost. The
theory is that by putting source code in the public domain, programmers
worldwide can improve software by sharing one another's work. Vendors of the
proprietary systems, such as Microsoft and Oracle Corp., keep their source
codes secret, control changes to programs and collect all licensing fees for
their use. Government agencies use a patchwork of systems and software, and
proprietary software is still the most widely used. But open source has
become more popular with businesses and government. The Mitre report said
open-source software "plays a more critical role in the DoD than has been
generally recognized." The report said banning open-source software would
drive up costs, though it offered no specifics. Stenbit said that the debate
is academic and that what matters is how secure a given piece of software
is. To that end, the Defense Department is now prohibited from purchasing
any software that has not undergone security testing by the NSA. Stenbit
said he is unaware of any open-source software that has been tested.
(Washington Post - 5/23)

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Problem with session variable

2002-05-20 Thread Haseltine, Celeste

David,

The putValue and getValue methods of the session object have been deprecated
as of JSP standard 1.2 (if my memory serves me correctly).  If you are using
a JSP 1.2 or greater compliant container (servelet/JSP compiler), try the
session.getAttribute() and Session.setAttribute methods.

Celeste

-Original Message-
From: David Cate [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 12:23 PM
To: [EMAIL PROTECTED]
Subject: Problem with session variable


Normally I don't keep sensitive data inside of session variables but in this
case it was just simple. I needed a way of trapping the user name and some
statitistical information for the duration of the session. So I started
placing variables in the session object like this:

session.putValue("StTime",time);

time being a local String that contains the starting time for the request.
On the next page, I wanted to access the variable, so I perform:

String time = (String)session.getValue("StTime");

This works well in IE 5.5 but in IE6, the variable is ALWAYS null. I've
tried several different machine with several settings including allowing
allo cookies and setting the security to the lowest possible. I set up a
machine next to me and in IE5.5 the page displays fine and the variable is
set. in IE 6, no such luck.

Anyone have any advice or run into this before?

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: What are the advantages of the servlets and JSP pages?

2002-05-10 Thread Haseltine, Celeste

JRUN Studio also has the capability of stepping through JSP code.  But the
IDE debugging features only work if you are using JRUN Server as the
JSP/serlvet server.

Celeste


-Original Message-
From: Joseph Ottinger [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 11:23 AM
To: [EMAIL PROTECTED]
Subject: Re: What are the advantages of the servlets and JSP pages?


This is a little incorrect; WebSphere 3.5.3 with VAJ was able to step
through JSPs. I can only presume that later versions can as well, and if VAJ
can do it, you would think that other (i.e., stronger) competitors would be
able to as well. WAS isn't what I'd consider "state of the art."

>From: Biji Harees <[EMAIL PROTECTED]>
>Reply-To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: What are the advantages of the servlets and JSP pages?
>Date: Fri, 10 May 2002 17:33:59 -
>
>Hi,
>
>Advantage of servlet is that debugging is easy in servlet. In JSP you need
>to run it in browser to debug it, but servlet can be complied and debugged
>like any other java program. That is why for presentation JSP and for
>business process and background works servlet is used
>
>Bye
>
>Biji Harees
>Amsoft India Ltd
>Bangalore
>
>-Original Message-
>From:   Luca Ventura [SMTP:[EMAIL PROTECTED]]
>Sent:   Thursday, May 09, 2002 2:45 PM
>To: [EMAIL PROTECTED]
>Subject:R: What are the advantages of the servlets and JSP pages?
>
>I have a good book on jsp with me of Phil Hanna ("The complete guide") but
>it doesn't explain in which circumstances I should use servlets
>instead of JSP pages. It seems that JSP pages are the only solution for web
>deveopments...if it so why can we find a lot of servlet implementations
>around?
>I mean...why I should write directly the servlet code if the JSP pages
>offer
>me all that I need and much more?
>
>Maybe there are some advantages in writing servlets but I don't know what
>they are, can you explain me please?
>
>Thanks a lot!
>
>   Luca
>
>-Messaggio originale-
>Da: A mailing list about Java Server Pages specification and reference
>[mailto:[EMAIL PROTECTED]]Per conto di Gupta, Naveen (CORP,
>GEITC)
>Inviato: giovedi 9 maggio 2002 11.17
>A: [EMAIL PROTECTED]
>Oggetto: Re: What are the advantages of the servlets and JSP pages?
>
>
>u can see these in every book of servlets or jsp's first chapter. If u
>still
>don't get it then I will tell u .
>
>-Original Message-
>From: Luca Ventura [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 09, 2002 2:30 PM
>To: [EMAIL PROTECTED]
>Subject: What are the advantages of the servlets and JSP pages?
>
>
>Hello everybody!
>
>I have a question:
>
>Why should I use "servlets" in my web pages if all people say that
>JSP-pages
>are more simple to implement and save me a lot of lines of code?
>
>So...which are exactly the advantages of "servlets" and those of the JSP
>pages?
>That is to say...When should I implement a servlet and when a jsp page?
>
>Thanks a lot in advance!
>
>Luca
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
>
>"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
>ADDRESSEE and may contain confidential and privileged information.
>If the reader of this message is not the intended recipient,
>you are notified that any dissemination, distribution or copy of this
>communication is strictly Prohibited.
>If you have received this message by error, please notify us
>immediately, return the original mail to the sender and delete the
>message from your system."
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.j

Re: [OffTopic] Certification

2002-04-10 Thread Haseltine, Celeste

Mattias,

Someone else on this site said it before me, and I totally agree with it.
Don't waste your time obtaining a certification.  Use your time to build a
portfolio of web site using different approaches and different technologies.
Take a laptop with you when you interview, and ask your interviewer (not the
HR person, but the technical interviewer), if he/she would like a 5 minute
overview of the web sites you have designed, and how you designed them.
This should open the floor for questions, and give you a chance to "sell"
your skills.  Make sure you have your favorite IDE's on your laptop, along
with your favorite JSP/Servlet/EJB server, so you can open the code up and
answer questions.  This will not only showcase your skills, it will also
show the interviewer that you know how to work with "xyz" tools to get the
job done.

Almost anyone can study/memorize enough stuff to pass a test, but not
everyone can actual program sufficiently in the real world to get the job
done.  And it is the person with a proven track record of finishing and
deploying projects that will grab my attention first in an interview, vs.
the person who has passed 2-3 certification exams, but does not have the
experience and the references to back up his/her expertise.

One last thing, if you really want to build a working portfolio, consider
donating your skills to some of the non-profit agencies who need web sites
built for them and do not have the funds to pay.  Here in Dallas, the local
Jr. Colleges have posted a list of non-profit agencies who are requesting
programmers to donate their time/skills to building web sites for them.
Although working for free does not sit well with some people, keep in mind
that having a working web site that you can point to during your interview,
in addition to your portfolio, can earn you extra brownie points in the
interview that could land you your next job.  And it is going that extra
mile that will make you stand out from the crowd when the decision on who to
extend an offer to is made.

Celeste



-Original Message-
From: Mattias J [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 1:58 AM
To: [EMAIL PROTECTED]
Subject: [OffTopic] Certification


In the "Looking for java Positoin" thread, somebody mentioned certification
as a way to spark off your career. That brings to mind a question I've had
about the certification, that you fellow "listers" (a new word?) might have
an opinion on.

If I understand the information on
http://suned.sun.com/US/certification/java/index.html right, you have to
have the "Sun Certified Programmer for Java 2 Platform" before you can get
the "Sun Certified Web Component Developer for Java 2 Platform, Enterprise
Edition (J2EE[tm])". This seems rather reasonable.

What bothers me is that the the "Sun Certified Programmer for Java 2
Platform" includes AWT knowledge. As stated in
http://suned.sun.com/US/images/certification_progj2se_07_01.pdf (page 8),
this includes "using ... LayoutManager ... and resize behavior,and
distinguish the responsibilities of layout managers from those of
containers".

Surely I start my Java journey learning to program GUI applications with
Swing (and thus some AWT). But since I have been developing web apps only
for the last year or year and half, I do not remeber how to use the layout
manager (thought I remember clearly I hated them...). But if I want to get
the J2EE certification I have to learn this again to pass the basic
certification (am I right?).

What does everyone else think about this?
To me it seems like some PR move from Sun, so that everyone with a
certification must know how "wonderful" their AWT technology is and be able
to promote that.

Mattias Jiderhamn
Expert Systems
[EMAIL PROTECTED]

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Looking for java Positoin

2002-04-09 Thread Haseltine, Celeste

vk,

I'm am sorry about the loss of your job, but this posting does not belong
here.  There are many American programmers who are out of work at this time,
and the overall feeling here in the US is that American jobs should be
reserved for American workers.  Therefore, your posting will most likely
generate some very negative feedback, vs the sympathy and assistance that
you were hoping to obtain.

Check with your local Java group in OH, and see if they have a job board.
Also, you can do a search on the web and find other regional Java groups and
sign up for their local job postings.  This way, you can reach your intended
audience without generating some the negative feelings/feedback from those
on this listserver who are American citizens and are actively seeking work.

Celeste

-Original Message-
From: vk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 12:57 PM
To: [EMAIL PROTECTED]
Subject: Looking for java Positoin


My apologies for off line posting. It has been a shock for me to come out of
current job all of sudden, being on H1B visa in US makes the life more
tougher. I am trying to find a new position through all channels but looks
like I have got very less time to accomplish this.

I have been in java development for more than 2 and half years where as my
total job experience is approximately 7 and half years. I have done 3
projects in JSP/Servlet . I will highly appreciate if any one can gives me
some lead for java developer position. You can mail me at
[EMAIL PROTECTED]   I am in Cincinnati, OH but willing to relocate
anywhere in US.

Once again sorry , for off line posting.

Thanks,
Vijay




- Original Message -
From: "Panayiotis Periorellis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 2:36 PM
Subject: Re: How to call a user defined method from a JSP


> I'm surprised with this email because I 'm running tomcat 4.01 and I
> have placed my java classes inside
>
> Tomcat/jak/server/classes
>
> I import them the way you describe and it seems to work alright.
>
> Furthermore there are 2 directories call web-inf
> One in
> Tomcat/jak/webapps/root/web-inf
> And the other in
>
> Tomcat/jak/webapps/examples/web-inf
>
> panos
>
>
> -Original Message-
> From: Hans Bergsten [mailto:[EMAIL PROTECTED]]
> Sent: 27 February 2002 18:26
> To: [EMAIL PROTECTED]
> Subject: Re: How to call a user defined method from a JSP
>
>
> [EMAIL PROTECTED] wrote:
>
> > The specifics may vary from server to server, but in general you can
> > you place the class anywhere.  However, your classpath must point to
> > the directory containing the code.
>
>
> This is not correct. All JSP 1.0 (and later) compliant servers look for
> class files in two very well defined places: the WEB-INF/classes and the
> WEB-INF/lib directories for the application. The first is for class
> files and the second for class files packaged in JAR files. In addition,
> some containers let you place class files and JAR files in
> container-specific directories, but the two WEB-INF dirctories are
> *always* used and should be your first choice.
>
> > Also, remember to import your class in your
> > JSP.
> > <%@ page import="DBConnection" %>
>
>
> This is true, and the reason for why you need to import a class that is
> not declared to be in a package (i.e. that is part of the unnamed
> default package) is described in more detail here:
>
>
>
> Hans
>
> > Hope this helps.
> >  ~ Elena.
> > ---
> > Elena Tsifrina
> > SYSCOM, Inc.
> > www.syscom.com
> >
> >
> >
> >
> > "Chauviaux, Patrick"
> > <[EMAIL PROTECTED]   To:
> [EMAIL PROTECTED]
> > NISYS.COM>cc:
> > Sent by: A mailing list   Subject: Re: How
> to call a user defined method from a
> > about Java Server PagesJSP
> > specification and
> > reference
> > <[EMAIL PROTECTED]
> > COM>
> >
> >
> > 02/27/02 10:11 AM
> > Please respond to A
> > mailing list about Java
> > Server Pages
> > specification and
> > reference
> >
> >
> >
> >
> >
> >
> > In fact, what I want to know is where do I have to put the
> > DBConnection.class or do you have to change the classpath? Please help
>
> > me.
> >
> > -Original Message-
> > From: Chauviaux, Patrick [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 27, 2002 2:43 PM
> > To: [EMAIL PROTECTED]
> > Subject: How to call a user defined method from a JSP
> >
> >
> > Hello,
> >
> > I am new to JSP so my question is perhaps not really interesting for
> > you but I would appreciate if you could reply.
> >
> > I have created a JSP and a class DBConnection. I want to create an
> > i

Re: How to handle Shopping Cart in JSP/Servlets

2002-04-04 Thread Haseltine, Celeste

Nancy,

How are you handling integration with Credit Card vendors/payment into your
merchant accounts?  We have our own shopping cart that we created, but we
ran into an issue when we wanted to integrate with VeriSign for credit card
validation.  Has this been an issue for your company?

Celeste

-Original Message-
From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 5:08 PM
To: [EMAIL PROTECTED]
Subject: Re: How to handle Shopping Cart in JSP/Servlets


Hi Celeste!
Now we are developing a kind of Shopping Cart and everything works fine! and
we
didn't need any vendor's services
We based all of our Java Source Code (JSP/Servlets) in the examples attached
in the
book titled:"Using Java Server Pages and Servlets" Special Edition by Mark
Wutka
(Chapter 8)
But right now you could download the examples's source code from
http://www.wutka.com

Hope this helps you!
Regards,
Nancy.


"Haseltine, Celeste" wrote:

> To those in the user community that are working on JSP/servlet web sites,
if
> you have a need for a "shopping cart" for your site, how are you handling
> that?  Are you purchasing off the shelf software, "renting" a shopping
cart
> on another vendor's servers, purchasing a "store front" package that
> includes a shopping cart, or writing your own?
>
> I've spent two days researching the web to see if I could find a simple
> third party shopping cart software package that would run on a Windows
2000
> server, and could be integrated with my JSP/Servlets/Java bean classes and
> my SQLServer database.  I've had no luck in finding anything other than a
JS
> shopping cart, and an applet shopping cart, neither of which I want to
use.
> Is everyone out there writing their own custom shopping cart classes?  And
> if so, how are you incorporating the plug in's that are available from
> credit card validation vendors such as VeriSign?
>
> My only other option is to purchase a "store front" package, and that
really
> encompasses more functionality than we need, and the costs are much
greater.
> If anyone has had to address this issue for their company, I would
> appreciate any advice/feedback you can offer.
>
> Celeste
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



How to handle Shopping Cart in JSP/Servlets

2002-04-04 Thread Haseltine, Celeste

To those in the user community that are working on JSP/servlet web sites, if
you have a need for a "shopping cart" for your site, how are you handling
that?  Are you purchasing off the shelf software, "renting" a shopping cart
on another vendor's servers, purchasing a "store front" package that
includes a shopping cart, or writing your own?

I've spent two days researching the web to see if I could find a simple
third party shopping cart software package that would run on a Windows 2000
server, and could be integrated with my JSP/Servlets/Java bean classes and
my SQLServer database.  I've had no luck in finding anything other than a JS
shopping cart, and an applet shopping cart, neither of which I want to use.
Is everyone out there writing their own custom shopping cart classes?  And
if so, how are you incorporating the plug in's that are available from
credit card validation vendors such as VeriSign?

My only other option is to purchase a "store front" package, and that really
encompasses more functionality than we need, and the costs are much greater.
If anyone has had to address this issue for their company, I would
appreciate any advice/feedback you can offer.

Celeste

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Third Party Shopping Cart Software and JSP/Servlets

2002-04-02 Thread Haseltine, Celeste

Although I much prefer to create our own shopping cart class to use within
our JSP's/servlets for our web site, I suspect that purchasing one will end
up being the cheaper of the two options although it may not be as flexible
as a shopping cart class we create ourselves.  So I'm curious as to what
third party shopping cart software packages anyone out there has used with
their JSP/servlet web sites.  Our site will be a low volume site, and we do
not need inventory capabilities (that is already handled by our GreatPlains
software).  Interfacing with credit card validation services such as
VeriSign would be required, and I have obtained an extensive list of third
party shopping cart vendors off of VeriSign's web site.  I'm just curious as
to what shopping cart software other companies have used, and what positives
and negatives any of you encountered by using a third party "off the shelf"
shopping cart product during your development process.

Any feedback/experiences would be welcomed.

Celeste

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: [ann] WebWork 1.0 released

2002-03-22 Thread Haseltine, Celeste

I have not seen WebWork, but to answer your question, Struts is a very heavy
framework in that the Jakarta tag libraries are very tightly integrated into
the MVC architecture portion of Struts.  For those of us who use JSP tag
libraries that either come with our Servlet containers, or choose to use
other tag libraries than those bundled with Struts, then Struts is not a
good option.  Since I prefer to use the tag libraries that come bundled with
my JSP/Servlet container, I need a "stand alone" MVC architecture, that I
can integrate my servlet containers tag libraries into.  If WebWork is such
a "stand alone" MVC architecture, then it is one I would consider using over
Struts.

Celeste
-Original Message-
From: M. Simms [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 8:27 AM
To: [EMAIL PROTECTED]
Subject: Re: [ann] WebWork 1.0 released


Why would this be better than STRUTS which has taken about 10 man years of
effort and the expertise of many heavyweights to build and debug ?


> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rickard
> Sent: Friday, March 22, 2002 6:31 AM
> To: [EMAIL PROTECTED]
> Subject: [ann] WebWork 1.0 released
>
>
> Short version:
> WebWork 1.0 has been released. If you're into building web apps in Java
> you need to check it out. End of story. Go here and download ASAP:
> http://sourceforge.net/projects/webwork
>
> Slighly longer version:
> I'm proud to announce the release of WebWork 1.0! WebWork is a HMVC web
> application framework in Java, developed as Open Source (BSD license)
> and designed to help create dynamic websites using minimal effort and
> maximum flexibility. It's architecture is easy to learn and understand,
> yet has features that allow for complex applications to be built.
>
> One of the main features is it's total separation between the controller
> and view aspects of an application, thus allowing for a multitude of
> view technologies to be utilized. Out of the box WebWork has support for
> JSP (and comes with an extensive tag library that covers most needs),
> XSLT, and the template engine Velocity. Adding support for more such
> tools is very easy (the Velocity "integration" was done in hours),
> allowing you to have maximum flexibility with regard to how you
> structure your application.
>
> You also get to choose whether you want to use a Model-1 or Model-2
> approach to building applications, although we'd recommend using both as
> is described in our comprehensive documentation that includes reference
> sheets (for the tag library and expression language) and many useful
> tips&tricks sections.
>
> WebWork comes with a comprehensive set of examples that are both used to
> test the functionality of the framework, as well as showcase how it can
> be used. Many examples are conversions from other frameworks (such as
> Struts) so that you can see firsthand how WebWork differs from the rest
> of the crowd.
>
> One of the most important tasks when working with frameworks like this
> is the configuration step, which is where Java classes are mapped to
> logical names (used for invocation) and where the connection between
> controller and view (such as a JSP or Velocity template) is made. This
> configuration can be done manually, but to ease this process there is an
> XDoclet extension available (through the XDoclet project, see
> http://xdoclet.sourceforge.net) that will allow you to specify all such
> configuration directly in your Java code using custom WebWork-specific
> JavaDoc tags.
> XDoclet is also used to generate HTML documentation of your application,
> which helps to serve as a
> communication channel between the Java developer and web designer (if
> those roles are separated into
> several team members).
>
> There are a multitude of other unique and interesting features that we
> are very excited about, but we'd encourage you to download and find out
> about those yourself. So get it now from:
> http://sourceforge.net/project/showfiles.php?group_id=14797
>
> Documentation can be found in the download, or online at:
> http://213.203.18.31/
>
> We encourage you to try WebWork together with the wonderful SiteMesh
> (http://www.opensymphony.com) and XDoclet tools, a combination which can
> give you an amazing productivity and clean application architeture.
>
> This is an OpenSource project, developed using an open development
> process, and is hosted by SourceForge. If you have any questions we
> recommend the user mailing list, and if you have suggestions for
> improvements we're all ears on the development mailing list, both of
> which can be found on the project homepage at:
> http://sourceforge.net/projects/webwork
>
> If you are attending JavaOne this year, then you might want to stop by
> our WebWork developer meeting on Wednesday March 27, 6.30pm at Fourth
> street Bar & Deli (across from the Metreon). See ya there :-)
>
> /Rickard Öber

Re: Does Tomcat Synchronize the Session Object???

2002-03-13 Thread Haseltine, Celeste

Yes, I was referring to HttpSession object.

But I think that you answered my question already.  We got confused by the
Tomcat code.  It doesn't appear to me that the HttpSession object is
synchronized in Tomcat, but as you mentioned, the get and set attribute
methods of the HttpSession object are synchronized.

Thanks for the clarification.

Celeste

-Original Message-
From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 10:56 AM
To: [EMAIL PROTECTED]
Subject: Re: Does Tomcat Synchronize the Session Object???


"Haseltine, Celeste" wrote:
>
> 7.7.1 Threading Issues
>
>   ... The Developer has the responsibility to
>   synchronize access to resources stored in the
>   session as appropriate.
>

 This means that the objects that you put into the
session are your responsibility. If you put object
"foo" into the repository, and then two servlet
threads get "foo" out of the session and call
foo.bar() simultaneously, it's up to you to make
sure that foo.bar() is thread safe.

 The servlet container itself is always responsible
for making sure that HttpSession.get/setAttribute()
are thread safe.


> Does Tomcat handle the synchronization of the session
> object for you, ... ?
>

 The phrase "the session object" is confusing. Do
you mean the HttpSession object, or the objects that
you bind into the session using HttpSession
putAttribute(obj)?


--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Does Tomcat Synchronize the Session Object???

2002-03-13 Thread Haseltine, Celeste

On another listserver, several of us have been having a discussion on
whether a JSP/Servlet programmer is required to synchronize his code that
accesses the session object, or whether the servlet container handles the
synchronization issues surrounding the session object for you.  I've always
handled my own synchronization, and never really thought about this topic.
According to the Sun Servlet 2.2 and 2.3 standard, we found the following:
___
"7.7.1 Threading Issues
Multiple servlets executing request threads may have active access to a
single session object at the same time. The Developer has the responsibility
to synchronize access to resources stored in the session as appropriate."
__

BUT, another poster found the following code in Tomcat's StandardSession
object:

_
Code from Tomcat's StandardSession object...

public Object getAttribute(String name) {

if (!isValid)
throw new IllegalStateException
(sm.getString("standardSession.getAttribute.ise"));

synchronized (attributes) {
return (attributes.get(name));
}

}


I am NOT familiar with Tomcat as a Servlet container, my experience has been
mostly with Allaire's JRUN server.  But we are interested in knowing if
someone with Tomcat experience can expand upon this topic.  Does Tomcat
handle the synchronization of the session object for you, or are you as the
JSP/Servlet programmer required to handle synchronization.  Are we confused
regarding the StandardSession object code in Tomcat posted above?

My thanks in advance to anyone who can elaborate on this topic.

Celeste

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Visual page layout and custom JSP tags with height and width

2002-03-11 Thread Haseltine, Celeste

Although Web designers should theoretically be able to use JSP tags just as
they do HTML tags, I have not found this to be the case in reality.  For one
thing, you need a servlet server to "view" the resulting HTML code that is
generated when the JSP is compiled.  We use JRUN Studio to do this in our
shop, but it requires a developer to install and configure JRUN studio, and
set up the necessary "development mappings", so that a JSP page can be
"viewed/compiled" to HTML format.  Added to that, the design view that JRUN
Studio contains will throw up and error message if a designer tries to view
any page that includes JSP tags, basically stating that the view contains
dynamic tags that cannot be saved/viewed using the designer pane, which
makes the designer pane worthless for JSP development.  Added to the
confusion, when an  HTML designer inadvertently uses a JSP tag incorrectly,
(an example being nested JSP tags), the resulting servlet compilier error
message(s) completely confuse any designer.  Designer are use to viewing
what they are working on, and the fact that they cannot view a JSP document
that contains JSP tags as they do an HTML document tends to frustrate them.
Bottom line, we have not been able to successfully implement this type of
"development business model" in our shop.

I know that many high level managers would like to believe that a lower paid
designer can use JSP tags just like HTML tags, freeing up the higher paid
development staff to do just development.  But we have never been able to
successfully implement that type of business model.  Basically, we let the
designers mock up the HTML pages, formatting the pages, working up the
layout of the page/site and placing images where they belong using "dummy"
info when necessary, or sometimes hard coded data within the HTML form.
Then the development team takes those HTML files, and converts them to JSP
pages using JSP tags to populate the HTML forms.  In fact, we have found
this to be a good entry level developer type of position, vs using people
who have no development experience, only HTML/graphic arts experience.  And
it sure reduces the frustration level of the staff.

If anyone else has been able to successfully implement this business model
without frustrating both your design and development staff, I'd be
interested in knowing how you did so, and what development tools you are
using.

Celeste

-Original Message-
From: Chris Pratt [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 2:57 PM
To: [EMAIL PROTECTED]
Subject: Re: Visual page layout and custom JSP tags with height and
width


Designing Web Content is exactly what they should be doing.  And since a JSP
is just glorified web content, that should be their job.  But when you throw
in managing Java Beans and Java scriplets, its usually beyond most web
designers.  That's where Custom TagLib's come in.  It makes the capabilities
of JSP available to any web designer.  You simply give them a small document
that tells them the extra tags that are available and what attributes they
understand and the web designer can go to town making the web site look
professional without breaking the scriplets.  The only drawback is that the
page design tools haven't caught up with the JSP TagLib technology.

(*Chris*)

- Original Message -
From: "Maurice Munoz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 12:49 PM
Subject: Re: [JSP-INTEREST] Visual page layout and custom JSP tags with
height and width


> Why would you want designer to work on jsp page to begin with?
> Shouldn' they be designing?
>
>
> - Original Message -
> From: "Steve Bang" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 11, 2002 3:47 PM
> Subject: Visual page layout and custom JSP tags with height and width
>
>
> > One of the stated goals for JSP custom tags is to make it easy for web
> page
> > designers to work on JSP pages without having to know Java.  Yet, it
seems
> > that current visual page editors do not support any way to visually
> > represent custom tags that represent GUI components.  Thus, if you add a
> > custom tag like this:
> >
> >
> >
> > to a JSP page, when viewed in design mode nothing appears on the page in
> the
> > visual editor.  This makes it difficult for a web page designer to
> visually
> > layout a page without resorting to placing a  tag (which can then
> have
> > background colors or borders) around a custom tag for a GUI component
with
> > height and width attributes.
> >
> > Are any of you encountering this issue?  If so, how are you dealing with
> it?
> > How do you think this issue should be handled by an IDE?  Do you know of
> any
> > that do?
> >
> > Thanks,
> > Steve
> >
> >
>
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGES

Re: Hello Friends!

2002-03-01 Thread Haseltine, Celeste

The acronym "JSP" stands for Java Server Pages.  In a nutshell, it is a
competing product to Microsoft's Active Server Pages (ASP).

Celeste

-Original Message-
From: Tech, Web (CAP, Contractor) [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 12:38 AM
To: [EMAIL PROTECTED]
Subject: Hello Friends!


what is JSP
vinay


"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system."

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Benefits of JSP

2002-02-12 Thread Haseltine, Celeste

Jeff,

Thank you, I will check into Maverik.

As you stated, Struts can be overkill for some projects, especially if the
project is very small, or if you already have a JSP/Servlet server that
comes with it's own custom tag library, as JRUN Server does.

Celeste

-Original Message-
From: Jeff Schnitzer [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 10:53 PM
To: [EMAIL PROTECTED]
Subject: Re: Benefits of JSP


> From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]]
>
> MVC stands for "model-view-controller" architecture.  The controller
> portion
> of this design is a java servlet, which dispatches request to the
> appropriate Java "action" classes.  The best example of the MVC
> architecture
> is the Jakarta Struts project.  Struts is an open source framework
which
> is
> comprised of Java servlets and JSP tag libraries that you can "build"
your
> application around that implements the MVC architecture.  You can find

If you're interested in Struts, you should examine the Maverick MVC
framework at http://mav.sourceforge.net.  It is much more of a
minimalist framework, focusing solely on the core MVC concept.  Rather
than providing a custom tag library, you can use any tag library
(including JSTL) or even wholly different templating languages such as
Velocity or XSLT.

Like Struts, you define your site with an XML sitemap, but unlike
Struts, Maverick allows you to:

* Define different views which are automatically chosen based on
browser, language, or requested content type.
* Define multiple iterative XSLT transformations for a view.
* Halt the transformation process at any stage so you can work with the
static XML.
* Perform "wrapping" transformations so that differing content can be
encapsulated within a common html layout.

The 2.0 release is in beta but nearing completion.  It comes with a
quite comprehensive sample application built with the current JSTL
release.  I think you'll find that Maverick offers more features than
Struts but with a *vastly* simpler API and shorter learning curve.

http://mav.sourceforge.net

Jeff Schnitzer
[EMAIL PROTECTED]

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



If you are using JRUN Server 3.1 and the AveConnect 2.5 JDBC driv er for SQLServer 2000, you may be interested.....

2002-01-30 Thread Haseltine, Celeste

This post is targeted at anyone who is currently using/developing
JSP/Servlets with Allaire's JRUN 3.1 's tag library and AveConnect's version
2.5 JDBC driver for SQLServer 2000.

I've been working with Allaire to try and determine why their new Stored
procedure tag in the JRUN 3.1 tag library fails when used with AveConnect's
version 2.5 JDBC driver.  If you are developing with these two pieces of
software, then you may be interested in this info.  The AveConnect driver
can return in/out and out parameters from a SQLServer 2000 stored procedure
in "different placeholders" than the order (or placeholder) it is sent to
the stored procedure.  If this occurs, the JRUN stored procedure tag in the
JRUN 3.1 stored procedure tag library will throw an error within JRUN's tag
library itself, as the servlet behind this tag looks for the returning
in/out parameter value in the same "placeholder" it was sent to the stored
procedure in. If you are running into this problem, and are interested in
the resolution and/or discussion thread, you can go to
http://webforums.macromedia.com/jrun/messageview.cfm?catid=66&threadid=24445
4

I have found two ways to "kinda sorta" work around this issue and still use
the tag library, but the JSP/Servlet code is very touchy and not what I
would refer to as "robust".  If you are in the position of having or wanting
to use this tag library (vs. writing your own stored procedure tag) with
this driver, and are interested in seeing this code, please post a note at
the above forum thread, and I will email the code to you.

Celeste

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Form/Input taglib

2002-01-28 Thread Haseltine, Celeste

Ethan,

I don't know of any free JSP tag libraries that do everything you are
looking for, so I have another suggestion.  If this is something that you
would reuse in many projects that you create/maintain, why not create your
own JSP tag library with built in validation.  There is some up front
development time involved with this suggestion, but if you intend to reuse
the code for your own development projects, then you may recoup the
development costs within 2-3 projects.  To some extent, JRUN Server has
built their own JSP tag library that replaces many of the HTML tags, but not
all.  And they do include validation for some of their own tags (again, not
all, but it does leave you as the programmer room to write your own
validation for a particular tag).  You may want to take a look at the JSP
tag library that comes with JRUN Server to see what I am referring to.  I
believe that you can even export it into another JSP sever environment, but
I am not positive.  Either way, if Allaire was able to create their JSP tag
library to replace some of the HTML tags, and they include built in
validation, then you can considering using their tag library, or building
your own using their tag library as a "example" or "template" to follow.

Celeste



-Original Message-
From: Ethan Schroeder [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 3:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Form/Input taglib


I have looked at Struts, and I have found it to be way overkill for 90% of
the applications we write, though I will mostly likely use it on the next
appropriate project.  What I'm most interested in is a supporting form/input
taglib, which will enable me to deploy rapidly developed applications.  I am
coming from the CGI world, so my ideas may be conflicting with that of the
Java world, but right now I deal with forms in an object-based manner with
built-in validation.  It allows me to very quickly roll out custom
applications.  Once again, I'm coming from the CGI world, and though I've
invested a lot of time in learning Java, my ideas may not coincide with
those of other Java developers.  The type of business I am involved in is
extremely fast-paced roll-it-out-the-door NOW operation, so writing solid
web applications and strictly following MVC ideals simply can't be a focus
in every day development, though we do occasionally see projects which would
effectively utilize a well thought out development framework such as Struts.
Hopefully someone can gather something out of my rambling

Ethan


- Original Message -
From: "Richard Yee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 2:47 PM
Subject: Re: Form/Input taglib


> Ethan,
> I don't think you will find all that you are looking for in a taglib since
> they are server side components. You should look at the jakarta struts
> framework that provides for user written methods to do the form
validation.
> You can also look at the Jakarta regexp package and use it with Struts.
>
> -Richard
>
> At 02:17 PM 1/28/2002 -0600, you wrote:
> >Hi, I was just wondering if anyone could point me at a robust form/input
> >taglib which includes built-in validation, such as required fields, regex
> >pattern matching, etc.  I have done a lot of searching, but I haven't
> >really found anything remotely close to what I have envisioned as
> >useful.  Thanks a bunch in advance.
> >
> >Ethan
> >
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: ms sql2000 jdbc drivers

2002-01-24 Thread Haseltine, Celeste

They are also just in Beta release at this time, if my memory serves me
correctly.

Celeste

-Original Message-
From: King Maurice [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 3:35 PM
To: [EMAIL PROTECTED]
Subject: Re: ms sql2000 jdbc drivers


I think they only work with sql2000

- Original Message -
From: "Tom Duffy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 24, 2002 4:32 PM
Subject: ms sql2000 jdbc drivers


> Does anyone have experience with Microsoft's sql2000 jdbc type IV drivers?
> I see that they only work with sql2000 (not sql6 or sql7 - typical ms).
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Where to put methods for a jsp page?

2002-01-23 Thread Haseltine, Celeste

Garann,

One last thing, EJB's are a single threaded model (as I understand them.  I
am NOT an EJB expert).  Because of this, they are slower than JSP/servlets,
and your application will take a performance hit.  Since EJB's have recently
become a "hot" topic, they are often "over used" in my opinion.

In some cases, if you have a remote database across the network you need to
"contact", and you have a JDBC driver, you can sometimes just connect
directly across your network using your connection pool/JDBC driver, and
retrieve your data.  This will depend to a great extent on how much data you
will need to "transfer" to the server your JSP's are running on, and how
often you will need to update your database.  If it's not often, and you are
not handling a large amount of data, you may be able to get away with just
connecting directly to your remote database.  If this is not the case, you
would then want to investigate using EJB's.  Just remember, to use EJB's
means you need to obtain an EJB container.  Tomcat/Apache does NOT support
EJB's.  The most commonly used freeware EJB container is JBoss.  But I
strongly advise you to consider purchasing one of the commercial EJB
containers if you are going to use EJB's, such as JRUN, BEA Weblogic, etc.

Celeste



-Original Message-
From: Means, Garann R. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 2:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Where to put methods for a jsp page?


I apologize, I am dancing around my main questions here.

What would be best - to try and work this all from the jsp page (sounds like
no, because I do need multiple people to use this application at once), or
to put it in a separate servlet? Or a Java Bean?

I understand what people have said about how to use the methods inside the
page, but my question has become more philosophical at this point. My
understanding is that functionality reused within a page should be a
servlet, classes reused throughout the app should be Java Beans, and things
called by multiple applications would be EJB's. Is that right?

At any rate, thank you all for your careful explanations.
Garann

PS - Celeste, thank you for pointing out that this is still OOP. I'm not a
VB programmer, but I was approaching my changeovers as a find-and-replace
kind of thing, not really considering that these are STILL Java programs.
Keeping that in mind is going to help me a lot in learning jsp.

-Original Message-
From: Borislav Iordanov [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 11:32 AM
To: [EMAIL PROTECTED]
Subject: Re: Where to put methods for a jsp page?


Hi Garann,

A JSP page is first translated to a Java class, a
servlet, then compiled and executed on each request.
All code outside of your functions is placed in a
single method of the Java servlet and that method has
the 'request', 'response' etc... "implicit" object
declared as local variables. That is way they are
available in the JSP page.

However, when you declare other methods in the JSP,
they don't have those local variables and that is way
it does not compile. You might consider passing a
PageContext or a HttpServletRequest parameter to your
functions, or declaring a member variable like this:

<%!
   HttpServletRequest currentRequest;
%>

<%
  currentRequest = request;
%>

However, the latter method is not suggested as member
variables prevent the JSP container from reusing the
same Java object when serving several requests at a
time.

Hope this help.

--- "Means, Garann R." <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm converting a bunch of asp pages to jsp. The asp
> pages had methods
> running on the server side, so I've left them there
> in the jsp. When I try
> to compile the jsp, I get errors telling me the
> compiler doesn't know
> "request.getParameter", but only within the methods.
> I'll post the code, and
> maybe someone can give me feedback?
>
> 
> <%! public String mkDate() {
> String sHourHTML = "";
> String sMinHTML = "";
> String sHTML = "";
>
> sHTML  = " name='selCollHour'>";
>
> // ...
> // ...
> // ... this all compiles fine, and
> doesn't use
> request.getParameter
>
> return sHTML;
> } %>
>
> <%! public String redChem(String root) {
> float usrIn = 0;
> float lBnd = 0;
> float uBnd = 0;
> String sRed = "";
>
> // these next three lines are
> throwing the errors
> usrIn =
> Float.parseFloat(request.getParameter("txtArea" +
> root));
> lBnd =
> Float.parseFloat(request.getParameter("hdnLowBnd" +
> root));
> uBnd =
> Float.parseFloat(request.getParameter("hdnUpBnd" +
> root));
>
> if (usrIn != 0) {
> if ((usrIn > uBnd) || (usrIn
> < lBnd)) {
> sRed =
> "style='color:re

Re: Where to put methods for a jsp page?

2002-01-23 Thread Haseltine, Celeste

Garann,

Depends somewhat on your architecture.  Are you running your database on a
different server than your jsp/web application?

I always recommend the Model->View->Controller (MVC or Model 2) architecture
for true reusability.  Although I have written my controller servlet (MVC)
in the past for small projects, I recommend using the Jakarta Struts library
vs writing your own.  But the learning curve is a little high, so only take
this approach if you have sufficient time.

If you need to stick with Model 1 architecture because of time/learning
curve constraints (which is where the logic is included in the jsp with HTML
code, no separation of logic from the view.  Same architecture that your
ASP's are in), then move your "data" needs into Java class beans, and skip
the "controller servlet" concept.  Please keep in mind that there are two
types of Java class beans (at least in my mind, as the term "bean" is often
used interchangeably).  Those that include a visual component, and run in a
container (also referred to as applets), and those that have no visual
component/interface, and do NOT have a constructor that takes parameters.
These are the beans that I am referring to.  Keep in mind that the
difference between a Java class, and a Java "class" bean that is used with
JSP's is that a Java "class" bean cannot have a constructor that takes
parameters.

Any data that needs to be stored and /or passed from one JSP page to another
should be maintained in it's own Java class bean.  What data you choose to
"contain" in which "bean" is up to you, but many people will follow their
database schema as a guide to designing their classes.  You use the "set"
and "get" properties of your bean to pass your data into HTML code for
display purposes, or to other beans/servlets for logic purposes.  You can
then "store" your beans in the session object and retrieve them from the
session object.  This is how you pass beans from one JSP/serlvet to another.

Since JSP's are a short hand way of writing servlets, you can write "pure
logic" JSP's with no HTML to try and separate your view from your "model"
and data.  Just keep in mind that using this architecture does not allow you
to declare other methods easily (as you have already discovered).  But for a
small project, and for someone that is just starting out learning JSP's,
this is not a bad approach.  As your skill level grows, you can then move on
to pure servlets, and MVC/struts.

As an aside, I am glad that you have an OO background.  I have run into so
many young people who are VB/ASP programmers only, who have been thrown into
JSP/Java development with no training, no mentoring, and no background in
OOD via C++ or Java.  I don't think very much of any company or management
team that does that to their employees.  It's a setup for frustration and
failure on the part of the programmers that are placed in that position, and
is not a positive way to introduce anyone to a new language.

Celeste





-Original Message-
From: Means, Garann R. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 2:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Where to put methods for a jsp page?


I apologize, I am dancing around my main questions here.

What would be best - to try and work this all from the jsp page (sounds like
no, because I do need multiple people to use this application at once), or
to put it in a separate servlet? Or a Java Bean?

I understand what people have said about how to use the methods inside the
page, but my question has become more philosophical at this point. My
understanding is that functionality reused within a page should be a
servlet, classes reused throughout the app should be Java Beans, and things
called by multiple applications would be EJB's. Is that right?

At any rate, thank you all for your careful explanations.
Garann

PS - Celeste, thank you for pointing out that this is still OOP. I'm not a
VB programmer, but I was approaching my changeovers as a find-and-replace
kind of thing, not really considering that these are STILL Java programs.
Keeping that in mind is going to help me a lot in learning jsp.

-Original Message-
From: Borislav Iordanov [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 11:32 AM
To: [EMAIL PROTECTED]
Subject: Re: Where to put methods for a jsp page?


Hi Garann,

A JSP page is first translated to a Java class, a
servlet, then compiled and executed on each request.
All code outside of your functions is placed in a
single method of the Java servlet and that method has
the 'request', 'response' etc... "implicit" object
declared as local variables. That is way they are
available in the JSP page.

However, when you declare other methods in the JSP,
they don't have those local variables and that is way
it does not compile. You might consider passing a
PageContext or a HttpServletRequest parameter to your
functions, or declaring a member variable like this:

<%!
   HttpServletRequest currentRequest;
%>

Re: Where to put methods for a jsp page?

2002-01-23 Thread Haseltine, Celeste

Garann,

One last thing.  As Iordanov pointed out in his response, if you do decide
to keep your "own" methods inside the servlet class, then you need to
program for possibility of more than one "person" hitting your servlet at
the same time.  This is referred to as multithreading, which in turns means
you need to synchronize your methods, if appropriate.  This is ESPECIALLY
true if you are dealing with data.  This is NOT a concept that is included
in VB, as VB is a thread safe "model" and "container" (at least in Versions
5 and 6 it is, I don't think this is true for VB.NET platform).  Again, if
you don't have an Object Oriented background in C++ or Java, this will be
new concept.  If that is the case for you, do NOT declare separate methods
in your serlvet class, just incorporate your logic into the JSP.  (This is
also not a good idea for other reasons, but if you are just starting out and
you are under the gun to get something out the door, this is the fastest way
for you to proceed).  Trust me, you do NOT want to deal with concurrency
issues if you are new to OO Development.

Celeste



-Original Message-
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 1:43 PM
To: [EMAIL PROTECTED]
Subject: Re: Where to put methods for a jsp page?


Garann,

Have you opened the compiled jsp page to see what the servlet looks like?
If you did, I think you would understand a little better what is happening.

First off, a jsp page is just a "short hand" way of writing a servlet.  When
your jsp/servlet server (say JRUN, Weblogic, etc) "touches" your jsp page,
it is compiled into a servlet.  The servlet is what is actually "run".

Having said that, the <%! %> tags are the short hand way of declaring
methods of your servlet class.  The main method of any servlet class is as
follows:

public void _jspService(HttpServletRequest request, HttpServletResponse
response)
 throws ServletException, java.io.IOException

ANY method declared in the <%!  %> tags is NOT included as part of the
"main" servlet method above.  Therefore, those methods cannot "see" the
request or the response objects unless you pass them into your own declared
methods, and pass the data back out to the "main" servlet class above.
Again, go look at your compiled JSP pages (servlets) to see the differences.

When you do NOT include your declarations in the <%!  %> tags, the complier
throws an error, because you cannot declare another class method inside the
"main" servlet class.  This is a fundamental concept of Object Oriented
Languages, so if you do not have a background in C++ or Java, just in VB,
this will be a little confusing to you.

Bottom line, either rewrite your methods to include "passing" the response
and request objects into the method, and back into the "main" servlet method
if you need your method to see the data, or incorporate the logic directly
into your jsp (ie, remove the logic out of the method).

Hope this helps

Celeste

-Original Message-
From: Means, Garann R. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 12:46 PM
To: [EMAIL PROTECTED]
Subject: Re: Where to put methods for a jsp page?


Monte,

I'm only putting them in <%! %> tags because I get errors like this when I
don't:

An error occurred between lines: 51 and 53 in the jsp file:
/LabGenEdit.jsp

Generated servlet error:

C:\Tomcat\jakarta-tomcat-4.0\work\localhost\HepC\LabGenEdit$jsp.java:121:
Typeexpected.
  out.write("\r\n\t\r\n");
  ^
Is there another way to approach it? (I'm just sort of hacking my way
through this..)

Also, what is the syntax for passing a request? Just:

someVar = brokenMethod(request);
...
public int brokenMethod(HttpServletRequest request) { ... } ?

Thanks for responding so quickly!
Garann

-Original Message-
From: Gardner Monte [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 10:35 AM
To: [EMAIL PROTECTED]
Subject: Re: Where to put methods for a jsp page?


I may have misunderstood what you're asking, but let me give it a
try.  If you are using the <%! %> syntax for declaring JSP methods, then
you have to understand that those methods are seperat from the
main method of your JSP page, which is actually the service() method
of a servlet.  The request object is a local variable of the
service method, and therefore does not exist in your other methods.
If you want other methods to be able to access the request object, you
have to pass the request object into the methods via parameters.

--hope that helps.

--Monte Glenn Gardner


On Wed, 23 Jan 2002, Means, Garann R. wrote:

> Hi,
>
> I'm converting a bunch of asp pages to jsp. The asp pages had methods
> running on the s

Re: Where to put methods for a jsp page?

2002-01-23 Thread Haseltine, Celeste

Garann,

Have you opened the compiled jsp page to see what the servlet looks like?
If you did, I think you would understand a little better what is happening.

First off, a jsp page is just a "short hand" way of writing a servlet.  When
your jsp/servlet server (say JRUN, Weblogic, etc) "touches" your jsp page,
it is compiled into a servlet.  The servlet is what is actually "run".

Having said that, the <%! %> tags are the short hand way of declaring
methods of your servlet class.  The main method of any servlet class is as
follows:

public void _jspService(HttpServletRequest request, HttpServletResponse
response)
 throws ServletException, java.io.IOException

ANY method declared in the <%!  %> tags is NOT included as part of the
"main" servlet method above.  Therefore, those methods cannot "see" the
request or the response objects unless you pass them into your own declared
methods, and pass the data back out to the "main" servlet class above.
Again, go look at your compiled JSP pages (servlets) to see the differences.

When you do NOT include your declarations in the <%!  %> tags, the complier
throws an error, because you cannot declare another class method inside the
"main" servlet class.  This is a fundamental concept of Object Oriented
Languages, so if you do not have a background in C++ or Java, just in VB,
this will be a little confusing to you.

Bottom line, either rewrite your methods to include "passing" the response
and request objects into the method, and back into the "main" servlet method
if you need your method to see the data, or incorporate the logic directly
into your jsp (ie, remove the logic out of the method).

Hope this helps

Celeste

-Original Message-
From: Means, Garann R. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 12:46 PM
To: [EMAIL PROTECTED]
Subject: Re: Where to put methods for a jsp page?


Monte,

I'm only putting them in <%! %> tags because I get errors like this when I
don't:

An error occurred between lines: 51 and 53 in the jsp file:
/LabGenEdit.jsp

Generated servlet error:

C:\Tomcat\jakarta-tomcat-4.0\work\localhost\HepC\LabGenEdit$jsp.java:121:
Typeexpected.
  out.write("\r\n\t\r\n");
  ^
Is there another way to approach it? (I'm just sort of hacking my way
through this..)

Also, what is the syntax for passing a request? Just:

someVar = brokenMethod(request);
...
public int brokenMethod(HttpServletRequest request) { ... } ?

Thanks for responding so quickly!
Garann

-Original Message-
From: Gardner Monte [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 10:35 AM
To: [EMAIL PROTECTED]
Subject: Re: Where to put methods for a jsp page?


I may have misunderstood what you're asking, but let me give it a
try.  If you are using the <%! %> syntax for declaring JSP methods, then
you have to understand that those methods are seperat from the
main method of your JSP page, which is actually the service() method
of a servlet.  The request object is a local variable of the
service method, and therefore does not exist in your other methods.
If you want other methods to be able to access the request object, you
have to pass the request object into the methods via parameters.

--hope that helps.

--Monte Glenn Gardner


On Wed, 23 Jan 2002, Means, Garann R. wrote:

> Hi,
>
> I'm converting a bunch of asp pages to jsp. The asp pages had methods
> running on the server side, so I've left them there in the jsp. When I try
> to compile the jsp, I get errors telling me the compiler doesn't know
> "request.getParameter", but only within the methods. I'll post the code,
and
> maybe someone can give me feedback?
>
> 
> <%! public String mkDate() {
> String sHourHTML = "";
> String sMinHTML = "";
> String sHTML = "";
>
> sHTML  = "";
>
> // ...
> // ...
> // ... this all compiles fine, and doesn't use
> request.getParameter
>
> return sHTML;
> } %>
>
> <%! public String redChem(String root) {
> float usrIn = 0;
> float lBnd = 0;
> float uBnd = 0;
> String sRed = "";
>
> // these next three lines are throwing the errors
> usrIn = Float.parseFloat(request.getParameter("txtArea" +
> root));
> lBnd = Float.parseFloat(request.getParameter("hdnLowBnd" +
> root));
> uBnd = Float.parseFloat(request.getParameter("hdnUpBnd" +
> root));
>
> if (usrIn != 0) {
> if ((usrIn > uBnd) || (usrIn < lBnd)) {
> sRed = "style='color:red'";
> }
> else {
> sRed = "";
> }
> }
> return sRed;
> } %>
>
>
> Thanks,
>

Re: Using JNDI in a JSP/Servlet

2002-01-21 Thread Haseltine, Celeste

David,

I think I am a little confused.  Someone else on this list suggested that I
go back to my JDBC driver vendor, and/or my JSP/Servlet vendor and find out
what jar file their implementation of JNDI was located in, and to get advice
on how to set properties and obtain a new Initial Context.  I did get a
reply from my JDBC vendor, who indicated that their sample file used the
com.sun.jndi.fscontext.RefFSContextFactory by default, since this was
included in the Sun JDK.  Since I could not get either the Java class or my
Servlet file working, I suspect that I don't have something set up on my dev
box properly, perhaps the fscontext jar file, as you suggested.  But my
intent is to actually use JNDI in a servlet.  My driver vendor suggested
that if I wanted to use JNDI inside my JSP/servlet server environment, I
would need to contact the vendor of my servlet server (Allaire in this case)
and find out what jar file and API they had for setting properties and
creating a new Initial Context.  I am still waiting to here back from
Allaire.  Am I on the right track here, or am I completely missing
something???

Thanks in advance for your advice/input.

Celeste


-Original Message-
From: David M. Karr [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 18, 2002 7:11 PM
To: [EMAIL PROTECTED]
Subject: Re: Using JNDI in a JSP/Servlet


> "Celeste" == Celeste Haseltine  writes:

Celeste> I'm attempting to use JNDI with a third party JDBC driver
inside of a
Celeste> servlet.  When I attempt to call the servlet, my catch block
catches the
Celeste> following error message:

Celeste> Error .   Cannot instantiate class:
Celeste> com.sun.jndi.fscontext.RefFSContextFactory

Celeste> I moved the code into a pure Java class for debugging.  The
line that the
Celeste> error message occurs on is as follows:

Celeste>ctx = new InitialContext(env);

Celeste> Does anyone have a guess as to why I am unable to instantiate a
new Context
Celeste> class?  I suspect it may have to do with setting permissions
for jndi, but I
Celeste> am not certain.  I do have the JNDI.jar file in my server jvm
jre\lib\ext
Celeste> subdirectory, and I moved it into my jdk jre\lib\ext
subdirectory for
Celeste> debugging the class code.  Just for grins I included the jdk
jre\lib\ext
Celeste> path in  my dev box classpath for testing the class code.  The
class code is
Celeste> as follows:

Ordinarily, I would assume this is a silly question, but did you make the
jar
file which contains the "com.sun.jndi.fscontext.RefFSContextFactory" class
available to the application?  This particular class (as I recognize it)
should
be in the "fscontext.jar" that is part of the "File System" sample JNDI
service
provider that you can get from
.

--
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; BrainBench CJ12P (#12004)

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Using JNDI in a JSP/Servlet

2002-01-16 Thread Haseltine, Celeste

Zvika,

OK, I understand now.  Are the implementations of the JNDI spec usually
found in the JDBC drivers, or are they found in the JSP/Servlet Servers?  Or
can they be found in both?

The connection pool I am trying to use is a set of classes found in the Type
IV JDBC driver that we purchased for SQLServer 2000.  We are using
AveConnect's 2.5 Driver with Extended API.  They have an addition class,
called JDBCConnectionPoolDataSource, on top of the Java Extended API, that
implements a connection pool as follows:

public class JDBCConnectionPoolDataSource
extends JDBCDataSource
implements javax.sql.ConnectionPoolDataSource


As I mentioned, I've not really worked with or used the JNDI very much, and
the tutorial on the Sun site was not clear as to the fact that the JDK
jndi.jar file was only the interface, and that the implementation is left to
third party vendors.  I guess if I had looked at the Java API document for
JNDI, I would have come to that conclusion.  But when your under the gun,
you sometimes cut corners and just ask for advice.

Thanks again for the clarification.

Celeste

-Original Message-
From: Zvika Markfeld [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 11:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Using JNDI in a JSP/Servlet


Hi Celeste,
JNDI is a spec provided by Sun for Naming Managers. Various 3rd Party
Vendors offer their Naming manager implementations, some of which support
the JNDI spec. When including jndi.jar from your JDK files, you are
including the spec but not any concrete implementation. Since you _are_
trying to connect to a real naming manager, there should be a another
jar/library containing those real implementation classes.
The INITIAL_CONTEXT_FACTORY param that you are using, however, is the one
used for Sun's reference implementation of a naming manager utilizing a file
system (which is a valid naming server) - so you would probably want to dig
some more into your documentation and find a real example. btw are you using
a connection pool on iPlanet?
zvika.


When saying JNDI provider classes I am refering to those classes that were
supplied by the JNDI service implementor, such as
com.sun.jndi.fscontext.RefFSContextFactory. BTW how come you're using

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Haseltine, Celeste
Sent: Wednesday, January 16, 2002 2:16 AM
To: [EMAIL PROTECTED]
Subject: Re: Using JNDI in a JSP/Servlet


Zvika,

When you mention "Java provider classes", are you referring to classes that
should be in my third party driver's jar file?  The only jndi jar file I
have in my classpath is the one included in the JDK from Sun.  The test
servlet I was using came out of the vendors examples files that they ship
with the driver.  They are pretty much incomplete, so if this is an error
being thrown from the vendors jar file, I'll post this with their tech
support group.  Or are you referring to something else?

Celeste

-Original Message-
From: Zvika Markfeld [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 5:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Using JNDI in a JSP/Servlet


the exception means that the nitialContextFactory object specified in your
env cannot be located. This might be due to the fact that your jndi.jar
contains only the interfaces that are related to jndi (that is, package
javax.naming and related packages) but not the JNDI provider classes. you
need to add to your classpath these classes, that are usually bundled with
the Naming Manager you are trying to access.
zm.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Haseltine, Celeste
Sent: Wednesday, January 16, 2002 1:07 AM
To: [EMAIL PROTECTED]
Subject: Using JNDI in a JSP/Servlet


I'm attempting to use JNDI with a third party JDBC driver inside of a
servlet.  When I attempt to call the servlet, my catch block catches the
following error message:

Error .   Cannot instantiate class:
com.sun.jndi.fscontext.RefFSContextFactory

I moved the code into a pure Java class for debugging.  The line that the
error message occurs on is as follows:

   ctx = new InitialContext(env);

Does anyone have a guess as to why I am unable to instantiate a new Context
class?  I suspect it may have to do with setting permissions for jndi, but I
am not certain.  I do have the JNDI.jar file in my server jvm jre\lib\ext
subdirectory, and I moved it into my jdk jre\lib\ext subdirectory for
debugging the class code.  Just for grins I included the jdk jre\lib\ext
path in  my dev box classpath for testing the class code.  The class code is
as follows:

import java.sql.*;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.Data

Re: Reporting software using JSP

2002-01-16 Thread Haseltine, Celeste

Just a note regarding Crystal as a JSP reporting tools.

I've attempted to use Crystal Reports with our JRUN Server, and I stumbled
upon the issue of port conflicts.  I didn't spend a lot of time
investigating the problem, but I noted that Crystal Reports by default tried
to assign itself to the same port that we had assigned to our JRUN
server/IIS 5.0 configuration.  Although we could have manually changed the
JRUN server/IIS port to another number, that presented additional problems
for us.  Forcing Crystal to use another port besides it's own assigned
default value did introduce some instability issues.  I gather this was due
to the fact that the Crystal Server also needed to communicate with IIS 5.0
in order to run.  I did correspond with another user on the JRUN listserver
who had successfully integrated Cyrstal with a JRUN server/IIS 4.0
configuration, but he also confirmed for me that they occasionally had some
problems with Crystal.  Because their site was not a high usage site, their
approach was to "reboot the server" and wait for it to happen again.

Again, I did not investigate or play with Crystal for more than a week
before discarding it as a viable option.  Since our reporting needs were
simple, and the printing of reports were for employee internal use only, I
opted to use XML/XSLT for creating reports.  But the reports do not have any
"options" for the user to change page margins, page breaks, or other
formatting issues that you expect from a reporting tool, prior to printing.
What you see is what you get when you print, and sometimes the reports are
not that pretty.

Celeste  
-Original Message-
From: M. Simms [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 5:48 AM
To: [EMAIL PROTECTED]
Subject: Re: Reporting software using JSP


3 major competitors in the Enterprise Java Reporting space:
www.actuate.com
www.ibi.com
www.crystaldecisions.com


> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Dev BWML
> Sent: Wednesday, January 16, 2002 4:06 AM
> To: [EMAIL PROTECTED]
> Subject: Reporting software using JSP
>
>
> Hi everybody,
>
> Does someone know a powerful tool of web reporting using JSP?
> I'm looking for it since more than a week.
>
> Please help me..
> Thanks,
> Regards,
>
> Gaetan
>
> --
> NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda,
> Clubs, Toolbar...
> Web/Wap : www.netcourrier.com
> Téléphone/Fax : 08 92 69 00 21 (0,34 E TTC/min - 2,21 F TTC/min)
> Minitel: 3615 NETCOURRIER (0,15 E TTC/min - 1,00 F TTC/min)
>
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Using JNDI in a JSP/Servlet

2002-01-15 Thread Haseltine, Celeste

Zvika,

When you mention "Java provider classes", are you referring to classes that
should be in my third party driver's jar file?  The only jndi jar file I
have in my classpath is the one included in the JDK from Sun.  The test
servlet I was using came out of the vendors examples files that they ship
with the driver.  They are pretty much incomplete, so if this is an error
being thrown from the vendors jar file, I'll post this with their tech
support group.  Or are you referring to something else?

Celeste

-Original Message-
From: Zvika Markfeld [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 5:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Using JNDI in a JSP/Servlet


the exception means that the nitialContextFactory object specified in your
env cannot be located. This might be due to the fact that your jndi.jar
contains only the interfaces that are related to jndi (that is, package
javax.naming and related packages) but not the JNDI provider classes. you
need to add to your classpath these classes, that are usually bundled with
the Naming Manager you are trying to access.
zm.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Haseltine, Celeste
Sent: Wednesday, January 16, 2002 1:07 AM
To: [EMAIL PROTECTED]
Subject: Using JNDI in a JSP/Servlet


I'm attempting to use JNDI with a third party JDBC driver inside of a
servlet.  When I attempt to call the servlet, my catch block catches the
following error message:

Error .   Cannot instantiate class:
com.sun.jndi.fscontext.RefFSContextFactory

I moved the code into a pure Java class for debugging.  The line that the
error message occurs on is as follows:

   ctx = new InitialContext(env);

Does anyone have a guess as to why I am unable to instantiate a new Context
class?  I suspect it may have to do with setting permissions for jndi, but I
am not certain.  I do have the JNDI.jar file in my server jvm jre\lib\ext
subdirectory, and I moved it into my jdk jre\lib\ext subdirectory for
debugging the class code.  Just for grins I included the jdk jre\lib\ext
path in  my dev box classpath for testing the class code.  The class code is
as follows:

import java.sql.*;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;
import  net.avenir.jdbcPool.*;
import java.util.Hashtable;

public class DataSourceTest{

public static void main(String[] argv){
System.out.println("got to beginning");
Context ctx =null;
System.out.println("got to 1");
try{
JDBCConnectionPoolDataSource cpds1 = new
JDBCConnectionPoolDataSource();
System.out.println("got to 2");
//cpds1.setServerName("");
cpds1.setDatabaseName("Northwind");
cpds1.setPort(1433);
Hashtable  env = new Hashtable(11);
System.out.println("got to 3");
env.put
(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.fscontext.RefFSContextFactory
");
   System.out.println("got to 4");
   env.put(Context.PROVIDER_URL,"file:/");
   System.out.println("got to 5");
   ctx = new InitialContext(env); //THIS IS THE LINE THE
ERROR OCCURS ON
   System.out.println("got to 6");
   ctx.rebind("jdbc:pool:poolDS",cpds1);
   System.out.println("got to 7");
   JDBCDataSource ds1=new JDBCDataSource();
   ds1.setDataSourceName("jdbc:pool:poolDS");
   env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.fscontext.RefFSContext
Factory");
   env.put(Context.PROVIDER_URL,"file:/");
   ctx = new InitialContext(env);
   ctx.rebind("jdbc:datasource",ds1);
  } catch(Exception e) {
   System.out.println("Error .  "+e.getMessage());
  }
}//end main
}//end class definition


Thanks in advance for any advice/suggestions.

Celeste

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com


Using JNDI in a JSP/Servlet

2002-01-15 Thread Haseltine, Celeste

I'm attempting to use JNDI with a third party JDBC driver inside of a
servlet.  When I attempt to call the servlet, my catch block catches the
following error message:

Error .   Cannot instantiate class:
com.sun.jndi.fscontext.RefFSContextFactory

I moved the code into a pure Java class for debugging.  The line that the
error message occurs on is as follows:

   ctx = new InitialContext(env);

Does anyone have a guess as to why I am unable to instantiate a new Context
class?  I suspect it may have to do with setting permissions for jndi, but I
am not certain.  I do have the JNDI.jar file in my server jvm jre\lib\ext
subdirectory, and I moved it into my jdk jre\lib\ext subdirectory for
debugging the class code.  Just for grins I included the jdk jre\lib\ext
path in  my dev box classpath for testing the class code.  The class code is
as follows:

import java.sql.*;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;
import  net.avenir.jdbcPool.*;
import java.util.Hashtable;

public class DataSourceTest{

public static void main(String[] argv){
System.out.println("got to beginning");
Context ctx =null;
System.out.println("got to 1");
try{
JDBCConnectionPoolDataSource cpds1 = new
JDBCConnectionPoolDataSource();
System.out.println("got to 2");
//cpds1.setServerName("");
cpds1.setDatabaseName("Northwind");
cpds1.setPort(1433);
Hashtable  env = new Hashtable(11);
System.out.println("got to 3");
env.put
(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.fscontext.RefFSContextFactory
");
   System.out.println("got to 4");
   env.put(Context.PROVIDER_URL,"file:/");
   System.out.println("got to 5");
   ctx = new InitialContext(env); //THIS IS THE LINE THE
ERROR OCCURS ON
   System.out.println("got to 6");
   ctx.rebind("jdbc:pool:poolDS",cpds1);
   System.out.println("got to 7");
   JDBCDataSource ds1=new JDBCDataSource();
   ds1.setDataSourceName("jdbc:pool:poolDS");
   env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.fscontext.RefFSContext
Factory");
   env.put(Context.PROVIDER_URL,"file:/");
   ctx = new InitialContext(env);
   ctx.rebind("jdbc:datasource",ds1);
  } catch(Exception e) {
   System.out.println("Error .  "+e.getMessage());
  }
}//end main
}//end class definition


Thanks in advance for any advice/suggestions.

Celeste

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Downloading files with jsp/servlets...

2002-01-15 Thread Haseltine, Celeste

Zvika,

OK, so the spec does dictate how many instances of a given servlet is
instantiated.  This may be why JRUN 3.1 is now Sun "certified" as a
"compliant" JSP/EJB container, where as the previous version (3.01) was not.


Thanks for the clarification.

Celeste
-Original Message-
From: Zvika Markfeld [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 4:10 PM
To: [EMAIL PROTECTED]
Subject: Re: Downloading files with jsp/servlets...


That would be a no: The servlet spec. specifically dictates that a servlet
container instantiates _only_ one instance of a given servlet, unless the
servlet implements the SingleThreadModel interface, as Joe suggested. In
that case, the servlet container can either queue incoming requests or
create multiple servlet instances. This decision is left to the servlet
container's manufacturer. Some Web servers have problems keeping the spec.
Orion, for example, had (may still have) this bug where multiple instances
of a servlet were created when the servlet's first invocation was made by a
numerous clients, as in when bombing the servlet with some stress test tool
(which is what we did). I don't know of anything about JRUN.
zm.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Haseltine, Celeste
Sent: Wednesday, January 16, 2002 12:03 AM
To: [EMAIL PROTECTED]
Subject: Re: Downloading files with jsp/servlets...


Joe,

Isn't the default behavior for servlets determined by the webserver you are
using?  Some servers do have a single servlet instance per all users, but I
know the previous version of JRUN server (3.01) instantiated a new copy of
the servlet for every new/unique session id.  I don't know about the new
version of JRUN server (3.1). I did look at the Sun page you reference
below, but it did not reference the page where the Sun standard for servlet
behavior is spelled out.

Celete

-Original Message-
From: Joe Cheng [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 3:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Downloading files with jsp/servlets...


Zvika,

The default behavior for servlets is to have a *single* servlet instance
serve all incoming requests for that servlet, simultaneously.  In other
words, it's not that each incoming request instantiates your servlet; on the
contrary, the servlet only gets instantiated once in the lifetime of your
webserver (well, more or less).

That's why it's a bad idea to declare member data fields for servlets; you
may as well be declaring static fields, because that's effectively what
you're doing.  Same thing with declaring variables in <%! %> blocks in JSP.

The exception is if you implement SingleThreadModel, which guarantees that a
single instance of a servlet will not be serving two requests
simultaneously; the spec doesn't make it clear whether that happens via
synchronization, or whether multiple instance get created.

http://java.sun.com/docs/books/tutorial/servlets/client-interaction/threads.
html

Hope that helps clear it up a little.

-jmc

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archive

Re: Downloading files with jsp/servlets...

2002-01-15 Thread Haseltine, Celeste

Joe,

Isn't the default behavior for servlets determined by the webserver you are
using?  Some servers do have a single servlet instance per all users, but I
know the previous version of JRUN server (3.01) instantiated a new copy of
the servlet for every new/unique session id.  I don't know about the new
version of JRUN server (3.1). I did look at the Sun page you reference
below, but it did not reference the page where the Sun standard for servlet
behavior is spelled out.

Celete

-Original Message-
From: Joe Cheng [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 3:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Downloading files with jsp/servlets...


Zvika,

The default behavior for servlets is to have a *single* servlet instance
serve all incoming requests for that servlet, simultaneously.  In other
words, it's not that each incoming request instantiates your servlet; on the
contrary, the servlet only gets instantiated once in the lifetime of your
webserver (well, more or less).

That's why it's a bad idea to declare member data fields for servlets; you
may as well be declaring static fields, because that's effectively what
you're doing.  Same thing with declaring variables in <%! %> blocks in JSP.

The exception is if you implement SingleThreadModel, which guarantees that a
single instance of a servlet will not be serving two requests
simultaneously; the spec doesn't make it clear whether that happens via
synchronization, or whether multiple instance get created.

http://java.sun.com/docs/books/tutorial/servlets/client-interaction/threads.
html

Hope that helps clear it up a little.

-jmc

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Can I declare array in tag?

2002-01-11 Thread Haseltine, Celeste

Louis,

You don't have to use a bean tag.  You can declare an array variable in a
jsp page just like you can in a Java class, and then start using it in your
jsp page. If you need to pass the data to another jsp page, you just save it
in the session object.  For example:



<%
//declare local members of public void _jspService(HttpServletRequest
request, HttpServletResponse response) method of servlet class

String[] MICRValues = new String[2];

//write out the data to your server's log file, or to HMTL if prefered.
MICR1 = MICRValues[0];
System.out.println("MICR1 ="  + MICR1);
  MICR2 = MICRValues[1];
System.out.println("MICR2 =" + MICR2);

//save data to session object
session.setAttribute("MICRValues", MICRValues);




 You can also declare a Java class bean the same way.

//declare local members of public void _jspService(HttpServletRequest
request, HttpServletResponse response) method of servlet class

OrdersClass Orders;  //where OrdersClass is a java class bean I
created

//get Orders from session object.
Orders = (OrdersClass)session.getAttribute("Orders");

//get me the count, which is a method defined in the orders class.
count = Orders.size();

The bean tag is just a shortcut way of declaring a local variable in a jsp
page.  Personally, I don't use the bean tag very often, I prefer to declare
my variables at the top of my jsp page, and then use them as necessary.

Hope this info helps.

Celeste



-Original Message-
From: Rajinder Sandhu [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 5:16 AM
To: [EMAIL PROTECTED]
Subject: Re: Can I declare array in  tag?


this is compile time, not run time.
so this is not possible.





-Original Message-
From: Louis Voo [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 4:40 PM
To: [EMAIL PROTECTED]
Subject: Can I declare array in  tag?


Hi,

I want to declare an array object in  tag, is it possible?
for example i can declare

but how to make the msgbeans variable become array?



Regards,
Louis

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Designing a secure login using JSP's for a public internet site

2002-01-10 Thread Haseltine, Celeste



Does anyone have any good references regarding 
developing a public internet login system that would allow a user to assign 
his/her own login name and password/pin.  I've spent all of my 
Java/JSP career doing internal intranet web sites for companies looking to 
disseminate information to their employee's, and/or internally within their own 
organizations.  Therefore, I have never really had to focus on the security 
issues surrounding a public internet site, and the issues surrounding new 
users to create their own user id's and 
passwords. 
 
The server will be Windows 2000, using IIS 5.0 and JRUN 
3.1 configured together to handle html and jsp pages.   If anyone has 
any good references or advice regarding what to do/what not to do while 
developing a public internet site, I would be grateful.  The gentleman 
I am doing this site for was hit hard by the events of Sept 11, and since he 
cannot afford to bring someone else on board who has this type of experience, he 
has asked me to do what I can for him.  This will be a 
"prototype" site that he will use to try and lure new prospective 
customers to his business.  Any advice or lessons learned regarding the 
development of this type web product, and the security issues surrounding a 
public web site and user login/password creation,  would also be 
appreciated.
 
My thanks in advance for all 
advice/suggestions/references.
 
Celeste Haseltine, PE
MTL
 
 


Re: JSP, J2EE

2001-12-18 Thread Haseltine, Celeste

Chad,

I've used both.  Forte tends to be a memory hog, which is an important
consideration if you are running your JSP/serlvet server on your local
machine during development vs using a group development server.  But overall
it is nice for developing both Servlets and Java class objects.  If your
development environment is short on memory, you can look at JRUN Studio, but
I only use it for Servlet and JSP development, not Java class development.
Keep in mind that JRUN studio is geared towards working with JRUN server and
JRUN's tag libraries, so any additional tag libraries you import will not
appear within the IDE.

Celeste

-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 11:15 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP, J2EE


Thanks everyone for the help!  One last question.

What is your favorite program to develop in?  Forte?  JRun Studio?  Forte
looks really nice so far!

Probably should respond directly to me instead of the list.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JSP, J2EE

2001-12-18 Thread Haseltine, Celeste

Panagiotis,

If you follow the MVC architecture to a "T", you are correct in that JSP
should only contain the "view" and not the logic.  But lets not forget what
JSP's really are, and what they were initially "marketed" as: a shorthand,
RAD way of creating servlets.  Now you can do a lot more "logic" work in a
pure servlet, but coding in pure servlets requires more experience than
writing a JSP.  And if you have a team of developers who are relatively new
to Java, JSP and serlvets, and you have a very short development time frame,
what are you going to go with?  Pure servlets, or mostly JSP's with a few
critical important servlets for the controller and heavy logic segments of
the product?  I would go for the latter, especially if I have a tag library
that helps me encapsulate a large portion of my business logic in the
underlying tag library servlets, and allows my more junior developers to
create JSP's quickly and accurately.  Remember, part of the job of being an
architect/senior developer is balancing the theoretical with what is
realistic in your given development time frame, and your development teams
skill level.

Just my 2 cents worth!

Celeste





-Original Message-
From: Panagiotis Konstantinidis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 11:10 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP, J2EE


18/12/2001 16:27:32, "Haseltine, Celeste" <[EMAIL PROTECTED]> wrote:

>Lets see if I can shed some light on this for you.
>
>J2EE - Java 2 Enterprise Edition.  The "package" from Sun the you can
>download, which contains all the additional libraries bundled together for
>you, such as the extended JDBC libraries, RMI libraries, etc.  Differs from
>J2SE in that the standard edition does NOT include the additional
libraries,
>but they can be downloaded and installed separately.
>
>JSP - Java Server Pages.  A Rapid Application Development (RAD) means of
>creating servlets.  Servers implementing a particular Servlet standard, as
>defined by Sun, are required to compile the JSP to a servlet, and display
>the resulting HTML in a browser window.

  I would not say that JSP pages are a "cheap" way of creating Servlets. I
would say it is better to look at JSP pages as the "view" of the whole
system. Servlets are something more sophisticated than JSP pages. Arguably,
the business logic
that cannot (or need not) reside in a Java Bean should reside within
Servlets rather than within JSP pages.

>JRUN - One of many third party JSP/Servlet servers that can be used to
>develop JSP and servlets.  JRUN also includes an EJB server if you purchase
>the top tier package. Other JSP/servlet servers include: Orion,
BEAWeblogic,
>IBM Websphere, etc.
>
>Go to the Sun web site and so a search on JSP, servlet, and EJB.  You will
>discover that their are standards for each of these, and when you go to
>purchase a JSP server, you definitely want to determine which version of
the
>standard the server is implementing, so that you can set up your
development
>environment with the correct J2EE version.
>
>Hope that this helps!
>
>Celeste
>
>-Original Message-
>From: Chad Gray [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, December 18, 2001 9:22 AM
>To: [EMAIL PROTECTED]
>Subject: JSP, J2EE
>
>
>Im pretty new to JSP, and im wondering what the big difference between JSP,
>and J2EE are?
>
>How different is JRun from JSP/J2EE?  If i write code using JRun will it
>work on a JSP or J2EE server?
>
>Thanks!
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
>
__
"It can only be attributed to human error"
2001 A Space Odyssey

===
To unsubscribe:

Re: JSP, J2EE

2001-12-18 Thread Haseltine, Celeste

Lets see if I can shed some light on this for you.

J2EE - Java 2 Enterprise Edition.  The "package" from Sun the you can
download, which contains all the additional libraries bundled together for
you, such as the extended JDBC libraries, RMI libraries, etc.  Differs from
J2SE in that the standard edition does NOT include the additional libraries,
but they can be downloaded and installed separately.

JSP - Java Server Pages.  A Rapid Application Development (RAD) means of
creating servlets.  Servers implementing a particular Servlet standard, as
defined by Sun, are required to compile the JSP to a servlet, and display
the resulting HTML in a browser window.

JRUN - One of many third party JSP/Servlet servers that can be used to
develop JSP and servlets.  JRUN also includes an EJB server if you purchase
the top tier package. Other JSP/servlet servers include: Orion, BEAWeblogic,
IBM Websphere, etc.

Go to the Sun web site and so a search on JSP, servlet, and EJB.  You will
discover that their are standards for each of these, and when you go to
purchase a JSP server, you definitely want to determine which version of the
standard the server is implementing, so that you can set up your development
environment with the correct J2EE version.

Hope that this helps!

Celeste

-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 9:22 AM
To: [EMAIL PROTECTED]
Subject: JSP, J2EE


Im pretty new to JSP, and im wondering what the big difference between JSP,
and J2EE are?

How different is JRun from JSP/J2EE?  If i write code using JRun will it
work on a JSP or J2EE server?

Thanks!

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Urgent !!!!!!!! Please help me

2001-12-18 Thread Haseltine, Celeste

I did not run your code, but if my memory serves me correctly, you will get
an error on 1 when you re-enter the loop, as the object cld will already
exists.

These questions look very much like those asked on a Java final exam.  Are
you getting help from the board for your take home final?

Celeste

-Original Message-
From: ShriKant Vashishtha [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 2:12 AM
To: [EMAIL PROTECTED]
Subject: Re: Urgent  Please help me


Hi All,

1.  for (int i = 0; i < count; i++) {
   Node cld = list.item(i).getFirstChild();
 }

2. Node cld = null;
for (int i = 0; i < count; i++) {
cld = list.item(i).getFirstChild();
}

Which one is more efficient between the two and why.

Thanks,
-ShriKant



"Gare, Trefor" wrote:

> Not quite sure what you're after but the second will allow the JVM to use
a
> single String object for multiple references (if there are any other
strings
> "Tendulkar").  The first will always create a new String object.  In that
> way the second is a more economical way of creating/referencing the
object.
> Is that a help?
>
> Tref Gare
> Web Developer MCSD
> eCommerce Group
> Phone:  (03) 9221 4106
> Mobile: 0409 556 478
> Fax:(03) 9941 4295
>
> > -Original Message-
> > From: Ravindra [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday,18 December 2001 5:24
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: Urgent  Please help me
> >
> > Hi All,
> >
> > String string_Name = new String("Tendulkar");
> >
> > String string_Name = "Tendulkar";
> >
> > In Above two statements which is compatible(Speed,Instantiating and
other
> > parameters.) for java compiler.
> >
> > thanks
> >
> > Varna.
> >
> >
==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: newbie wanting to pass data from servlet to jsp

2001-12-10 Thread Haseltine, Celeste

John,

A word of warning.  You very rarely want to declare ANY variable in a JSP
using the <%!  %> tags.  By doing so, you are in essence declaring a class
member variable to the servlet.  This can give you concurrency problems on a
multi-user product.  You usually want to declare a variable in a jsp page as
local in scope, i.e. as a local member of public void
_jspService(HttpServletRequest request, HttpServletResponse response) method
of servlet class.  You declare a local variable in a jsp as follows:

<% String lid; %>

And on a second note, a java class bean differs from a "traditional" java
class in that it can take NO parameters in the constructor, and it has no
visual interface components.  That is what differentiates a java class bean
from a standard java class.  All classes, be they Java or C++, have "getter"
and "setter" functions, so that in itself does not differentiate a bean from
a standard Java class.  Also note that a Java bean, which has a visual
interface and runs in a "container", is different than the java "class
beans" we are discussing.  In our shop, we differentiate between the two by
using the definition "class bean" vs. "bean", since many people use the word
"bean" interchangeable between the two.

Hope this helps clear up some of your questions.

Celeste




-Original Message-
From: John Kilbourne [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 4:07 PM
To: [EMAIL PROTECTED]
Subject: Re: newbie wanting to pass data from servlet to jsp


Thanks Joe. Both your responses are very helpful to me. If I store my
resultset in an Employee[] (or Vector), to avoid having to keep my
connection open, you're saying I can store it in a session attribute.
I presume I would have to declare the Employee[] using a declaration
(<%!...%> before accessing it in the jsp using
<%Employee[] e=(Employee[])session.getAtrribute("allemployees");%>

When would I use a bean to store this data, either record-by-record
(public String getFirstName(), public void setFirstName(String first))

or as a collection
public Employee[] getRecords(), public void setRecords(Employee[])?

The second is less straightforward, but may be a possibility to store
the collection for later retrieval. I only today learned that beans
are classes with getters and setters; I didn't know I had been using
them for months. Anyway, the tag syntax of a bean seems to be another
way to get the data, if the bean can be "set" in a servlet and
retrieved in a jsp. Is there a clearer way to think about beans in
the context of passing info from a servlet to a jsp?

John



-- Reply Separator 
Originally From: Joe Cheng <[EMAIL PROTECTED]>
Subject:  Re: newbie wanting to pass data from servlet to jsp
Date: 12/10/2001 03:47pm


You can store the objects you want to pass in the request scope.

public void request.setAttribute(String attrname, Object value)
public Object request.getAttribute(String attrname)

Your servlet code would look like:

 request.setAttribute("myData", rs);
 request.getRequestDispatcher("path_to_jsp").forward(request,
response);

Your JSP code would look like this:

 ResultSet rs = (ResultSet)request.getAttribute("myData");

If you want to store the object for a larger scope than just the
current
request, you can store it in the session (same syntax).

"<%@ page import=" is like import statements in your Java classes.
For
example, if your servlet has this:

import java.util.*;
import java.sql.ResultSet;

Your JSP equivalent would be this:

<%@ page import="java.util.*,java.sql.ResultSet" %>

-jmc

==
=
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-
INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/inde

Re: A JSP doubt

2001-12-10 Thread Haseltine, Celeste

Since a Vector is synchronized, it does have a lot of overhead.  If you need
to use a synchronized object to hold data, a vector is a good one.  I prefer
to use the non-synchronized objects in Java, and add in my own
synchronization if necessary.  I prefer using either a HashSet or an
ArrayList, depending on how much data I need to hold in memory, and how fast
I need to "find" a particular record.

Celeste
-Original Message-
From: Ketharinath Kamalanathan [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 10:54 AM
To: [EMAIL PROTECTED]
Subject: Re: A JSP doubt


I generally use Vector. I see Storage optimization here. Some useful code
for you.

 Vector dbcvec = new Vector();
try {
ResultSetMetaData rsmd = rs.getMetaData();

int numofcols = rsmd.getColumnCount();
int colcount = 0;
Integer numcols = new Integer(numofcols);

String[] colnames = new String[numofcols];
String[] coltype = new String[numofcols];

dbcvec.add(numcols);

while(colcount<=(numofcols-1)) {

colnames[colcount] = rsmd.getColumnName(colcount+1);
dbcvec.add(rsmd.getColumnName(colcount+1));

coltype[colcount] =
rsmd.getColumnTypeName(colcount+1);
dbcvec.add(rsmd.getColumnTypeName(colcount+1));

colcount++;

}
dbcvec.add("DATA");
colcount = 0;

while(rs.next()){
while(colcount<=(numofcols-1)) {
// System.out.println(colnames[colcount]);

dbcvec.add(rs.getObject(colnames[colcount]));
colcount++;
}
  colcount=0;
}
dbcvec.add("EOF");

/Ketharinath Kamalanathan
- Original Message -
From: "Praveen Potineni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 10:45 AM
Subject: Re: A JSP doubt


> Hi Ketharinath,
> I was also doing something similar. Can you suggest which collection
objects
> we can use to store values coming out of database and then send it to the
> JSP. Can you elaboreate. Can you provide code snippets if you could.
> Thanks
> Praveen
>
> - Original Message -
> From: "Ketharinath Kamalanathan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 10, 2001 11:35 AM
> Subject: Re: A JSP doubt
>
>
> > Hello Joshy:
> >
> > The ResultSet object needs a database connection to be maintained. You
> > cannot access the ResultSet object without persistent Connection. So,
when
> > you have the ResultSet in the JSP you are trying to have the connection
to
> > the database. By this you are hogging the bandwidth and also suing more
of
> > your database resources.
> >
> > Its a fairly good idea to do the iteration in the Java Class then have
> some
> > collection object passed to the JSP. This eliminates the problems that I
> > have mentioned about previously.
> >
> > Hope this helps.
> >
> > /Ketharinath Kamalanathan
> > - Original Message -
> > From: "JOSHY MON M C" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, December 10, 2001 2:34 AM
> > Subject: A JSP doubt
> >
> >
> > > Hi folks,
> > >
> > > Please answer my following questions
> > > 1 .Is it a good practice to use the Resultset object directly on a JSP
> > page
> > > ? ( eg: for iterating employee recordet and displaying employee list )
> > >
> > > 2. Instead, if I iterate the same recordset in a Jave class and make a
> > List
> > > of Employee object and return back to the page. Will it be a good
> design.
> > > How is it going to affect the performance.
> > >
> > > Please reply soon.
> > >
> > > Regards
> > > Joshy
> > >
> > >
> >
>
===
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://archives.java.sun.com/jsp-interest.html
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> > >  http://www.jguru.com/faq/index.jsp
> > >  http://www.jspinsider.com
> > >
> >
> >
>
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
> >
>
>
==

Re: XSL versus JSP

2001-11-15 Thread Haseltine, Celeste

Chen,

I have not yet worked with XSLT style sheets, though I will be experimenting
with them in a few weeks.  But I have worked with XML tables.  I'm not an
expert by any means, but this is what I have discovered in working with XML
tables.  Please note that I am using the javax.xml.parsers library, and the
org.w3c.dom.Document, Element, and DOMException libraries.  There are many
other third party xml parsers out there, such as Xerces and JDOM, so you may
want to find out if any of the other libraries have performance
advantages/disadvantages that would work for your specific needs.

If your XML file is going to be pretty much static (i.e. you're not going to
need to modify the xml data often), AND your tree structure for your data is
well thought out, AND your XML file is not too large, then XML could work
for your needs.  If you do end up with an extremely large XML data file you
may want to look into more powerful parsers such as Xerces and/or rethink
your options.  "Walking the DOM" to get to a specific piece of information
in your XML file can take a lot of time, depending on the size of your XML
file and your tree structure.  To my knowledge, there is no way to "query"
an XML file to return the exact piece of info you are looking for, but again
I am not an expert.  If your data is going to be dynamic (i.e. you will need
to create the XML file during run time), I would not use XML, unless the
data I was going to write to an XML file was relatively small and the tree
structure simplistic.

One last thing, give yourself enough time to experiment with XML and the
different parsers out there.  If you've not worked with XML before, and you
are in a rush to meet a deadline, I would stick with option 1.

Celeste
-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 1:16 PM
To: [EMAIL PROTECTED]
Subject: XSL versus JSP


Hey all,
Sorry in advance for this long post.
Here's a question for you all that are also familiar with doing
things using XML/XSL.
I have a page that I'm implementing that has a select box. Depending
on the value that u select in the select box. The remaining input fields on
the page will change. I know that I could have done this with a javascript
(playing with innerhtml or something like) but there is way to much data and
it all comes from the server side. So instead.. I'm debating on 2 different
models.
1) Everytime the select box changes values.. it posts back to a
Servlet and the Servlet gets the info that the page will need to update
before sending it back to the page.
Works great (most of us probably have done it before). but i'm
concerned that this might create more network traffic than necessary.
2) Implement that whole thing using an XML page that has ALL the
information and an XSL stylesheet that will show the select box and only the
information pertaining to the value in the select box. When a user selects a
new value.. javascript code will get kicked off to update the XSL with new
parameters and refresh the page.
I dont know what the implications of that approach might be..
although earlier this week someone on this post mentioned that XSLT
translations killed performance on their server.
Which approach do you think is better? Is there another approach
that I should consider?
-Tim

-
Gin-Ting Chen
[EMAIL PROTECTED]
727-738-3000 x6549
Sun Certified Programmer
Sun Certified Web Component Developer
BEA Certified Developer

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Login Authentication against database...

2001-11-15 Thread Haseltine, Celeste

Joe,

When my user's log-in, I capture their username and compare that name to
those I have in an XML table on the server.  If the name exists in the XML
table, and is still classified as Active, I then make a connection to my
database, and verify the password, along with obtaining other info I need
for access into different areas of our site.  Every time a new user is added
to the database, I run a script that updates my XML file on the server.  The
XML table is located in a different directory on our site than the actual
JSP/HTML pages, and has limited information.  Therefore, if someone did get
their hands on it, they still could not log into our site.

This allows me to do a "first verification" of the user, and then rejecting
the user if appropriate, without even opening a connection or pulling a
thread from the connection pool to my database.  I have one JSP that
verifies the user exists in the XML table, before either handing off the
user to another JSP for verification against the database, or redirection to
a login error page.

Celeste

-Original Message-
From: Joe Cheng [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 11:33 AM
To: [EMAIL PROTECTED]
Subject: Re: Login Authentication against database...


Celeste,

what's a "more secure" means?  now you've got me curious.

and Bob wasn't pointing out a loophole, just calling attention to the
non-escaped values in the SQL statement below.

-jmc

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Limiting number of records returned to be displayed

2001-11-15 Thread Haseltine, Celeste

Joel,

My thanks for the navigation tag library reference.  This tag library must
have been recently added to the jsptags web site, as I do not remember
seeing it a few months ago when I last visited that web site.  I can
definitly use it to add a more professional look in my current project.

Celeste

-Original Message-
From: Joel Carklin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 8:56 AM
To: [EMAIL PROTECTED]
Subject: Re: Limiting number of records returned to be displayed


Hi

There is also a custom JSP Tag Library which has tags for this;
it's the Pager Tag Library and can be found at
http://jsptags.com/tags/navigation/pager/



> >
> > Hi,
> >
> > I'm new to JSP and I have a couple of questions.
> >
> > 1) how do I display only one record on the page??
> > 2) the user can scroll to the next or previous records by pressing a
> > next/previous button, get the next record to be displayed??
> >
> > thanks,
> > Will

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Login Authentication against database...

2001-11-15 Thread Haseltine, Celeste

Bob, 

I'm not using the login methodology listed in the emails below, I have a
more secure means of doing my user logins.  But you've got me curious as to
whether you have found a loophole.  What happens if you do use the login you
have listed below, and what database's is this "loophole" applicable to?

Celeste

-Original Message-
From: Bob Vú [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 9:43 AM
To: [EMAIL PROTECTED]
Subject: Re: Login Authentication against database...


For those of you who use this method of login authentication, use the
following username/password in your login page when you're done coding and
see what happens:

UserName: x' or 1=1--
Password: x




>From: Chris Tucker <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Login Authentication against database...
>Date: Wed, 14 Nov 2001 11:29:59 -0800
>
>MessageYou shouldn't need to do any comparisons at all in your code.  Use:
>
>String sqlStr = "SELECT * FROM SAMM.UsersLogin WHERE LOWER(UserLoginId) =
>LOWER('"+username+"') AND UserPassword = '"+password+"'";
>stmt = myConn.createStatement();
>myResultSet = stmt.executeQuery(sqlStr);
>if( myResultSet.next() ) {
> // we have a valid user!
>}
>else {
> // we don't have a valid user!
>}
>
>And make sure you catch and log any SQLExceptions that may occur, as
>they'll
>help you out no end in debugging...
>   -Original Message-
>   From: A mailing list about Java Server Pages specification and reference
>[mailto:[EMAIL PROTECTED]]On Behalf Of Praveen Potineni
>   Sent: Wednesday, November 14, 2001 11:20 AM
>   To: [EMAIL PROTECTED]
>   Subject: Re: Login Authentication against database...
>
>
>   That's exactly what i did. I got only one record and test if the user
>exist. Else it goes to login screen.
>   But i still get the same error. Well i figured that i'm getting problem
>comparing the 2 strings...
>   string coming out of database and the string entered by user. Can u
>check
>the code and suggest me on this...
>   Thanks in advance
>   Praveen
>
>  String sqlStr = "SELECT * FROM SAMM.UsersLogin WHERE UserLoginId =
>'"+username+"' AND UserPassword = '"+password+"'";
>  stmt = myConn.createStatement();
>  myResultSet = stmt.executeQuery(sqlStr);
>  if(myResultSet.next() == false)
>  {
>   log("resulset is null.");
>  }
>  else{
>   log("resultset is true");
>
>   String uid = myResultSet.getString("UserLoginId");
>   String upin = myResultSet.getString("UserPassword");
>
>   if ((username.equalsIgnoreCase(uid)) &&
>(password.equalsIgnoreCase(upin))){
> validUser = "true";
>   }
>   else{
> validUser = "false";
>   }
>   log("validUser is : " +validUser);
>  }
>  myResultSet.close();
>  stmt.close();
> }
> catch(SQLException sqle){
>  //System.out.println("User Does not exist Exception:
>+sqle.toString()");
>  //log("DBObject.validUserExists: Exception: "+sqle.toString());
> }
> return validUser;
>}
> - Original Message -
> From: Joe Cheng
> To: [EMAIL PROTECTED]
> Sent: Wednesday, November 14, 2001 1:45 PM
> Subject: Re: Login Authentication against database...
>
>
> Praveen-
>
> It looks like your query is retrieving the whole set of users and then
>iterating in Java to see if any of them match the username/password the
>user
>entered.  Why would you do that, rather than simply:
>
> SELECT * FROM users WHERE username = '' AND
>password = '';
>
> and see if any rows are returned.  If there are no rows, the username
>and/or password was wrong.  This way you don't have to deal with so much
>data, making it potentially much faster and less memory intensive.
>
> -jmc


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Anyone ever tried running a web app (JSP) using Citrix 6.0?

2001-11-13 Thread Haseltine, Celeste

Joe,

Simple answer is money.  This company uses an outdated frame relay system to
communicate between the different buildings.  The main building does have a
T1 coming into it for company internet access, but he does not have the
servers (hardware) and the bandwidth to run a true 24/7 web site, nor does
he have the personnel to support a web site.  Since he is hurting for money
(as everyone else is), he wants to avoid either purchasing the hardware
necessary to host his own internet site, or the costs of leasing the server
space with a large company such as Verizon.  He also wants to avoid any
further IT costs (I am a contract programmer, and once I leave, he plans to
letting the site continue to run without maintenance until he is forced to
modify the site).  Therefore, his on-site manufacturering engineer, who does
know some things about servers, suggested that he use his existing license
for Citrix to "host" this web site for his outside customers.  Thus totally
defeating the purpose of creating a web site, and paying me for the
resulting product.

As you stated, this company is NOT a technically savvy company, it is a
small manufacturer (about 4 million/yr).  The owner is about 60, and uses
the computer on his desk as a paperweight (he prints all his emails out, and
then returns his answer to the emails by telephone, or by writing his
response on the printed out email).  Despite his lack of technical
understanding, he is a nice guy.  It's just that I think they are making a
bad decision, and one that they will expect me to fix for them when the idea
doesn't work.  Plus I have to "politically" step around his manufacturing
engineer, who thinks he knows a lot more about networks and programming than
he really does.  So I want to talk them out of it, but I know very little
about Citrix, how it works, and what potential problems he may face by going
this route.  That's why I posted this question.  If anyone can see potential
problems with this idea, I would appreciate the feedback.

Celeste

-Original Message-
From: Joe Cheng [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 10:53 AM
To: [EMAIL PROTECTED]
Subject: Re: Anyone ever tried running a web app (JSP) using Citrix 6.0?


>> My boss, who doesn't really know or understand anything about web
applications, has decided to save some money on a JSP/Java web application
that we have developed as an intranet site, by setting up the site to run as
an internet site, but using Citrix to make it available to people outside
the company. <<

hahahahaha...

First of all, that's the dumbest idea I've ever heard. :)

Your users all have Internet Explorer installed on their desktops.  So he's
going to have them use Internet Explorer to access the Citrix client, which
will allow them to remotely control another copy of Internet Explorer--this
second copy being the one that resides on your network--which will then make
requests to your web application.

This, instead of simply having the first copy of Internet Explorer make
requests to your web application!!!

IE => Citrix => IE => webapp
IE => webapp

Which do you think will have the lower TCO?  Which you do you think will
have lower latencies?  Which will provide the better user experience?  Which
will not damage your credibility as a (presumably) technology-savvy
corporation?

(Answer: the second one)

If you're really in a pinch, why not move your web server outside the
firewall and just secure your private webapps using other means (which you'd
have to do anyway, even in the ridiculous Citrix scenario).

-jmc

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Anyone ever tried running a web app (JSP) using Citrix 6.0?

2001-11-13 Thread Haseltine, Celeste

I am actually cringing as I write this email to the group.  My boss, who
doesn't really know or understand anything about web applications, has
decided to save some money on a JSP/Java web application that we have
developed as an intranet site, by setting up the site to run as an internet
site, but using Citrix to make it available to people outside the company.
Basically, there has been a sudden change in business plans, and our
intranet application is now going to have to run on the internet so that
this companies customers can access it via the web for the next 6 months.
So instead of buying another server and setting up an internet web server
with appropriate security, or better yet, leasing server space to host our
"now to become" internet web site, he has come up with the brilliant idea of
using Citrix to allow "outside the company" personnel run Internet Explorer,
and thus access our JSP/Java web application.

I have never worked with Citrix, but I have been told in the past that
applications like Citrix, which take a single user exe and make it available
for use across a network as a multi-user application, will work only with
exe's that are created as single threaded model exe's, such as Visual Basic
6.0 exe's.  I have tried to get him to understand that web applications are
NOT exe's, much less single threaded models, but with no success.  Since I
know very little about Citrix, does anyone out there have a better
understanding of what Citrix is and does, and can give me some insights as
to the potential problems that he may encounter trying to access a JSP/Java
web site using Citrix to run Internet Explorer?  Our site currently exists
on an NT 4.0 server, running JRUN 3.01 and IIS 4.0, and using SQLServer 7.0
on the backend.  Any advice that I can get to try and talk him out of this
REALLY bad idea would be appreciated.

Celeste

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Abstract JavaBean

2001-11-12 Thread Haseltine, Celeste

Paranj,

You can create your own abstract class which provides the method(s)
declaration(s) that is/are common to all your subsequent concrete classes,
but which have no implementation code.  You would then use your abstract
class via inheritance to create your concrete classes, each of which
implement their "shared" or "common" methods differently.  You can create
instances of these concrete classes that are inherited from your abstract
class, so you can use them as beans in your JSP.  Just remember, a Java bean
by it's definition can take no parameters as part of it's constructor, where
as a Java class can.

Just as in C++, you cannot instantiate an abstract class, so if your
question pertains to whether you can create an abstract Java class and use
an instantiation of it as a bean in your JSP page, the answer is no.  By its
very nature, an abstract class has as least one method that has no
implementation code.

Celeste


-Original Message-
From: Paranj, Bali [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 10:22 AM
To: [EMAIL PROTECTED]
Subject: Abstract JavaBean


Hi,

Is it possible to have a abstract JavaBean ? There are two business
functions which share some methods and they differ in other methods. So, can
I use abstract bean in this case ? I am calling the concrete beans from a
JSP page.

Thanks for your time,
Bala Paranj

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JSP, JRun and PWS

2001-11-02 Thread Haseltine, Celeste

Yes, you just configure JRUN to work in conjunction with PWS, just as you
would if you were running MS IIS 4.0/5.0.  I am assuming that you are using
Windows 95 as your operating system.  If you are using NT 4.0 or above, I
strongly suggest that you download IIS 4.0 from MS web site, instead of
using PWS.

Celeste

-Original Message-
From: Theo Starr [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 5:40 AM
To: [EMAIL PROTECTED]
Subject: JSP, JRun and PWS


Hello Everybody

Is it possible to run JSP with JRun on Personal Web Server??

Has anyone done this with success??

Theo Starr
Almityand-Mega Multimedia
WWW:  http://www.ozemail.com.au/~almity1
email:  [EMAIL PROTECTED]

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Date() giving problems in jsp

2001-10-31 Thread Haseltine, Celeste

At the top of you JSP page, specify which Date library you are using.  For
example,:

<%@ page import="java.util.Date" %>

specifies the Date class as defined in the java.util.Date package.  Note
that using

<%@ page import="java.util.*" %>

will not work IF you also have the sql import statement

<%@ page import="java.sql.*" %>

in the same jsp page, which I suspect you do by the error message you
received.

Hope this helps!

Celeste

-Original Message-
From: charu gupta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 12:05 PM
To: [EMAIL PROTECTED]
Subject: Date() giving problems in jsp


Hi all,

In my jsp page I am passing "date" as a parameter.

The code is as follows:-
Date startdate=Date();
if(request.getParameter("date")!=null)
{
   startdate=request.getParameter("date");
}

I am getting the following error message on
compilation:-

D:\bea\wlserver6.0\config\EAIDOMAIN\applications\emd\WEB-INF\_tmp_war_EAI1_E
AI1_EMD\jsp_servlet\_test2.java:169:
reference to Date is ambiguous, both class
java.sql.Date in java.sql and class java.util.Date in
java.util match
Date startdate= new java.util.Date(); //[
/test2.jsp; Line: 10]


Please help!
Thanks


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JSP editor

2001-10-29 Thread Haseltine, Celeste

Forte is also very resource intensive, if I remember correctly.  I believe
it requires 64K of memory to run.

Celeste

-Original Message-
From: Robert Burdick [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 11:35 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP editor


Forte is pretty good too, but it's very slow, being a Java-based client
application.


At 11:26 AM 10/29/2001 -0600, Haseltine, Celeste wrote:
>I use JRUN Studio.  It's a fairly decent JSP/HTML/WML editior, and if you
>are using JRUNServer as your JSP/Servlet server, you can set it up to be
>integrated with the server, and do "step-through" debugging with
>breakpoints.
>
>You can download a 30 day trial version from Alliare's web site.
>
>Celeste
>
>-Original Message-
>From: Henrik Johansson [mailto:[EMAIL PROTECTED]]
>Sent: Monday, October 29, 2001 11:03 AM
>To: [EMAIL PROTECTED]
>Subject: JSP editor
>
>
>Hi!
>
>Is there a good JSP editor available anywhere to download? Such as MS
Visual
>Studio for ASP...
>
>/Henke
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com


-
Robert Burdick
Author, "Essential Windows CE Application Programming", John Wiley and Sons
Co-author, "Professional JSP, 2nd Edition", Wrox Press

[EMAIL PROTECTED]
www.wAppearances.com
(650)-917-8446 (office)
(650)-906-3707 (cell)

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JSP editor

2001-10-29 Thread Haseltine, Celeste

I use JRUN Studio.  It's a fairly decent JSP/HTML/WML editior, and if you
are using JRUNServer as your JSP/Servlet server, you can set it up to be
integrated with the server, and do "step-through" debugging with
breakpoints.

You can download a 30 day trial version from Alliare's web site.

Celeste

-Original Message-
From: Henrik Johansson [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 11:03 AM
To: [EMAIL PROTECTED]
Subject: JSP editor


Hi!

Is there a good JSP editor available anywhere to download? Such as MS Visual
Studio for ASP...

/Henke

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Platform choice advice for deploying a website

2001-10-24 Thread Haseltine, Celeste

Thank you.  The discussion under the Intro pretty much answered my
questions.  Do you know if there is a similiar discussion on the merits of
using IIS and other JSP/Servlet containers together somewhere else on the
web?  My intial search on this topic using google.com on Monday did not
bring up any useful web sites/articles.

Thanks again!

Celeste

-Original Message-
From: Panagiotis Konstantinidis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 10:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Platform choice advice for deploying a website


  Take a look here:
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html It
might help.

24/10/2001 16:44:47, "Haseltine, Celeste" <[EMAIL PROTECTED]> wrote:

>I too am trying to understand what parameters you should take into
>consideration when looking at the JSP/Servlet container to use for a web
>site, and whether you should use the JSP/servlet container in
>conjunction
>with Apache or IIS.  One thing struck me in the dialog below, and it was
>the
>following sentence:
>
>>   Tomcat is ideal as a standalone server for web sites with a little
>>traffic. For bigger web sites (up to 70k - 120k) it is advisable to run
>>Tomcat in conjuction with Apache.
>
>What does the combination of Tomcat+Apache give you that Tomcat as a
>stand
>alone server does not?
>
>Celeste
>
>-Original Message-
>From: Joseph Ottinger [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, October 24, 2001 7:15 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Platform choice advice for deploying a website
>
>
>That's not the only difference. As I said, WebLogic is J2EE whereas
>Tomcat
>is a Servlet container. I'm well aware of what the implications are, and
>I
>use a number of application servers; I'd say Tomcat's suitable for
>testing
>and possibly deployment on sites with *little* traffic (not "a little
>traffic," sorry. :)
>
>---
>Joseph B. Ottinger   [EMAIL PROTECTED]
>http://adjacency.org  IT Consultant
>
>
>
>>From: Panagiotis Konstantinidis <[EMAIL PROTECTED]>
>>Reply-To: Panagiotis Konstantinidis <[EMAIL PROTECTED]>
>>To: Joseph Ottinger <[EMAIL PROTECTED]>
>>Subject: Re: Platform choice advice for deploying a website
>>Date: Wed, 24 Oct 2001 12:25:18 +0100
>>
>>   I think the only difference here is that Tomcat is a Servlet/JSP
>engine
>>while Weblogic is a Servlet/JSP engine *and* EJB container (in a few
>words
>>weblogic is a proper Application Server). Unfortunatelly while one of
>the
>>most popular
>>Servlet/JSP engines (Tomcat) comes for free, the most popular EJB
>>containers
>>cost money. The good news is that there are several out there that are
>for
>>free. If you want take a look here for a review of some of the EJB
>servers:
>>http://www.mgm-edv.de/ejbsig/ejbservers_tabled.html
>>
>>   Tomcat is ideal as a standalone server for web sites with a little
>>traffic. For bigger web sites (up to 70k - 120k) it is advisable to run
>>Tomcat in conjuction with Apache. I have been using Tomcat with Apache
>for
>>the past two years and I had
>>no problems so far.
>>
>>24/10/2001 12:04:17, Joseph Ottinger <[EMAIL PROTECTED]> wrote:
>>
>> >Tomcat doesn't do what weblogic does. Weblogic is a J2EE container;
>> >Tomcat
>> >is a servlet container. J2EE is more than servlets.
>> >
>> >You might also consider Orion (www.orionserver.com) - it's also a
>J2EE
>> >container, runs much faster than WebLogic (although BEA won't allow
>> >anyone
>> >to publish benchmarks - I wonder why?) and has a price tag of $1500,
>> >compared to BEA's open pricing.
>> >
>> >---
>> >Joseph B. Ottinger   [EMAIL PROTECTED]
>> >http://adjacency.org  IT Consultant
>> >
>> >
>> >
>> >>From: Daniel Jaffa <[EMAIL PROTECTED]>
>> >>Reply-To: A mailing list about Java Server Pages specification and
>> >>reference <[EMAIL PROTECTED]>
>> >>To: [EMAIL PROTECTED]
>> >>Subject: Re: Platform choice advice for deploying a website
>> >>Date: Wed, 24 Oct 2001 04:11:58 +
>> >>
>> >>Getting a little off topic here: Can tomcat handle load of up to 70k
>-
>> >120k
>> >>hits an hour.  Or would i have to go to a product like WebLogic.
>> >>
>> >>The reason i ask is that i have been bui

Re: Offtopic:ODBC

2001-10-24 Thread Haseltine, Celeste

MDAC and ODBC are not the same thing.  Whomever suggested that you install
MDAC to correct an ODBC problem was incorrect.  MDAC is Microsoft's version
of ADO (Active X Data Objects) and if my memory serves me correctly, I
believe it sets up a transparent "communication" layer for the developer
between ADO and ODBC.  But MDAC has nothing to do with JDBC or with ODBC by
itself.  If you are having "generic" ODBC problems, you need to reinstall
the ODBC drivers off of your Windows disk.  If you are having ODBC problems
with a specific driver that you installed to go with a specific database you
are using (Oracle, SQLServer, etc), then try reinstalling the ODBC driver
for that specific database.

If you are REALLY familiar with Windows, you can take a look at the
ODBCINST.INI file, which lists all the ODBC drivers that your operating
system installs.  You can then go to another machine, copy all the drivers
listed on the ODBCINST.INI list, and recopy them back to your machine, and
see if that corrects your problem.  Be careful with your Windows registry,
though.  If your ODBC problem isn't in the drivers itself, but in the
registry, this will not correct your problem.


Celeste


-Original Message-
From: Othmar Stehlik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 10:23 AM
To: [EMAIL PROTECTED]
Subject: Re: Offtopic:ODBC


I installed the mdac, but the error stays the same, should uninstall ODBC,
how?






> http://www.microsoft.com/data
> download the latest mdac
>
> Daniel Jaffa
> Computer GOD who Created the Stars and Moon
> "If you are not happy, I am not happy"
>
>
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Platform choice advice for deploying a website

2001-10-24 Thread Haseltine, Celeste

I too am trying to understand what parameters you should take into
consideration when looking at the JSP/Servlet container to use for a web
site, and whether you should use the JSP/servlet container in conjunction
with Apache or IIS.  One thing struck me in the dialog below, and it was the
following sentence:

>   Tomcat is ideal as a standalone server for web sites with a little
>traffic. For bigger web sites (up to 70k - 120k) it is advisable to run
>Tomcat in conjuction with Apache.

What does the combination of Tomcat+Apache give you that Tomcat as a stand
alone server does not?

Celeste

-Original Message-
From: Joseph Ottinger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 7:15 AM
To: [EMAIL PROTECTED]
Subject: Re: Platform choice advice for deploying a website


That's not the only difference. As I said, WebLogic is J2EE whereas Tomcat
is a Servlet container. I'm well aware of what the implications are, and I
use a number of application servers; I'd say Tomcat's suitable for testing
and possibly deployment on sites with *little* traffic (not "a little
traffic," sorry. :)

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://adjacency.org  IT Consultant



>From: Panagiotis Konstantinidis <[EMAIL PROTECTED]>
>Reply-To: Panagiotis Konstantinidis <[EMAIL PROTECTED]>
>To: Joseph Ottinger <[EMAIL PROTECTED]>
>Subject: Re: Platform choice advice for deploying a website
>Date: Wed, 24 Oct 2001 12:25:18 +0100
>
>   I think the only difference here is that Tomcat is a Servlet/JSP engine
>while Weblogic is a Servlet/JSP engine *and* EJB container (in a few words
>weblogic is a proper Application Server). Unfortunatelly while one of the
>most popular
>Servlet/JSP engines (Tomcat) comes for free, the most popular EJB
>containers
>cost money. The good news is that there are several out there that are for
>free. If you want take a look here for a review of some of the EJB servers:
>http://www.mgm-edv.de/ejbsig/ejbservers_tabled.html
>
>   Tomcat is ideal as a standalone server for web sites with a little
>traffic. For bigger web sites (up to 70k - 120k) it is advisable to run
>Tomcat in conjuction with Apache. I have been using Tomcat with Apache for
>the past two years and I had
>no problems so far.
>
>24/10/2001 12:04:17, Joseph Ottinger <[EMAIL PROTECTED]> wrote:
>
> >Tomcat doesn't do what weblogic does. Weblogic is a J2EE container;
> >Tomcat
> >is a servlet container. J2EE is more than servlets.
> >
> >You might also consider Orion (www.orionserver.com) - it's also a J2EE
> >container, runs much faster than WebLogic (although BEA won't allow
> >anyone
> >to publish benchmarks - I wonder why?) and has a price tag of $1500,
> >compared to BEA's open pricing.
> >
> >---
> >Joseph B. Ottinger   [EMAIL PROTECTED]
> >http://adjacency.org  IT Consultant
> >
> >
> >
> >>From: Daniel Jaffa <[EMAIL PROTECTED]>
> >>Reply-To: A mailing list about Java Server Pages specification and
> >>reference <[EMAIL PROTECTED]>
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: Platform choice advice for deploying a website
> >>Date: Wed, 24 Oct 2001 04:11:58 +
> >>
> >>Getting a little off topic here: Can tomcat handle load of up to 70k -
> >120k
> >>hits an hour.  Or would i have to go to a product like WebLogic.
> >>
> >>The reason i ask is that i have been building with weblogic and when it
> >>comes time for the client to pay the bill they always gag at the price.
> >>And
> >>if TomCat + apache can fit the bill for free well then of TomCat i will
> >go.
> >>
> >>
> >>
> >>
> >>Original Message Follows
> >>specification and reference <[EMAIL PROTECTED]>
> >>
> >>This is actually a current topic of discussion on the
> >>[EMAIL PROTECTED] mailing list.
> >>
> >>What I mentioned is more of a rule of thumb since I don't know of any
> >>Tomcat+Apache benchmarks. You would need to look into your own business
> >>needs and performance criteria. When you look at volume you don't just
> >need
> >>to look at the number of hits. You have to look at the information that
> >you
> >>are serving. What is it? Is it a set of static pages or a set of
> >dynamic?
> >>How many requests of that content do you really need to handle per
> >second?
> >>
> >>As for security, T

Re: Platform choice advice for deploying a website

2001-10-23 Thread Haseltine, Celeste

Justyna,

This addresses an issue we have been discussing up here at work.  Is the
"rule of thumb" always "the number of static pages vs the number of dynamic
pages" in determining whether you need to run a JSP/Servlet server as a
stand alone server, or in conjunction with an HTML server, such as Apache or
IIS?  What weight in the decision process do you give the "volume" or
"number of hits" you expect your web site to generate in making your
decision regarding servers?  And where do security considerations play into
the decision making process regarding using a stand alone JSP server vs an
HTML and JSP server together (such as Apache + Tomcat), or do they play in
at all?

My thanks in advance to anyone with additional advice on this topic.  Also,
if anyone has any good references/sites that discuss this topic in general,
I would be interested in them.

Celeste

-Original Message-
From: horwat [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 1:51 PM
To: [EMAIL PROTECTED]
Subject: Re: Platform choice advice for deploying a website


You can minimize your pain threshold by analyzing what type of server you
need. Is it going to be large volume with many static pages and a couple of
dynamic pages? Then you should use Apache + Tomcat.

Now, if your server isn't going to be large volume or has mostly dynamic
pages then you should really consider running Tomcat standalone. You dynamic
pages would not be relayed through Apache but be served directly by Tomcat.
It is much easier to configure Tomcat standalone than configure two servers
and the connector between them.

As for documentation, I would look at the apache site for both products:

http://www.apache.org
http://jakarta.apache.org/tomcat

Justy


- Original Message -
From: "Paul Idusogie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 22, 2001 3:06 PM
Subject: Platform choice advice for deploying a website


> Hello Folks:
>
> I need your advice on the best approach due to budgetry constraints.
> I'm considering learning Linux to deploy my website using apache as my
> web server and tomcat as the servlet container. Could any one provide
> suggestions on books, linux version and the pain threshold.
>
> I can not afford Windows 2000 server software.
>
>
> Thanks
>
> Paul Idusogie
> Technical Architect
> Consulting Services
> Stellent Inc.
> (fka: IntraNet Solutions)
>  Golden Triangle Drive
> Eden Prairie, MN 55104
> Desk: 952.656.2755
> Cell: 612.810.4174
> Fax: 952.903.2115
> Email: [EMAIL PROTECTED]
> website: http://www.stellent.com
>
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Use of Session Attribute

2001-10-22 Thread Haseltine, Celeste

Hans,

Can you use a session life cycle event listerner with JSP 1.1?  I don't
think you can, but I just wanted to check.  We are not going to be able to
upgrade to JRUN Server 3.1 until after we deploy, and JRUN 3.01 is based on
the JSP 1.1 standard, if my memory is correct.

Celeste

-Original Message-
From: Hans Bergsten [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 3:15 PM
To: [EMAIL PROTECTED]
Subject: Re: Use of Session Attribute


Eric Fleming wrote:
>
> I am a Cold Fusion Developer learning JSP and have a question.  In Cold
> Fusion we have an application file and upon request of a cf page, the
> application file is called first.  this is how we store a lot of variables
> associated with each page, is there a file that JSP pages go through first
> or is there a way to store variables in JSP?  I have been using session to
> do this, but I have to check to see if the variable is defined on every
page
> and if it isn't, set it.  Anybody know of an easier way to do this?  Sorry
> if this message is confusing.

In JSP 1.2 (Servlet 2.3), you can create a session life cycle event listener
to handle this. It gets called when a new session starts (and ends), so you
can initialize the session with all the data you need.

  

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How to create a report in JSP

2001-10-19 Thread Haseltine, Celeste



Nguyen, 
 
I
tried to use Crystal Reports 8 with JRUN 3.01 and JSP, and finally gave
up.  I had real problems getting the Crystal Report server, IIS and
JRUNServer to work together on the same box.  Another friend of mine
suggested a work around that was overkill for me, but necessary for him. 
They create their reports using Crystal reports via Visual C++ on a
different box, and then via CORBA, download the pdf file created by Crystal
Reports to the user's browser for display and printing as a pdf file.  That
was a little bit overkill for me, so I decided to use just plain XML and XSLT to
create some simple reports management needed.  But for more complex and
extensive reports, you might want to consider creating the reports in Visual
C++,. and using CORBA to pass in parameters to the Visual C++ objects that
would create the reports, and then have the "completed" report downloaded to the
user's browser.
 
Celeste 
 
 

  -Original Message-From: Nguyen Tra Linh
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, October 18, 2001 10:09
  PMTo: [EMAIL PROTECTED]Subject: How to create a
  report in JSP
  Hi all !
  Sorry for my question, but I've never tried
  printing report (Crystal Report) in JSP. If it's possible, how to set formulas
  in JSP. Any guidance or link would be highly appreciated.
   
  Linh.
  -Nguyen
  Tra LinhCenter for IT Development34 Truong Dinh Str., Dist. 3, HCMC,
  Vietnam[EMAIL PROTECTED]


Re: Opportunities..

2001-10-05 Thread Haseltine, Celeste



Saravanan, 
 
I'm 
not sure if you are referring to opportunities in the US, or just opportunities 
overall.  It is my understanding that Java has a larger market share in 
Europe than in the US, but that may be changing soon when MS releases their new 
.NET platform.  The cost of licensing for the new software, coupled 
with the fact that the VB compiler has been rewritten so that old VB code will 
not run on the new platform, may drive up the market share for Java and 
JSP.  Java and JSP have the advantage of open source, can be used on 
multiple platforms, and no licensing fee's for the software(but there may be 
fees for the JSP server, depending on what server you decide to use).  I've 
spoken with some managers in some of the larger companies, who are 
seriously considering porting from MS to Java/JSP if the costs are right.  
And one of the biggest factors they are considering are the licensing fee's that 
MS is planning to charge for their new .NET platform, with the second biggest 
costs the re-training of their in house employees in a new development 
language.  Companies who in the past were getting away with buying on 
Enterprise license, and using it on 30 developers machines, will now have to buy 
30 separate license's if they want to upgrade. 
 
In the 
short term (next 6 months), the outlook for developers overall in the US is not 
good.  No one is investing in their current software/platforms unless they 
absolutely have to.  They are living with what they've got, and patching up 
their software to keep it going where necessary.  The market had taken a 
big hit since the 4th quarter of 2000, and the events on Sept 11, 2001 in NY has 
moved the US into what I believe is a full blown recession, although the numbers 
to justify my opinion will not be available for another 6 months.  With so 
many Americans out of work, and the number of unemployment claims 
rising, American based companies in the US are finding it hard to justify hiring 
an H1-B visa holder to the Immigration Dept.  So no matter what type of 
developer you are, MS, Java, JSP, COBAL, etc, the job market is 
tight.
 
I 
don't know if that gave you the information you were looking for, but that's one 
developers opinion/outlook from the Dallas, TX area.
 
Celeste   

  -Original Message-From: Saravanan Thangaraju 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, October 05, 2001 4:47 
  AMTo: [EMAIL PROTECTED]Subject: 
  Oppurtunities..
  
  Is there any opportunities for JSP 
  Developers still in the market or it is dried up..
   
  Saravanan 
  . T.
  India.
   


Re: running jsp/servlet on IIS.

2001-10-02 Thread Haseltine, Celeste



Simon,

 
You
don't run JSP or servlets directly on IIS, you need a JSP compilier/interpreter
to run "on top of", or in conjunction with, IIS.  You can use Tomcat, JRUN,
Orion, or BEAWeblogic.  I personally like JRUN.  You can download a 30
day trial version, which will revert to the developers version after the 30
days, from www.allaire.com.
 
Celeste

  -Original Message-From: s i m o n
  [mailto:[EMAIL PROTECTED]]Sent: Monday, October 01, 2001
  11:15 PMTo: [EMAIL PROTECTED]Subject: running
  jsp/servlet on IIS.
  how do you run jsp and servlet on
  iis?
  where can i get information on this?
  i'm using win2k here. any idea?
   
   
  thanks in
advance.


Re: how to access servlet from the jsp page

2001-09-21 Thread Haseltine, Celeste

David,

I've never tried to tie a user event on the browser side back to an object
on the server.  To my knowledge, JS runs only on the browser side, and Java
class Beans are resident on the server side.  I don't know how you would
capture an event generated on the browser side, pass it back to the Java
class Bean on the serverside, and send the response back to the browser.
Whenever I needed event capability, I considered using a visual JavaBean
that could run within the browswer.  I would be interested in seeing the
code if anyone has ever used JS on the browser side to send an event to a
Java class bean on the server side, and back again.

Celeste

-Original Message-
From: David Gee (MAYA Design) [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 21, 2001 10:47 AM
To: [EMAIL PROTECTED]
Subject: Re: how to access servlet from the jsp page


> Hi David,
>
> To use something similar to VBScript/COM objects in java you would use
> JSP/JavaBeans.

I know, I'm already (successfully) doing that. My problem is tying Javabean
method calls into user events (clicks, rollovers, etc). This is possible
with VBScript/COM, but I haven't been able to find any way to do this with
JSP/Javascript.

here's a reduction of what MS is doing:


.
.



function doStuff {
x.method("param");
}



if i try something similar with JSP:




function doStuff {
x.method("param");
}


i get a javascript error: x is null or not an object. this is because the
"object" tag is part of the DOM, whereas the "jsp:usebean" is a server
processed tag which doesn't exist in the DOM and so isn't accessable via
Javascript. At least, that's my (admittedly limited) understanding of what's
going on.

> You can also include any java class you like in your JSP page with the
> 'import' tag. I can't see really why you'd want to access a servlet from a
> JSP, but you can send the http request to a servlet from a JSP. I think
you
> need to read up a bit more about how to use JSP, servlets and beans in a
web
> application since you can do everything with JSP that you can with ASP and
> more.

Except for what I'm trying to do above :) Don't get me wrong, I'm pretty
much agnostic when it comes to web technologies, but lean towards anything
that's not Microsoft, for all the obvious reasons. I just think that the
idea of what a "dynamically generated page" is, is changing rapidly from a
page that is processed on the server and rendered as static HTML (which is
what JSP seems to do) to a page that can go out, get information, and update
itself *without* refreshing the entire page or forwarding to another page.
I'm coming from a front-end web developer's point of view - I care about
making the user experience as satisfying, quick, and impressive as possible.

> Javascript and Java are seperate technologies - ASP and COM are designed
to
> be used together. Oh, and of course they're (to all intents and purposes)
> platform specific and proprietry, limitations java doesn't have.

Yeah, I know. That seems to be the limitation. If Beans could be implemented
in pages via the  tag, it'd solve all my problems.

david

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Gaining a Position

2001-09-21 Thread Haseltine, Celeste

Isak,

I'm not in the US on a visa, I am an American citizen, so others on this
forum may have better advice than me.  But I did want to give you a heads
up.  Your timing for wanting to obtain an H1-B visa to work in the US is not
good.  The economy in the US took a "nosedive" the last quarter of 2000, and
has not recovered yet.  Consequently, many US citizens are out of work and
seeking new positions. The H1-B visa program was designed to help US
company's bring in skilled workers to fill jobs where no Americans were
available to fill them.  Since the jobless rate is now higher in the US,
many companies are no longer able to justify the cost, much less provide the
immigration office with the evidence needed to demonstrate that there are no
US citizens available for the job.   Add to that the incident that occurred
at the World Trade Center in NY last week, and you can see that finding a
high tech job in the US will be very difficult compared to what is was at
this time last year.

Celeste

-Original Message-
From: Isak Rickyanto [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 19, 2001 8:46 AM
To: [EMAIL PROTECTED]
Subject: Re: Gaining a Position


I see a lot of India programmer in this mailing list...

I take conclusion from the names ..

I know from the media that a lot of IT people in India..
and a lot of them go abroad to get better job..
I am Indonesian... but I think I am interested to get job abroad too..
especially to be Java Programmer in web technology

Maybe someone who work abroad can tell me how to get job abroad...
about visa... (what kind of visa?) , and what I must do to get job abroad...
I am in the last year in my college and i hope if i have graduated I can get
job abroad...

Maybe someone who work abroad can tell the experience

> -Original Message-
> From: Joel Carklin [mailto:[EMAIL PROTECTED]]
> Sent: 21 September 2001 09:00
> To: [EMAIL PROTECTED]
> Subject: Re: Gaining a Position
>
>
>
> Hi Peter,
>
> I've recently managed to get work as a Java programmer, after teaching
> myself and coming from a background with no programming experience
> whatsoever. I did a 6 month correspondence course, did all the online
> tutorials I could find (the one from Sun is very good) and hung out in
> places like this list and the Java Ranch ( www.javaranch.com
>  ) . After about 8 months of studying and
> experimenting I prepared for Sun's Java Programmer Examination. I did all
> the mock exams I could find and finally passed with flying colours. I then
> sent out an email to all the Java User Groups in my area (Cape Town)
saying
> I wanted to work with JSP and Servlets as well as EJB's (which aren't
> actually covered in the exam). It took 6 months but I am now happily
> employed, at entry level position and salary, but getting the experience I
> need to become good at what I do...
>
>
>
>
>
> > I am trying to break into the field of programming as a Java developer.
I
> would like to ask the people who are employed as Java
> > Programmers how they got their break into the world of programming and,
> more specifically, java.
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Gaining a Position

2001-09-20 Thread Haseltine, Celeste



Peter, 

 
For me 
it was two things:  1. Used my existing internal network from my previous 
engineering career to land a full time developer position.  2.  
Accepted jobs with small companies who could not afford to pay the big salaries, 
or all the benefits, but could give me valuable experience and exposure to the 
latest and greatest technology.
 
Celeste

  -Original Message-From: Peter Boivin 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, September 20, 2001 
  2:01 PMTo: [EMAIL PROTECTED]Subject: Gaining a 
  Position
  
  I am 
  trying to break into the field of programming as a Java developer.  I would like to ask the people who are 
  employed as Java Programmers how they got their break into the world of 
  programming and, more specifically, 
  java.


Re: OFF TOPIC: Terrorist attacks

2001-09-14 Thread Haseltine, Celeste
Title: RE: OFF TOPIC: Terrorist attacks



Sanjay, 
 
The
fact that we did drop nuclear bombs that killed and maimed many civilians is one
that I am still ashamed of to this day as a US citizen.  Nor am I proud
that we as a nation have never made a formal apology to Japan, as they have
provided us for the bombing at Pearl Harbor.  But as my father pointed out
to me (he was 12 years old at the time of the attack on Pearl Harbor), it was
the only way we could bring an end to the war.   The two
atomic bombs that we dropped on Nagasaki and Hiroshima were NOT a response
to the attack on Pearl Harbor.  They were simply the most economic way AT
THAT TIME, to bring to an end to a war that did bankrupt all of Europe, and
almost bankrupted the United States.   
 
Celeste
Original Message-From: Sanjay
Gomes [mailto:[EMAIL PROTECTED]]Sent: Friday, September
14, 2001 11:09 AMTo: [EMAIL PROTECTED]Subject: Re:
OFF TOPIC: Terrorist attacks

  I am sorry for again writing offtopic but couldn't resist a
  reply to this,   I am neither a critic of the US nor a fanatic but
  
  ..the facts are  
  The Japanese bombed the military targets in the Pearl harbour
  , and in response the US dropped Nuclear bombs on two heavily populated cities
  
  creating millions of civilian casualties for times to come
  
   -Original Message- From:
    Haseltine, Celeste [mailto:[EMAIL PROTECTED]]
  Sent:   14 September 2001 17:00
  To: [EMAIL PROTECTED]
  Subject:    Re: OFF
  TOPIC: Terrorist attacks 
  To everyone on JSP Board. 
  I apologize for filling up the board with another response,
  and off topic at that.  But I am so tired of
  hearing how we in American may have deserved a taste
  of what many in other countries have had to deal with the last couple
  of days, that I had to respond to Isidoros.  My
  apologies to anyone I inconvenience on the board
  today. 
  --- 
  Isidoros, 
  I wanted to thank you for your expression of sympathy for
  those of us here in the US who did loose family, loved
  ones, and co-workers this past Tues. Fortunately for
  our company in Texas, all the employees of the company that we were working a contract with did manage to get out of the World
  Trade Center Towers and are accounted for. 
  What you say is very true.  We vote people into office in
  the US that reflect the majority opinion of whatever
  political issues are at the forefront during the
  election process.  We do hold a great deal of world power in our hands, and we often do force our views of democracy and
  justice onto other countries who cultures and views
  are different.  And, we may use our military
  muscle to protect our interests and the interests of our allies, sometimes at the expense of the local people. 
  So some of the hatred that has recently been directed at us
  is understandable.  But it is NOT
  excusable.  We are a country who believe in the
  rights of all free people to take up arms and fight for what they
  believe in.  But terrorism in ANY form is a cowardly way
  to fight, and it is one that is without honor. 
  Back when the Japanese bombed Pearl Harbor, they freely and openly wore their national symbols on their planes, and
  their uniforms.  And they admitted that they bomb
  us.  Though the result of their actions were no
  different than the results that occurred on Tues in NY and Washington, DC, the Japanese were a people and country with
  honor.  They fought and died for what they
  believed in, and we in this country have respected
  them from the day they signed the armistice, up to the present.

  The people behind the attack that took place on Tuesday have
  refused to stand up and admit who they are. 
  Because of this, many Americans view their actions,
  and whatever beliefs they may hold that lead them to the attack on
  Tues, in contempt.  They are cowardly, and are a people
  without honor.  In addition to the attack on US
  soil on Tuesday, these same people have killed so many
  others in so many countries, that it is time that we globally take a
  stand and put a stop to terrorism once and for all. 
  That is why NATO, and many other countries, including
  those who are openly opposed to the US such as Libya,
  have joined the US in condemning what happened on Tues.  Whether
  this will eventually lead to military action or not, it's
  hard to say.  But this American is willing to
  cast a vote for military action IF their is sufficient
  evidence regarding who was behind this attack, and IF the person
  or persons responsible refuse to stand up for their actions
  and beliefs in a court of law (UN court or
  otherwise). 
  Thank you again for your prayers, and continuing praying that
  we as a global community can put a stop to terrorism
  once and for all without resorting to military
  action. 
  Celeste -Original
  Message- From: Isidoros Vacropoulos [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 14, 2001 

Re: OFF TOPIC: Terrorist attacks

2001-09-14 Thread Haseltine, Celeste

To everyone on JSP Board.

I apologize for filling up the board with another response, and off topic at
that.  But I am so tired of hearing how we in American may have deserved a
taste of what many in other countries have had to deal with the last couple
of days, that I had to respond to Isidoros.  My apologies to anyone I
inconvenience on the board today.

---

Isidoros,

I wanted to thank you for your expression of sympathy for those of us here
in the US who did loose family, loved ones, and co-workers this past Tues.
Fortunately for our company in Texas, all the employees of the company that
we were working a contract with did manage to get out of the World Trade
Center Towers and are accounted for.

What you say is very true.  We vote people into office in the US that
reflect the majority opinion of whatever political issues are at the
forefront during the election process.  We do hold a great deal of world
power in our hands, and we often do force our views of democracy and justice
onto other countries who cultures and views are different.  And, we may use
our military muscle to protect our interests and the interests of our
allies, sometimes at the expense of the local people.

So some of the hatred that has recently been directed at us is
understandable.  But it is NOT excusable.  We are a country who believe in
the rights of all free people to take up arms and fight for what they
believe in.  But terrorism in ANY form is a cowardly way to fight, and it is
one that is without honor.  Back when the Japanese bombed Pearl Harbor, they
freely and openly wore their national symbols on their planes, and their
uniforms.  And they admitted that they bomb us.  Though the result of their
actions were no different than the results that occurred on Tues in NY and
Washington, DC, the Japanese were a people and country with honor.  They
fought and died for what they believed in, and we in this country have
respected them from the day they signed the armistice, up to the present.


The people behind the attack that took place on Tuesday have refused to
stand up and admit who they are.  Because of this, many Americans view their
actions, and whatever beliefs they may hold that lead them to the attack on
Tues, in contempt.  They are cowardly, and are a people without honor.  In
addition to the attack on US soil on Tuesday, these same people have killed
so many others in so many countries, that it is time that we globally take a
stand and put a stop to terrorism once and for all.  That is why NATO, and
many other countries, including those who are openly opposed to the US such
as Libya, have joined the US in condemning what happened on Tues.  Whether
this will eventually lead to military action or not, it's hard to say.  But
this American is willing to cast a vote for military action IF their is
sufficient evidence regarding who was behind this attack, and IF the person
or persons responsible refuse to stand up for their actions and beliefs in a
court of law (UN court or otherwise).

Thank you again for your prayers, and continuing praying that we as a global
community can put a stop to terrorism once and for all without resorting to
military action.

Celeste
-Original Message-
From: Isidoros Vacropoulos [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 14, 2001 1:48 AM
To: [EMAIL PROTECTED]
Subject: Re: OFF TOPIC: Terrorist attacks


Good morning,

I'm sorry that i use this list for telling my opinion about the terrible
things that happened in USA. Whoever does not want to read this mail, he can
just erase it. I don't think it is tiring to erase an email

I would also like to express my deep sorrow to the citizens of the USA.
Maybe there are fellow subscribers that may have lost friendly people or
relatives.

Secondly, i would like to say that i'm from Greece and i'm a Christian
Orthodox. After reading all these mails in this list, i would also like to
say my opinion...

Noone in this earth has the right to feel happy for the dead people and for
all the destructions in the city of New York.
N O O N E. Beyond religion, political beliefs and financial situation , we
are all human beings and who are not given the right to feel relief for some
people who die, even if their political or religious background is not the
same to ours.

On the other hand, noone has also the right to decide an attack and kill
innocent people.
Whether you want it or not, the fellow subscribers that come from the great
countries, like USA,Germany,Great Britain and the other ARE RESPONSIBLE FOR
THIS TRAGEDY TOO.
Voting for presidents and people in high places in the goverments who decide
that they will bomb innocent people (YUGOSLAVIA, AFRICA) is not less
responsibility than taking this decision. I want to make clear that i'm not
saying that USA got what it deservedI don't think that human beings are
the right beings to decide who has done wrong and who has done right.
I'm just saying that you are the on

Re: OFF TOPIC: Terrorist attacks

2001-09-12 Thread Haseltine, Celeste

I am going to assume that your message is being mis-interpreted by many on
this board, including myself, due to your unfamiliarity with the English
language.  You email makes it sound like you are happy that Americans are
being subject to the fear and loss of life that perhaps your people in
Kashmir have been subject to.  No matter what country you are from or your
personal religious beliefs, we are all one species living on one planet.
Although this is not the forum to discuss this topic, I personally believe
that terrorism in ANY country and in any form is wrong, and that all nations
pay the price, whether it happens in the US, in the Middle East, or in
Kashmir.

As a US citizen, I thank you for your prayers for those of us in the US who
lost loved ones and co-workers.

Celeste



-Original Message-
From: Jain Sharad [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 11, 2001 11:12 PM
To: [EMAIL PROTECTED]
Subject: Re: OFF TOPIC: Terrorist attacks


Dear

Why should we pass this message to others. When people died in Kashmir do u
feel regret. It is the slap on the american and the intelligence failure.
But I must not go beyond this...

As a true Indian  my condolences are with all the american family and
friends. I will pray to god.



> -Original Message-
> From: Victor Rodriguez [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 3:52 AM
> To:   [EMAIL PROTECTED]
> Subject:  OFF TOPIC: Terrorist attacks
>
> Fellow subscribers,
>
> I just wanted to take a minute to express my sorrow and regret for the
> terrorist events which have rocked the United States, and indeed the
> entire
> world this morning.
>
> I would like to extend my condolences to the family and friends of anyone
> out there who may have been affected by these horrible acts.  You are all
> in
> my thoughts and prayers.
>
> I would like to offer a suggestion to those living in the United States,
> and
> that is to purchase a U.S. flag and display it outside your homes as a
> symbol of solidarity and of unity.  Please pass this suggestion along.
>
> Best regards,
>
> Victor Rodriguez
>
>
> ==
> If there was a way for you to achieve optimum nutrition and possibly
> earn some money at the same time, would you want to know more?
>
> For details call +1-303-215-6092 from US,CA,UK,NL,AU,NZ,JP, or HK.
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Error: JSP Page threw a non-Exception Throwable????

2001-08-29 Thread Haseltine, Celeste

Andrew,

Thank you for your code sample.  I have not tried to put my LWPPrint.exe
into a bat file, since the exe launched and ran fine from my Java class when
I tested it as a pure Java application.  I will try that idea and see if I
get the same error.  It was when I put the call to the method in my Java
bean class that launches LWPPrint.exe into a JSP that I got the
non-Exception Throwable JSP error.  Someone else suggested that I may be
having issues with the Windows operating system interfering with my ability
to launch the LWPPrint.exe from within the JRUN server service (as I am
using JRUN Server and IIS on Windows NT), vs launching it directly from a
Java application running on Windows 2000.

Either way, in all my days of creating/writing JSP's I have never seen a JSP
page error "JSP Page threw a non-Exception Throwable".  I'm hoping that
someone else has seen that error and knows what it means.  So far, no luck.

Thanks again for the sample code and the idea of trying to wrap my exe into
a bat file.

Celeste





-Original Message-
From: Andrew Bruno [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 8:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Error: JSP Page threw a non-Exception Throwable


Hi Celeste,

I wanted to test out the runtime feature, so I set out to test it on
Tomcat 4b6, win 2000 server.

I created a bat file called hello.bat that simply echoed hello into a
hello.txt file.  I dont have the printer LWPPrint, and I dont know how
to print from dos command prompt.

The code is very similar to yours, except that I have put the Print
method inside a main Utils class, and packaged it due to my environemnt
setup.  The other difference is that the hello.bat file returns very
quickly, and I do not know how to put a timer in the DOS batch files in
order to test the wait feature.  The other difference is since I dont
have the writer.* log feature, I simply used e.printStackTrace methods
instead.

It seems to work fine.  Below is the code:

** Start Utils.java
package andrewbruno;

import java.io.*;

public class Utils {

public int Print() {
Runtime rt = Runtime.getRuntime();
Process proc;

try {
proc = rt.exec("F:\\myWork\\bin\\hello.bat");
} catch (IOException e) {
e.printStackTrace();
//("--* exec failed: error " + e.getMessage());
return (-1);
}

int exitStatus = -100;

do {
try {
exitStatus = proc.waitFor();
} catch (InterruptedException e) {
//writer.writeDebug("wait interrupted "
+ e.getMessage());
e.printStackTrace();
}
} while (exitStatus == -100);

return (exitStatus);
}//end Print

}//end Utils
** End  Utils.java

** Start JSP file



<%
int yes = test.Print();
if ( yes == (-1) ) { %>
 Error occurred trying to execute LMWPrint
<%} else   %>
Automation of LMWPrint completed

** End JSP file

I am happy to expand on the above if you'd like me to test any thing
else.

Thanks for your code example ;)

:ab


-Original Message-
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 29 August 2001 9:21 AM
To: [EMAIL PROTECTED]
Subject: Error: JSP Page threw a non-Exception Throwable


Has anyone every experienced the following exception from a JSP:

Exception javax.servlet.ServletException: JSP Page threw a non-Exception
Throwable.

I am trying to access a method in a Java class bean called Print from
within
my JSP.  The Print method resides in a Java class bean (non-visual) that
contains the following code :

  public int Print()
  {
 Runtime rt = Runtime.getRuntime();
 Process proc;

   try {
   proc = rt.exec("LMWPrint /L=C:\\Program
Files\\lmw3\\LabelFiles\\thirty.qdf /P=2");
   } catch (IOException e) {
   writer.writeDebug("--* exec failed: error " +
e.getMessage());
   return (-1);
   }
   int exitStatus = -100;

   do {
   try {

   exitStatus = proc.waitFor();
   } catch (InterruptedException e) {
   writer.writeDebug("wait interrupted " +
e.getMessage());
   }
   } while (exitStatus == -100);

   return (exitStatus);
   }//end Print

The Print method launches another executable called LMWPrint.exe, which
resides on the same machine as my JSP, Java class bean code and JRUN
Server.
Can you NOT start another executable on the same machine from a call
within
a JSP to a method in a JavaBean?  If I run

Error: JSP Page threw a non-Exception Throwable????

2001-08-28 Thread Haseltine, Celeste

Has anyone every experienced the following exception from a JSP:

Exception javax.servlet.ServletException: JSP Page threw a non-Exception
Throwable.

I am trying to access a method in a Java class bean called Print from within
my JSP.  The Print method resides in a Java class bean (non-visual) that
contains the following code :

  public int Print()
  {
 Runtime rt = Runtime.getRuntime();
 Process proc;

   try {
   proc = rt.exec("LMWPrint /L=C:\\Program
Files\\lmw3\\LabelFiles\\thirty.qdf /P=2");
   } catch (IOException e) {
   writer.writeDebug("--* exec failed: error " + e.getMessage());
   return (-1);
   }
   int exitStatus = -100;

   do {
   try {

   exitStatus = proc.waitFor();
   } catch (InterruptedException e) {
   writer.writeDebug("wait interrupted " + e.getMessage());
   }
   } while (exitStatus == -100);

   return (exitStatus);
   }//end Print

The Print method launches another executable called LMWPrint.exe, which
resides on the same machine as my JSP, Java class bean code and JRUN Server.
Can you NOT start another executable on the same machine from a call within
a JSP to a method in a JavaBean?  If I run the JavaBean as a stand alone
Java class, the Print method works, and spawns off another process that
opens LMWPrint.exe.  But when I call the Print method from a JSP as follows:



<%
int yes = Test.Print();
if ( yes == (-1) ) {%>
Error occurred trying to execute LMWPrint
<%} else   %>
Automation of LMWPrint completed

I get the above error message.

Anyone have an ideas/suggestions?

Celeste

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Launching an exe from either a JSP or within Java

2001-08-23 Thread Haseltine, Celeste

Thank you so much J. Babu and Richard Lee  I knew there was a way to do
it in Java, I just could not find it in the JavaDocs or any of my reference
books.

Celeste

-Original Message-
From: J. Babu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 7:00 PM
To: [EMAIL PROTECTED]
Subject: Re: Launching an exe from either a JSP or within Java


Hi,
   do like the following:
Process P = Runtime.getRunTime().exec( "your Dos command / batch file call
");
// i prefer you write one batch file, an call using above command.
p.waitfor(); // to complete for the processing



Hope this helps

Babu



-Original Message-----
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 7:38 PM
To: [EMAIL PROTECTED]
Subject: Re: Launching an exe from either a JSP or within Java


This is a third party exe, and I just want to lauch it as an external
application.  Once the printing is stopped, the user would go back manually
to the java app that launched the external application So if I wanted to
emulate the following Dos command:

C:\LMWPrint.exe /E=(jane, doe) 

How would I do that in Java?  I find it hard to believe that I would need to
use JNI, or write a C++ wrapper just to launch an external exe.  Is there
any other way to emulate the above DOS command line in Java?

Celeste

-Original Message-
From: Jacek Antoniuk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 6:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Launching an exe from either a JSP or within Java


You can use JNI interface - but you would have to recompile your external
application or write in C/C++ an app that calls your exe.
- Original Message -----
From: "Haseltine, Celeste" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 7:12 PM
Subject: Launching an exe from either a JSP or within Java


> Does anyone know how you can launch another exe resident on the host
server
> from within a JSP or in a Java class bean?  I have found a third party
tool
> that can send data to industrial printers from a DOS command line,
inclusive
> of command line parameters.  But for the life of me I cannot remember how
to
> "emulate" launching an executable from the command line in either Java or
> JSP.
>
> Thanks in advance!!!
>
> Celeste
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
The information in this email and in any attachments thereto is confidential
and may be legally privileged. It is intended solely for the addressee.
Access to this email by anyone else is unauthorized. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PRO

Re: Launching an exe from either a JSP or within Java

2001-08-23 Thread Haseltine, Celeste

This is a third party exe, and I just want to lauch it as an external
application.  Once the printing is stopped, the user would go back manually
to the java app that launched the external application So if I wanted to
emulate the following Dos command:

C:\LMWPrint.exe /E=(jane, doe) 

How would I do that in Java?  I find it hard to believe that I would need to
use JNI, or write a C++ wrapper just to launch an external exe.  Is there
any other way to emulate the above DOS command line in Java?

Celeste

-Original Message-
From: Jacek Antoniuk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 6:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Launching an exe from either a JSP or within Java


You can use JNI interface - but you would have to recompile your external
application or write in C/C++ an app that calls your exe.
- Original Message -
From: "Haseltine, Celeste" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 7:12 PM
Subject: Launching an exe from either a JSP or within Java


> Does anyone know how you can launch another exe resident on the host
server
> from within a JSP or in a Java class bean?  I have found a third party
tool
> that can send data to industrial printers from a DOS command line,
inclusive
> of command line parameters.  But for the life of me I cannot remember how
to
> "emulate" launching an executable from the command line in either Java or
> JSP.
>
> Thanks in advance!!!
>
> Celeste
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Launching an exe from either a JSP or within Java

2001-08-23 Thread Haseltine, Celeste

Does anyone know how you can launch another exe resident on the host server
from within a JSP or in a Java class bean?  I have found a third party tool
that can send data to industrial printers from a DOS command line, inclusive
of command line parameters.  But for the life of me I cannot remember how to
"emulate" launching an executable from the command line in either Java or
JSP.

Thanks in advance!!!

Celeste

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Bulk Printing from JSP's???

2001-08-23 Thread Haseltine, Celeste

Has anyone out in the user community been faced with the task of trying to
get a JSP intranet product to also do industrial bulk printing of rebate
checks?

I have been asked if the product I am currently developing can also handle
bulk printing of rebate check information.  Basically, the data that is
inputted by the user's into the intranet site would eventually be used to
determine what type of rebate check a customer would receive.  My client
would like to use the same JSP intranet product we are developing for order
management and fulfillment, to do rebate check printing on the manufacturing
floor.  The requirements are to querying the database regarding the number
of rebate checks via a "selection list" of different denominations,
formatting that query data onto a check form (there are several different
rebate check forms), displaying the check form with data in the browser, and
then having the user send that data to the printer for printing.  Part of
the requirements also include handling printing errors, such as paper jams,
empty ink cartridge, etc...,  in the code "gracefully", and allowing the
operating to restart the print job at the point the error occurred.

All rebate checks would be printed on an industrial printer which can handle
20,000 - 30,000 checks per day.  This industrial printer does come with a
Windows NT driver, some memory for a printer buffer, and uses PCL5 and
extended PCL5 (PCL5e).

1.  Has anyone out there ever done this using Java/JSP?

2.  If so, were you able to display bar code data (we have a font package
for printing bar codes), and fonts that have been rotated 90 degrees, in a
browser window? I've found some literature that says that rotated characters
and unusual character, such as the bar codes, cannot be displayed in either
Netscape or IE, but I don't know if this is true.  Does anyone know?

3.  Are there any Java/JSP third party tools out there that I could use that
could accomplish this task, including responding to error codes generated by
the printer.

4.  Could this be accomplished better by using a Java applet inside the
browser, instead of a JSP page?

Any advice, insight, or third party tool web sites would be greatly
appreciated.

Celeste

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Problems with servlets, tomcat and sessions

2001-08-22 Thread Haseltine, Celeste

In essence, your user's Session has timed out, which is why you get the null
pointer exception after some time has passed.  The "time out" time period
can be set within your JSP server, should you want to extend the default
time period.  For security reasons, I have set my JSP server to time out any
inactive user Session after 5 minutes.  Once 5 minutes has passed, my user
must log in again.

By the way, you should have a means of determining whether the user has left
any other objects containing data open when the Session is about to time
out.  If so, you may want to add code to store the information contained in
the other objects that have NOT been updated to the db, so that the user can
recover his unsaved data the next time he/she logs in.  

Celeste

-Original Message-
From: Clemente Dani [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 11:30 AM
To: [EMAIL PROTECTED]
Subject: Problems with servlets, tomcat and sessions


Hi,


SORRY I YOU GET THIS MORE THAN ONCE, BUT I HAD SOME PROBLEMS.

Let's see if I can tell you my problem,

I have a Servlet that controls the wep application, every request go to 
this servlet first.

In this servlet I have an object that I put into a session instance so 
it can control things like the current user id, and others.

Well, I control in the doGet method that if the session is new, so 
there is "nothing" inside, I create a new instace of the mentioned 
object, othewise if the object exists, I get it from the session, so 
never I should get a null value.


All works fine, but when some time pass without any action from the 
user, when he do a new request, a null pointer exception is thrown by 
the servlet when it tries to use the instance created. More than that, 
it seems like if the init() menthod of the servlet got called. Is it 
possible?

I'm using tomcat 3.2

Any advice?

Thanks.

Bye, Dani




__
¡Se acercan tiempos salvajes  a Navegalia :  el planeta de los simios 
ya está aquí!
La 20th Century Fox, Qtal de Airtel y Navegalia,  te tienen preparadas 
una serie de sorpresas en este mundo inhóspito.  Hay miles de regalos  
esperándote. Pásate por 
http://www.navegalia.com/portal/promos/planetasimios/index.htm y 
consíguelos.

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Free Tags

2001-08-22 Thread Haseltine, Celeste

Check out the Jakarta project tag library.  The web site is:
http://jakarta.apache.org/

Celeste

-Original Message-
From: Hans Liebenberg [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 10:59 AM
To: [EMAIL PROTECTED]
Subject: Free Tags


Hi,

Where is a good source for getting free custom tags. I am looking for a
calendar Tag, I am too lazy to write it right now, its late and I wanna go
home :)

Thanks
Hans

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: sql server insert (ADO... or equiv)

2001-08-22 Thread Haseltine, Celeste

It's a little hard to explain.  The different type classifications for JDBC
drivers basically tells you how the driver handles the mapping of the Java
method calls in the JDBC classes to the database's native API.  A more
detailed explanation of the different types of drivers can be found on Sun's
web site at http://java.sun.com/products/jdbc/driverdesc.html.

Celeste

-Original Message-
From: Gilson Nascimento D Elrei [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 10:00 AM
To: [EMAIL PROTECTED]
Subject: RES: sql server insert (ADO... or equiv)


A newbie question...
What's do you means with JDBC (type I, II, IV, etc..)?
I think that must to exist some difference between it.
regards,


> - Mensagem original -
> De:   Haseltine, Celeste [SMTP:[EMAIL PROTECTED]]
> Enviada em:   terça-feira, 21 de agosto de 2001 13:04
> Para: [EMAIL PROTECTED]
> Assunto:  Re: sql server insert (ADO... or equiv)
> 
> Nasser, 
>  
> At one time, there was some talk of a JDO library on the Sun site, but I'm
> not sure where that discussion has lead to.  I too am currently developing
> a JSP application using SQLServer 7.0 (and boy do I wish I could use
> Oracle!!!).  I purchased a third party JDBC driver (Type IV), but I too
> have had problems with SQLServer, particularly updating or inserting large
> amounts of data.  To my knowledge there is no ADO equivalent in Java/JSP,
> although back in March of this year when I was doing research for this
> project, I did find some third party tools that gave similar functionality
> to ADO.  But these were Type II JDBC drivers, and I needed at least a Type
> III or a Type IV, so I never investigated those tools further.  If you do
> a search on google.com for JDBC drivers for SQL Server, you should hit on
> the Type II drivers that emulate ADO that I found back in March.
>  
> Do consider using some of the tag libraries out on the net to help you
> with your database functionality.  I am using both JRUN's tag library (for
> version 3.01), and the Jakarta DBTags.  If you are using a server other
> than JRUN, take a serious look at the Jarkarta project, and the list of
> tag libraries they have.  They can be a big help.
>  
> Hope this helps!!!
>  
> Celeste
>  
>  
> 
>   -Original Message-
>   From: Nasser Dassi [mailto:[EMAIL PROTECTED]]
>   Sent: Tuesday, August 21, 2001 10:23 AM
>   To: [EMAIL PROTECTED]
>   Subject: Re: sql server insert (ADO... or equiv)
>   
>   
>   Hi Greg,
>
>   As Ashish brought up, used PreparedStatement.  The overall idea is
> to use SQL Server's stored procedures, which accept values from the
> calling tier (front-end, or middle-tier).  In ASP it's quite simple, using
> ADO's capabilities.  Is there a JSP or Servlet equivalent, is the question
> to ask.  Answering this would solve any and ALL data transfer issues
> between jsp/servlets and any Microsoft Servers (either SQL Svr, Access
> 2000/XP, or .NET's data handling... in general).
>
>   Sorry to not be much more of help, as I am learning JSP and Servlets
> myself.  There's GOT to be an ADO equiv, though.
>
> Nasser
> "Unemployed by trade"
> 
>   - Original Message - 
>   From: Gregory Price <mailto:[EMAIL PROTECTED]> 
>   To: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>   Sent: Monday, August 20, 2001 11:35 AM
>   Subject: sql server insert
> 
>   Hello, I am running Jrun and have run into a problem
> submitting a long string.
>   The long string a user submits will likely be in French,
>   which means a lot of single and double quotes.  I am
>   now able to submit this field under normal circumstance, but
> my code is
>   choking on these characters...  I bet you guys can nail this
> one pretty
>   quick...  I must need a function when I set that large
> string as a
>   variable... Your help is very much appreciated.  code is
> below:
>   
>   <%@ taglib uri="jruntags" prefix="jrun" %>
>   
>   <% String news_ID= request.getParameter("news_ID"); %>
>   <% String newsletter_ID=
> request.getParameter("newsletter_ID"); %>
>   <% String heading= request.getParameter("heading"); %>
>   <% String entry= request.getParameter("entry"); %>
>   <% String enteredby=request.getP

Re: Swing components in JSP

2001-08-22 Thread Haseltine, Celeste

If you were to create an applet using the swing components, you could then
run the applet in your JSP's.

I've never tried to use Swing or AWT directly in an JSP, but I believe you
are right.  I do not think you can use the Swing or AWT library directly
within a JSP.

Celeste

-Original Message-
From: Glenn Wearen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 8:41 AM
To: [EMAIL PROTECTED]
Subject: Re: Swing components in JSP


 I don't think you can use Swing components in JSP, can somebody confirm
this?
> -Original Message-
> From: St. Louis, Thomas (CRD) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 1:31 PM
> To: [EMAIL PROTECTED]
> Subject: Swing components in JSP
>
>
> I'm using the swing JTree component in one of my jsps and I
> get the following Exception trying to
> execute the servlet in Weblogic on a Solaris box.  The
> solaris environment is looking for the DISPLAY
> environment variable and I'm not sure if this is a servlet
> issue or a Weblogic issue.  Has anyone
> encountered this and if so do you have any suggestions on the fix.
>
> Tue Aug 21 17:23:06 EDT 2001: 
> Servlet failed with Exception
> java.lang.InternalError: Can't connect to X11 window server
> using ':0.0' as the value of the DISPLAY
> variable.
> at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
> at 
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName0(Compiled Code)
> at java.lang.Class.forName(Compiled Code)
> at
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Graph
> icsEnvironment.java:63)
> at java.awt.Font.initializeFont(Font.java:262)
> at java.awt.Font.(Font.java:292)
> at
> javax.swing.plaf.metal.DefaultMetalTheme.(DefaultMetalTh
> eme.java:59)
> at
> javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(Met
> alLookAndFeel.java:709)
> at
> javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookA
> ndFeel.java:713)
> at javax.swing.UIManager.setLookAndFeel(UIManager.java:363)
> at javax.swing.UIManager.setLookAndFeel(UIManager.java:390)
> at
> javax.swing.UIManager.initializeDefaultLAF(UIManager.java:850)
> at javax.swing.UIManager.initialize(UIManager.java:926)
> at javax.swing.UIManager.maybeInitialize(UIManager.java:948)
> at javax.swing.UIManager.getUI(UIManager.java:559)
> at javax.swing.JTree.updateUI(JTree.java:493)
> at javax.swing.JTree.(JTree.java:459)
> at
> structurewalker.tree.StructureTree.(StructureTree.java:117)
> at
> structurewalker.tree.StructureTree.(StructureTree.java:108)
> at
> structurewalker.tree.StructureTree.(StructureTree.java:97)
> at
> jsp_servlet._eEngineer._BomWalker._jspService(_BomWalker.java:355)
> at weblogic.servlet.jsp.JspBase.service(Compiled Code)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
> at
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(Com
> piled Code)
> at
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(Com
> piled Code)
> at
> weblogic.servlet.internal.ServletContextManager.invokeServlet(
> Compiled Code)
> at
> weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
> at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
> at weblogic.kernel.ExecuteThread.run(Compiled Code)
>
> Thanks,
> Tom
> > g GE Corporate Research & Development
> > __
> >  Tom St.Louis
> >  GE Corporate Research & Development
> >  One Research Circle, K1-5C39C
> >  Schenectady, NY  12309
> >  Phone: (518) 387-4900  Dial Comm: 8*833-4900
> >  Email: [EMAIL PROTECTED]
> >
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To un

Re: FW: What is equivalent of EJB in ASP?

2001-08-21 Thread Haseltine, Celeste

How can you be programming JSP's/Servlets without any knowledge of object
oriented concepts and design?  Unless you learned those concepts first by
programming in pure Java, and bypassed learning C++.  If not, I'm not
surprised that you are having some difficulties.  It sounds like your
employer has tossed you into two competing technologies (JSP/Java, ASP/COM)
without the proper background or training to understand either.  And a
background in C will not help you in either of these two technologies.

The microsoft web site has some of the best info, along with journals such
as the VB Programmers Journal.  MS site can be found at
http://www.microsoft.com/com/tech/DCOM.asp.  I will forwarn you that not
having a background in object oriented concepts and design (such as C++ or
Java) will make it difficult if you learn COM or DCOM, and then move over to
JSP/Servlets/Java or C++.  The concepts in Com/DCOM, in my opinion, are not
transferable into other technologies (with the possible exception of CORBA).
In addition, Com/DCOM will be deprecated by MS when the .NET platform is
released in it's final form, which is suppose to happen by the end of the
year.  So I would not waste a lot of time learning a technology that will be
outdated by the end of this year.  I would really focus my time on learning
JSP/servlets, how to create Java class objects (beans), and OO concepts.

Celeste
-Original Message-
From: Rohit Kuttappan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 11:01 AM
To: [EMAIL PROTECTED]
Subject: Re: FW: What is equivalent of EJB in ASP?


Thanks for your insight, Celeste. I don't have much knowledge of C++, though
I know C. Could you please point me to some resources on COM/DCOM and
ActiveX.

Thanks

Rohit.
- Original Message -----
From: "Haseltine, Celeste" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, 21 August, 2001 12:46 AM
Subject: FW: What is equivalent of EJB in ASP?


> Rohit,
>
> Sorry, I hit the enter key, when going for the backspace, so disregard my
> previous email.
>
> Lets try this again.
>
> Couple of ways I "think" of JSP and ASP.
>
> 1.  JSP's are compiled, ASP's are interpreted.  Therefore, JSP's run
faster
> than ASP's, but ASP's are somewhat easier to debug.
>
> 2.  EJB's and COM/DCOM share the same "concept" in that DCOM and EJB's are
> used for distributed environments/computing.  But that is pretty much
where
> the concept ends in my mind.  COM/DCOM is MS way of trying to implement OO
> concepts, and if you come from a C++ background like I do, COM was always
a
> little difficult for me to grasp.
>
> 3.  COM components with a visual interface (Active X controls) can be
> thought of as the equivalent of a JavaBean, if you stretch your mind a
> little.
>
> 4.  The MVC model doesn't really hold to ASP/COM in my opinion, yet if you
> review the recent literature on MS .NET platform, you can see a LOT of
> similarities to MVC and to Java in the architecture.
>
> 4.  ASP doesn't allow you to separate you presentation code (HTML) code
from
> your logic and db access as well as JSP does.  BUT, if you use a lot of
tag
> libraries in your JSP code, then you can think of some of the MS concepts,
> such as ADO, as just a form of a tag library (kinda sorta!!).
>
> 5.  If you have not worked with MS technologies at all, keep in mind that
MS
> does NOT implement true OOD and OO Concepts, except with VC++.  At least
not
> the way I learned them as a C++ programmer.  You may find yourself
"bending"
> your mind from the JSP and Java concepts and architecture that you are use
> to using for web development to accommodate ASP/COM.
>
> Hope this helps, and sorry for the inadvertent previous email.
>
> Celeste
>
>
> -Original Message-
> From: Rohit Kuttappan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 20, 2001 12:46 PM
> To: [EMAIL PROTECTED]
> Subject: What is equivalent of EJB in ASP?
>
>
> I am new to server side programming. Although I have some exposure to jsp
> and servlets, I have no experience with asp. But my job requirement is
that
> I learn asp as well.
>
> Though, I believe that jsp and asp are quite similar, I have not been able
> to figure out how the MVC model applies to asp and what is the equivalent
of
> EJB in asp. Please help me.
>
> regards,
>
> Rohit.
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.264 / Virus Database: 136 - Release Date: 02/07/2001
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
>

Re: sql server insert (ADO... or equiv)

2001-08-21 Thread Haseltine, Celeste



Nasser, 
 
At one
time, there was some talk of a JDO library on the Sun site, but I'm not sure
where that discussion has lead to.  I too am currently developing a JSP
application using SQLServer 7.0 (and boy do I wish I could use Oracle!!!). 
I purchased a third party JDBC driver (Type IV), but I too have had problems
with SQLServer, particularly updating or inserting large amounts of data. 
To my knowledge there is no ADO equivalent in Java/JSP, although back in March
of this year when I was doing research for this project, I did find some third
party tools that gave similar functionality to ADO.  But these were Type II
JDBC drivers, and I needed at least a Type III or a Type IV, so I never
investigated those tools further.  If you do a search on google.com for
JDBC drivers for SQL Server, you should hit on the Type II drivers that emulate
ADO that I found back in March.
 
Do
consider using some of the tag libraries out on the net to help you with your
database functionality.  I am using both JRUN's tag library (for version
3.01), and the Jakarta DBTags.  If you are using a server other than JRUN,
take a serious look at the Jarkarta project, and the list of tag libraries they
have.  They can be a big help.
 
Hope
this helps!!!
 
Celeste
 
 

  -Original Message-From: Nasser Dassi
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, August 21, 2001 10:23
  AMTo: [EMAIL PROTECTED]Subject: Re: sql server
  insert (ADO... or equiv)
  Hi Greg,
   
  As Ashish brought up, used
  PreparedStatement.  The overall idea is to use SQL Server's stored
  procedures, which accept values from the calling tier (front-end, or
  middle-tier).  In ASP it's quite simple, using ADO's capabilities. 
  Is there a JSP or Servlet equivalent, is the question to ask.  Answering
  this would solve any and ALL data transfer issues between jsp/servlets and any
  Microsoft Servers (either SQL Svr, Access 2000/XP, or .NET's data handling...
  in general).
   
  Sorry to not be much more of help, as I am
  learning JSP and Servlets myself.  There's GOT to be an ADO equiv,
  though.
   
    Nasser
    "Unemployed by trade"
  
- Original Message - 
From:
Gregory
Price 
To: [EMAIL PROTECTED] 
Sent: Monday, August 20, 2001 11:35
AM
Subject: sql server insert


Hello, I am running Jrun and have run into a
problem submitting a long string.
The long string a user submits will likely be
in French,which means a lot of single and double quotes.  I
amnow able to submit this field under normal circumstance, but my code
ischoking on these characters...  I bet you guys can nail this one
prettyquick...  I must need a function when I set that large string
as avariable... Your help is very much appreciated.  code is
below:<%@ taglib uri="jruntags" prefix="jrun" %><%
String news_ID= request.getParameter("news_ID"); %><% String
newsletter_ID= request.getParameter("newsletter_ID"); %><% String
heading= request.getParameter("heading"); %><% String entry=
request.getParameter("entry"); %><% String
enteredby=request.getParameter("enteredby"); %><% String
newslettermonth= request.getParameter("newslettermonth"); %><%
String newsletteryear=
request.getParameter("newsletteryear"); String sqlQuery = "INSERT
INTO news (newsletter_ID,  heading, entry,enteredby)  
VALUES (" +newsletter_ID + ", '" +heading+ "',
'" +entry+"', '" +enteredby+"')";
%><%--INSERT NEWSITEM--%>  
   
<%=sqlQuery%>   
 
 
Thanks
Greg
Price


Re: What is equivalent of EJB in ASP?

2001-08-20 Thread Haseltine, Celeste

Rohit,

Couple of ways I "think" of JSP and ASP.

1.  JSP's are compiled, ASP's are interpreted.  Therefore, JSP's run faster
than ASP's, but ASP's are somewhat easier to debug.

2.  Servlets and COM/DCOM share the same "concept" in that DCOM

-Original Message-
From: Rohit Kuttappan [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 12:46 PM
To: [EMAIL PROTECTED]
Subject: What is equivalent of EJB in ASP?


I am new to server side programming. Although I have some exposure to jsp
and servlets, I have no experience with asp. But my job requirement is that
I learn asp as well.

Though, I believe that jsp and asp are quite similar, I have not been able
to figure out how the MVC model applies to asp and what is the equivalent of
EJB in asp. Please help me.

regards,

Rohit.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.264 / Virus Database: 136 - Release Date: 02/07/2001

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Using DATE and CALENDAR objects...

2001-08-16 Thread Haseltine, Celeste

David,

Dates are very difficult to handle in Java, compared to other
languages/development environments, in my opinion.  Having said that, have
you looked into some of the free shareware tag libraries out on the net?
The Jakarta project has some, Orion has some also.  I don't know if the tag
libraries will help you, but if you can find one that takes a date value
typed into a "html input box", parses it for you to extract the day, month,
year, your halfway there.  The timestamp I would think you would get from
the server (ie the time the user updated the db), and just insert that into
your query for updating the db.  Also, if you are just wanting to get
"todays" date off the server, and parse that into a day, time, year value to
insert into your database or to display, let me know.  I have some server
side code that does just that.

Don't know if this helps, but check out the date/time tag library with the
Jakarta project and see if that can help you out.

Celeste





-Original Message-
From: Rice, David [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 5:34 PM
To: [EMAIL PROTECTED]
Subject: Re: Using DATE and CALENDAR objects...


Chris,

Unfortunately, I do have to parse dates to extract needed information. The
app I'm building is a log analysis tool that expects not only the complete
timestamp, but also needs the day_of_week, day_of_month, et cetera, broken
out. We take that information, along with other environment variables to
compile access/usage reports for the higher ups. And I have to use
PreparedStatements due to the fact that I'm doing joined-table inserts. I
just haven't figured out how to incorporate the DATE/CALENDAR stuff into
them yet... ;)

I've been through the docs at:
http://java.sun.com/products/jdk/1.2/docs/api/ but they're more confusing
than anything and provide no examples that I can decipher at this point. I
also went to the tutorial suggested by Geert as well but that is much more
convoluted than what I'll need, I'm thinking.

Nonetheless, I appreciate all the feedback and help!

David
--

-Original Message-
From: Chris Pratt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 5:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Using DATE and CALENDAR objects...


The best way is to use PreparedStatement's and the
setDate/setTime/setTimestamp methods.  Then you don't have to parse the
dates at all.
(*Chris*)

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Pre compiled jsp's

2001-08-16 Thread Haseltine, Celeste

SriHari,

I'm not sure why you would need a tool to reverse engineer a servlet back to
a JSP.  Remember that a JSP is just a RAD (Rapid Application Development)
way of creating a servlet, and your JSP server will compile that JSP into a
servlet.  Unless you are doing something unique, you should be able to open
the compiled servlet using textpad or any other editor, and view the code.
Although I do NOT advocate changing a compiled servlet using textpad or any
other editor and resaving it without prior testing, should you no longer
have access to the JSP that the servlet was created from, you can modify the
raw servlet code to create a modified servlet.  Resave the modified servlet,
test it, and once you get the bugs worked out, your back in business.

By the way, if you are programming JSP's, you should also understand and
know how to program servlets, for the same reason I mentioned above.  JSP's
are just a RAD way of creating servlets, so they are one in the same.  The
JSP's are just a "shorthand" notation for creating the servlets.

Celeste

-Original Message-
From: SriHari [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 4:24 AM
To: [EMAIL PROTECTED]
Subject: Pre compiled jsp's


Hi

Hari here

Does all servers support Precompiled JSP's
is there any tool that convert Precompiled jsps / _java files to jsp's (jsp
reverse engineering)
I am working on both iPlane and Tomcat server for my  application
how safe are these pre compiled jsp's ?



Thanks in adv
Sri Hari

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: printer friendly pages

2001-08-15 Thread Haseltine, Celeste
Title: printer friendly pages



James,

 
Perhaps I do not understand your question, but why not consider writing
your data contained in your HTML file into an XML file, and then format that XML
data file for printing using an XSLT sheet?  
 
Celeste

  -Original Message-From: McKain, James (DPYUS)
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 15, 2001
  12:47 PMTo: [EMAIL PROTECTED]Subject: printer
  friendly pages
  Hello, I am a
  begginner reaching deep on this oneI am trying to create a servlet/jsp
  that takes an incoming html or php file and filters it out for printing. 
  I want the rich-text-only html to be turned into a simple 10 point font
  printable document. Is there an easy way to do this?  I just want to pass
  an object (the html file) through a method(?) that will shrink the text, and
  condense data for minimal printer paper usage while preserving the formal
  (tabs and bullets) of the original.
  This sounds easy
  I guess, but I have no clue what I should be typing.  help!



Re: I need all you help

2001-08-15 Thread Haseltine, Celeste

In HTML, drop down boxes are usually referred to as select boxes, so perhaps
the terminology has contributed to you not finding any information on how to
create and use a select box on the web.  Depending on what JSP server you
are using, you can sometimes find a 3rd party tag library that includes a
select box.  In my case, I use JRUN server, and have used their tag library,
which includes a "beefed up" version of an HTML select box.  If you don't
have a third party tag library to use with your JSP server, then you would
want to research (via the net) how to create and use an HTML select box, as
there are a lot of examples out there.

Celeste

-Original Message-
From: lancelot [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 9:17 PM
To: [EMAIL PROTECTED]
Subject: I need all you help


Excuse me,
Who know how to implement drop-down-list in JSP? I mean that when the
JSP was invoked the JSP code fetch data from database via JDBC and fill the
information(such as department name and department number) in the
drop-down-list in JSP and after the user select one item, the
value(department number) was sent to servlet or javabean.
And it's better if another function can be implemented, that is if you
input the department number(0006 for example) then the department name can
be fetch out automaticly(FA Dept. for expamle).
I need all your help.
Thanks a lot.

Lancelot

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



  1   2   >