Thank you so much.
On Fri, Mar 22, 2013 at 1:47 AM, Chris Pratt wrote:
> If it has action messages, everything proceeds as usual. If it has action
> errors, the validation system exits with the return code "input".
> (*Chris*)
>
>
> On Thu, Mar 21, 2013 at 1:06 PM, Muralidhar Yaragalla <
> ja
If it has action messages, everything proceeds as usual. If it has action
errors, the validation system exits with the return code "input".
(*Chris*)
On Thu, Mar 21, 2013 at 1:06 PM, Muralidhar Yaragalla <
java.yaraga...@gmail.com> wrote:
> So even if it has action errors or action messages t
So even if it has action errors or action messages the execute method of
action class will not be called is it?
On Fri, Mar 22, 2013 at 12:50 AM, Chris Pratt wrote:
> Same time, during validation. They are just non-field specific. So If you
> have an error (or informational message) to deliver
Same time, during validation. They are just non-field specific. So If you
have an error (or informational message) to deliver to the user you would
use these methods.
(*Chris*)
On Thu, Mar 21, 2013 at 12:16 PM, Muralidhar Yaragalla <
java.yaraga...@gmail.com> wrote:
> Hi when should we add a
Hi when should we add an action error or action message. I understood field
error. It as to be added in validate method when there is any field error
in the form( I mean validation error) but when to use other?
--
Thanks And Regards,
*Muralidhar Yaragalla.
*
Manuel Osorio Martinez
Enviado el: Monday, November 22, 2010 2:03 PM
Para: Struts Users Mailing List
Asunto: ActionErrors and ActionMessages not included in the result
generated by org.apache.struts2.json.JSONResult
Hello,
I'm trying to generate a json output with the JSONResult but the pr
Hello,
I'm trying to generate a json output with the JSONResult but the problem
is that actionMessages and actionErrors properties are not being
included.
I also tried to pass this parameter to the interceptor but it didn
[EMAIL PROTECTED] wrote:
I am sending an message for the successful submission of the form by using
actionMessage .In the struts xml file i have used the redirect action and
passed action message as parameter. In the display i am getting the message
.But the problem is the message is getting f
Hi,
I am sending an message for the successful submission of the form by using
actionMessage .In the struts xml file i have used the redirect action and
passed action message as parameter. In the display i am getting the message
.But the problem is the message is getting formatted by [] these c
for displaytag to function correctly.
>
> 3-. The listX.jsp contains actionerror and actionmessage to provide feedback
> to the user.
>
>
>
>
> My mapping looks like:
>
>class="com.sag.optimizer.ui.web.action.datamodel.{1}Action" method="{2}&qu
; method="{2}">
webui.form{1}
webui.list{1}
${actionErrors}
${actionMessages}
[EMAIL PROTECTED]
type="tiles">webui.requestSucceed
emove ActionErrors, the action
was complaining that the validate method is required
to return ActionErrors and not ActionMessages. Any workaround?
Thanks
Dimitris
You can't replace ActionErrors with ActionMessages, they represent
different things. Perhaps you were thinking of Actio
was complaining that the validate method is required
to return ActionErrors and not ActionMessages. Any workaround?
Thanks
Dimitris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
2008/4/17, Marc Eckart <[EMAIL PROTECTED]>:
> This works fine, but the action messages and action errors I want to display
> are lost.
> How can I store them over this action chain?
You can store them in the request scope, just as a normal attribute.
Antonio
--
Hi,
in some cases I redirect after one action instead to a jsp to another
action.
This works fine, but the action messages and action errors I want to display
are lost.
How can I store them over this action chain?
Best regards,
Marc
your Tag Library (through the JSP) the
> ActionErrors, ActionMessages and FieldErrors from the controller action.
>
> Maybe you don´t like this solution (it´s not very beautiful), but it
> works :)
>
> Regards.
>
>
> Chris Pratt escribió:
>
> > Yes, I've looked
, ActionMessages and FieldErrors from the controller action.
Maybe you don´t like this solution (it´s not very beautiful), but it
works :)
Regards.
Chris Pratt escribió:
Yes, I've looked deeply into the implementation of
so that I can try to duplicate it in a tag more closely resembling
, but I can
Yes, I've looked deeply into the implementation of
so that I can try to duplicate it in a tag more closely resembling
, but I can't, for the life of me, follow the flow
through all the tunnels, passageways, libraries, and wormholes to
figure out how it's getting hold of the ActionMessage's,
Action
Try
. More info in
http://www.roseindia.net/struts/struts2/struts2uitags/actionerror-and-actionmessage-tag.shtml
--
Yoge,
AdventNet, Inc.
site24x7.com
On Dec 23, 2007 2:09 PM, Chris Pratt <[EMAIL PROTECTED]> wrote:
> OK, I'm losing my mind trying to figure this out, so I figured I'd
> just as
OK, I'm losing my mind trying to figure this out, so I figured I'd
just ask the people who already know.
I'm trying to write a tag library, one of the tags I'm attempting to
write is similar to the old tag from Struts 1. But, I
can't seem to figure out how to get hold of the messages. I tried t
Hi, Richard Sayre
Thanks for ur reply.
I have been looking for a solution by myself but to find that there was none
to resolve it just change the configuration-file.
I have no experience in taking use of FreeMarker.
However,ur way may be just the only one.
I will just try and thanks for ur commen
For clarification the following line:
<#include "/${parameters.templateDir}/xhtml/validationarea.ftl" />
was added to the first line of form.ftl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
Hi,
I had the same problem. I did not like the way the error were being
displayed (In a new row above the field that has the error) To do
this I have to chenge the XHTML template
First I removed the validation from the controlheader-core
<#--
REMOVED
We have our own Error area
<#if hasFieldEr
Hi,
I think you have to change the actionerror.ftl and actionmessage.ftl
file to customize the error/message display. i am not sure there may be
some other way to do this also.
Thanks,
Nuwan
Bhuwan wrote:
Hey! I am having the same issue.
Have you found out a solution for it by any chance?
; in
> the classpath,as well as defined the struts.xml as:
>
>
> Thanks for reading and looking forward to any reply.
>
> --
> --M.Liang Liu
>
>
--
View this message in context:
http://www.nabble.com/How-to-format-the-actionerrors-and-actionmessages-in-the-js
Hi,all:
I would like to add header and footer to the actionerrors so as to it can
display in the way my client like.
In Struts1.2,i can just put the following code in the properties file:
errors.hea
First of all, thank you all for replying. Jeff you are right, invalid.login
was put into the WRONG PROPERTIES file. I moved the projects
around, and a new Properties file was created, however, the
struts-config.xml
was not updated with the location of the new properties file, instead,
the old on
onse) throws Exception
{
ActionMessages messages = new ActionMessages();
messages.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage("
invalid.login"));
saveMessages(request, messages);
return mapping.findForward("failure");
}
On 6/19/07, Aleksandar Matijaca <[EMAIL PROTECTED]> wrote:
All resources keys are available etc...
The code looks rightare you sure that the key "invalid.login" is
available?
I'm pretty sure that the results would be as you see if it was not.
Trysomewhere in your jsp.
---
Hi there,
I am having some really stupid issues -- I am using Struts 1.2, and I have
an action
that does the following:
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception {
ActionMessages
2007/6/19, Jeff Amiel <[EMAIL PROTECTED]>:
Ya know...I cannot believe that people categorize the datepicker
'issue' as a 'big issue'.
when I loose several hours trying to make a, as you say, "small 'nice
to have' component", work, in a GA struts version, I call it a "big"
issue (and it's not ad
On 6/19/07, Guillaume Carré <[EMAIL PROTECTED]> wrote:
IMHO (with the broken datepicker tag that is being reworked for 2.1)
this is THE big "issue" with Struts 2.0.x. At least this is mine.
Ya know...I cannot believe that people categorize the datepicker
'issue' as a 'big issue'.
I mean...it'
Action A -> jsp -> Action B
with action A populating some elements of the form presented in the jsp
when Action B does a "return INPUT" (manually, or through automatic
validation), you need it to forward to Action A, to repopulate the
form elements, and you don't want
PROTECTED]
Sent: 14 June 2007 19:48
To: user@struts.apache.org
Subject: [S2] actionmessages not surviving between requests
(redirect-after-post)
Hi,
I'm trying to develop my app following the redirect-after-post pattern. Of
course s:actionmessages do not survive between requests, but this is th
Hi,
I'm trying to develop my app following the redirect-after-post
pattern. Of course s:actionmessages do not survive between requests,
but this is the main paradigm behind the pattern (showing the page by
doing _other_ request).
The question is which are my options to make my actionMes
ug in that if you use
> addActionError, the message store interceptor, and you have the validation
> interceptor enabled you will get redirected to the input result of the
> action after the redirect :(.
>
> Hope this helps,
>
> Al.
>
> -Original Message-
> Fr
Dave,
The problem is that if your action uses addActionError and returns INPUT
to get a redirect to another action the validation also uses teh input
result of the action you've been redirected to.
I agree that upon an error you want to go back to the input page, but if
your error is added i
--- Al Sutton <[EMAIL PROTECTED]> wrote:
> at the moment there appears to be a bug in that if
> you use addActionError, the message store
> Interceptor, and you have the validation interceptor
> enabled you will get redirected to the input result
> of the action after the redirect :(
I'm not s
nError, the message store interceptor, and you have the validation
interceptor enabled you will get redirected to the input result of the
action after the redirect :(.
Hope this helps,
Al.
-Original Message-
From: Gunnar Hillert [mailto:[EMAIL PROTECTED]
Sent: 04 June 2007 05:52
To:
e messages but any object in a Flash,
and hence those objects survive the next redirect.
See also http://api.rubyonrails.com/classes/ActionController/Flash.html
But for the time being I would be already quite happy if there was a simple
and standardized way to have my actionMessages survive redirects
Another important difference between ActionMessages and ActionErrors
has to do with how the Validation interceptor works.
If you add an ActionError in the 'validate' method (or before the
ValidationInterceptor get ahold of the request) of a ValidationAware
action, the intercepto
Harring Figueiredo wrote:
Here it goes, without testing. I think that the HTML generated is
slightly
different so that you
may apply different CSS style sheets to it.
Bingo. That is exactly the reason for the two. Direct from my style sheet:
span.actionMessage {
background-color: Lig
wrote:
actionMessages is for general messages, and actionErrors for
errors. . I don't think there are any implications.
regards
musachy
On 4/24/07, Zoran Avtarovski <[EMAIL PROTECTED]> wrote:
>
> A quick question on what the recommended method for displaying general
> me
actionMessages is for general messages, and actionErrors for
errors. . I don't think there are any implications.
regards
musachy
On 4/24/07, Zoran Avtarovski <[EMAIL PROTECTED]> wrote:
A quick question on what the recommended method for displaying general
messages when usi
A quick question on what the recommended method for displaying general
messages when using struts 2, actionMessages or actionErrors.
I had a look at the ValidationAware interface and there appears to be no
difference between the two.
The only difference I could see what that they are accessed by
;>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> The problem is that these tags are never populated while using the AJAX
>>>> feature. Neither errors nor messages are displayed at any tim
That should be it. Just to make sure it is not related to the errors or
the messages, replace the with some fixed text, and
see if that text is showing up.
musachy
kedgecomb wrote:
I am using a single taglib directive:
<%@ taglib prefix="s" uri="/struts-tags" %>
Is there something
either errors nor messages are displayed at any time. If I
>> use
>> the same url that the s:div tag uses, and key it into the browser
>> address,
>> the row is added or deleted and the message displays correctly, (using
>> the
>> exact same jsp). When I use an ajax link:
>>
>>
>>
>>
>> > name=
The ajax request is handled just like any other request (its
asynchronous nature is only related to the client). So whatever the
action outputs, it will be sent to the client and inserted inside the
div. Use Firebug to see what is the return of the ajax call, plus make
sure the jsp fragment has
ew this message in context:
http://www.nabble.com/Mixing-Struts2-ajax-functions-with-actionErrors-and-actionMessages-tf3222408.html#a8950048
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail:
lt;[EMAIL PROTECTED]> wrote:
> I am trying to get the action messages from action class as follows but
not
> getting the message but record is inserted properly
>
> *in action class*
>
> if(isInserted==true){
> ActionMessages addTaskMessages = new ActionMessages();
> addTas
lows but not
getting the message but record is inserted properly
*in action class*
if(isInserted==true){
ActionMessages addTaskMessages = new ActionMessages();
addTaskMessages.add("addtasksuccess", new ActionMessage("
message.addtask.sucess"
I am trying to get the action messages from action class as follows but not
getting the message but record is inserted properly
*in action class*
if(isInserted==true){
ActionMessages addTaskMessages = new ActionMessages();
addTaskMessages.add("addtasksuccess", new Act
In Action Class:
ActionMessages addTaskMessages = new ActionMessages();
addTaskMessages.add("addtasksuccess", new ActionMessage("
message.addtask.sucess"));
saveMessages(request, addTaskMessages);
IN JSP
same for ActionErrors,
On 12/14/06, na
thanks for the info
i am trying the following
In Action Class:
ActionMessages addTaskMessages = new ActionMessages();
addTaskMessages.add("addtasksuccess", new ActionMessage("
message.addtask.sucess"));
saveMessages(request, addTaskMessa
This will work u
Thanks
Nagesh
-Original Message-
From: Kranti [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 14, 2006 11:03 AM
To: Struts Users Mailing List
Subject: ActionMessages
hi,
can anyone tell how *
ActionMessages can be used in
hi,
can anyone tell how *
ActionMessages can be used in struts along with html:message tag
*
Hi,
I'm using struts 1.2 version and currently held up in a minor issue but
I could not figure out what i'm missing.
In the code snippet below, From Action class I'm adding an ActionErrors
to display an Error message in the JSP. In JSP I've a message Tag with
correctly.
The Action is correctly
hi mallik,
you can save some messages in action so that they can be accessed from jsp
ActionMessages errorMsgs = new ActionMessages();
errorMsgs.add("messageId", new
ActionMessage("message.Inserted_successfully"));
saveErrors(request, errorMsgs);
in jsp,
- Original
HI friends
i want to send some message from action class to view. that is like
"Inserted successfully", after inserting data to database.
how can i do this?
help me please...
ur's
Mallik
--
View this message in context:
http://www.nabble.com/ActionMessages-in-Struts-
On 9/19/06, Givler, Eric <[EMAIL PROTECTED]> wrote:
On this page: http://wiki.apache.org/struts/ActionErrorsAndActionMessages
Any of the URLs at the bottom do not appear to work.
Thanks. Fixed.
-
To unsubscribe, e-mail: [EMAIL
On this page: http://wiki.apache.org/struts/ActionErrorsAndActionMessages
Any of the URLs at the bottom do not appear to work.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
r way of tidying up that
doesn't involve subclassing RequestProcessor and overriding the
processCachedMessages to get rid of any accessed ActionMessages from the
session?
Cheers,
Kevin
-
To unsubscribe, e-mail: [EMAIL PROTE
hedMessages to get rid of any accessed ActionMessages from the
session?
Cheers,
Kevin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
t only the "standard" ActionMessages get cleared out
after they have been displayed. Since the name="something" facility was there, I
thought somebody might be using it and I wondered how they were clearing up
after themselves.
I've had a bit of a think over the week
Kevin Maeer wrote:
Hi,
I'm using ActionMessages stored in the session to display messages on a page and
everything works splendidly except that the messages never get removed from the
session so every time the user re-enters the page old messages get redisplayed.
After a bit of digging a
Hi,
I'm using ActionMessages stored in the session to display messages on a page and
everything works splendidly except that the messages never get removed from the
session so every time the user re-enters the page old messages get redisplayed.
After a bit of digging around, this appears
On 8/25/06, Scott Van Wart <[EMAIL PROTECTED]> wrote:
Niall Pemberton wrote:
> Dam, looks like I missed updating the tiles version of the
> chain-config.xml - the version in struts-core-1.3.5.jar has that
> command. Could you file a JIRA issue for this please:
>
> https://issues.apache.org/struts
Niall Pemberton wrote:
Dam, looks like I missed updating the tiles version of the
chain-config.xml - the version in struts-core-1.3.5.jar has that
command. Could you file a JIRA issue for this please:
https://issues.apache.org/struts/browse/STR
Okie,
https://issues.apache.org/struts/browse/STR
On 8/25/06, Scott Van Wart <[EMAIL PROTECTED]> wrote:
Niall Pemberton wrote:
> The functionality to automtaically remove messages cached in the
> session was missing from Struts 1.3.x and only added recently in the
> Struts 1.3.5 version:
>
>http://issues.apache.org/struts/browse/STR-2883
>
Niall Pemberton wrote:
The functionality to automtaically remove messages cached in the
session was missing from Struts 1.3.x and only added recently in the
Struts 1.3.5 version:
http://issues.apache.org/struts/browse/STR-2883
http://svn.apache.org/viewvc?view=rev&revision=412834
Are you
The functionality to automtaically remove messages cached in the
session was missing from Struts 1.3.x and only added recently in the
Struts 1.3.5 version:
http://issues.apache.org/struts/browse/STR-2883
http://svn.apache.org/viewvc?view=rev&revision=412834
Are you using Struts 1.3.5?
Als
Hi, I have something very close to the following in each of my pages
(actually, just in the layout page for tiles, but whatever). Worked
fine in Struts 1.2.9 (even though I'm not so sure it's the best way to
print messages and errors, but oh well...)
Here is the solution for this
just make sure to add message="true" in the html:messages tag
i.e
IN jsp
or just ${CrditRtMsg}
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: Acti
in action I have
ActionMessages messages = (ActionMessages)frm.validate( mapping,
request );
if ( messages != null && !messages.isEmpty() ) {
saveMessages(request, messages); *
return (mapping.findForward(&quo
"fea jabi" <[EMAIL PROTECTED]> wrote on 02/06/2006 03:54:43 PM:
> I am sorry but none of the links in it are working.
>
> Where else can I get more info on the same?
>
> Thanks.
hmm.. this link *is* working for me..?
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html
Geeta
I am sorry but none of the links in it are working.
Where else can I get more info on the same?
Thanks.
From: [EMAIL PROTECTED]
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: Re: saveErrors --- ActionErrors to ActionMessages
Date: Mon,
ing, request );
> if ( errors != null && !errors.isEmpty() ) {
> saveErrors(request, errors);
> .
> .
>
> As the below is deprecated
> saveErrors(javax.servlet.http.HttpServletRequest request, ActionErrors
> errors)
>
, errors);
.
.
As the below is deprecated
saveErrors(javax.servlet.http.HttpServletRequest request, ActionErrors
errors)
How to convert the above to use ActionMessages instead?
Thanks.
_
Dont just search. Find. C
e.struts.action.ERROR key like this:
org.apache.struts.action.ERROR={email=[errors.required[Email]]} The email should exist in the database so there's a
verification in SignInAction for that. If the email doesn't exist I add the respecitve ActionMessage (as ActionError is
uts.action.ERROR key like this:
org.apache.struts.action.ERROR={email=[errors.required[Email]]} The email
should exist in the database so there's a verification in SignInAction for
that. If the email doesn't exist I add the respecitve ActionMessage (as
ActionError is deprecated): ActionMessages er
I am in the process of upgrading Struts from 1.0 to 1.2.7 Right now I
> am trying to change the error handling bit. However, I get the
> following error with the code changes I have made. Please let me know
> if any of you can figure out what can fix it.
>
> MY CODE: In the Action Cla
I am in the process of upgrading Struts from 1.0 to 1.2.7 Right now I
am trying to change the error handling bit. However, I get the
following error with the code changes I have made. Please let me know
if any of you can figure out what can fix it.
MY CODE: In the Action Class
ActionMessages
It should be straight forward - there are only two things you need to do:
1) Sore you ActionMessages under the standard struts "error" key - which if
your using (or ) you probably are already doing
anyway. If you're doing your validation in the ActionForm's validate meth
At 3:26 PM +0100 10/17/05, [EMAIL PROTECTED] wrote:
Hi there,
I would like to make use of the errorStyleClass functionality with
validation errors that I create in my action class using
ActionMessages. I guess there must be a way of letting the
ActionMessage object know which UI field it is
Hi there,
I would like to make use of the errorStyleClass functionality with
validation errors that I create in my action class using ActionMessages. I
guess there must be a way of letting the ActionMessage object know which UI
field it is relating to.
Has anyone managed to do this without
[EMAIL PROTECTED] wrote:
I'm not so sure about using different style for front end and back end
errors - great for a developer but confusing for a user (of a consumer
site)
I display form errors within the form itself (with a non-radical message
saying they screwed up) and system errors in
...
system-oriented error types never run.
Dave
When I was using an older version of Struts I used ActionErrors and I could
get away with just one set of jsp tags. I guess they have been deprecated
for a good reason.
Anyhow, when I get time I'll move the validation from my action class t
[EMAIL PROTECTED] wrote:
Thanks Dave that worked... my errors.jsp is pasted below. So I used
two sets of tags one for the struts validation errors and one for the
action errors. It would have been more elegant using only 1 set of
tags but I guess this works just fine.
That's actually what I
Thanks Dave that worked... my errors.jsp is pasted below. So I used two sets
of tags one for the struts validation errors and one for the action errors.
It would have been more elegant using only 1 set of tags but I guess this
works just fine.
<%@ page contentType="text/html;charset=UTF-8" la
, final
String msg_) {
log.error(msg_);
ActionMessages msgs = new ActionMessages();
msgs.add("action-errors", new ActionMessage(errorKey_, msg_));
saveMessages(request_, msgs);
return mapping_.getInputForward();
}
Does
user@struts.apache.org,
I have a validate() method on my form bean which returns ActionMessages, I
call the method from my action class. In my logs I can see that
ActionMessages have been populated and the flow is redirected to my error
page.
My validation method is:
public
Messages are cleaned automatically in Struts 1.2.6+
On 9/27/05, Hubert Rabago <[EMAIL PROTECTED]> wrote:
> No, it gets cleaned up by the RequestProcessor after you've displayed
> the messages.
>
> Hubert
>
> On 9/27/05, rahul <[EMAIL PROTECTED]> wrote:
> > do I need to clean up session after displ
riginal Message-
> > From: Hubert Rabago [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, September 27, 2005 7:09 PM
> > To: Struts Users Mailing List
> > Subject: Re: ActionMessages with redirect
> >
> >
> > There are saveErrors() and saveMessages() that
do I need to clean up session after displaying ActionErrors
saved using saveErrors(request,actionError) method?
> -Original Message-
> From: Hubert Rabago [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 27, 2005 7:09 PM
> To: Struts Users Mailing List
> Subject: Re:
ion class, i am storing some
> messages using SaveErrors().
>
> And I am using ActionForward(String path, boolean redirect) for creating the
> ActionForward with 'true' value for redirect parameter.
>
> My question is by doing this can I display the ActionMessages that I ha
sationName/app_en.properties
HTH,
Martin-
- Original Message -
From: "Kaizar Amin" <[EMAIL PROTECTED]>
To: "atta-ur rehman" <[EMAIL PROTECTED]>
Cc: "Struts Users Mailing List"
Sent: Tuesday, September 27, 2005 7:20 AM
Subject: Re: How to remove the un
ns, I changed the code to
if (username == null || username.trim().length() ==0 ){
ActionMessages messages = new ActionMessages();
ActionMessage message = new ActionMessage("Username/Password cannot
be empty");
messages.add(ActionMessages.GLOBAL_MESSAGE, message);
sa
Hi Atta,
As per your suggestions, I changed the code to
if (username == null || username.trim().length() ==0 ){
ActionMessages messages = new ActionMessages();
ActionMessage message = new ActionMessage("Username/Password cannot
be empty");
me
Hi there,
try this:
if (username == null || username.trim().length() == 0){
ActionMessages messages = new ActionMessages();
ActionMessage message = new ActionMessage("credentials.empty");
> messages.add(ActioneMessages.GLOBAL_ERROR, message);
> saveMessages(request,messages)
1 - 100 of 172 matches
Mail list logo