You can always dump stuff to the standard error stream from a JSP/servlet:
use System.err.println() and retreive the results from
$(LOG_DIR)/stderr.log.  The same applies to stdout (in stdout.log).

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath Kamalanathan
Sent: Tuesday, December 11, 2001 11:41 AM
To: [EMAIL PROTECTED]
Subject: Re: parseInt in TomCat 4.01


As I told you before, I am getting this value printed correctly when I run a
test class from console. But NOT in the browser.

Thanks
Ketharinath Kamalanathan
----- Original Message -----
From: "Sujit M" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 11, 2001 1:33 PM
Subject: Re: parseInt in TomCat 4.01


> put this line
> System.out.println("Value from enumeration : "+enum.nextElement());
> before
> Integer recval = new Integer(enum.nextElement().toString());
>
> you will get your answer.
>
>
> >From: Ketharinath Kamalanathan <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> >reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: parseInt in TomCat 4.01
> >Date: Tue, 11 Dec 2001 13:34:25 -0600
> >
> >When I print out the value from a Test Class to a console, the value
comes
> >right. It does not get a chance to print anything in a browser except an
> >Exceptional report.
> >What's wrong?
> >
> >Thanks.
> >Ketharinath Kamalanathan
> >----- Original Message -----
> >From: "Sujit M" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, December 11, 2001 1:13 PM
> >Subject: Re: parseInt in TomCat 4.01
> >
> >
> > > print out the value which gives trouble ...
> > > it seems you are getting an EOF
> > >
> > >
> > > >From: Ketharinath Kamalanathan <[EMAIL PROTECTED]>
> > > >Reply-To: A mailing list about Java Server Pages specification and
> > > >reference <[EMAIL PROTECTED]>
> > > >To: [EMAIL PROTECTED]
> > > >Subject: parseInt in TomCat 4.01
> > > >Date: Tue, 11 Dec 2001 12:54:41 -0600
> > > >
> > > >Hello:
> > > >
> > > >I am using Tomcat 4.01. I have the following problem:
> > > >
> > > >I have developed a class to 'talk' with my database and give me a
> >Vector
> > > >Object. I tested ALL the methods using another Test Class and it
works
> > > >fine.
> > > >
> > > >When I Instantiate the class in a Servlet and run it in Tomcat I am
> >getting
> > > >a problem.
> > > >The Specific problem is this:
> > > >
> > > >I extract the Vector elements into an Enumeration object. Then I
> >extract
> >my
> > > >data step by step(I know the structure, as I have packed it into
> >Vector).
> >I
> > > >have an integer value in the enum. When I use:
> > > >
> > > >Integer recval = new Integer(enum.nextElement().toString());
> > > >
> > > >It works fine in a console with a Test Class but gives a ParseInt
> >exception
> > > >like this:
> > > >
> > > >java.lang.NumberFormatException: EOF
> > > >         at java.lang.Integer.parseInt(Integer.java:414)
> > > >         at java.lang.Integer.(Integer.java:549)
> > > >         at
> > >
> >
>GIGXMAccessRightsManager.removeAccessRight(GIGXMAccessRightsManager.java:43
> >3)
> > > >
> > > >Am I doing anything wrong?
> > > >
> > > >Thanks in advance,
> > > >Ketharinath Kamalanathan
> > >
> > >
> > > _________________________________________________________________
> > > 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
>
>
> _________________________________________________________________
> 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

===========================================================================
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

Reply via email to