= true;
}
}
/script
...
html:form action=/NewIPRecordSubmit focus=baseIP
...
IP Address
...
html:text property=baseIP styleClass=textbox style=size:114/
...
html:checkbox property=ipRangeEnabled value=no onclick=GrayOut(this)/
Upper Range html:text property=boundIP styleclass=textbox style=size:114
Hi All,
Is we use html:checkbox, what should be the type in struts-config.xml? is
that boolean or string?
THanks,
Anand
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
String's always a safe bet.. But you can use Boolean although I
understand that you don't want to use the primitive boolean.
On 18 Feb 2004, at 22:46, Anand M S wrote:
Hi All,
Is we use html:checkbox, what should be the type in struts-config.xml?
is that boolean or string?
THanks,
Anand
Hello,
I am using html:checkbox Struts tag, but I am unable to set
it
to a CHECKED state by default (I read the docs).
This is what I am using now:
html:checkbox property=foo value=true
Is 'value' not the attribute I should use for that?
Which attribute should I use then?
Any help would
PROTECTED]
Subject: Can't make html:checkbox CHECKED by default
Hello,
I am using html:checkbox Struts tag, but I am unable to set
it
to a CHECKED state by default (I read the docs).
This is what I am using now:
html:checkbox property=foo value=true
Is 'value
: Karr, David [mailto:[EMAIL PROTECTED]
Sent: mercoledì 4 febbraio 2004 20.46
To: Struts Users Mailing List
Subject: RE: html:checkbox and struts-EL
I have no clue why you think you needed to write a customized checkbox
class. It's not clear to me from your description. Having your form in
session
, 2004 6:18 AM
To: 'Struts Users Mailing List'
Subject: RE: html:checkbox and struts-EL
You're right, I missed an element: the form is split across several pages (a wizard
style form) so I can't reset the checkbox value because I need to mantain the value it
had. Anyway your hint on the source
I'm using a customized version of the checkbox tag that always sets in
the property field a value of true or false depending on the state of
the checkbox, thus avoiding the noisy problem of not checked tags does
not reset the property; this was needed to me because the form is in
session scope,
Hello,
I am using html:checkbox Struts tag, but I am unable to set it
to a CHECKED state by default.
I checked the docs for the Struts HTML taglib, but found nothing
that worked.
This is what I am using now (removed gt and lt to avoid HTML
rendition problems):
html:checkbox property=foo value
view the source code in the
CVSweb interface on the jakarta site.
-Original Message-
From: Renato Romano [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 8:58 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: html:checkbox and struts-EL
I'm using a customized
From: Raman Garg [mailto:[EMAIL PROTECTED]
Thanks for your reply... BUT
it take the default value=on when I do the way as you were
telling me.
I want to put the value=232 where 232 is the id value
corresponding to my record.
Can you post the iterate tag along that's outside the
://jakarta.apache.org/struts/userGuide/struts-html.html#checkbox
-Original Message-
From: Raman [mailto:[EMAIL PROTECTED]
Sent: 19 December 2003 07:02
To: Struts Users Mailing List
Subject: Value attribute of html:checkbox
Hello,
I have a checkbox and i want to assign value attribute
Hello,
I have a checkbox and i want to assign value attribute in html:checkbox
and that value should be my id value. How should i do that?? by default it is
taking value=on but i don't want this.
html:checkbox property=deleteItem value=??
Delete
/html:checkbox
here i want value to be my id
Hello,
I have a checkbox and i want to assign html:checkbox
value. and that value should be my id value.
How should i do that.
html:checkbox property=deleteItem value=??
Delete
/html:checkbox
here i want value to be my id value of table.. i have this string in logic:iterate
loop
What I did
Raman,
What's wrong with this ? html:checkbox property=deleteItem/
Shouldn't this pick up the property from the ActionForm and generate
value=x for example.
Is yours dynamic ?
Mohan
-Original Message-
From: Raman [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 17, 2004 12:43
List' [EMAIL PROTECTED]
Sent: Saturday, January 17, 2004 5:02 PM
Subject: RE: html:checkbox pls help
Raman,
What's wrong with this ? html:checkbox property=deleteItem/
Shouldn't this pick up the property from the ActionForm and generate
value=x for example.
Is yours dynamic ?
Mohan
Hi all
i already posted twice about this but i guess my email program had trouble
formatting my mail or somethign but anyway long thing short i have a
collection of ApplicationVO value objects, i need to display them in rows
on a jsp. so i iterate thru the collection of the value objects, and
of the checkboxes are not retained
when a validation error occurs.
I have tried the following in vain:
a. Array of html:checkbox
I have used a boolean array for the form data type
corresponding to the checkbox. Also, I set all the
values of the boolean array to false in the reset()
method.
b
Hai
I populate data from database in to the Action form, which i am using to
display multiple records in the JSP Page. Here i am using Html:checkbox as
an indicator to every record in the the page. I have associated the
checkobox with String array Property. My Problem is when i submit the form
Faisal wrote:
I populate data from database in to the Action form, which i am using
to
display multiple records in the JSP Page. Here i am using
Html:checkbox as
an indicator to every record in the the page. I have associated the
checkobox with String array Property. My Problem is when i
: html:checkbox Tag problem
Faisal wrote:
I populate data from database in to the Action form, which i am using
to
display multiple records in the JSP Page. Here i am using
Html:checkbox as
an indicator to every record in the the page. I have associated the
checkobox with String array Property. My Problem
I think multibox will return the value of the
checked items which might help you out.
--- Wendy Smoak [EMAIL PROTECTED] wrote:
Faisal wrote:
I populate data from database in to the Action
form, which i am using
to
display multiple records in the JSP Page. Here i
am using
Html:checkbox
...
html:checkbox indexed=true property=uniqueKey name=myItem/
...
html:link action=MyViewItemsAction
paramId=myId
paramName=myItem
paramProperty=uniqueKey
bean:write name=myItem property=uniqueKey/
/html:link
...
The html:link works great. I just don't know
PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: html:checkbox, iterate and a value
Date: Fri, 15 Aug 2003 12:48:40 -0400
What is the proper way to build html:checkbox's inside of an
logic:iterate loop?
It seems
On Aug 15, 2003, Ben Anderson [EMAIL PROTECTED] wrote:
|have you looked at multibox?
No, I haven't. But, I have now... :-)
It has the same issues as combobox however. Also, I was aware of your
solution with non struts tags, but I was hoping for a struts only
solution.
Another solution
Subject: html:checkbox, iterate and a value
What is the proper way to build html:checkbox's inside of an
logic:iterate loop?
It seems that the html:checkbox's value parameter can't reference a
property from the bean of the iterate loop.
I have something close to:
logic:iterate id=myItem
'
Subject: RE: html:checkbox checked
In the latest version of struts-html there is no such attribute in the tag
called 'checked'.
But there is another way if the value of 'value' attribute matches the value
of 'property' attribute,
it gets checked.
I was wondering a simple way of doing it even
struts-html.tld doesn't have the attribute 'result'
which if set to checked, makes the check box checked by default
Anybody knows any other way or solution or is it a bug?
Thanks
Panchasheel
-
To unsubscribe, e-mail: [EMAIL
Panchasheel,
The attribute you refer to is called 'checked' not 'result'. It is not a
bug.
-Richard
-Original Message-
From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 12:55 PM
To: 'Struts Users Mailing List'
Subject: html:checkbox checked
struts
.
Panchasheel
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 4:14 PM
To: 'Struts Users Mailing List'
Subject: RE: html:checkbox checked
Panchasheel,
The attribute you refer to is called 'checked' not 'result'. It is not a
bug
Can soemone explain me the difference between the two tags
html:multibox and html:checkbox in aJSP page which used
logic:iterate tag.
For example:
logic:iterate id=fruits name=nameOfMyDynaValidatorForm
property=fruits type=com.org.Fruit
PROTECTED]]
Sent: Montag, 25. November 2002 19:52
To: Struts Users Mailing List
Subject: Re: set a html:checkbox checked
I think you should set the property of the form in an action, that will
forward to your JSP.
In this action, set the property corresponding to your check box at true:
MyForm myForm
Subject: RE: set a html:checkbox checked
Sorry, if i use this i get an NoSuchMethod Error.
But, even it schould work, how could i set the value other than on
true or false
_AND_ the checkbox checked?
in html like this
input type=checkbox value=99 checked
thx in advance
-Original
Mailing List
Subject: Re: set a html:checkbox checked
Hi Georg,
If you wish to utilize String value other than true, yes, or on...,
you can use the html:multibox tag.
Best regards
Patrice
- Original Message -
From: Mouratidis, Georg [EMAIL PROTECTED]
To: Struts Users Mailing List
.
Best regards
Patrice
- Original Message -
From: Mouratidis, Georg [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, November 26, 2002 12:00 PM
Subject: RE: set a html:checkbox checked
Thank all the people for response.
i have done it this way
-
From: Patrice [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 26. November 2002 12:27
To: Struts Users Mailing List
Subject: Re: set a html:checkbox checked
As I said, I think the html:multibox tag should be an alternative to your
javascript initialization:
If I anderstand, you have some checkboxes
PROTECTED]
Sent: Tuesday, November 26, 2002 1:28 PM
Subject: RE: set a html:checkbox checked
Hallo Patrice,
thank you,thank you,thank you,thank you,thank you,thank you,thank you
for the solution. this works excellent.
But, is there somethink like html:multibox for the html:radio tag.
Because
thx a lot
Georg
-Original Message-
From: Patrice [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 26. November 2002 14:07
To: Struts Users Mailing List
Subject: Re: set a html:checkbox checked
If only one catalogBuyerIDType can be selected, the easiest way is to use
radio buttons instead
Hi, Oliver
did you get any response. i'm looking for the same.
could you send me your solution please?
thx
Georg M.
-Original Message-
From: Oliver Kersten [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 21. November 2002 17:34
To: [EMAIL PROTECTED]
Subject: set a html:checkbox checked
type=checkbox name=mycheck checked
But I can't find that for the struts tag:
html:checkbox property=mycheckcheck it/html:ckeckbox
And can I use the value true to set a checkbox checked. I get only a
true from my bean and not a checked or something else.
--
To unsubscribe, e-mail
any examples please. i do not understand how to do it.
thx
-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]]
Sent: Montag, 25. November 2002 17:34
To: Struts Users Mailing List
Subject: RE: set a html:checkbox checked
In your Action class which forwards to the JSP, you
. Hope this helps.
Edgar
-Original Message-
From: Mouratidis, Georg [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 11:25 AM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: set a html:checkbox checked
Hi, Oliver
did you get any response. i'm looking for the same
'
Subject: RE: set a html:checkbox checked
In your Action class which forwards to the JSP, you have to have code
which sets the property associated with the checkbox to either true,
yes, on, or the value set in the value attribute.
-Original Message-
From: Mouratidis, Georg [mailto:[EMAIL
: Mouratidis, Georg [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 11:25 AM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: set a html:checkbox checked
Hi, Oliver
did you get any response. i'm looking for the same.
could you send me your solution please?
thx
Georg M
corresponding to CheckBoxProperty will be checked on the
JSP.
Hope it helps
Patrice
- Original Message -
From: Mouratidis, Georg [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, November 25, 2002 5:44 PM
Subject: RE: set a html:checkbox
Hi,
how can I set a checkbox checked during creation in the JSP. In HTML I would
do it like this:
input type=checkbox name=mycheck checked
But I can't find that for the struts tag:
html:checkbox property=mycheckcheck it/html:ckeckbox
And can I use the value true to set a checkbox checked
:27 AM
To: 'Struts-Users'
Subject: HTML:checkbox question
Hey all,
The problem I am having is setting the default state of a checkbox and
having the state retained over form submission.
If I set the default state to be selected (true in the underlying
actionform) when the form is submitted
styleClass=inputTxt
style=width:215px /
html:text property=location styleClass=inputTxt style=width:215px
/
html:text property=suburbPostcode styleClass=inputTxt
style=width:215px /
html:checkbox property=serviceArea /
/html:form
Thanks in advance,
Sean
Subject: HTML:checkbox question
Hey all,
The problem I am having is setting the default state of a checkbox and
having the state retained over form submission.
If I set the default state to be selected (true in the underlying
actionform) when the form is submitted the checkbox remains selected even
I have an interesting problem in which the setRemove() method of my Value Bean never
gets called in html:checkbox, though the getRemove() does get called:
html:checkbox name=rating property=remove value=on
styleClass=formElementRadio//td
* where rating is my value bean within a colletion
I think you've misunderstood how html:check worked.
html:checkbox will only render a input type=checkbox, but doesn't
update your bean stored in the session (or request if you mistakenly
expected that) upon submission. Instead, you will get the value back as one
of the URI query parameters
Hello List,
I think I found a bug in the html:checkbox-Tag. Anybody who can confirm?
This is from my formbean-class:
private boolean einTrefferJeHaushalt = true;
public void reset(ActionMapping mapping, HttpServletRequest request) {
[...]
this.einTrefferJeHaushalt
-Original Message-
From: Sann, Stephan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 6:07 AM
To: [EMAIL PROTECTED]
Subject: Bugreport(?): html:checkbox
Hello List,
I think I found a bug in the html:checkbox-Tag. Anybody who
can confirm?
This is from my
Unfortunately I need a default-status of checked, so I
can't use the second solution.
Any ideas, comments, confirmations?
This is expected behaviour. Set the default value to true, leave the reset() method
blank (you want it to persist across the session, yes?).
Your reset
=objParameter collection=%= arrSParameters %
Struts indexId=index
Struts html:checkbox name=objParameter property=parameterCode /
Struts /logic:iterate
I believe the better way to do this is to use a multibox tag, instead of a
checkbox tag. I almost wonder sometimes whether the need
Subject: How do I use the html:checkbox tag to replace of the past JSP code?
From: news.basebeans.com [EMAIL PROTECTED]
===
Hi,
I used the following code to setup checkbox value and checked status
before using struts.
%
if (arrSParameters != null) {
for (Enumeration objEnu
Subject: The question of the html:checkbox tag for the struts(1.1 beta 1)
From: news.basebeans.com [EMAIL PROTECTED]
===
Hi,
The following text is my experiment for the checkbox tag.
logic:iterate id=objParameter collection=%= arrSParameters %
indexId=index
tr
td width=100
p
Hey everyone,
I've just essentially finished my first struts application, and my boss
doesn't like the fact that the boolean properties associated with checkboxes
must be set to false when going to the form. He says that it's a pain in
the ass to recheck the boxes every time the bean is edited.
]
Sent: Thursday, July 25, 2002 9:21 AM
Subject: html:checkbox
Hey everyone,
I've just essentially finished my first struts application, and my boss
doesn't like the fact that the boolean properties associated with
checkboxes
must be set to false when going to the form. He says that it's a pain
http://www.buffalo.edu/~kkamholz
-Original Message-
From: Bill Blackmon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 11:16 AM
To: Struts Users Mailing List
Subject: Re: html:checkbox
Is this correct? I'm just getting into an application and there are lots of
checkboxes
On Thu, 25 Jul 2002, Kamholz, Keith (corp-staff) USX wrote:
Date: Thu, 25 Jul 2002 09:21:56 -0400
From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts (E-mail) [EMAIL PROTECTED]
Subject: html:checkbox
Hey everyone
PROTECTED]]
Sent: Thursday, July 25, 2002 11:31 AM
To: Struts Users Mailing List
Subject: Re: html:checkbox
On Thu, 25 Jul 2002, Kamholz, Keith (corp-staff) USX wrote:
Date: Thu, 25 Jul 2002 09:21:56 -0400
From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
Reply-To: Struts Users
On Thu, 25 Jul 2002, Kamholz, Keith (corp-staff) USX wrote:
Date: Thu, 25 Jul 2002 11:58:06 -0400
From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: html:checkbox
Hi All,
I have checkbox displayed in a table and I am trying to create a
a checkbox outside the table to check All the checkboxes inside the table.
My table is using the logic:iterate tag and displays the table.
Please, let me know if anybody knows how to solve this.
Thanks.
an idea...
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: Toni Nehme [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 9:36 AM
To: [EMAIL PROTECTED]
Subject: Html:checkbox issue
Hi All,
I have checkbox displayed in a table and I am trying to create a
a checkbox
List'
Subject: RE: Html:checkbox issue
This is just a shot in the dark, but could you specify the
onclick attribute
of the checkbox to run some javascript? When clicked, you could swap the
checkbox properties back and forth between checked and not checked. Does
anyone else think something
PROTECTED]]
Sent: Thursday, July 04, 2002 02:35
To: [EMAIL PROTECTED]
Subject: html:checkbox in a table
Hi Everyone,
Does anyone knows or have an example that displays a table of records with a
checkbox in each row and when user submit the form,
will be able to know which row is checked?
If so
: html:Checkbox tag in Logic:iterate does not work
Hi everyone,
I have an html:checkbox in logic:iterate and I would like to know
what row the user checked after I submit the form.
My Form has an ArrayList of Objects.
My action reads the arraylist and check to see witch item is selected.
My jsp
didn't do this, my form thought these controls were always checked,
so that may not be the problem. Just thought I'd throw it in.
Mike
-Original Message-
From: Toni Nehme [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 25, 2002 12:24 PM
To: [EMAIL PROTECTED]
Subject: html:checkbox tag
html:errors/
html:form action=/test
html:checkbox property=isBillable value=chkVal/
html:submit
bean:message key=button.display/
/html:submit
/html:form
/body
/html:html
When I click on the button to submit the form, I
Hi,
i think the value chkVal in the html:checkbox .tag is the value that will
be submitted when you check the box.
so the property attribute isBillable will be given the value chkVal when you
check this value.
Insideform this property will definitely of boolean data type.
now you will assign
PROTECTED]]
Sent: Tuesday, June 25, 2002 12:39 PM
To: Struts Users Mailing List
Subject: Re: html:checkbox tag does not set the checked value
Hi,
i think the value chkVal in the html:checkbox .tag is the value that
will
be submitted when you check the box.
so the property attribute isBillable
/ /title
html:base/
/head
body
html:form action=userChoice
logic:iterate id=levels name=userChoiceForm property=levels
type=ch.thales.model.Level
html:checkbox name=levels property=isChecked /
bean:write name=levels property=levelName /
/logic:iterate
brbr
html:submit
]]
Sent: Tuesday, June 25, 2002 2:32 PM
To: [EMAIL PROTECTED]
Subject: Re: html:checkbox tag does not set the checked value
I have a form, an action and a class:
I have 3 checkboxes (High,Medium,Low):
When I check any of those checkboxes and click on submit,
It does not set the value
Hi All,
How can I set the boolean variable in the form if I have more than one
checkbox on a page?
For example:
checkbox with label required.
checkbox with label notRequired.
checkbox with label optional.
Do I have to have 3 boolean variables in my form?
Or I can have an array of booleans?
, 2002 2:41 PM
To: [EMAIL PROTECTED]
Subject: Html:checkbox
Hi All,
How can I set the boolean variable in the form if I have more than one
checkbox on a page?
For example:
checkbox with label required.
checkbox with label notRequired.
checkbox with label optional.
Do I have to have 3 boolean
PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: html:checkbox tag does not set the checked value
Date: Tue, 25 Jun 2002 14:40:08 -0400
Your structure seems kind weird. I'm not sure exactly what you're trying
to
do. Do you
Yep,
This is the same situation.
Regards.
From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Html:checkbox Date: Tue, 25 Jun 2002 14:44:12 -0400
Is this the same
if you have a Form class with
private boolean high
and then have the getters and setters
public void setHigh (boolean high) {
this.high = high;
}
public boolean getHigh () {
return this.high;
}
and then on your jsp you have
html:checkbox property=high/
the Form class will get
-
From: Toni Nehme [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 25, 2002 2:47 PM
To: [EMAIL PROTECTED]
Subject: RE: html:checkbox tag does not set the checked value
Hi Keith,
This is an example.
User can select multiple at a time.
What I am trying to do is to be able to have multiple checkboxes
Hello all,
How can you set the initail state of a check box to be selected?
Thanks,
Mike
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
]]
Sent: Monday, June 24, 2002 3:41 PM
To: 'Struts Users Mailing List'
Subject: html:checkbox
Hello all,
How can you set the initail state of a check box to be selected?
Thanks,
Mike
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail
Subject: RE: html:checkbox
The same way it is done in the struts-example and documentation.
Hope that helps ;)
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://struts-atlanta.open-tools.org
-Original Message-
From
Hello this is dz
I'm using the html:checkbox tag in an iterate tag. I am trying to set the
indexed property but I get the following exception
javax.servlet.jsp.JspException: index
at
com.hp.mwlabs.j2ee.containers.servlet.jsp.AbstractJspPage.getWriteMethodSupport(AbstractJspPage.java
=addSegElementsToMethodForm
property=segElementSelections
tr
td align=center
html:checkbox indexed=true
name=segmentElementRow property=selected
value=true /
/td
td align=center
bean:write name=segmentElementRow
property=elementNbr
=addSegElementsToMethodForm
property=segElementSelections
tr
td align=center
html:checkbox indexed=true
name=segmentElementRow property=selected
value=true /
/td
td align=center
bean:write name=segmentElementRow
property=elementNbr
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 10:00 AM
To: Struts Users Mailing List
Subject: RE: html:checkbox tag not setting its property value in
Formbean
Hi Larry,
Thanks for your suggestion. I downloaded the nightly
build for struts (dated 3/11/02) and installed it in
my Tomcat 4.0.1
, 2002 10:00 AM
To: Struts Users Mailing List
Subject: RE: html:checkbox tag not setting its
property value in
Formbean
Hi Larry,
Thanks for your suggestion. I downloaded the
nightly
build for struts (dated 3/11/02) and installed it in
my Tomcat 4.0.1 environment. In My Jsp I have
using it. For grins, would you try replacing:
html:checkbox indexed=true
name=segmentElementRow property=selected value=true
/
with
html:multibox name=segmentElementRow property=selected value=true /
and see if it works? If so, please let me know.
-- Larry
-Original
Hi Krishnan,
If you are using a nightly build you can probably use
the indexed attribute. This would look something
like this:
In your jsp:
logic:iterate id=fruits name=nameOfYourFormBean property=fruits
html:checkbox indexed=true name=fruits property=checked/
bean:write name
Hi
In my Jsp form, I have a check box that is part of a
collection object. This collection object is rendered
through a bean. The collection (arrayList) itself has
getter/setter in the form bean. When I select the
checkbox on the form, the corresponding property value
is not updated to true.
[mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 3:19 PM
To: [EMAIL PROTECTED]
Subject: html:checkbox tag not setting its property value in Formbean
Hi
In my Jsp form, I have a check box that is part of a
collection object. This collection object is rendered
through a bean
Hello,
This is a plain JSP - HTML code:
--
%
for(i=0; iobjUsers.size(); i++){
tmpuser=objUsers.getUser(i);
%
trtd input type=checkbox name=user value=%= tmpuser.getUserId()%
%=tmpuser.getUserId()%td/tr
%
}
%
Take a look at the html:multibox tag. I believe this will do what you
want.
--
Martin Cooper
- Original Message -
From: Kilmer, Erich [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 02, 2001 12:30 PM
Subject: html:checkbox question
On my page I want to show checkboxes
);
request.setAttribute(list, list);
%
logic:iterate id=DeliveryOption name=list
type=com.customers.web.DeliveryOption
html:checkbox name=DeliveryOption property=value/
bean:write name=DeliveryOption property=displayName/br
/logic:iterate
Notice in the html:checkbox tag, DeliveryOption is the bean
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14937.html
From: Shea Kelly <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: can html:checkbox indexed??
Date: Mon, 24 Sep 2001 15:15:33 +1000
MIME-Version: 1.0
Received: from [64.125.
Hi,
I'm using
the html:checkbox tag in an iterate tag. I am trying to set the indexed property
but I get the following exception and the value doesnt seem to
exist:
org.apache.jasper.compiler.CompileException:
D:\project\dod\codeBase\dodJBProject\src\pages\survey.jsp(132,10) Attribute
Hi,
I would like to achieve the following:
I have a table and one of their columns has to be a checkbox. To create the
table I use the iterate-Tag.
For example something like that:
logic:iterate id=blackBoard name=showAllBlackBoardsAndDeleteForm
property=result
tr
, Oswald [EMAIL PROTECTED] on 09/06/2001
06:15:53 PM
Please respond to [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]'
[EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: RE: indexed option does not work with html:checkbox
David + Marcelo: thank you both -- I'm now in a position
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 9:31 AM
To: [EMAIL PROTECTED]
Subject: RE: indexed option does not work with html:checkbox
Hi. Not sure I follow...
If you add indexed=true to the checkbox tag, it will produce unique
1 - 100 of 115 matches
Mail list logo