Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes Using a boolean type on a form, good idea? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using a boolean type on a form, good idea?" Watch "Using a boolean type on a form, good idea?" New topic
Author

Using a boolean type on a form, good idea?

Paul Duer
Ranch Hand

Joined: Oct 10, 2002
Posts: 98
Hi guys,
I have a Struts Action and a Form. I have a property in my business object that is boolean, it's a refresh setting, pretty common I guess.
Anyway, is it a good idea to use a boolean type to setup the field on the form? I have pretty good control over what will be submitted.
What about using a primative versus an object, an difference there?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Using a boolean type on a form, good idea?
 
Similar Threads
MVC and Form Validation
struts help with form beans being lists
A lot of people nowadays are using NAT.
passing variables into methods
Map Backed Form Bean