Re: References

1999-11-24 Thread Christopher Cobb
"Craig R. McClanahan" wrote: Christopher Cobb wrote: How do you specify an entity that you want to be global across applications? The standard Java approach of using a class with public static methods is the usual technique for accomplishing this. This is ofte

Re: Difference between JB, EJB Servlet !!

1999-11-24 Thread Christopher Cobb
Suresh Kumar Nittala wrote: Hi, Kindly help me out. 1. How would you differntiate? A) Java Bean B) Enterprise Java Bean C) Servelets 2. Can we call Servelts directly from JSP? Regards, Suresh Kumar EJB's are more like Servlets than JavaBeans. JavaBeans are simply Java classes

Re: References

1999-11-23 Thread Christopher Cobb
"Craig R. McClanahan" wrote: Daniel Tillin wrote: Here's one for you to chew the fat on!! If you define a bean with application scope, will that reference be available to all other JSPs you serve? The reference will be available to all JSP pages and servlets within the same web

Lack of error reporting in Resin

1999-11-12 Thread Christopher Cobb
I am playing around with Resin, but when I have a syntax error in my JSP, I don't get any page-based feedback. I just get a blank page. I think I probably have something misconfigured. How do I configure Resin so that I get syntax error messages in the browser? cc

Cold Fusion

1999-11-10 Thread Christopher Cobb
My development group uses JRun. Another group we work with is acquiring ColdFusion, also from Allaire. Does anyone have any comments pro or con with repect to using JRun and ColdFusion on the same web site? I have already surmised that you cannot embed JSP on a ColdFusion web page and vice

Re: Secure passwords

1999-10-22 Thread Christopher Cobb
Karl Roberts wrote: Hi stan, Well yes it does, but when I tried to download it last week, I was refused because of American Export law because it contains encription. I am in the UK. Is there a (leagal) way to download the J2EE outside of USA? Karl The new beta is supposed to be

Re: Oracle 8i on Linux

1999-10-13 Thread Christopher Cobb
"Tran, Fon Francis (CAP, GECF, Japan)" wrote: Hi guys, First I apologize if I am posting something that is not Servlet/JSP related but I am not sure where else I can get helps from. We are trying to set up our environment with Oracle 8i on Linux RedHat 6.0 but keep on having the

SSL vs Non-SSL

1999-10-03 Thread Christopher Cobb
Has anyone come up with a good solution to the SSL vs the Non-SSL problem. Back when we were using pure servlets, we could access a servlet in either one of two ways: * http://host/servlet/MyServlet * https://host/servlet/MyServlet In other words, the same servlet could be used either

Re: JSP on Linux

1999-10-01 Thread Christopher Cobb
You might also try the IBM JDK 118, from alphaworks.ibm.com. It's very fast. Borland also now has a JIT for the blackdown JVM. cc "Kevin A. Burton" wrote: Can you be more specific? What is "SUN JSP"? Do you mean the jswdk? If so just get the blackdown JDK for Linux from

Re: What is wrong with JSP? Arrrrgh.

1999-10-01 Thread Christopher Cobb
Steve Gower wrote: Please read my sad story and convince me that JSP is a real development environment and not merely a worthless hack that looks good in press releases and white papers. Here's a sample from my JSP page (Note, it uses a database bean to display queried info):

Re: jswdk1.0 blues

1999-10-01 Thread Christopher Cobb
I've never used JSWDK, but with other web servers, a permissions problem can develop. The web server usually reads the directories as user 'nobody', however, they (possibly) get written as your user id. Make sure the whole work directory tree has permission 777 (at least to get started). cc

Re: Can JSP support multimedia product presentation?

1999-09-30 Thread Christopher Cobb
June Low wrote: hi,I'm not sure that whether JSP support multimedia product presentation? Like playing sound, avi files etc.If yes, how to do it? It can do anything you can do in HTML. cc === To unsubscribe:

Re: Off topic: free UML modeling tool for Java

1999-09-29 Thread Christopher Cobb
Zhubin Salehi wrote: Do you know a free UML modeling tool for Java? http://www.oi.com/tj-release.htm === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at:

Re: JSP on Apache

1999-09-11 Thread Christopher Cobb
This is true, and I eager await the delivery of Jakarta. But that's not available yet. Is there an open source solution that supports the full Servlet 2.1 spec and the JSP 1.0 spec? cc Carsten Heyl wrote: But the lesson I learned with jrun: If you run into troubles

Re: JSP on Apache

1999-09-10 Thread Christopher Cobb
"Joseph B. Ottinger" wrote: I'm trying to get JSP running on Apache 1.3.9. ... We use Apache with JRun. Works like a charm. cc === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP

JWS 2.0: When

1999-08-29 Thread Christopher Cobb
My Java Web Server 2.0 beta 2 expires on August 30th. When is the new version supposed to become available? cc === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at:

JWS 2.0: When?

1999-08-25 Thread Christopher Cobb
I am using JWS 2.0 beta 2. It expires at the end of August. When is JWS 2.0 final version shipping? I'd hate to come to a screetching halt on August 31st. cc === To unsubscribe: mailto [EMAIL PROTECTED] with body:

Re: Database locking in multiple page Web application

1999-08-18 Thread Christopher Cobb
Also, when doing the update, set only the columns which the user has actually changed. For this, you will have to save a copy of the unmodified values. When constructing your update statement, include only those columns which have actually changed. That way, you won't gratuitously change

Re: Database locking in multiple page Web application

1999-08-18 Thread Christopher Cobb
It is more efficient to have one database connection that you reuse between pages. I use a "stand-alone" database access servlet. This servlet has two purposes: 1) When the servlet starts up, make a database connection. 2) Each time the servlet receives a GET or POST, it attaches the

Re: Database locking in multiple page Web application

1999-08-16 Thread Christopher Cobb
Chee Keong wrote: Say I have a HTML front-end based Web application that allows the user to select a database record on the first page and update the record. However, as there are many columns, the users needs to fill in 3 HTML screens (URLs) before the final page contains the submit

Re: JWS 2.0 and JSP Parsing Error

1999-08-15 Thread Christopher Cobb
Mark Cote wrote: I have a Connection Pool being shared with all my JSP pages through the ...useBean... scope="application".. The ConnectionPool works fine, it has ran for weeks inside a servlet, without a hitch. However, every now and then (a dozen or so times a day), a request for a db

Re: JSP books?

1999-07-11 Thread Christopher Cobb
Jason Hunter wrote: Ron Lussier wrote: Can anyone recommend a really good book on developing JSPs? (I have excellent Java skills, but I want a quick-start for JSPs and JSP design theory.) Based on my experience writing the servlets book, I wouldn't expect a "really good book on

Re: Checking JSP file for modification

1999-06-26 Thread Christopher Cobb
Bill O'Keefe wrote: Is it possible to suppress checking if a JSP file has been modified on every request? It seems to me that on a production site, where JSPs are not changing, that this adds some unneccessary overhead to each request. -- Bill If you're using JRun, delete the .jsp

Re: forwarding to other JSP pages

1999-06-23 Thread Christopher Cobb
Isa Hashim wrote: Hi Paul, jsp:request forward .../ is not implemented in JWS 2.0 beta2 It will be implemented for the final release version of JWS 2.0. The correct syntax for forwarding (according to the JSP spec) is now: jsp:forward .../ I just tried your simple test case

Re: Linux version?

1999-06-11 Thread Christopher Cobb
Here's the patch file for getting JWS 2.0 beta 2 running on Linux. Here's how to do it: 1) Put the patch file in the JWS2.0 directory. 2) patch -p1 jws20b2-linux.patch 3) cd JWS2.0/native 4) make -f Makfile.sol install (yes, the makefile still has a .sol but its now for linux) 5) cd

Re: all users share the same bean... why???

1999-05-31 Thread Christopher Cobb
Tommy Berglund wrote: Hello everyone, I'm using jsp1.0 and I'm having some trouble. It seems that everyone that goes to my jsp-pages share the same bean, which I do not want. I want everyone to have their own bean, sort of a user-bean which stores information about a specific user. This is

Re: JWS Demise...

1999-05-27 Thread Christopher Cobb
Ray Cromwell wrote: ... if Sun is going to abandon JWS, perhaps we should press them to release the source? I had exactly the same idea. Sun, please give the source to JWS to the open source community. cc begin:vcard n:Cobb;Christopher tel;cell:703-909-7550 tel;fax:703-648-7475

Re: JRun destroy servlets while it should still be running

1999-05-21 Thread Christopher Cobb
Chris Hsu wrote: Hi; I am using JRun Pro to develop a JSP/servlet project. I found that the servlet engine randomly destroys my servlet instance. Just before I read your email, I was looking into exactly the same behavior. I am using JRun 2.3 build 141 with IIS3 on NT4/SP3. I am using NT

Re: JRun destroy servlets while it should still be running

1999-05-21 Thread Christopher Cobb
- From: Christopher Cobb [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, May 21, 1999 12:30 PM Subject: Re: JRun destroy servlets while it should still be running Chris Hsu wrote: Hi; I am using JRun Pro to develop a JSP/servlet project. I found

Re: Which JSP to use?

1999-05-19 Thread Christopher Cobb
version? At 4:52 PM -0400 5/18/99, Christopher Cobb wrote: JWS 2.0 for Solaris with JSP should be out in June. cc Joe Sternlicht wrote: Which JSP configuration is worthy of heavy volume production on Solaris? We currently use JWS with compiled pages (jhtml) and would like to move to JSP

Re: Which JSP to use?

1999-05-18 Thread Christopher Cobb
JWS 2.0 for Solaris with JSP should be out in June. cc Joe Sternlicht wrote: Which JSP configuration is worthy of heavy volume production on Solaris? We currently use JWS with compiled pages (jhtml) and would like to move to JSP right now. Which servers/servlets work best for JSP?

Re: Application scope

1999-05-13 Thread Christopher Cobb
Gabriel Wong wrote: "Craig R. McClanahan" wrote: (I'm doing some major snipping to address several of Drew's questions) Drew Cox wrote: [Drew Cox] I'm definitely operating out of my depth here, but let me see if I understand what your saying. If I map

Re: Managing HttpSession Timeout

1999-05-13 Thread Christopher Cobb
"Kirkdorffer, Daniel" wrote: Here's another wish list item: I'd like to be able to manage the invalidation timeout at the time of creation of my session objects. I.e. do something like this: HttpSession browserSession = req.getSession(true, 90); to create a session object that will

Re: calling bean-methods...

1999-05-13 Thread Christopher Cobb
Nic Wise wrote: On Wed, 12 May 1999, Christopher Cobb wrote: You *can* do this in JavaScript. I'm not an expert at this, but you can access java classes from JavaScript. Try this in your java script: System.err.println("This is a test."); Then look in your Java Console.

Re: Managing HttpSession Timeout

1999-05-13 Thread Christopher Cobb
John Langley wrote: Anyone know if there's a way to do this same thing under the JspRef092 implementation? That is, HttpSession.setMaxInactiveInterval(300); This is a Servlet 2.1 thing. If your JSP implementation supports Servlet 2.1 API (e.g., JRun), you have it! cc begin:vcard

Re: JavaOne JSP Attendees

1999-05-10 Thread Christopher Cobb
Gabriel Wong wrote: "Mark A. Kolb" wrote: FYI, the Birds-of-a-Feather list for JavaOne is out now, at http://industry.java.sun.com/javaone/99/bofs/. There are currently two focusing on JSPs. The speakers for the "JavaServer Pages Software BOF" are from Netscape Does Netscape have a

Re: The importance of processRequest()...

1999-05-07 Thread Christopher Cobb
"Mark A. Kolb" wrote: As a user of processRequest(), I can see a couple of issues. I also find that I have to do a lot of state management in my processRequest function (since I tend to use bean is various contexts). I think it may actually be easier to have separate request-processing

Re: Pagelets Proposal

1999-05-07 Thread Christopher Cobb
Drew Cox wrote: ... I firmly believe your "model" classes should not be tied to a particular presentation format (JSP, GUI, ??). But remember, this is just a class, not a bean. This "model" class can be composited into, or inherited from, in a JSP-aware bean that handles creating a

Re: JSP SQL Stores Procedures

1999-05-07 Thread Christopher Cobb
Brian Burridge wrote: I just wanted to get some of your opinions on this. We are having an internal discussion about whether or not to use stored procedures for our SQL, or to put the SQL in the bean or JSP page. If you live and breath performance at any cost, use stored procedures. If you

Re: Homsite JSP scheme

1999-05-07 Thread Christopher Cobb
Jen Hsiang Huang wrote: Hello Homesite 4.0.1 has out, and include the JSP parser!! I have Homesite 4.0.1 and every time I ask it to open a .jsp file, it says it isn't a recognized text document. But when I open it anyway, everything is fine, and uses the JSP highlighting. How do I tell

Re: Serializing requests

1999-05-05 Thread Christopher Cobb
Tuyen Tran wrote: The JSP 1.0 spec is very explicit in stating that the JSP user has to do explicit synchronization when manipulating session objects. This is because two threads holding the same user session id maybe executing on the page at the same time. (This could happen if the user

Re: JSP 0.92 USEBEAN - Nested vs. Indexed Properties?

1999-05-04 Thread Christopher Cobb
Bruce Bantos wrote: I am having trouble understanding what a NESTED, as opposed to an INDEXED property is in Java Beans. If a property is indexed, it can still have several different types. For example, and indexed collection of: * ints * chars * Integers * Characters *

Re: An alternative to sendRedirect() orRequestDispatcher.forward ()

1999-05-03 Thread Christopher Cobb
% { // open brace needed to shadow the existing out stream StringWriter out = new SringWriter(); % After looking at the API for StringWriter, I realized that you'll need a little more than this to get println() and friends: % { // open brace needed to shadow the existing out stream

jsp:plugin

1999-04-30 Thread Christopher Cobb
I had to laugh when I saw the jsp:plugin tag. I can't wait for the jsp:kitchen.sink tag :). cc P.S. Too bad the plugin doesn't support SSL. Otherwise we would be using it for our EC application. begin:vcard n:Cobb;Christopher tel;cell:703-909-7550 tel;fax:703-648-7475

Re: Servlet Runner Functionality?

1999-04-30 Thread Christopher Cobb
Sarah Dwyer wrote: Hi all, I have been reading this list so far and I've been really interested by everything I've read so far. I was wondering if I could use servlet runner to run jsp pages? I want to write soemthing with JSP but we don't currently use jsp at work and I want to start using

Re: JSP 1.0 implementation question: isthreadsafe

1999-04-30 Thread Christopher Cobb
Scott Ferguson wrote: Congrats to the JSP team! Ditto. Wow! Industrial strength JSP! For 'isthreadsafe=false', MUST an implementation create only a single instances of the jsp page? Or MAY it create multiple instances (like the servlet single threaded model)? The spec seems to say the

Re: ELSE tag

1999-04-28 Thread Christopher Cobb
Rod McChesney wrote: To retain some vestige of HTML or XML syntax, I believe this would have to look like IF ELSE /ELSE /IF and so on. Otherwise the tags don't nest meaningfully. This kind of thing is easy to hack into a parser but SGML/HTML/XML tools won't necessarily understand

Re: Include tag

1999-04-28 Thread Christopher Cobb
Kenneth Borinsky wrote: Hello, we are trying to figure out how to deal with JSP implementation of !--#include ... --. We are reviewing JRUN, Sun Servlet Runner, and several other engines. As far as we understand, JRun includes the generated contents of include file if it was another .jsp

Re: question on Application

1999-04-28 Thread Christopher Cobb
Fabrice Sarciaux wrote: Vector threadList=(Vector)Application.getAttribute("ThreadList"); for(int x=0;xthreadList;x++) { MyThread t=(MyThread)threadList.elementAt(x); } i get a ClassCastException when trying to cast the object of the vector into a MyThread object My guess

Re: Subclassing JSP servlet?

1999-04-27 Thread Christopher Cobb
Craig Berry wrote: Hi, all, I'm attempting to implement a restricted-access scheme using JRun. The idea is for the entire subtree under a top-level web dir -- call it "/gated/" -- to require login to access. If the user were not logged in (as indicated in a session variable), it would

Re: some trivial questions

1999-04-23 Thread Christopher Cobb
Michel Verwijmeren wrote: Part 1.1Type: Plain Text (text/plain) Encoding: quoted-printable This is where 'Model 2' comes into play. In your servlet you instantiate a bean. Then populate the bean with your desired data. Give the bean a name. This name has to be a

Re: Two questions about jsp0.92 spec and its implementations

1999-04-23 Thread Christopher Cobb
Hong Zhang wrote: . Also, I am currently using JRun. I found that JRun does not implement 0.92 correctly that the implicit variable "out" is of type ServletOutputStream that does not implement java.io.PrintWriter, as specified in the 0.92 spec. Do you know which servlet/jsp runner available

Re: HOWTO make JRun use Sun's JSP reference implementation

1999-04-16 Thread Christopher Cobb
D J wrote: I have seen a lot of posts in this mailing list about apparent inconsistencies between the JRun 2.3's JSP v0.92 implementation and the 0.92 spec. Usually someone replies that the problem goes away if they use Sun's reference implementation of JSP 0.92. How do you do this? You

Re: Login revisited: forward() vs redirect()

1999-04-12 Thread Christopher Cobb
Actually, I tried opening the .html file and just sending the bytes back to the browser. This didn't work either because the 'environment' (current document directory, etc.) was not correct. It happens that the .html file I'm trying to open uses frames. It could not find the frame pages

Re: Login revisited: forward() vs redirect()

1999-04-12 Thread Christopher Cobb
Hans Bergsten wrote: ...as long as a servlet can open a file directly using a File object and a path returned from SerlvetContext.getRealPath(), including a file servlet in an add-on engine doesn't compromise security more than it already is. Actually, I tried opening the .html

Memory concerns

1999-04-12 Thread Christopher Cobb
I am starting development on a web site that may have a dozen or so web pages. Since I want these to be login-protected (and I have pretty much concluded that I will have to use an SSI-based approach which requires that all pages be jsp's) I'm going to have a whole bunch of servlets hanging

Re: Class counter.Counter not found in import.

1999-04-12 Thread Christopher Cobb
I ran into the same problem. I think the problem is that the class files for package counter end up in a different directory than the jsp servlets for package counter. There seems to be class resolution problems when there are two class directories with the same name. If you rename the

Re: Installation Problems

1999-04-09 Thread Christopher Cobb
I think JRun 2.3 uses JDK 1.2 which comes bundled in. This may or may not be related to your problem. cc "Somasundaram, Krish" wrote: Hi All, I downloaded and installed JRun 2.3 for Windows (free version). But the installation did not complete. It created JRun folder and copied all the

Login revisited: forward() vs redirect()

1999-04-09 Thread Christopher Cobb
I am hitting a wall trying to implement my desired login architecture. What I want is this. A user wants to get to ProtectedPage.html, but I want to interpose a login-checking servlet, which forces the user to login if necessary, then sends them to the desired page after successfully login

Re: UptoDate Info on JSP Needed

1999-04-08 Thread Christopher Cobb
JWS 2.0 will support JSP. It's not out yet. I think they said 'mid-year'. cc Frank Starsinic wrote: what version of the sun's java webserver is needed to run JSP? thanks, frank begin:vcard n:Cobb;Christopher tel;cell:703-909-7550 tel;fax:703-648-7475 tel;work:703-648-6725

Re: Loops on multiple properties

1999-04-08 Thread Christopher Cobb
The 'simple' way to fix it is to have a vector of Things. Each Thing contains a number and a string. Then LOOP through the Things and pick off the number and the string in parallel. If you're clever, you might even be able to preserve your existing representation by having getNumber(int)

Re: Oracle Application Server

1999-04-03 Thread Christopher Cobb
There is an application related to mine that uses Oracle Application Server and we may have to integrate with them in the near future. I am also interested in knowing what support there is in Oracle Application Server for servlets in general and JSP in particular. cc Vincent Roderick wrote:

Re: application object

1999-04-01 Thread Christopher Cobb
In JSDK 2.1, a group of servlets can share the same context. Which is why they are putting application level stuff at the context level. cc "Kirkdorffer, Daniel" wrote: Gabriel, Are you suggesting that application level = servlet level? An application can be made up of multiple

Re: Suggest the best way to include formatting info in displayingpresentation data using display tag

1999-04-01 Thread Christopher Cobb
My guess is that you may have to subclass your Date object and add a toString() method which converts it into your desired format. cc Vijay Eranti wrote: The display tag of JSP seems doesnt have any means of including formatting information for data. for instance DISPLAY

Re: getRequestDispatcher()

1999-04-01 Thread Christopher Cobb
The main difference between sendRedirect() and forward() that I can tell is that forward() will preserve your lifespan=page -level information whereas sendRedirect() will loose it (since a new page is being shown). Forward preserves this since you use the same request object. If you are

2.1a v 2.1.1

1999-04-01 Thread Christopher Cobb
The latest Java Servlet API Specification that I have from the Sun web site says version 2.1a. However, JRun (and I think others) indicate 2.1.1. Who is right? cc begin:vcard n:Cobb;Christopher tel;cell:703-909-7550 tel;fax:703-648-7475 tel;work:703-648-6725 x-mozilla-html:TRUE

JRun and 0.92 demos

1999-03-30 Thread Christopher Cobb
To give myself warm and fuzzies, I would like to get the 0.92 demos running under JRun. I have the preliminaries done (compiling), and the first demo (Date/Time) works. But the second demo ("Application bean with counter") gives me some errors (see below). It looks like part of my problem

JRun and 0.92 demos

1999-03-30 Thread Christopher Cobb
To give myself warm and fuzzies, I would like to get the 0.92 demos running under JRun. I have the preliminaries done (compiling), and the first demo (Date/Time) works. But the second demo ("Application bean with counter") gives me some errors (see below). It looks like part of my problem

JSP and JWS (was: How to compile jsp program.)

1999-03-17 Thread Christopher Cobb
Allamraju Kumarswamy wrote: Hi guys I'm new to Java Server Pages. I have a couple of questions to you ... I was under impression that java web server comes with JspServlet. But i couldn't find the class file of JspServlet. I just spent a day trying to get JSP 0.92 working with JWS. I