Re: JSP form beginner question

From: Paul Lutus (nospam_at_nosite.zzz)
Date: 10/15/03


Date: Wed, 15 Oct 2003 10:16:00 -0700

Fred Fasle wrote:

> Thanks guys have used the
>
> try {
> myInt = Integer.parseInteger(intParam);
> } catch(NumberFormatException e) {
> myInt = null;
> }
>
> and this seems to do the trick.

No, in fact that won't even compile. Why not post the real code?

You cannot set a primitive to null, amd there is no "Integer.parseInteger()"
method. Always post code directly from your programming editor, don't just
type things in.

> Another question however is I seem to be
> getting my form jsp code appearing in my browser when I load the page, the
> whole lot in Mozilla and the corresponding form.get code to the input box
> in IE. Is this being caused by my Javabean not being correctly read in. I
> can't figure it out I have been through some similar code thast works
> completely and compared the two and am unable to see any differences. Any
> ideas on this?

This is caused by your Web server setup, not Java per se. It's outside the
scope of this newsgroup's topic.

-- 
Paul Lutus
http://www.arachnoid.com


Relevant Pages

  • Re: Linux / NASM equivalent of Iczelions Win32 assembly tuts
    ... Nasm to compile on "any compiler" convinces me this is wishful thinking. ... This isn't the "real code" - we'd be moving the character we fetched from our string. ... In any case, an external routine, __flsbuf, was intended to be called only when the buffer was full. ...
    (alt.lang.asm)
  • Re: VS 2003 compiling error
    ... > way to compile the solution even after I close and re-open the solution. ... This trick is very cumbersome and I loose all my settings ... > like open files, break points and all other IDE settings. ...
    (microsoft.public.vsnet.general)
  • Re: searching alltheweb via www::search
    ... > l=pl in the query string ... You're not posting your real code: that line won't compile. ... Please read the Posting Guidelines for this group, ...
    (comp.lang.perl.misc)
  • gfortran bug or not?
    ... I use the following well-known trick for my numeric kinds: ... When i compile using the latest gfortran on Linux i get: ... trick for a long time and it is the first time that a compiler complains ...
    (comp.lang.fortran)
  • Re: <ctype.h> toLower()
    ... >It wasn't intended for a maintenance programmer, it is supposed to make you ... >> be wasting that programmer's time, ... > It isn't real code it's example code in a newsgroup posting. ... >> the trick elsewhere, but very misguided. ...
    (alt.comp.lang.learn.c-cpp)