Hi,
I am setting a collection of ValueObjects in request and populating the page with the
values from collection. I want to set the value of the check box with a particular
value from the value object. My code is as follows.
logic:iterate id=result name=result
trtd
PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: Struts check box validation question
Date: Tue, 10 Feb 2004 14:46:46 -0600
Ben,
I am using a checkbox.
What I am planning to do is allow the user to check/select items/checkboxes
Had a quick question on power of struts form validation.Sample code to validate
checkboxes checked on the jsp, which will be sent as an array to the Struts Action
Form. Tips appreciate.Thanks in advance!
Thanks!
-
Do you Yahoo!?
Yahoo! Finance: Get your
Had a quick question on power of struts form validation.Sample code to validate
checkboxes checked on the jsp, which will be sent as an array to the Struts Action
Form. Tips appreciate.Thanks in advance!
Best Regards,
Samy
-
PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Struts check box validation question
Date: Tue, 10 Feb 2004 12:57:23 -0600
Had a quick question on power of struts form validation.Sample code to
validate checkboxes checked on the jsp, which will be sent
]
Subject: RE: Struts check box validation question
Here's code I got from Kris Schneider. It validates that at least one of
the check boxes was checked, but you should be able to change it fairly
easily to do whatever you want. If you're wondering how this code fits in,
check out:
http
-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: Struts check box validation question
Date: Tue, 10 Feb 2004 14:30:34 -0600
Thanks Ben, I am looking at the code closer now, but do we have to pass in
the array of selections to the ActionForm
:37 PM
To: [EMAIL PROTECTED]
Subject: RE: Struts check box validation question
not too sure what you mean by your question, but I'd say no, you don't need
to pass in the array. You're using a String[] as the form property, right?
Are you using multibox?
http://jakarta.apache.org/struts
thank's for your answer Mark, it's work fine for me
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 4:57 PM
Subject: Re: muli box\check box checked by default
You need to use the value
You need to use the value attribute to whatever value you wish to match
to tick the box.
String foo = bar;
theForm.setFoo(foo);
html:checkbox property=foo value=bar /
Also you use the eval method in javascript, which I don't believe
anyone ever needs. It was in vogue a few years back when
hi all
how can i make checkbox or multibox checked by default when page is loaded...
this is my jsp code but this is not work(I use java script )
%@ taglib uri=/WEB-INF/struts-html-el.tld prefix=html-el %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib
Hi
I have to display rows based on an SQL query. i have the value objects
returned in a collection. while iterating thru the collection i have to
display a checkbox at the startingof the row with a value that is one of
the properties of the Value object. i wrote something like
logic:iterate
Hi
I have to display rows based on an SQL query. i have the value objects
returned in a collection. while iterating thru the collection i have to
display a checkbox at the startingof the row with a value that is one of
the properties of the Value object. i wrote something like
logic:iterate
Does any one have any ideas or have written code to validate that at least one item is
selected on the check box? Would be interested in the javascript code for the same.
On the server side, I can do that validation on the action form, though doing it
through struts validator will be the ideal
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 12:49 PM
To: Struts Users Mailing List
Subject: RE: validator for check box
Does any one have any ideas or have written code to validate that at
least one item is selected on the check box? Would be interested in the
javascript code
Been using an older version of validator-rules, which I had customized and so the
multi-check box wasn't working.
Required for a single-checkbox is not need for an application, since you are
compelling the user to have that one choice selected. If you have only one check box
and that too
implementation and make them required regardless. I
just ran into this situation.
Saul
-Original Message-
From: Jayaraman Dorai [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 2:00 PM
To: Struts Users Mailing List
Subject: RE: validator for check box
Been using an older
Yes, I agree, you are right.
-Original Message-
From: Saul Q Yuan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 2:14 PM
To: 'Struts Users Mailing List'
Subject: RE: validator for check box
This situation happens when the checkboxes and/or radio buttons
Would like to validate that the user selects at least one option in the check box
which was created using html-multibox. The struts-validator is not validating the
required for a check box. Is there any code for validating the check box or am I
missing something?
Thanks
Jayaraman
Hi all,
I am using JSPs with checkboxes(HTML:CHECKBOX property=) in
all the screen. As we know that an on (or value of checkbox) is sent
as request whenever I check the checkbox. Then what is sent when I
uncheck the checkbox??
What I observed that if I have stored the form in session
List
Subject: Check box problem.
Hi all,
I am using JSPs with checkboxes(HTML:CHECKBOX property=) in
all the screen. As we know that an on (or value of checkbox) is sent
as request whenever I check the checkbox. Then what is sent when I
uncheck the checkbox??
What I observed that if I
shall be found all that
which thou doust require.
-Original Message-
From: Ravi Garg [mailto:[EMAIL PROTECTED]
Sent: Monday, 14 July 2003 18:09
To: Struts Users Mailing List
Subject: Check box problem.
Hi all,
I am using JSPs with checkboxes() in
all the screen. As we know
commands. One of
the column is a check-box column.
I have defined the following DynaVaildatorForm:
form-bean name=myForm dynamic=true
type=org.apache.struts.validator.DynaValidatorForm
form-property name=items type=java.util.ArrayList /
form-property
Hi,
I am using DynaValidatorForm, and i want to validate
number of check boxes selected by the user,
for example to display details, user must select
atleast one checkbox on the the main page before
clicking display details button,
or user must select only one check box for specific
operation
-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: 17 September 2002 16:31
To: Struts Users Mailing List
Subject: RE: Nested tagscomplete example for Table (with check-box,
hyperl ink) Help, help help
On Tue, 2002-09-17 at 20:53, Lister, Tom (ANTS) wrote:
see
http
I am searching JSP example with Struts tags (probably nested tags)
to
display a table with multiple rows and columns.
I have to follow a minimum well-defined format:
- one column has to offer hyperlink;
- one column is composed of check-box
(with check-box,
hyperlink) Help, help help
Importance: High
I am searching JSP example with Struts tags (probably nested tags)
to
display a table with multiple rows and columns.
I have to follow a minimum well-defined format:
- one column has to offer hyperlink
Sandra [mailto:[EMAIL PROTECTED]]
Sent: 17 September 2002 11:43
To: '[EMAIL PROTECTED]'
Subject: Nested tagscomplete example for Table (with check-box,
hyperlink) Help, help help
Importance: High
I am searching JSP example with Struts tags (probably nested tags)
to
display a table
the upgrade though. :)
Arron.
:-)
Tom Lister
* 020 7612 3030
* [EMAIL PROTECTED]
-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: 17 September 2002 11:43
To: '[EMAIL PROTECTED]'
Subject: Nested tagscomplete example for Table (with check-box,
hyperlink
In the Action Form reset method you need to set the value of checkbox to
null;
From: sanjeev_dutt [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Check Box
Date: Mon, 6 May 2002 12:17:59 +0530
Hi All,
I have
Hi All,
I have a check box on my JSP page which is a Search page.
On the results page, there is a button New Search which is supposed to throw back
the Search Page again.
In the action class involved with New Search, I am resetting the formbean associated
with my Search Page.
When I come back
Subject: Re: Check Box
From: Vic Cekvenich [EMAIL PROTECTED]
===
This was answered. Please search first before posting.
sanjeev_dutt wrote:
Hi All,
I have a check box on my JSP page which is a Search page.
On the results page, there is a button New Search which is supposed to throw back
In our application, we are showing a list of records
using nested tag. In front of each record we have a
select/check box mapped to a property in a bean.
We wish to provide a functionality to users by placing
a checkbox at the top row (this is not mapped to any
property in bean) and on click
Hi Sanjay,
Let me give an example to help you out here. Here I am assuming that the
checkboxes (including the master checkbox) are present in a table that has
got an id 'checkTable'. When I say 'master' check box I mean the one that
will help you to trigger the event for selecting/de-selecting
'checkTable'. When I say 'master' check
box I mean the one that
will help you to trigger the event for
selecting/de-selecting the other
child checkboxes.
In the form you can have something like this
html:checkbox property=selectAll
onclick=checkAll()/
for the master checkbox.
And the javascript
--- Michael Skariah [EMAIL PROTECTED]
wrote:
Hi Sanjay,
Let me give an example to help you out here. Here
I
am assuming that the
checkboxes (including the master checkbox) are
present in a table that has
got an id 'checkTable'. When I say 'master' check
box I mean the one
me give an example to help you out here. Here
I
am assuming that the
checkboxes (including the master checkbox) are
present in a table that has
got an id 'checkTable'. When I say 'master' check
box I mean the one that
will help you to trigger the event for
selecting/de-selecting the other
child
It's hard to say without seeing your code. They should automatically
select the current value.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/
yogesh borse wrote:
Hi All,
I'm populating a
When you call a page for the first time and you want some values in
checkboxes or radiobuttons preselected,
just initialise the form bean with the values you want to preselect.
Jens
Ted Husted wrote:
It's hard to say without seeing your code. They should automatically
select the current
Hi All,
I'm populating a FormBean from action class so that I can open the
form(jsp)in edit mode with all values for updating purpose but the
problem is, I'm having checkbox or radio button, It's not showing me
selected radio or checked chech box if it is checked or selected before.
Can
Hi,
I have a dynamically created jsp file which has
multiple dynamically created check boxs. How do i write the form bean for this,
and how to retrive the values in action class
rajiv
iam working on struts framework ..
i have created actionservlet,actionbean and action form.
now i want to display a list of items in my jsp as check boxes ..can anyone
please tell me how to do it..
scenario is like this..
i have to display items which is user going to select .
help is highly
42 matches
Mail list logo