Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JSP value beans: am I missing something?

Reply
Thread Tools

JSP value beans: am I missing something?

 
 
marty mcmahone
Guest
Posts: n/a
 
      04-14-2004
I'm testing around with building basic beans to use inan HTML form / bean
combination. I have a set of fields named the same as my instance variables
and the proper get/set routines. It all works fine, except for the problem
of non-numeric data. If I have an int instance variable and pass an int
into the set routine, I get a data exception type crash. OTOH, if I try to
make the parameter in the set routine a string, then convert it into an int
(under a try/catch) the set routine is ignored.

Is there no way to do variable checking in this global method? If not, how
could this be useful for numeric data?

Thanks for any insights,

Marty


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find value of SELECT if VALUE attribute is missing Matt Kruse Javascript 4 01-08-2007 09:03 PM
[JSP] difference between jsp:forward and jsp:include alexjaquet@gmail.com Java 0 06-02-2006 01:21 PM
Get value from popup(jsp) to parent(jsp) form ctbang Javascript 1 01-20-2006 04:46 PM
Custom tags and <jsp:plugin> / <jsp:param> Raymond DeCampo Java 0 02-18-2004 01:29 AM
[JSP] Strings Constants from JSP using Struts tags Matthias Nietz Java 1 11-12-2003 04:32 PM



Advertisments