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

2002-06-12 Thread Bob Prah
Hi Andy, I'm not yet a guru (or an expert) in this area, but do take a look at this link : http://www.togethercommunity.com/download.jsp?type=templates I suppose it might help you in your decision making ! Best Regards, Bob ===

Re: Variable i may not have been initialized. for ( int i = 0; i < fc2List.size(); i++ ) ...... Please help

2002-07-08 Thread Bob Prah
probably you have been trying to access the variable i outside the for... loop(ie. when i is local to the for-loop). If that is the case, then you may get this error message. Try something like : int i=0; for(i; ihttp://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/f

Re: XML Mazilla

2002-11-18 Thread Bob Prah
Check the 'well-formed-ness' of the generated XML document. Whereas IE tolerate allot of generated or topographic errors ,where an XML document is created by hand , Nescape and Mozilla do thorough checks where XML, HTML and Make-up Languages are concerned. ==

SSI in TOMCAT - A bit off-topic!

2003-02-07 Thread Bob Prah
Has anyone activated Server Side Include(SSI) in Tomcat 4.1 ? I have followed the normal instruction under Apache's Tomcat website, including : 1. Renaming servlets-ssi.renametojar to servlets-ssi.jar in directory CATALINA_HOME/server/lib/ ; 2. Uncommented ssi... and ssi *.shtml

An unusual JSP behaviour

2003-02-11 Thread Bob Prah
Can somebody tell me why the following code is throws an exception when I try to compile it (code is from J. Hunter's Java Servlet Programming) : Hello1 Hello, <%= getName(request) %> private static final String DEFAULT_NAME = "World"; private String getName(HttpServletRequest req) { St

Re: An unusual JSP behaviour

2003-02-12 Thread Bob Prah
Hi Rajarshi, Thanks for your suggestion! However, the code works partially, that is, after incorporating your suggestion, namely : the variable "name" is not able to return the DEFAULT_NAME when the later is null - it works only when it is not null(name!=null). Here is the revised code once again

Strange Jsp Behaviour

2003-02-13 Thread Bob Prah
I can't get the following code to display the string variable "DEFAULT_NAME" when variable "name" is null or empty. This appears unusual : [ Hello1 Hello, <%= getName(request) %> <%! private static final String DEFAULT_NAME = "World";   private String getName(HttpServletRequest req) {  

Re: Strange Jsp Behaviour

2003-02-13 Thread Bob Prah
> To: <[EMAIL PROTECTED]> > Sent: Thursday, February 13, 2003 11:28 PM > Subject: Re: Strange Jsp Behaviour > > > >Here's a guess. Close off the tag for the static string. For example: > ><%! private static final String DEFAULT_NAME = "World";