One quick solution might be , which I am using but most of them may not agree
with me,
-- Delcare a string in the action which take the value enter in the text
box.
-- Add the validation in the validation.xml as a regular expression and can
add as "requiredString" , if the filed is mandatory to e
Try this,
-siddiq.
Louis Voo wrote:
>
> Hi,
>
> I've this text field in my jsp
>
> required="true"/>
>
> and this property in the resource bundle
>
> error.required = ${getText(fieldName)} is required.
> label.name = Name
>
>
> When there is validation error, it looking for user.name
Make sure your struts JAR is in the Classpath of your project.
From: swathi reddy
To: Struts Users Mailing List
Sent: Wed, February 10, 2010 6:07:38 AM
Subject: package com.opensymphony.xwork2 does not exist
Hi
when i taken struts2blank2.0.14 files in and co
Hi all,
The only part that I hate most is validation in struts 2. Rest of the things
falls in right place.
When client side validations happens and the validation messages have to be
displayed in the page that need to be determined form the action., i.e
redirect-action on INPUT.
Here is the exa
more common.
>
> Adam
>
> On 5 Mar 2010, at 21:37, Siddiq Syed wrote:
>
>>
>> Hi all,
>>
>> The only part that I hate most is validation in struts 2. Rest of
>> the things
>> falls in right place.
>>
>> When client side validat
I missed it too... Where can I find the review for it ?
Sent from my iPhone
On Dec 22, 2011, at 11:29 PM, "Reshmi" wrote:
> Dear Grobmeier,
> I also missed the webminar,Can you please send a review of it?
>
> -Original Message-
> From: Christian Grobmeier [mailto:grobme...@gmail.com]
Thanks for the detail video
Sent from my iPhone
On Dec 23, 2011, at 10:08 AM, Christian Grobmeier wrote:
> I did not write a review,
> but this is the original online:
> http://vimeo.com/34043627
>
> On Fri, Dec 23, 2011 at 3:50 PM, Siddiq Syed wrote:
>> I missed it to
Hi all,
Problem statement. :
When validation happens in struts 2 it will redirect to result type "Input" if
type="tiles" JSP will display the validation message and If result
type="redirect-action" , validation message will not get display.
In order to display validation messages , I am using
25, 2009, 12:00 AM
On Friday 24 April 2009 19:47:04 Siddiq Syed wrote:
> Hi all,
>
> Problem statement. :
>
> When validation happens in struts 2 it will redirect to result type
> "Input" if type="tiles" JSP will display the validation message and If
post a variety of forms and you want to reuse
> that action and then figure out which form to go back to?
>
> I don't know the requirements behind the pattern so its hard to say if its
> better served some other way. Is it to type less?
>
>
>
> Siddiq Syed w
p solution , there should be a direct solution
where we can speicfy in resut-type like redirect with the old request
object.
Please any Inputs are highly appreicated.
Siddiq Syed wrote:
>
> Hi ,
>
> I think chain is not going to work for this kind of pattern. Because I
> think c
Hi all,
I want to avoid the waring displayed in the consloe when passing the
attributes in the redirect action.
Below is the struts.xml where the action is configured and so is the
parameters ,stack trace of the waring and ongl exception --
setupForRevocati
2.1.X
https://issues.apache.org/struts/browse/WW-1714.
Thanks again for your quick response.
Siddiq.
satyanarayana katta wrote:
>
> supress warn in the logger package you are using for this speicific
> package.
> It should work.
>
> On Fri, May 8, 2009 at 7:56 AM,
If the validations fails or if something goes wrong , Struts 2 will forward
the response to look for input in sturts.xml file for the specified action.
Regards,
Siddiq
--- On Tue, 5/12/09, Jim Collings wrote:
From: Jim Collings
Subject: Where is result input coming from?
To: "Struts Users
Hi all,
Do anybody have an idea why this is not working.
There is validation for a numeric field which is a string in the action ,
The validation is through regular expression as show below.
Please enter a case number
[0-9]{1,}
Hi Dave,
I tried setting trim="true" , I donno why some how its not working.
I am searching for the regular expression, which ignore white spaces but no
sucess so far.
Any idea ?
Thanks
siddiq.
newton.dave wrote:
>
> Siddiq Syed wrote:
>> Do anybody have an idea w
a lot for you input.
false
[0-9]{1,}
Regards
Siddiq.
newton.dave wrote:
>
> Siddiq Syed wrote:
>> I am searching for the regular expression, which ignore white spaces but
>> no
>> sucess so fa
Hi all,
I am trying to validate the date field through the xml by using the date
validator defined.
The problem with this is we can't have leap year validation with this, nor
formate validation and need to specify the date range.
Is there any way where I can validate the date(which implici
Hi all,
I am trying to validate the date field through the xml by using the date
validator defined.
The problem with this is we can't have leap year validation with this, nor
formate validation and need to specify the date range.
Is there any way where I can validate the date(which impl
Hi all,
I have been using Glindholm's RedirectMessageInterceptor to perserve the
validations/error messages and is working absoulty fine.
But the problem is the values in the fields are not stored.
If a form has 10 fields of which 2 fields are not valid(It does not pass
validation), Intercerpt
t; The short answer is don't redirect when validation fails.
>
> For results of "input" you should not be doing a redirect or you get the
> problem you described.
>
> On Thu, Oct 29, 2009 at 11:13 AM, Siddiq Syed wrote:
>
>>
>> Hi all,
>>
>&g
f you posted your struts config and gave a more detailed
> explanation
> someone could help you with a better solution.
>
>
> On Thu, Oct 29, 2009 at 3:13 PM, Siddiq Syed wrote:
>
>>
>> Hi Greg,
>>
>> Thanks for your quick repley,!
>>
>> The r
ult.html
> [2] http://struts.apache.org/2.x/docs/action-chaining.html
>
>
>
> On Thu, Oct 29, 2009 at 4:13 PM, Siddiq Syed wrote:
>
>>
>> I donno If i can able to explain it to you, I will try my best , here is
>> the
>> secinario
>>
>>
&g
from the action success or input, even if the validation
pass chain is going to exucute.
redirect -- same as redirect-action.
There should be a result-type which uses the same old request object and can
be redirect to an action or do we need to create one !!
Thanks,
Siddiq.
Siddiq Syed wrote
The interceptor mention is nothing but
RedirectMessageInterceptor(http://glindholm.wordpress.com/category/struts-2/)
and I specified that in the strust.xml,
This interceptor is to preserve the error messages.
to work for you. As
> I
> explained earlier, doing a redirect following a validation error is almost
> always the wrong thing to do and the standard approach is to dispatch back
> to the input page.
>
>
> On Fri, Oct 30, 2009 at 1:57 PM, Siddiq Syed wrote:
>
>>
>> The i
l,
/rating/determineCaseEvaluationTypeForInput,
/rating/determineCaseEvaluationTypeForInput] - [unknown location]
Any idea where I might have went wrong ?
Thanks
Siddiq.
Greg Lindholm-2 wrote:
>
> On Fri, Oct 30, 2009 at 5:15 PM, Siddiq Syed wrote:
>
>>
>> First off all Thank
On Mon, Nov 2, 2009 at 1:40 PM, Siddiq Syed wrote:
>
> Hi Greg,
>
> Creating a variable in the action , seems not working.
>
> Here are the steps that i have done.
>
> step 1. Create a variable considTypeCode in the action , and so is getter
> ,setter.
> step 2. Create
As far as date validation are concerned , declare the date variable as string
in your view bean,
Add regular expression validation in the validation file.
(((0[13578])|(1[02]))[\/]((0[1-9])|([12]\d)|(3[01])))|(((0[469])|(11))[\/]?((0[1-9])|([12]\d)|(30)))|((0?2)[\/]((0[1-9])|(1\d)|(2[0-8]))
But I guess there is no direct validation for a date in struts 2.
If you give date validation like mention below
01/01/1990
01/01/2000
Joining date must be supplied between ${min} and
${max}
It will check for the range , not the validation , like invalid value and
leap
Does it checks for leap year ?
(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d
I guess this does not check for leap year, If the user enter the leap year
the framework passes the validation successfully. which it should not and
give you the error message.
Kawczynski, David wrot
When you have a validation file like actionname-aliase-validation.xml and
you want to carryout date validation in that as other validation , there is
no direct way to do that.
Handling DateFormat.parse() is more java specific way and can be done in any
layer of the application.
The front-end val
Is there any way where I can retrieve the result name from the prepare method
of an action.
For example, I have the below mapping in the struts.xml file.
editGuidelinesCaseEvaluation
editShortSentenceCaseEvaluation
editShortSentenceCaseEvaluation
If I passes the stri
Hi all,
Once an action method returns a string and if the string is not mapped to a
result name in struts.xml , is there any way where we can display a default
page.
For example as mention in the below struts.xml file,
editGuidelinesCaseEvaluation
editShortSente
What will be the view in this case ?
I mean there must be some jsp kinda thing , where the Response can be
displayed !!
If the framework doesn't goes to the strust.xml file , Can we define some
view in the action itself ??
I am curious , may be i am out of context for this.but !! I donno.
G
You can achive this by creating an seprate file for each method and add the
validation.
When ever the a method from the action class is invoked the corresponding
validation will get invoked.
actionname-aliasname-validationname.xml
actinname -- name of your actin class.
aliasname -- name of the
6:02 PM, Siddiq Syed wrote:
> You can achive this by creating an seprate file for each method and add the
> validation.
> When ever the a method from the action class is invoked the corresponding
> validation will get invoked.
>
> actionname-aliasname-validationname.xml
>
&
Please refer the section
Defining Validation Rules in the below mention link.
http://docs.huihoo.com/webwork/2.2.6/Validation.html
-siddiq.
Siddiq Syed wrote:
>
>
> From: gaurav nigam
> To: Struts Users Mailing List
> Sent: Sat, November 7, 2009 1:21:41 PM
> Subject: R
ve also learned that this annotation validation will not work for
client side validation. Is there any work around for this
Regards
Gaurav
On Sat, Nov 7, 2009 at 6:54 PM, Siddiq Syed wrote:
>
> Please refer the section
>
> Defining Validation Rules in the below mention link.
&g
39 matches
Mail list logo