uestion in a new fresh thread.
>
> Best regards
> Fredrik
>
>
>
>> From: fredan...@hotmail.com
>> To: user@struts.apache.org
>> Subject: RE: Why do I get this XHTML validation errors? (second attempt)
>> Date: Sun,
gt; From: fredan...@hotmail.com
> To: user@struts.apache.org
> Subject: RE: Why do I get this XHTML validation errors? (second attempt)
> Date: Sun, 9 Mar 2014 20:56:20 +
>
> Hello again guys!
>
> I might need to bother you about this presumptive bug also.
>
> I got struts
apache.org
> Date: Fri, 7 Mar 2014 22:04:13 +0100
> Subject: Re: Why do I get this XHTML validation errors? (second attempt)
> To: user@struts.apache.org
>
> Yes, that would be the best solution.
>
> 2014-03-07 22:02 GMT+01:00 Paul Benedict :
>> We need a JIRA tick
idates fine!
>> >
>> > Best regards
>> > Fredrik
>> >
>> >
>> >
>> >
>> >> From: thechrispr...@gmail.com
>> >> Date: Thu, 6 Mar 2014 12:45:00 -0800
>> >&g
rameters.templateDir}/simple/hidden.ftl"
> />
> >
> >
> >
> > Now it validates fine!
> >
> > Best regards
> > Fredrik
> >
> >
> >
> >
> >> From: thechrispr...@gmail.c
---
>> From: thechrispr...@gmail.com
>> Date: Thu, 6 Mar 2014 12:45:00 -0800
>> Subject: Re: Re: Why do I get this XHTML validation errors? (second attempt)
>> To: user@struts.apache.org
>>
>> To elaborate on Dave's point, try:
>>
>&g
t; />
Now it validates fine!
Best regards
Fredrik
> From: thechrispr...@gmail.com
> Date: Thu, 6 Mar 2014 12:45:00 -0800
> Subject: Re: Re: Why do I get this XHTML validation errors? (second attempt)
> To: user@struts.apache.org
next tuesday.
Best regards
Fredrik
--- Originalmeddelande ---
Från: "Chris Pratt"
Skickat: 6 mars 2014 21:45
Till: "Struts Users Mailing List"
Ämne: Re: Re: Why do I get this XHTML validation errors? (second attempt)
To elaborate on Dave's point, try:
// both hid
To elaborate on Dave's point, try:
// both hidden fields
(*Chris*)
On Thu, Mar 6, 2014 at 12:26 PM, Dave Newton wrote:
> On Thu, Mar 6, 2014 at 3:01 PM, Fredrik Andersson >wrote:
>
> > I have tride to put the hidden attributet att:
> > 1 first code line after the form-start-tag
> >
On Thu, Mar 6, 2014 at 3:01 PM, Fredrik Andersson wrote:
> I have tride to put the hidden attributet att:
> 1 first code line after the form-start-tag
> 2 before the submit-tag
> 3 after the submit-tag, before form-end-tag.
> None of the attempt validates.
> So If you guys got any idea how to solv
"Dave Newton"
> Skickat: 6 mars 2014 17:57
> Till: "Struts Users Mailing List"
> Ämne: Re: Why do I get this XHTML validation errors? (second attempt)
>
> I think the issue with the hidden elements is that they're not rendering in
> a table row, and I do
If you guys got any idea how to solve this mystery plast let me know.
Best regards
Fredrik
--- Originalmeddelande ---
Från: "Dave Newton"
Skickat: 6 mars 2014 17:57
Till: "Struts Users Mailing List"
Ämne: Re: Why do I get this XHTML validation errors? (second attempt)
I
I think the issue with the hidden elements is that they're not rendering in
a table row, and I don't think you're supposed to have elements in-between
(or before/after) a table's rows.
On Thu, Mar 6, 2014 at 11:48 AM, Chris Pratt wrote:
> Did you try moving the elements to the top of the form,
Please note the "wrap" attribute on is new to (X)HTML5. So it
definitely won't validate version <= 4. Chris is right, you should remove
it unless you want to validate at a higher HTML version.
On Thu, Mar 6, 2014 at 10:48 AM, Chris Pratt wrote:
> Did you try moving the elements to the top of t
Did you try moving the elements to the top of the form, or
removing the wrap="hard" from your ?
(*Chris*)
On Thu, Mar 6, 2014 at 5:13 AM, Fredrik Andersson wrote:
> Hello guys!
>
> I trying to produce a app that renders in XHTML.
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>
You can always wrap the hidden tags in your own table row/etc.
That's probably something that could be corrected in the "xhtml" theme.
On Thu, Mar 6, 2014 at 8:13 AM, Fredrik Andersson wrote:
> Hello guys!
>
> I trying to produce a app that renders in XHTML.
> http://www.w3.org/TR/xhtml1/DTD/x
Hello guys!
I trying to produce a app that renders in XHTML.
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>
How ever I got a form looking like this:
This gets rendered like:
25
26
27
28 Email
address:
29
30
31
33
34
35
36
37 Subject:
are right!I guess this is beacause I use online outlook!I will try
> to post it again, written in curier new in textpad or something first!Sorry
> again!
>
> > From: lukaszlen...@apache.org
> > Date: Thu, 6 Mar 2014 14:02:56 +0100
> > Subject: Re: Why do I get this XHTML v
Yes you are right!I guess this is beacause I use online outlook!I will try to
post it again, written in curier new in textpad or something first!Sorry again!
> From: lukaszlen...@apache.org
> Date: Thu, 6 Mar 2014 14:02:56 +0100
> Subject: Re: Why do I get this XHTML validation err
Unreadable :\
2014-03-06 13:35 GMT+01:00 Fredrik Andersson :
> Hello guys!
> I trying to produce a app that renders in XHTML. "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> xmlns="http://www.w3.org/1999/xhtml";>
> How ever I got a form looki
Hello guys!
I trying to produce a app that renders in XHTML.http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>http://www.w3.org/1999/xhtml";>
How ever I got a form looking like this:
This gets rendered like:25 26 27 28 Email
address:29 30 31 33 343536
37 Subject:38
nt when I submit the
> corrected form. This is strange because my understanding is that field
> errors should get cleared between requests, and the validation framework
> shouldn't fire until after the prepare() method has fired. So why am I
> seeing validation errors in the prepare m
erAction and
it shows that the previous field error is still present when I submit the
corrected form. This is strange because my understanding is that field
errors should get cleared between requests, and the validation framework
shouldn't fire until after the prepare() method has fired. So why a
Er... The "validation" interceptor?
Yeah, you're right, duh! I didn't realize that the validation
interceptor is actually the AnnotationValidationInterceptor class :-P
-
To unsubscribe, e-mail: user-unsubscr...@struts.ap
Steven Hansen wrote:
Are you sure that calling super.validate() from my action's
implementation of validate() will invoke the XML/annotation validations?
Hmm, I guess it just does the XML/annotation validation automatically
without the super. Too late to change it in the book. Oh well... Kinda
ges, I
just can't figure out which one it is :-(
Thanks!
Steven
Dave Newton wrote:
Steven Hansen wrote:
Is there anyway to manually check possible validation errors on this
action as if it were called by the Validation interceptor?
The previous answer was partially correct, depending o
Steven Hansen wrote:
Is there anyway to manually check possible validation errors on this
action as if it were called by the Validation interceptor?
The previous answer was partially correct, depending on what you're
actually trying to do. If you implement a validate() method you can
public void setModel(User user) {
> this.user = user;
> }
> }
>
>
> Is there anyway to manually check possible validation errors on this action
> as if it were called by the Validation interceptor?
>
> Thanks,
> Steven
>
>
>
>
>
> -
Model(User user) {
this.user = user;
}
}
Is there anyway to manually check possible validation errors on this
action as if it were called by the Validation interceptor?
Thanks,
Steven
-
To unsubscribe, e-mail
08 09:47:33 +0800
> > From: farazali.fa...@gmail.com
> > To: user@struts.apache.org
> > Subject: Re: Please help! Validation Errors
> >
> > Any idea?
> >
> > On Fri, Dec 12, 2008 at 6:04 PM, Faraz Ali
> wrote:
> >
> > > Hi Andy
08 09:47:33 +0800
> From: farazali.fa...@gmail.com
> To: user@struts.apache.org
> Subject: Re: Please help! Validation Errors
>
> Any idea?
>
> On Fri, Dec 12, 2008 at 6:04 PM, Faraz Ali wrote:
>
> > Hi Andy,
> >
> > Please take a look at the code snipp
Any idea?
On Fri, Dec 12, 2008 at 6:04 PM, Faraz Ali wrote:
> Hi Andy,
>
> Please take a look at the code snippet and suggest.
>
> *MyAction.java*
> public class MyAction extends ActionSupport {
> //getAction
> //setAction
> public String execute() throws Exception {
> if(action==1) {
>
Hi Andy,
Please take a look at the code snippet and suggest.
*MyAction.java*
public class MyAction extends ActionSupport {
//getAction
//setAction
public String execute() throws Exception {
if(action==1) {
return "input";
} elseif(action==2) {
return "showResult";
} else {
retur
Faraz,
I think at this point some code would help. Could you post your
struts.xml, and the action?
Andy.
On 10 Dec 2008, at 17:16, Faraz Ali wrote:
Yes Andy, you are right. I added the , but why
it is
executing automatically. It is executed automatically when i start my
application.
On
--- On Wed, 12/10/08, Faraz Ali wrote:
> i mean when i access my application's main page. when i
> hit http://localhost:8080/mywebapp.
If you hit an action that has validations then this is correct behavior.
There are a few ways to handle this, including defining an action that runs the
action's
i mean when i access my application's main page. when i hit
http://localhost:8080/mywebapp.
On Thu, Dec 11, 2008 at 1:20 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- On Wed, 12/10/08, Faraz Ali wrote:
> > Yes Andy, you are right. I added the , but why it
> > is executing automatically. It i
--- On Wed, 12/10/08, Faraz Ali wrote:
> Yes Andy, you are right. I added the , but why it
> is executing automatically. It is executed automatically when i start
> my application.
What do you mean by "when i start my application"? Are you visiting a URL?
Dave
Yes Andy, you are right. I added the , but why it is
executing automatically. It is executed automatically when i start my
application.
On Wed, Dec 10, 2008 at 6:19 PM, Andy Sykes <[EMAIL PROTECTED]> wrote:
> Faraz,
>
> When using validation, the input result tells Struts where to
> dispatch/redi
Faraz,
When using validation, the input result tells Struts where to dispatch/
redirect to if there's a validation error. When you submit the form,
Struts checks the fields against the validation XML - if there's an
error, it adds FieldError objects to the FieldErrors object on the
value s
13:45:18,390 ERROR [ActionComponent] Could not execute action: /web/MyAction
No result defined for action com.web.actions.MyAction and result input -
action - file:/C:/
jboss-4.2.3.GA/server/default/tmp/deploy/tmp35854MyWeb-exp.war/WEB-INF/classes/struts.xml:12:69
1. I have a simple Action class M
--- On Mon, 9/8/08, Martin Gainty wrote:
> you can return the result you desire from the Action which
> implements parameterNameAware interceptor
>
>
>
> good_result.ftl
>
>
> http://struts.apache.org/2.x/docs/parameters-interceptor.html
I guess I'm not clear on how that deals with his iss
transmission.
> Date: Mon, 8 Sep 2008 23:02:49 +0200
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: Re: prepare action for input after validation errors
>
> I don't have any input method. I have a displayForm method, and a submitForm
> method.
>
> T
--- On Mon, 9/8/08, [EMAIL PROTECTED] wrote:
> I don't have any input method. I have a displayForm
> method, and a submitForm method.
>
> The displayForm method returns an input *result*, which is
> a default result pointing to a JSP. This JSP has to display
> some data coming from the database.
I don't have any input method. I have a displayForm method, and a submitForm
method.
The displayForm method returns an input *result*, which is a default result
pointing to a JSP. This JSP has to display some data coming from the database.
I'd like this same JSP to be displayed when the input
How did you configure your input method? What is the name of this
method? I still don't understand why you can use Prepare interceptor,
just implement prepareDoInput() method and that method will be called
just before input() call.
If input result redirect to some other action, configure and imple
I know that. But this does not solve the problem I described. prepareXxx will
be invoked if I the action method is xxx. I validation fails, it'll work: the
input page will have the prepared data ready in the action instance. If
validation succeeds, however, the prepareXxx method will have prepar
You can use perpareXXX method per action method as mentioned in docs:
Applies only when action implements Preparable
1. if the action class have prepare{MethodName}(), it will be invoked
2. else if the action class have prepareDo(MethodName()}(), it will
be invoked
3. no matter if 1] or
Hi.
Thanks for your answer. But as I said in my original post, the prepare
interceptor would prepare the action regardless of the validation result. If
the validation succeeds, I don't want the data for the input page to be
prepared, as the flow will go to the submit method which will redirect
Hi,
Take a look at Prepare Interceptor [1] and Preparable interface [2]
[1] http://struts.apache.org/2.x/docs/prepare-interceptor.html
[2]
http://struts.apache.org/2.0.11.2/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html
Regards
--
Lukasz
http://www.lenart.org.pl/
--
Hello.
I'm reading the documentation for Struts 2 (after lots of work on Struts
1 and Beehive), and I wonder if an interceptor exists in order to
prepare the action after the validation fails, and before going back to
the input page. Imagine the following action class :
public class MyAction
Hello
Is there way prevent notifyTopics from being triggered if there are any
validation errors?
Thanks
Manish
--
View this message in context:
http://www.nabble.com/Notify-Topics-and-Validation-Errors-tp16808233p16808233.html
Sent from the Struts - User mailing list archive at Nabble.com
STORE
licenses.html
licenses.html
licenses.html
editLicense.html
true
${license.dkey}
--
View this message in context:
http://www.nabble.com/chaining-validation
chubi wrote:
Thank you Dave for helping,
Below is the fragment in struts.xml where editLicense should submit to
saveLicense, which in return should redirect to editLicense again. That is
the call to saveLicense is transparent.
Submit to saveLicense was intercepted by validation. Errors were
Thank you Dave for helping,
Below is the fragment in struts.xml where editLicense should submit to
saveLicense, which in return should redirect to editLicense again. That is
the call to saveLicense is transparent.
Submit to saveLicense was intercepted by validation. Errors were found!
What
--- chubi <[EMAIL PROTECTED]> wrote:
> After submitting editAction to SaveAction, I want to redirect again to
> EditAction.
> So SaveAction is totally transparent.
> But I get lost all fieldErrors if validation return false.
> How can I chain validation errors?
> I
Hello,
After submitting editAction to SaveAction, I want to redirect again to
EditAction.
So SaveAction is totally transparent.
But I get lost all fieldErrors if validation return false.
How can I chain validation errors?
I tried the use of several interceptors like: validaiton, chain and params
I realized that since this was a custom validator, I can add the error
message to the fieldErrors with whatever key i choose - so i can now
reference that error message. What about for other validators, like the
expression validator, is there a way to specify a key for it? I think the
expression
Can I reference action errors / messages in a similar way to field errors?
I have a custom validator for a date field that is split into month/day/year
fields, but i want the errors for it to appear next to inputs. Here are my
validators:
^\d{4}$
which i referen
Just stumbled on that as you replied.
Thanks again.
(But not for the pun ;) )
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: 12 October 2007 16:27
To: Struts Users Mailing List
Subject: RE: Validation errors in Action
--- Dean Pullen <[EMAIL PROTECTED]> wrote
--- Dean Pullen <[EMAIL PROTECTED]> wrote:
> Is there any documentation anywhere, where I can see
> how to correctly return errors in the validate
> method?
This is a WW article but should still be valid.
Ha ha, valid, get it?
http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html
Is there any documentation anywhere, where I can see how to correctly return
errors in the validate method?
Cheers.
-Original Message-
From: Julien Leonard [mailto:[EMAIL PROTECTED]
Sent: 12 October 2007 16:17
To: 'Struts Users Mailing List'
Subject: RE: Validation errors
Hello,
Why don't you use the validate() method ?
Julien
-Message d'origine-
De : Dean Pullen [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 12 octobre 2007 17:13
À : Struts Users Mailing List
Objet : Validation errors in Action
Hi all,
How do you get hold of the validation er
Hi all,
How do you get hold of the validation errors in an Action?
Basically due to some complexity, we need to manually add an error
within the prepare() method if something isn't correct.
Thanks,
Dean.
-
To unsubscri
ajax request with a
>
> This pumps the result in the target div tag and all is perfect. But how can
> I handle validation errors.
> They should not appear in the target div tag, instead it should appear in a
> different div tag for errors.
> Can I change the target or can I force the s
Hi,
I start a ajax request with a
This pumps the result in the target div tag and all is perfect. But how can
I handle validation errors.
They should not appear in the target div tag, instead it should appear in a
different div tag for errors.
Can I change the target or can I force the site to
Thanks, Dave. It works fine, but neither the cssClass nor cssStyle
attributes work.
- Ray Clough
[EMAIL PROTECTED]
Dave Newton wrote:
--- Ray Clough <[EMAIL PROTECTED]> wrote:
Could someone tell me what to retrieve to display
validation errors manually?
http://struts.apache
--- Ray Clough <[EMAIL PROTECTED]> wrote:
> Could someone tell me what to retrieve to display
> validation errors manually?
http://struts.apache.org/2.x/docs/fielderror.html
(Although... I vaguely recall a thread from last week
referring to but I can't tes
The struts2 s:textfield tag will automatically display the validation
errors if you use the xhtml theme. I want to use the simple theme, and
don't see any examples of how to retrieve the error messages for a given
field. Could someone tell me what to retrieve to display validation
e
Sean
-Original Message-
From: O'Shea, Sean
Sent: Monday, August 14, 2006 10:32 AM
To: user@struts.apache.org
Subject: RE: JavaScript validation errors
Hi Srinivas,
I tried setting my login form like this:
.
... Still no luck in getting the javascript function called though. I'
Subject
RE: JavaScript validation errors
Please respond to
"Struts Users
Mailing List"
race somewhere in the code?
Has anyone else come across this problem?
Thanks
Sean
-----Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 14, 2006 5:39 AM
To: Struts Users Mailing List
Subject: RE: JavaScript validation errors
Hi sean,
i thin
08/12/2006 12:11 cc
AM
Subject
RE: JavaScript validation errors
}
if (fields.length > 0) {
focusField.focus();
alert(fields.join('\n'));
}
return isValid;
}
// Trim whitespace from left and right sides of s.
function trim(s) {
return s.replace( /^\s*/, "" ).replace( /\s*$/, &
m Gordon [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 11:56 AM
To: Struts Users Mailing List
Subject: Re: JavaScript validation errors
Sean-
You need to add an "onsubmit" attribute to your html:form" element that
calls the validation function. Specifically, IIRC, it needs to s
ideas on this?
Thanks again
Sean
-Original Message-
From: Adam Gordon [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 11:56 AM
To: Struts Users Mailing List
Subject: Re: JavaScript validation errors
Sean-
You need to add an "onsubmit" attribute to your html:form&qu
Sean-
You need to add an "onsubmit" attribute to your html:form" element that
calls the validation function. Specifically, IIRC, it needs to say:
onsubmit="return validateForm(this);
happy coding,
-adam
O'Shea, Sean wrote:
Hi all,
I'm using struts 1.2.7 with commons-validator-1.1.4 and I'
Hi all,
I'm using struts 1.2.7 with commons-validator-1.1.4 and I'm running into
a few generated JavaScript errors. Here's what my JSP looks like:
:
:
"/>
You can use the "property" attribute to filter a specific properties messages:
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section5
Niall
On 6/26/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:
Hello there! Just as I said in my last message, it's been a while
since my
Hello there! Just as I said in my last message, it's been a while
since my last struts experience :).
I'm using automatic validation for my formbeans (using the validator e
validation.xml).
Well, displaying general errors is ok , as I'm doing this:
But how do I present each error in
:[EMAIL PROTECTED]
Sent: Thursday, April 27, 2006 7:10 PM
To: Struts Users Mailing List
Subject: Re: Accessing Validation Errors in an Action
if the validation is done at the server side (in your actionform), then
you
can easily get the errors.
On 4/28/06, Asad Habib <[EMAIL PROTECTED]> wrote:
&
Hello Rick. Great! Thank you for the URL. This site has a wealth of
information on it!
- Asad
On Thu, 27 Apr 2006, Rick Reumann wrote:
Asad Habib wrote:
How do I access errors that the Validator places in the ActionErrors object
instance within a Struts action? I need to do this in my actio
Asad Habib wrote:
How do I access errors that the Validator places in the ActionErrors
object instance within a Struts action? I need to do this in my action
code so I can throw the appropriate kind of exception. Thanks.
I show this very thing at the end of this article:
http://www.learntechn
if the validation is done at the server side (in your actionform), then you
can easily get the errors.
On 4/28/06, Asad Habib <[EMAIL PROTECTED]> wrote:
>
> How do I access errors that the Validator places in the ActionErrors
> object instance within a Struts action? I need to do this in my action
How do I access errors that the Validator places in the ActionErrors
object instance within a Struts action? I need to do this in my action
code so I can throw the appropriate kind of exception. Thanks.
- Asad
-
To unsubscribe
Emmanouil Batsis on 14/04/06 08:56, wrote:
I'm very interested to hear about how do you guys handle
business-tier-dependent validation errors in a struts+EJB application.
For example, suppose a user tries to create an account with a username
that already exists (maybe a poor example bu
Hello,
I'm very interested to hear about how do you guys handle
business-tier-dependent validation errors in a struts+EJB application.
For example, suppose a user tries to create an account with a username
that already exists (maybe a poor example but you get the point), but
you can
Ahh good, your're welcome - its a relief :-)
Niall
- Original Message -
From: "Chris Cheshire" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Friday, February 17, 2006 5:13 PM
Subject: Re: using a resource key to extra validation errors
Doh. T
Doh. Thanks Niall. I see now.
Thanks for perservering
Chris
On 2/17/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
> You want to inernationalize your labels/messages/text - but not the names of
> your properties on your form bean
[snip]
--
You want to inernationalize your labels/messages/text - but not the names of
your properties on your form bean - if you had a property "house" - you
wouldn't have a different property on your form bean depending on the Locale
(getHouse() / setHouse() for English and getMaison() setMaison() for
Fren
Chris Cheshire wrote:
>
> breaks internationalisation.
>
You want to internationalize the names of the properties?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Internationalisation.
Resource bundle contains (among other things):
label.password=password
The label of the field is looked up from the resource bundle:
The validation error in the form is keyed on that same value, looked
up from the resource bundle:
String label = resources.getMessage("label
So what are you after? Why do you need to use a value from the resources as
the message property?
Niall
- Original Message -
From: "Chris Cheshire" <[EMAIL PROTECTED]>
Sent: Friday, February 17, 2006 7:09 AM
Yes what I have in my code is exactly what is in the example. It is
not howeve
Yes what I have in my code is exactly what is in the example. It is
not however what I am after.
What is the point of using things from the resource bundle if it only
works through 3/4 of the application?
I have the error message next to the input field, by hardcoding the
result of what would be
Did you try my suggestion - I believe that will do exactly what you want -
you seem to be getting confused between the key used to store the
ActionErrors in the request (global error key) and the property under which
a message is stored in the ActionErrors.
The validwhen example in the struts-exam
That's not the issue, it is actually doing that, via a resource bundle
lookup (I only have one configured). I want to be able to retrieve the
error on the jsp side by getting the key via the resource bundle
similar to the way it is being added, instead of just using the value
that is referenced in
Modify your code to do this:
errors.add("password", message);
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section5
Niall
- Original Message -
From: "Chris Cheshire" <[EMAIL PROTECTED]>
Sent: Friday, February 17, 2006 1:50 AM
I have an ActionForm
I have an ActionForm with its own validate method that adds errors
keyed upon entries in a resource bundle, so that the errors can be
linked back to the field they are pertinent to, not just as a global
error.
String label = resources.getMessage("label.password");
ActionMes
Hi,
I am using the following to display all the validation errors in a form.
How can I get the form field names that correspond to each of the errors
reported or atleast a list of all form fields that have an error.
Thanks and regards,
Karthik.
Greetings
I've an iframe embedded in a .jsp. The iframe contents are another
set of .jsps that contain a form submit (the reason we've done it like
this is so that the embedded iframe looks like a tabbed diallog).
When I submit the iframed form, I'd like to display the errors on the
containing p
Ramesh;
That was it... I had overlooked the property attribute of the errors
tag...
thanks for your help!
Regards,
Chris
>>> [EMAIL PROTECTED] 10/18/2005 9:24:23 AM >>>
Hi there,
Say u hv a with the property name
"custName". U can use right below the .
So, when an action error occurs,
1 - 100 of 134 matches
Mail list logo