html:form...
..
...
td
html:text name=Form1 property=name size=40
errorStyleClass=errormessage/
/td
/html:form
Css is working except for this.
When I hit the submit button it just forwards to the different jsp. it
doesn't validate the field which I set to be required. I did make it
I am new to web development and struts too.
I am trying to create a jsp which has
a text field for display only for Name
and a Table below it with couple of rows and columns in it.
how many form beans do I have to create?
Do I have to create one for the jsp and one for the table alone?
do
Library
Good Luck,
Martin-
- Original Message - From: Laurie Harper [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Thursday, October 27, 2005 3:51 PM
Subject: Re: how many Form beans
fea jabi wrote:
I am new to web development and struts too.
I am trying to create a jsp which has
user@struts.apache.org
To: user@struts.apache.org
Subject: Re: how many Form beans
Date: Thu, 27 Oct 2005 22:33:06 -0400
fea jabi wrote:
thankyou for your responses.
for my Jsp I created a formbean and for Form1
with attributes
name
row[]
table row in the jsp created another formbean
regards
mc
On 28 Oct 2005 at 9:12, fea jabi wrote:
According to what you suggested
I created the below in the action
String row1[][] = {{type1,currency1,amount1},
{type2,currency2,amount2},
{type3,currency3,amount3
that helps makes things clearer.
Kind regards
mc
On 28 Oct 2005 at 9:12, fea jabi wrote:
According to what you suggested
I created the below in the action
String row1[][] = {{type1,currency1,amount1},
{type2,currency2,amount2
In an application how can we specify the fixed size of the JSP page.
In the JSP page I created used a scrollbar in which there is a table.
To create a scrollbar, I had to specify the height, width for the div in
css.
This table is stable size but there is another table above this which has
In my jsp there is a table with some contents. there is a delete and restore
buttons at bottom.
using LookupDispatchAction I am checking which action to perform and doing
so. But after performing the Action it gets forwarded to the same JSP.
according to what I had written i.e from
can we sort table columns when clicked on the column header using struts? I
mean does struts provide any tag to do so?
is there an example on how this can be done?
Thanks.
_
Dont just search. Find. Check out the new MSN Search!
Subject: Re: sorting of table columns
Date: Fri, 4 Nov 2005 07:57:14 -0800
On 11/4/05, fea jabi [EMAIL PROTECTED] wrote:
can we sort table columns when clicked on the column header using
struts? I
mean does struts provide any tag to do so?
is there an example on how this can be done?
http
how do I use that with struts table then?
From: Dave Newton [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: [OT] [DISPLAYTAG] Re: sorting of table columns
Date: Fri, 04 Nov 2005 11:37:46 -0500
fea jabi
] [DISPLAYTAG] Re: sorting of table columns
Date: Fri, 04 Nov 2005 11:47:01 -0500
fea jabi wrote:
how do I use that with struts table then?
What's struts table? Do you mean the layout taglib?
Dave Spending too much time on Lisp mailing lists this week Newton
Which one should be installed? from
http://sourceforge.net/project/showfiles.php?group_id=73068
I see so many files under
1.0 [show only this release] 2005-01-01 09:28
Download displaytag-1.0-src.tar.gz
Download displaytag-1.0-src.zip
Download displaytag-1.0.tar.gz
Download displaytag-1.0.zip
@struts.apache.org
To: user user@struts.apache.org
Subject: Re:installing Display tags
Date: Mon, 7 Nov 2005 15:59:22 +0100
Use the zip or the tar.gz it's the same content
you just need another programm to extract it
regards Starki
-- Initial Header ---
From : fea jabi [EMAIL
In the JSP I have the below. which is working fine using struts tags.
Now would like to use displaytags as it has auto sorting of columns. How can
I convert the below to use displaytag? as the form that's used in the jsp
is different from the one that's used to display the data in the table.
thank you all for helping me. I've got this working. This tag is great.
I've one question though.
I used a headerClass. in which I gave the color attribute to be white. I
thought the text of header will be white. But it is not. It was displaying
in white before I used the displaytag.
Is
for sorting the data in the list in the auto-sorting there is a statement
If you want to allow the user to sort the data as it is coming back, then
you need to just do two things, make sure that the data returned from your
property implements the Comparable interface (if it doesn't natively -
I am having a column which is displaying Dates in the below format.
Mon Oct 10 00:00:00 EDT 2005
But want the format to be in MM/dd/yy format.
How can this be done?
Thanks.
_
Express yourself instantly with MSN Messenger!
[EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: [OT] Re: Column Decorator for Date in display tag.
Date: Thu, 10 Nov 2005 10:48:37 -0500
fea jabi wrote:
I am having a column which is displaying Dates
Is it possible to initialize dynaform?
and how can this be done?
Thanks.
_
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
)
dynaClass.newInstance();
}
catch (Exception e) {
logger.error(e);
}
Regards,
Richard
--- fea jabi [EMAIL PROTECTED] wrote:
Is it possible to initialize dynaform?
and how can this be done?
Thanks.
_
Express yourself
{
myForm = (DynaActionForm)
dynaClass.newInstance();
}
catch (Exception e) {
logger.error(e);
}
Regards,
Richard
--- fea jabi [EMAIL PROTECTED] wrote:
Is it possible to initialize dynaform?
and how can this be done?
Thanks
I am trying to use the DynaActionForm.
form-bean
name=CustForm
type=org.apache.struts.action.DynaActionForm dynamic=true
form-property name=custName type=java.lang.String/
form-property name=typeName type=java.lang.String/
form-property name=typeNameDesc
you have put html:form action=PostCust.do method
=post I think the correct would be
html:form action=PrepareCustAction.do... ...
Not sure if that is the problem, but...
fea jabi
[EMAIL PROTECTED]To:
user@struts.apache.org
-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: No getter method servlet Exception. using DynaActionForm
Date: Wed, 16 Nov 2005 10:48:45 -0500
fea jabi wrote:
DynaActionForm setupForm = (DynaActionForm) form
]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: No getter method servlet Exception. using DynaActionForm
Date: Wed, 16 Nov 2005 11:06:56 -0500
fea jabi wrote:
When I debug after
DynaActionForm setupForm = (DynaActionForm
,
HttpServletResponse response)
throws ServletException, IOException{
DynaActionForm setupForm = (DynaActionForm) form;
//getSetupInfo(setupForm);
return mapping.findForward(success);
}
L.
fea jabi wrote:
Thanks for hepling me
-0500
What you have below looks right to me; the action mapping has 'name' set to
your action form, so you should be getting an instance of it in the action.
Double check you haven't gotten your config out of sync along the way.
L.
fea jabi wrote:
thanks for your response. Understood better now
]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: Re: No getter method servlet Exception. using DynaActionForm
Date: Thu, 17 Nov 2005 14:44:07 -0500
fea jabi wrote:
By changing the form property boolean - Boolean
form-property name=confirm type
In my JSP
have a checkbox. When it is checked by user have to make sure 2 of the
entries are enteried.
i.e
chkBox1 -- checkbox --- checked
txtfield1 --- Should have entered value.
txtfield2 Should have entered value.
Also, have a 2 radio buttons. When
Mailing List user@struts.apache.org
Subject: Re: struts javascript question
Date: Fri, 18 Nov 2005 10:57:36 -0500
Use Validate method in the Action Form or write your own Validator.
On 11/18/05, fea jabi [EMAIL PROTECTED] wrote:
In my JSP
have a checkbox. When it is checked by user have to make
question
Date: Fri, 18 Nov 2005 11:05:29 -0500
Look for examples in the net or you can use validate method in the form it
is easier.
On 11/18/05, fea jabi [EMAIL PROTECTED] wrote:
write your own Validator
do you mean in Validator.xml right?
can I right a javascript in there that does this?
where
Have a jsp with a checkbox.
If this is checked have to make sure 2 other textfields are not empty.
validator name=confirm
classname=org.apache.struts.validator.FieldChecks
method=validateConfirm
methodParams=java.lang.Object,
org.apache.commons.validator.ValidatorAction,
Have a jsp with a checkbox.
If this is checked have to make sure 2 other textfields are not empty.
i.e if order checkboxs checked want to make sure that the custName and the
custNumber are entered.
Is the below right to do the same?
formset
form name=SetupForm
field
it to be valid
when
the checkbox is not set
Try the following...
var
var-nametest/var-name
var-value((order != 'true') or (*this* != null))/var-value
/var
Niall
- Original Message -
From: fea jabi [EMAIL PROTECTED]
Sent: Monday, November 21, 2005 4:28 PM
Have a jsp with a checkbox
in the struts-config.xml?
Another thing I noticed - the snip of your validation.xml shows two
default formsets?
Niall
- Original Message -
From: fea jabi [EMAIL PROTECTED]
Sent: Monday, November 21, 2005 7:26 PM
the form is not getting validates I think
action
path
One of the requirement in my application is that I should not use the client
side javascript as the browsers the user use might not have the javascript
enabled in their browsers.
In my jsp there are 2 radio buttons. one of which is enable by default. When
the user clicks on either of those
Subject: Re: javascript in validator
Date: Tue, 22 Nov 2005 23:43:57 -0500
fea jabi wrote:
One of the requirement in my application is that I should not use the
client side javascript as the browsers the user use might not have the
javascript enabled in their browsers.
In my jsp there are 2 radio
The below DynaActionForm works fine. I tried to change all the
java.lang.Boolean to boolean.
form-property name=confirm type=java.lang.Boolean initial=true/
to
form-property name=confirm type=boolean initial=true/
form-bean
name=SetupForm
Have 2 columns is my table.
1.
2. Hrs
1. column has
Loans
Deposits
2. column has values that has to ome from the action class.
Hrs
Loans
Deposits
What is the better way of doing this using struts?
only the 2nd column has to be
Have a table as below -- will be using displaytag for this.
Hrs
Loans 3
deposit5
For this I created a DynaValidatorForm with
loans, deposits as it's form properties.
form-bean name=HoursForm
type=org.apache.struts.validator.DynaValidatorForm dynamic=true
can someone help me with this please?
Thanks.
From: fea jabi [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: design question --- struts displaytag
Date: Wed, 30 Nov 2005 16:02:26 -0500
Have a table as below -- will be using
thankyou for your responses.
From: Dave Newton [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: design question --- struts displaytag
Date: Thu, 01 Dec 2005 09:44:38 -0500
fea jabi wrote:
can
using struts 1.2.7
Used c tags in my jsp and also gave this
%@ taglib uri=http://java.sun.com/jstl/core; prefix=c %
in web.xml
taglib
taglib-urihttp://java.sun.com/jstl/core/taglib-uri
taglib-location/WEB-INF/lib/c.tld/taglib-location
/taglib
taglib
does struts 1.2.7 have JSTL tag lib included in it? or so I have to download
the JSTL seperately?
Thanks.
_
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
: struts and JSTL
Date: Sun, 4 Dec 2005 17:41:17 -0700
On 12/2/05, fea jabi [EMAIL PROTECTED] wrote:
using struts 1.2.7
Used c tags in my jsp and also gave this
%@ taglib uri=http://java.sun.com/jstl/core; prefix=c %
...
in web.xml
taglib
...
thinking one of the jars in it will have the JSTL
In my JSP, have to use the defined variable in javascript. How can I use it?
The below code is returning a null obj for totalObj in the javascript.
.
script
.
var totalObj = document.getElementById(total);
totalObj=Number(obj1) + Number(obj2);
I have a jsp which is FORM1
using DynaValidatorForm for this.
there is a table in this which has to display they the contents other form?
can we do this using DynaValidatorForm? i.e one of it's attribute being
another form?
Also, when exactly do we have to use the nested tags?
Thanks.
: DynaValidatorForm and nested tags.
Date: Mon, 19 Dec 2005 14:47:35 -0500
On 12/19/05, fea jabi [EMAIL PROTECTED] wrote:
Also, when exactly do we have to use the nested tags?
You don't have to use them, but they make things easier/cleaner when you
need to display fields that are updatable
PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: DynaValidatorForm and nested tags.
Date: Mon, 19 Dec 2005 20:25:54 -0500
On 12/19/05, fea jabi [EMAIL PROTECTED] wrote:
Thanks. I sure can see the difference.
can
[EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: DynaValidatorForm and nested tags.
Date: Mon, 19 Dec 2005 20:25:54 -0500
On 12/19/05, fea jabi [EMAIL PROTECTED] wrote:
Thanks. I sure can see
Trying to use html:multibox with LabelValueBean.
Getting error doing the same.
form-bean
form-property name=Items type=java.util.ArrayList[]/
form-property name=SelectedItems type=java.util.ArrayList[]/
/form-bean
In prepare Action
...
...
with LabelValueBean
Date: Wed, 21 Dec 2005 16:55:06 -0500
fea jabi wrote:
Trying to use html:multibox with LabelValueBean.
Getting error doing the same.
form-bean
form-property name=Items type=java.util.ArrayList[]/
form-property name=SelectedItems
type=java.util.ArrayList[]/
/form-bean
I am using html:multibox in my jsp.
I am not sure when the reset method is needed. Not sure if I have to use it.
I have declared my formbeans in config file itself. If I have to use how to
use that?
I am having the below code now to display a group of checkboxes in a column
of a table.
In struts config file I have it as
form-bean name=Form1 type=.DynaValidatorForm
...
form-property name=Items type=java.util.ArrayList/
form-property name=selectedItems type=java.lang.String[]/
/form-bean
action
path=/PrepareHrsAction
When exactly this method has to be used and when does this get called?
Why do the checkboxes have to be reset?
Prepopulating the formbean is done in Action class. hence, it's not clear to
me the exact use of using the reset method.
Thanks.
In struts-config
form-bean name=Form1 type=org.apache.struts.action.DynaActionForm
dynamic=true
form-property name=property1 type=java.lang.Integer/
form-property name=property2 type=java.lang.Integer/
form-property name=property3 type=java.lang.String/
/form-bean
List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: DynaActionform initialize
Date: Wed, 04 Jan 2006 15:44:05 -0500
fea jabi wrote the following on 1/4/2006 3:33 PM:
In the Action of PrepareForm2
Would like to create an ArrayList of Form1.
When you say
Have a field in my jsp. Have to make sure the entered value in the field is
a positive integer.
Using validation.xml for validation.
How to this?
Thanks.
_
Express yourself instantly with MSN Messenger! Download today - it's
the property on the ActionForm.
Basically, the reset method is called before the request reaches the
Action.
Hope that answers your questions.
On 1/3/06, fea jabi [EMAIL PROTECTED] wrote:
When exactly this method has to be used and when does this get called?
Why do the checkboxes have
Created a jsp, whose struts config
action
path=/PrepareFacilityAction
type=PrepareFacilityAction
name=FacilityForm
scope=session
validate=false
input=/pages/Facility.jsp
forward name=success path=/pages/Facility.jsp
redirect=false/
/action
Initially I tried to do the same i.e placing the List1 in the form. But for
some reason the options were not displaying.
I am using DynaValidatorForm and form-bean is defined in the struts config.
In my prepare action I have
LabelValueBean lblValueBean1 = new LabelValueBean(Visa, V);
button
Date: Tue, 17 Jan 2006 16:08:01 -0500
fea jabi wrote the following on 1/17/2006 3:40 PM:
The JSP displayes fine with all the values in it. This JSP has required
fields in it. Used validator.xml to define al lthe required fields.
There is a Save Button which is the submit button in the JSP
When creating form beans does it have to have only, which the user can enter
information to?
In my JSP, there are fields
order date: present order date input field (user can update the
order date here)
Like this the JSP has about 20 fields.
Does the form bean should contain only
would like to display the value of property amount as $10,00,000. tried
using the below.
But getting an error/ it doesn't get displayed.
Is this the way to do this. Or is there an easier way to do the same?
td
bean:define id=amthtml:text name=Form1 property=amount
=${amount} type=currency/
/td
-ed
On 1/23/06, fea jabi [EMAIL PROTECTED] wrote:
would like to display the value of property amount as $10,00,000. tried
using the below.
But getting an error/ it doesn't get displayed.
Is this the way to do this. Or is there an easier way to do the same?
td
Sorry, guys for posting display tag issue here. Had to do this as I was not
getting any response from it's user forum today atleast.
Have an object Account. Which is having attributes accountNum,
accountTypeetc.
In PrepareSummaryAction
ArrayList accounts = new ArrayList();
Account
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: displaytag
Date: Wed, 25 Jan 2006 14:41:26 -0500
fea jabi [EMAIL PROTECTED] wrote on 01/25/2006 02:36:27 PM:
Sorry, guys for posting display tag issue here. Had to do this as I was
not
getting any response from it's user forum today
thanks. that worked.
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: displaytag
Date: Wed, 25 Jan 2006 14:51:31 -0500
fea jabi [EMAIL PROTECTED] wrote on 01/25/2006 02:47:03 PM:
yes, I do
Have an object Account which has couple of attributes in it.
using displaytag to show all the accounts.
display:table name=accountscoll requestURI=PrepareSummaryAction.do
display:column property=accountNumber /
display:column property=accountType
display:column
For all the tables in the JSP, I am using displaytag.
For each row in the table I created an Object.
I am creating instances of this Object and making a List which is getting
displayed in the JSP.
I was told that instead of creating Object and creating instances, one can
directly use the
can anyone help me understand this? Thanks.
From: fea jabi [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: design question
Date: Fri, 27 Jan 2006 11:40:20 -0500
For all the tables in the JSP, I am using displaytag.
For each
Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: [OT] Re: design question
Date: Mon, 30 Jan 2006 11:42:10 -0500
fea jabi wrote:
can anyone help me understand this?
Don't know.
I am creating instances of this Object and making a List which
Date: Mon, 30 Jan 2006 15:56:31 -0500
fea jabi wrote:
But as I mentioned earliar I am creating an object which I am planning
to instanciate for each row of data. When I told about this to my team
they were concerned about the objects being in memory and advised to
use the resultset directly
solved this just by declaring the in the object and in jsp by declaring the
id and using the id in the html:select.
From: fea jabi [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: html:select question
Date: Thu, 02 Feb 2006 09
Have an a link in my JSP. When user presses the link I would like to delete
that row in the LookupDispatchAction.
I tried to do this using the below code.
But getting error
javax.servlet.ServletException: Request[/DispatchCust] does not contain
handler parameter named 'method'. This may be
can anyone helpme with this please?
Thanks.
From: fea jabi [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: Re: href
Date: Fri, 03 Feb 2006 14:07:24 -0500
thanks for responding
now gave
a href=DispatchCust.do?method=deleterow
=method/
/a
Thanks.
From: fea jabi [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: Re: href
Date: Fri, 03 Feb 2006 14:07:24 -0500
thanks for responding
now gave
a href=DispatchCust.do?method=deleterow=${row}
bean:message
I am having the below code now in my dispatch Action in one of the methods
in it.
DynaValidatorForm frm = (DynaValidatorForm)form;
ActionErrors errors = frm.validate( mapping, request );
if ( errors != null !errors.isEmpty() ) {
saveErrors(request, errors);
to ActionMessages
Date: Mon, 6 Feb 2006 15:44:08 -0500
fea jabi [EMAIL PROTECTED] wrote on 02/06/2006 03:39:55 PM:
I am having the below code now in my dispatch Action in one of the
methods
in it.
DynaValidatorForm frm = (DynaValidatorForm)form;
ActionErrors errors = frm.validate( mapping, request
I have a table. Have editors in it. and when the user doesn't enter I am
displaying the editors with different border color. hence would like to
display only one message of below above the table.
In message resources I have defined a key
lbl.errormsg=Enter all required fields.
validation.xml
can someone help me with this please? Thanks.
From: fea jabi [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: show single html:error message for multiple fields validation
Date: Tue, 07 Feb 2006 11:07:03 -0500
I have a table
-struts-html.html#htm
l:messages
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 08, 2006 10:14 AM
To: user@struts.apache.org
Subject: RE: show single html:error message for multiple
fields validation
can someone help me with this please? Thanks
I my JSP I am having a button Add, which adds a row to the table when
clicked and this code is in DispatchAction. i.e adding one more object to my
table List.
Everything works fine.
When I click on the Refresh on the toolbar of the browser, I am seeing that
it tries to execute this Add
Feb 2006 18:26:47 +0200
Hello Fea,
fea jabi wrote:
When I click on the Refresh on the toolbar of the browser, I am seeing
that it tries to execute this Add method, and adding one more row.
why is that? How to prevent the same?
In general it is a good practice to redirect instead
In my JSP, there are 4 buttons add, delete, save, return which returns to
previous JSP.
I am trying to use Token, to handle double submit.
My post action is a LookupDispatchAction, and have implemented code for add,
delete, save, return.
I am trying to use isTokenValid(request,true)
in all
I solved it just by setting transaction attribute to true in html:link. Once
I did that everything woked fine like magic.
This forum has been real helpful to me. thankyou all for helping.
From: fea jabi [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user
I have a Return button in my JSP. When user clicks on it would like to
display a dialog with messae
Do you want save the changes? with Yes, No buttons.
I am using the property attribute here for button. Hence it will execute the
Post Action. I am not really sure how to display the
in my jsp's have to put some common text at upper right corner of every jsp.
how can be done? can this be done using tiles? is there an example I can
look at to do this?
Thanks.
_
Express yourself instantly with MSN Messenger!
usage patterns.
Thanks,
Greg
On Mar 1, 2006, at 8:20 AM, fea jabi wrote:
in my jsp's have to put some common text at upper right corner of every
jsp. how can be done? can this be done using tiles? is there an example I
can look at to do this?
Thanks
html:errors property=acctNumber
is returning an UL
how to determine the length of the list? would like to check if it has more
than one error for this property?
Thanks.
_
Dont just search. Find. Check out the new MSN Search!
wish to check for the
existence of errors on a JSP page.
Or this link provides some help info regarding the errors object.
http://husted.com/struts/tips/017.html
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Friday, March 10, 2006 9:48 AM
To: user@struts.apache.org
Using struts 1.2.7
which one to use? html:messages or html:errors??
I am using html:errors now and displaying errors for each property i.e using
html:errors property=custName/
Just wondering why html:messages is available? when this tag can be used?
Thanks.
This might not be Struts related issue. More of CSS stuff I guess.
I am using this errorStyleClass and works great for text fields, where I am
highlighting the border with different color when there is an error.
If it is a dropdown when there is an error(when the user did not select any)
field property=amt depends=validwhen
msg name=validwhen key=lbl.notvalidnumber/
var
var-nametest/var-name
var-value( ((*this* == ) or (*this* != null)) and
(*this* = 0) )/var-value
/var
/field
want the value to be greater than 0, but can be empty or
, fea jabi said:
This might not be Struts related issue. More of CSS stuff I guess.
I am using this errorStyleClass and works great for text fields, where I
am
highlighting the border with different color when there is an error.
If it is a dropdown when there is an error(when the user did
in strutsconfig.xml the form bean attribute has
form-property name=newBalance type=java.lang.String/
Prepare jsp action
Form1.set(newBalance, 10);
In jsp I have
fmt:formatNumber value=${Form1.map.newBalance} type=currency
currencySymbol= var=newBal/
html:text name=Form1
can someone help me with this? Thanks.
From: fea jabi [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: validating user entered values
Date: Fri, 17 Mar 2006 15:15:43 -0500
in strutsconfig.xml the form bean attribute has
form
In struts config
form-bean name=Form1 type=org.apache.struts.validator.DynaValidatorForm
dynamic=true
form-property name=netRevenue type=java.lang.Double/
.
..
..
/form-bean
In prepare action I am not doing
:00 -0500
fea jabi wrote:
In struts config
form-bean name=Form1
type=org.apache.struts.validator.DynaValidatorForm dynamic=true
form-property name=netRevenue type=java.lang.Double/
..
...
...
/form-bean
In prepare
1 - 100 of 252 matches
Mail list logo