item 2. has to do with how the servlets generated by the JSP page
compiler in WebSphere operate.  in essence, such a servlet reads
in and buffers the characters of the JSP itself, and writes out
the literal content portions of the JSP by writing from index alpha
to index beta of the buffer, interjecting the content generated from
JSP tags.  e.g., characters 0-61 of the JSP might be literal HTML,
while the next bit of content comes from a <%= %> expression, then
picking up from character 82 of the JSP.

if the text of the JSP changes, but the timestamp of the new JSP is
older than that of the servlet generated from the previous version,
the new page is not recompiled, and text from the new JSP is written
out as though it were the previous version. thus, if your JSP
directives, scriptlets, and expressions change position, you get garbage.

as a matter of procedure, when doing an installation of new JSPs, either
ensure the timestamps of the JSPs are as current as possible, or
flush the directory containing the page-compiled servlets.

hth,
p

// Paul Holser -- mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
// ObjectSpace, Inc. -- http://www.objectspace.com
<http://www.objectspace.com/>
// 14850 Quorum Dr. Ste. 500, Dallas TX 75240 USA
// 972.726.4560 -- 1.800.OBJECT1 x4560



-----Original Message-----
From: Mike Herron [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 03, 2000 3:03 PM
To: [EMAIL PROTECTED]
Subject: Why do we have to restart after every change to a JSP?



Every time we change a JSP we need to restart WebSphere (2.03).  Why?  Is
there a way to fix this?

We're going nuts restarting the damn WebSphere service every time we make a
tiny change in a JSP.

After making a change to a JSP, we get one of the following two behaviors:

  1. "500 Internal Server Error" and "The servlet named pageCompile at
the requested URL reported this exception
pagecompile._product__group__assignment_xjsp: null."

 2.  a badly-parsed version of the JSP page -- to me, it looks like
WebSphere is not
parsing the JSP properly -- we see some Java code, mixed in with HTML code,
in Netscape when we try to view that JSP.

Anybody??  PLEASE HELP!!!

Mike
[EMAIL PROTECTED]

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to