hank you.
> Regards,
> Kishan.G
>
> Team Leader.
> www.spansystems.com
>
>
>
> -Original Message-
> From: Jim Collings [mailto:jlistn...@gmail.com]
> Sent: Thursday, June 11, 2009 5:54 PM
> To: Struts Users Mailing List
> Subject: Whats the best way to do validatio
Collings [mailto:jlistn...@gmail.com]
Sent: Thursday, June 11, 2009 5:54 PM
To: Struts Users Mailing List
Subject: Whats the best way to do validation messages on the same page?
There's got to be a better way of doing this than the way that I am doing it.
Convention plugin.
According to my pro
On Thu, Jun 11, 2009 at 8:23 AM, Jim Collings wrote:
> There's got to be a better way of doing this than the way that I am doing it.
>
> Convention plugin.
>
> According to my projects requirements error/validation/success
> messages are supposed to show on the jsp that generated them. So if I
> am
There's got to be a better way of doing this than the way that I am doing it.
Convention plugin.
According to my projects requirements error/validation/success
messages are supposed to show on the jsp that generated them. So if I
am on a page that adds a record and I leave all the fields blank,
s
Hi all,
I am going to use Struts-blank-2.1.6 to demonstrate a localisation problem
when doing Ajax validation in maybe 10 minutes. I am not sure if it is a bug
(from dojo-plugin?) or just a wrong setting somewhere. Hope some expert
could shed some light here. Much appreciated.
Steps to reproduc
--- On Tue, 9/16/08, stanlick wrote:
> P.S. Now can you solve the variable result input problem?
Sorry, only one freebie per day.
I originally solved this problem a long time ago (I started a similar thread
sometime over a year ago) by creating a custom workflow interceptor; I don't
know if tha
quired."
>
> Something's broken then; I use this technique all the time, across
> S2.0/S2.1 versions.
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For a
--- On Tue, 9/16/08, stanlick wrote:
>
>
> employee.department=Employee Department
> requiredstring=${getText(fieldName)} is required
>
> This results in the message "employee.department is
> required."
>
> What I would like to do is have the value for this
> key's value displayed in the messag
the value for this key's value displayed in
the message
"Employee Department is required."
--
View this message in context:
http://www.nabble.com/Validation-messages-tp19516465p19516465.html
Sent from the Struts - User mailing l
GREAT! That fixed it! I'll update the Jira. Thanks for your help!!!
Mark
On 10/09/2008, at 10:50 AM, Dave Newton wrote:
--- On Tue, 9/9/08, Mark wrote:
Ok, that makes sense. How would I set that up? Right now,
I have an index.jsp with the following: . This is so that someone accessing
th
--- On Tue, 9/9/08, Mark wrote:
> Ok, that makes sense. How would I set that up? Right now,
> I have an index.jsp with the following: page="login.jsp"/>. This is so that someone accessing
> the site via http://localhost/ will be presented with the
> login page.
I generally just use a redirec
Ok, that makes sense. How would I set that up? Right now, I have an
index.jsp with the following: . This
is so that someone accessing the site via http://localhost/ will be
presented with the login page.
Mark
On 10/09/2008, at 10:20 AM, Dave Newton wrote:
Ah; there we go. The attached
Ah; there we go. The attached validation file in JIRA didn't have the "key"
attribute; threw me off.
You're accessing the login page via the JSP, right? That won't work. You should
access it through an action so there's an action on the stack so the getText()
can be called on something that exi
--- On Tue, 9/9/08, Mark wrote:
> No, I'm not using an tag. Should I be?
Not if you don't need it.
Does it work if you have the validation XML file's DOCTYPE w/o the trailing
space after ".dtd "?
How are you accessing the login page the first time--through an action?
Dave
-
so wondering if there's anything else on the value stack. Are
you using an tag?
Dave
--- On Tue, 9/9/08, Mark <[EMAIL PROTECTED]> wrote:
From: Mark <[EMAIL PROTECTED]>
Subject: Re: NullPointerException with Validation Messages
To: "Struts Users Mailing List"
Date: Tue
You're extending ActionSupport, right?
I'm also wondering if there's anything else on the value stack. Are you using
an tag?
Dave
--- On Tue, 9/9/08, Mark <[EMAIL PROTECTED]> wrote:
> From: Mark <[EMAIL PROTECTED]>
> Subject: Re: NullPointerException with
I changed to , refreshed,
and I still get the NPE :-(
If this help, I've also run into another problem which is related.
If I implement the Validatable interface in my action, and then add a
Field error (ie. addFieldError("userName", "requiredString");) in the
validate method, the messa
I can zip up my complete maven directory and post it in the Jira. Is
that an appropriate place for it? Or should I email it to you directly?
Mark
On 10/09/2008, at 8:45 AM, Dave Newton wrote:
--- On Tue, 9/9/08, Mark wrote:
Thank you for the suggestion. Yes, I have and it still
produces
Here's something to try, although I still can't get the NPE, which is
irritating and scary:
Your 's action is "login", which means the DOM's id will
also be "login". Because the markup is arguably somewhat brittle, your element is colliding with the .
Try changing the id to something like "l
--- On Tue, 9/9/08, Mark wrote:
> Thank you for the suggestion. Yes, I have and it still
> produces the NullPointerException.
You may want to try putting the complete webapp up somewhere, or post a
minimal, but complete, source example on something like pastebin/etc. I tried
several different t
--- On Tue, 9/9/08, Mark wrote:
> Thank you for the suggestion. Yes, I have and it still
> produces the NullPointerException.
You may want to try putting the complete webapp up somewhere, or post a
minimal, but complete, source example on something like pastebin/etc. I tried
several different t
Thank you for the suggestion. Yes, I have and it still produces the
NullPointerException.
Mark
On 09/09/2008, at 10:45 PM, Pascal Lalonde wrote:
Have you tried this ?
- Pascal
Mark wrote:
Hi all:
I'm
Have you tried this ?
- Pascal
Mark wrote:
Hi all:
I'm using Struts 2 validation and I'm getting a NullPointerException
when the page is being displayed (before it is even being submitted or
validated).
Sorry, what does AFAICT mean? :-)
I'm running Tomcat 6.0.16. No, it doesn't work with default stack.
Any other ideas?
Mark
On 09/09/2008, at 12:13 PM, Dave Newton wrote:
--- On Mon, 9/8/08, Mark wrote:
I'm using Struts 2 validation and I'm getting a NullPointerException
when the page is b
--- On Mon, 9/8/08, Mark wrote:
> I'm using Struts 2 validation and I'm getting a NullPointerException
> when the page is being displayed (before it is even being submitted
> or validated). I did some searches and found this Jira:
> https:// issues.apache.org/struts/browse/WW-2150.
AFAICT th
Hi all:
I'm using Struts 2 validation and I'm getting a NullPointerException
when the page is being displayed (before it is even being submitted
or validated). I did some searches and found this Jira: https://
issues.apache.org/struts/browse/WW-2150. It states that it has been
fixed in v
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html
Thanks,
Nuwan
Sonu S wrote:
Hi,
I am using struts in my application. to validate users entry in jsp i have
my validation method. and i am calling that method in action class. code is
below:(I am not using struts' validatio
Hi,
I am using struts in my application. to validate users entry in jsp i have
my validation method. and i am calling that method in action class. code is
below:(I am not using struts' validations )
// in action class, calling validate method
ActionErrors errors = myForm.validate(mapping,request
The ActionContext class contains a Map of field/value pairs for invalid
conversions. The messages are mucking up the HTML validation messages and
when I clear them to solve that problem it blows away the entered value "as
invalid as it might be" so it's not restored when
Hi Ed,
Thank you for the clarification! That worked out great!
Priya
On 10/3/06, Ed Griebel <[EMAIL PROTECTED]> wrote:
Let me clarify, in your html:form statement, try adding a return like so:
On 10/3/06, priya <[EMAIL PROTECTED]> wrote:
>
> Hi Ed,
>
> Thank you for your response!
> Since
Let me clarify, in your html:form statement, try adding a return like so:
On 10/3/06, priya <[EMAIL PROTECTED]> wrote:
Hi Ed,
Thank you for your response!
Since I am using Struts client side validation, I am not creating the
validate method.. Struts is creating it for me..
Do you mean I shou
In your form's onclick="validate()" method (or whatever it may be
called in your case), it may work to add "return" to the javascript
method call. The validate method will return false if validation
fails, and the form will not be submitted back to the server.
HTH,
-ed
On 10/3/06, priya <[EMAIL
I am using client-side and server-side validation in my login form.
Both work and when I dont enter the required fields I recieve a javascript
alert box saying that the fields "username or password are required". After
I click okay it does a serverside validation as well and prints on the
screen
On 2/1/06, Richard Wallace <[EMAIL PROTECTED]> wrote:
> I'm implementing an assessment with 12 questions on a page. The user
> is required to select an answer for all questions. When a user doesn't
> select a question I'd like to display a message in the global messages
> that says something li
I've starting working with the commonsValidator components in Shale.
I'm just getting started but one thing I was hoping this could solve was
better error message handling. The error message handling in JSF is
probably one of it's weakest areas because you can only define a single
message to
35 matches
Mail list logo