Re: forwarding to other JSP pages

1999-06-23 Thread Christopher Cobb

Isa Hashim wrote:

> Hi Paul,
>
>  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:
> 
>
> I just tried your simple test case using my latest JWS build and it works.
>
> regards,
> -isa

We're putting JWS2.0b2 hard to work here on both Solaris and NT.  Any word as
to when the final will be released?

cc

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



what to do when a session expires?

1999-06-23 Thread Richard A. Sand




Hi- I'm in the Servlet->Bean->JSP model, 
and I have a login page that calls a login servlet, which in turn instantiates a 
session-bean used by the output page.  The user then continues to navigate 
a series of JSP pages, all of which use this same session-bean.
My question is, what is the proper way to 
handle the session expiring if the user lets it sit for awhile?  The 
currently displayed JSP page will post data back to a servlet which will 
reinstantiate the bean.  It then needs to recognize that the user needs to 
log in again and return back the login page.  But how do you sustain the 
post data, and how does the login JSP know which function the user was trying to 
do before the login page interrupted the flow of logic?
 
I'm sure I could hack out a solution, but this must be a 
common problem so I'm assuming there is a proper method for doing it.  Any 
help greatly appreciated!
 
Thanks!
 
-Richard


Re: "....\\" bug in JRun 2.3.2 (build 151)

1999-06-23 Thread Anonymous

Sylvain Roche <[EMAIL PROTECTED]> writes:

> Apparently, it comes from the double backslash at the end of the path string in the 
>File declaration. It seems that the \ char (\\) is not interpreted before the 
>finishing ".

This is exactly right.  Thanks for pointing this out, we will have a
patch available soon to fix this.  In the future please consider using
JRun's newsgroups/mailing lists as we follow these forums more
closely.  Thanks,

--
Tom Reilly
Live Software, Inc
http://www.livesoftware.com

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



Beginner ...

1999-06-23 Thread Anonymous

Can I use JSP on SCO UNIX JDK1.1.3 with Apache Web Server ???

Thanks in Advance
Vinay

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



Re: Bean Expiration

1999-06-23 Thread Anonymous

Nicolas Pujol wrote:

> Is there any possibility for one Bean to expire before other Beans?
>
> It appears to me that it should not be possible, since it is the session
>
> that expires and not the Beans. I want to make sure that it is good
> enough for me to check for the existence of one Bean in order to insure
> that other ones exists (granted I have created them somewhere). Can
> anything happen in the JVM that would somehow invalidate a Bean and
> remove it  from the session ?
>
> Please give me your thoughts!!
>
> Nicolas
>

Beans do not expire, and they do not get invalidated.  Those concepts apply
only to sessions.  The only thing that the servlet engine will do to user
data objects associated with a session is to remove them from the session
when it is invalidated (either because it timed out, or because you called
invalidate() yourself).

However, your servlet or JSP code can remove a bean from a session any time
it wants to:
session.removeValue("TheKey");

Likewise, if you call something like
session.putValue("TheKey", aNewObject);
and there was a previous object bound to that key, the previous object is
removed.

If your bean itself wants to know when it is being added to, or removed from,
a session, have it implement the HttpSessionBindingListener interface.  See
the servlet API specs (and API docs) for more information about this.

Craig McClanahan

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



Bean Expiration

1999-06-23 Thread Anonymous


Is there any possibility for one Bean to expire before other Beans?

It appears to me that it should not be possible, since it is the session

that expires and not the Beans. I want to make sure that it is good
enough for me to check for the existence of one Bean in order to insure
that other ones exists (granted I have created them somewhere). Can
anything happen in the JVM that would somehow invalidate a Bean and
remove it  from the session ?

Please give me your thoughts!!

Nicolas



Is there any possibility for one Bean to expire before other Beans?

It appears to me that it should not be possible, since it is the session
that expires and not the Beans. I want to make sure that it is good
enough for me to check for the existence of one Bean in order to insure
that other ones exists (granted I have created them somewhere). Can
anything happen in the JVM that would somehow invalidate a Bean and
remove it  from the session ?

Please give me your thoughts!!

Nicolas







Which one is better ?

1999-06-23 Thread Joe Blow

Hi all ,
 I was earlier using applet/servlet combination for a Web based
reporting system.applets formed the front end.servlets handled the database
access part.
 What I am investigating now is whether  I can  improve the speed of
the application
 by using the JSP/servlet combination or not.

 Do you guys have any opinions in this regard ?I would be pleased to
hear from you all.
 Thanks in advance ,
- Mahesh.

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



Re: forwarding to other JSP pages

1999-06-23 Thread Anonymous

Hi Paul,

 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:


I just tried your simple test case using my latest JWS build and it works.

regards,
-isa

]X-Sender: [EMAIL PROTECTED]
]Mime-Version: 1.0
]Date: Tue, 22 Jun 1999 18:20:06 -0700
]From: Paul Reiber <[EMAIL PROTECTED]>
]Subject: forwarding to other JSP pages
]To: [EMAIL PROTECTED]
]
]Hello all!
]
]We're using JSP1.0 under JWS2.0beta2.
]
]We've been trying to get "page forwarding" working.  Specifically, to get
]one JSP page to simply forward over to another JSP page without doing a
]round-trip to the client browser.
]
]The simplest JSP file I've come up with for this is a 2-liner that says:
]<%@ page language="java" %>
]http://hostname/.../other.jsp" />
]
]When I hit the page, after the "recompile delay" I get:
]
]Error during JSP page parsing
]Unknown exception: java.lang.IllegalStateException: Can not forward to
]servlet jspServlet : OutputStream or writer has been obtained
]
]...At first, I thought this was because of the stuff above the redirect
]being sent as HTML, but I've eliminated almost everything!
]
]So, What am I missing?
]
]Thanks in advance for your guidance!
]-Paul Reiber
]
]===
]To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
]of the message "signoff JSP-INTEREST".  For general help, send email to
][EMAIL PROTECTED] and include in the body of the message "help".

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



test

1999-06-23 Thread Suzanne Ahmed

please delete this message.

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



Re: Netscape Enterprise Server 4 and JSP

1999-06-23 Thread Srinivas Rampally

1. I still in the process of finding how to RUN JSP in Netscape Enterprise
Server. If you know more details as how to run please let me know.
2. You should use lifespan="application" for that.
3. Same as 1.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Anthony Picciano
Sent: Wednesday, June 23, 1999 11:35 AM
To: [EMAIL PROTECTED]
Subject: Netscape Enterprise Server 4 and JSP


What have been your impressions so far with Netscape Enterprise Server 4 and
JSP?

The lack of any documentation is frustrating.

Specifically, I would like to know...

1) Where should BEANS be stored and how do you set the CLASSPATH so the
server can find the beans. This seems to be different than setting the
CLASSPATH for servlets.

2) I understand the BEAN property lifespan="page" and lifespan="session". Is
there a way to set the BEAN lifespan to a single instance so that it can be
shared across multiple users?

3) Is the  tag supported? I can't find any Netscape examples that
use it.

Thanks,
Anthony Picciano

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

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



Dynamically generating JSP

1999-06-23 Thread Alik

Hi.

I am toying with JSP here, and I came up with the following problem.

Is it possible to get JSP pages from somewhere other than a file? I.e. can I,
for example, store them in a database and retrieve on demand?

Now the obvious solution, of chaining a servlet in front of the JSP page and
using this servlet to retrieve the page, save it to disk, and then calling
JSP wouldn't really work. For one thing, it would force a re-compilation of
the JSP page on every hit. (Yes, I can get into the business of managing an
on-disk cache from the database, yada-yada-yada...)
But is there a way to re-define "code load" handler in JSP? I looked through
GnuJSP implementation (the only one I have source for) and it does not appear
so...

Any thoughts?



_/_/_/_/  _/_/  _/  _/  http://Orbit.Stanford.EDU/~alik
   _/_/  _/_/  _/ _/
  _/_/_/_/  _/_/  _/_/  ftp://Orbit.Stanford.EDU/people/alik/
 _/_/  _/_/  _/ _/
_/_/  _/_/_/_/  _/  _/  _/  mailto:[EMAIL PROTECTED]



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



32 Ko limitation in JRun ?

1999-06-23 Thread Sylvain Roche




I don't know whether it is normal or not, but I 
get an error when my source jsp page exceed 31.7 Ko. I was not able to find a 
word on that special point neither on the specifications nor in JRun's 
documentation.
 
I get a 500 Internal Server Error
com.livesoftware.jsp.JSPServlet
 
javax.servlet.ServletException
 
In fact, the java file generated by JRun is 
empty, and this occurs only when the jsp file >= 32.8 Ko
 
I don't know either if it is a limitation of 
JRun or of the JSP itself. There might also be a parameter to set to increase 
the size of the input buffer of the servlet server, but I didn't find where, if 
it does exist.
 
Any help would be appreciated.
Thanks
Sylvain


Netscape Enterprise Server 4 and JSP

1999-06-23 Thread Anthony Picciano

What have been your impressions so far with Netscape Enterprise Server 4 and
JSP?

The lack of any documentation is frustrating.

Specifically, I would like to know...

1) Where should BEANS be stored and how do you set the CLASSPATH so the
server can find the beans. This seems to be different than setting the
CLASSPATH for servlets.

2) I understand the BEAN property lifespan="page" and lifespan="session". Is
there a way to set the BEAN lifespan to a single instance so that it can be
shared across multiple users?

3) Is the  tag supported? I can't find any Netscape examples that
use it.

Thanks,
Anthony Picciano

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



Again on Threads

1999-06-23 Thread Elena Palanca

Thanks for your answer, but now I'm a little bit confused.
My new questions are:
1) Is 5 the number of threads for every istance of a Servlet in memory?
Example: I have 4 Servlets istantiated -> does this mean that the
maximum number of threads is 20?
2) Which is the maximum number of servlets that could be simultaneously
istantiated in memory? Is this dependent from the Web Server or the
Application Server or whatever?
Thanks
Elena



begin:vcard
n:Palanca;Elena
tel;work:Dipartimento di Informatica di Pisa
x-mozilla-html:FALSE
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Dott. Elena Palanca
end:vcard



Re: Threads

1999-06-23 Thread John Zukowski

5

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


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

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



Threads

1999-06-23 Thread Anonymous

Hi,
does anybody know, how many threads the free version of Jrun is able to
support concurrently?
Thanks in advance.
Elena



begin:vcard
n:Palanca;Elena
tel;work:Dipartimento di Informatica di Pisa
x-mozilla-html:FALSE
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Dott. Elena Palanca
end:vcard



unsubscribe

1999-06-23 Thread Yu, Ivan

unsubscribe

> -Original Message-
> From: Automatic digest processor [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 23, 1999 03:10 PM
> To:   Recipients of JSP-INTEREST digests
> Subject:  JSP-INTEREST Digest - 21 Jun 1999 to 22 Jun 1999 (#1999-168)
>
>  << Message: JSP-INTEREST Digest - 21 Jun 1999 to 22 Jun 1999 (#1999-168)
> >>  << Message: Re: Car won't start after installing JSP... >>  <<
> Message: Re: Car won't start after installing JSP... >>  << Message: Re:
> Car won't start after installing JSP... >>  << Message: Nesting
> expressions inside include directives >>  << Message: JDBC connection >>
> << Message: Re: The extends directive >>  << Message: 
> >>  << Message:  >>  << Message: s/w i need for JSP >>
> << Message: Re: How do calculate the  Content_Length >>  << Message: Re:
> no spaces - bug in JRun? >>  << Message: Re: s/w i need for JSP >>  <<
> Message: JSP start >>  << Message: Several problems >>  << Message: Re:
> Want Site Address >>  << Message: Re: off topic (java cert) >>  <<
> Message: Beans!! >>  << Message: Re: only one independent multi-platform
> servlet/jsp engine vendor left ? >>  << Message: Re: Beans!! >>  <<
> Message: forwarding to other JSP pages >>  << Message: Re: Beans!! >>  <<
> Message: books >>  << Message: Re: forwarding to other JSP pages >>  <<
> Message: Re: books >>  << Message: JSP Tutorial >>  << Message: Tutorial
> >>

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



Re: JSP Tutorial

1999-06-23 Thread David Beale




IBM 
have just added a JSP tutorial to thier site, just an intoruction to JSP but 
quite good.
 
http://www.software.ibm.com/developer/education/java/online-courses.html
 
David 
Beale.
Reading U.K

-Original Message-From: A mailing list about Java 
Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On 
Behalf Of K. Shrinidhi SharmaSent: 23 June 1999 
06:15To: [EMAIL PROTECTED]Subject: JSP 
Tutorial
Hi there!
Does anybody know where can get hold of a 
tutorial on JSP? 
Regards,
Shrini


FW: books

1999-06-23 Thread Anonymous

Do not buy this book. JSP in this case stands for Jackson Structured
Programming, I remember it well from ny COBOL days. The year of publishing
should give it way , 1996 (recent by COBOL standards).

David Beale.
Reading U.K

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Joshua Rudin
Sent: 22 June 1999 15:16
To: [EMAIL PROTECTED]
Subject: books


has anyone read JSP for Practical Program Design?  I need a good book for
JSP (and Java while I'm at it).

Thanks,

Josh
[EMAIL PROTECTED]


___
Get Free Email and Do More On The Web. Visit http://www.msn.com

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

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