Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #4702
| From | byhesed <byhesed@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Is JavaBeans able to store an array? |
| Date | 2011-05-29 17:26 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <296aeac2-c5fa-4f0d-99a8-857df5ba39ad@h36g2000pro.googlegroups.com> (permalink) |
| References | (1 earlier) <irivd5$fjj$1@news.albasani.net> <970d7ab8-dc74-4d7c-a486-b934fb3b5d3b@22g2000prx.googlegroups.com> <irndar$l9r$1@news.albasani.net> <08c2a5e4-3858-410d-9863-860cff1aea64@z13g2000prk.googlegroups.com> <iroc6v$oho$2@news.albasani.net> |
On 5월27일, 오후11시25분, Lew <no...@lewscanon.com> wrote: > byhesed wrote: > > Lew wrote: > >> byhesed wrote: > >>>>> --------------------------------------------------------------------------- ------------------------- > >>>>> 1. TestBeanForm.jsp > >>>>> --------------------------------------------------------------------------- ------------------------- > >>>>> <form action="TestBean.jsp" method="post"> > >>>>> <input type="checkbox" name="books"> Java for Student<br> > >>>>> <input type="checkbox" name="books"> Compiler Construction<br> > >>>>> <input type="checkbox" name="books"> Software Engineering<br> > >>>>> <input type="checkbox" name="books"> Core Servlet and JSP<br> > >> Where are your 'value' attributes? > > >> <http://www.w3schools.com/tags/att_input_value.asp> > > >>> Note: The value attribute is required with<input type="checkbox"> > >>> and<input type="radio">. > > >> -- > >> Lew > >> Honi soit qui mal y pense.http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg > > Don't quote sigs. > > > I know what the value is in html tag. > > But where is it? You don't show the 'value' attribute. It is REQUIRED > according to the documentation I cited. Where is it? > > You didn't answer my question. Maybe the omission of the 'value' attribute is > your problem. > > > What I want to know is this: Is JavaBean able to handle array values? > > > I think JavaBean cannot receive reference values or pointer values. > > Nonsense. You've already told us that the bean did receive a reference value > when it picked up the string value. So that's crap. > > Why don't you try my advice before redundantly repeating your question again? > > -- > Lew > Honi soit qui mal y pense.http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg As you already know, the default value of checkbox is "on" or "off" Although I didn't set values of checkboxes, there is no problem. Do you agree with me? (I think you will.) I can receive checkbox values as an array If I use getParameter() in Servlet. However, when I handle it using JavaBeans, I cannot receive the checkbox values as an array. That's my problem. And I didn't ignore your advice ever! I am not sure, but I might read that JavaBeans cannot handle array values. If you want to deal with array values, you need to use Tag Library. Anyway, sorry for late reply. I've been so busy.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar
Is JavaBeans able to store an array? byhesed <byhesed@gmail.com> - 2011-05-24 18:15 -0700
Re: Is JavaBeans able to store an array? Lew <noone@lewscanon.com> - 2011-05-25 09:15 -0400
Re: Is JavaBeans able to store an array? byhesed <byhesed@gmail.com> - 2011-05-26 22:11 -0700
Re: Is JavaBeans able to store an array? Lew <noone@lewscanon.com> - 2011-05-27 01:38 -0400
Re: Is JavaBeans able to store an array? byhesed <byhesed@gmail.com> - 2011-05-27 03:54 -0700
Re: Is JavaBeans able to store an array? Lew <noone@lewscanon.com> - 2011-05-27 10:25 -0400
Re: Is JavaBeans able to store an array? byhesed <byhesed@gmail.com> - 2011-05-29 17:26 -0700
csiph-web