RE: error message display

2004-03-15 Thread anant.parnami

In your property file after the error message specify BR

For e.g.

Your property file should look like

Validation.err = input data must be entered BR

-Original Message-
From: Jignesh Patel [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 1:30 PM
To: [EMAIL PROTECTED]
Subject: error message display


Can anybody guide me how to show server error messages line by line
rather
then in a one line.

-Jignesh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: error message display

2004-03-15 Thread Paul, R. Chip
There's also header and footer properties that you can set to avoid having
this on every line.  For instance in our project we display them as a list:

   errors.header=font color=redul
   errors.prefix=li 
   errors.suffix=/li   
   errors.footer=/ul/font

Header goes before the first error, footer after the last, and each error is
wrapped between prefix in suffix.

This goes in your ApplicationResources.properties file.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 15, 2004 2:14 AM
To: [EMAIL PROTECTED]
Subject: RE: error message display



In your property file after the error message specify BR

For e.g.

Your property file should look like

Validation.err = input data must be entered BR


-Original Message-
From: Jignesh Patel [mailto:[EMAIL PROTECTED]

Sent: Monday, March 15, 2004 1:30 PM
To: [EMAIL PROTECTED]
Subject: error message display


Can anybody guide me how to show server error messages line by line rather

then in a one line.

-Jignesh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Confidentiality Notice


The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not the intended
recipient, please notify the sender at Wipro or [EMAIL PROTECTED]
immediately and destroy all copies of this message and any attachments.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



error message display

2004-03-14 Thread Jignesh Patel
Can anybody guide me how to show server error messages line by line rather 
then in a one line.

-Jignesh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error message display in the case of redirect = true

2003-12-10 Thread alok . garg

Hello Gurpreet,
Thanks for the input but can you please send me an example of how to do it.

Alok Garg
Polaris Software Lab Ltd.
( + 91 - 022 - 28290019 Ext. # 1308 )


   
 
  Gurpreet Dhanoa
 
  [EMAIL PROTECTED] To:  Struts Users Mailing List 
[EMAIL PROTECTED]   
  atainc.com   cc:  (bcc: alok.garg/Polaris)  
 
Subject: Re: Error message display in 
the case of redirect = true   
  12/10/03 11:28 AM
 
  Please respond to
 
  Struts Users
 
  Mailing List
 
   
 
   
 




hi ALok

You can stop the resubmitting of form with the help of Tokens in struts

- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 11:00 AM
Subject: RE: Error message display in the case of redirect = true




 You are right even I knew that it was the same problem. But then in that
 case if I make redirect = false and if the user refreshes the page then
the
 request is again submitted.
 So, can you throw some light on how to stop the user from re submitting
the
 same URL.

 Alok Garg
 Polaris Software Lab Ltd.
 ( + 91 - 022 - 28290019 Ext. # 1308 )



   Navjot Singh
   [EMAIL PROTECTED] To:  Struts Users
Mailing List [EMAIL PROTECTED]
   dia.net cc:  (bcc:
alok.garg/Polaris)
Subject: RE: Error message
display in the case of redirect = true
   12/09/03 06:02
   PM
   Please respond
   to Struts Users
   Mailing List







 not sure but the logic says that error messages are being stored in the
 REQUEST SCOPE and when you set redirect=true, naturally that's a new
 request
 so you won't get the errors set in earlier request.

 anybody else?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 09, 2003 5:53 PM
 To: Struts Users Mailing List
 Subject: Error message display in the case of redirect = true
 
 
 Hello all,
 I want to display the errors stack provided y Struts in the jsp page
using
 the html:errors/ tag. I am able to display it but the moment I add the
 redirect=true in the action mapping tag I am not able to see the error
 messages.
 
 Please help with it.
 
 Alok Garg
 Polaris Software Lab Ltd.
 ( + 91 - 022 - 28290019 Ext. # 1308 )
 
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]














 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This e-Mail may contain proprietary and confidential information and is sent for the 
intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you 
are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, 
copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment 
other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Error message display in the case of redirect = true

2003-12-10 Thread Gurpreet Dhanoa
HI

Alok , here is the code for it

Follwoing is the snapshot for the same.




 public ActionForward execute(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response) throws
Exception {
// Extract attributes and/or parameters we will need

 // When navigating to this action, ActionForm is null, so
// user's info is copied into the form and then saved in request
scope
if (form == null) {
// Set a transactional control token to prevent double posting
saveToken(request);
   }

//IF this Action has been called of by Submit Form
 // Validate the transactional control token
if (!isTokenValid(request))//This is an inbuild method of ACtion
class to check the Token
{

request.setAttribute(DOUBLE_POST_ATTEMPT_KEY, trapped);
return new ActionForward(mapping.getInput());
}



HOpe this may help

Cheers
Gary

- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 12:54 PM
Subject: Re: Error message display in the case of redirect = true



 Hello Gurpreet,
 Thanks for the input but can you please send me an example of how to do
it.

 Alok Garg
 Polaris Software Lab Ltd.
 ( + 91 - 022 - 28290019 Ext. # 1308 )



   Gurpreet Dhanoa
   [EMAIL PROTECTED] To:  Struts Users
Mailing List [EMAIL PROTECTED]
   atainc.com   cc:  (bcc:
alok.garg/Polaris)
 Subject: Re: Error message
display in the case of redirect = true
   12/10/03 11:28 AM
   Please respond to
   Struts Users
   Mailing List






 hi ALok

 You can stop the resubmitting of form with the help of Tokens in struts

 - Original Message -
 From: [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, December 10, 2003 11:00 AM
 Subject: RE: Error message display in the case of redirect = true


 
 
  You are right even I knew that it was the same problem. But then in that
  case if I make redirect = false and if the user refreshes the page then
 the
  request is again submitted.
  So, can you throw some light on how to stop the user from re submitting
 the
  same URL.
 
  Alok Garg
  Polaris Software Lab Ltd.
  ( + 91 - 022 - 28290019 Ext. # 1308 )
 
 
 
Navjot Singh
[EMAIL PROTECTED] To:  Struts Users
 Mailing List [EMAIL PROTECTED]
dia.net cc:  (bcc:
 alok.garg/Polaris)
 Subject: RE: Error
message
 display in the case of redirect = true
12/09/03 06:02
PM
Please respond
to Struts Users
Mailing List

 
 
 
 
 
 
  not sure but the logic says that error messages are being stored in the
  REQUEST SCOPE and when you set redirect=true, naturally that's a new
  request
  so you won't get the errors set in earlier request.
 
  anybody else?
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, December 09, 2003 5:53 PM
  To: Struts Users Mailing List
  Subject: Error message display in the case of redirect = true
  
  
  Hello all,
  I want to display the errors stack provided y Struts in the jsp page
 using
  the html:errors/ tag. I am able to display it but the moment I add
the
  redirect=true in the action mapping tag I am not able to see the error
  messages.
  
  Please help with it.
  
  Alok Garg
  Polaris Software Lab Ltd.
  ( + 91 - 022 - 28290019 Ext. # 1308 )
  
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 


 --
--

 


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]













 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error message display in the case of redirect = true

2003-12-09 Thread alok . garg
Hello all,
I want to display the errors stack provided y Struts in the jsp page using
the html:errors/ tag. I am able to display it but the moment I add the
redirect=true in the action mapping tag I am not able to see the error
messages.

Please help with it.

Alok Garg
Polaris Software Lab Ltd.
( + 91 - 022 - 28290019 Ext. # 1308 )


This e-Mail may contain proprietary and confidential information and is sent for the 
intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you 
are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, 
copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment 
other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Error message display in the case of redirect = true

2003-12-09 Thread Navjot Singh
not sure but the logic says that error messages are being stored in the
REQUEST SCOPE and when you set redirect=true, naturally that's a new request
so you won't get the errors set in earlier request.

anybody else?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 5:53 PM
To: Struts Users Mailing List
Subject: Error message display in the case of redirect = true


Hello all,
I want to display the errors stack provided y Struts in the jsp page using
the html:errors/ tag. I am able to display it but the moment I add the
redirect=true in the action mapping tag I am not able to see the error
messages.

Please help with it.

Alok Garg
Polaris Software Lab Ltd.
( + 91 - 022 - 28290019 Ext. # 1308 )





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error message display in the case of redirect = true

2003-12-09 Thread alok . garg


You are right even I knew that it was the same problem. But then in that
case if I make redirect = false and if the user refreshes the page then the
request is again submitted.
So, can you throw some light on how to stop the user from re submitting the
same URL.

Alok Garg
Polaris Software Lab Ltd.
( + 91 - 022 - 28290019 Ext. # 1308 )


   

  Navjot Singh   

  [EMAIL PROTECTED] To:  Struts Users Mailing List 
[EMAIL PROTECTED]   
  dia.net cc:  (bcc: alok.garg/Polaris)   

   Subject: RE: Error message display in 
the case of redirect = true   
  12/09/03 06:02   

  PM   

  Please respond   

  to Struts Users 

  Mailing List

   

   





not sure but the logic says that error messages are being stored in the
REQUEST SCOPE and when you set redirect=true, naturally that's a new
request
so you won't get the errors set in earlier request.

anybody else?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 5:53 PM
To: Struts Users Mailing List
Subject: Error message display in the case of redirect = true


Hello all,
I want to display the errors stack provided y Struts in the jsp page using
the html:errors/ tag. I am able to display it but the moment I add the
redirect=true in the action mapping tag I am not able to see the error
messages.

Please help with it.

Alok Garg
Polaris Software Lab Ltd.
( + 91 - 022 - 28290019 Ext. # 1308 )





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This e-Mail may contain proprietary and confidential information and is sent for the 
intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you 
are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, 
copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment 
other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Error message display in the case of redirect = true

2003-12-09 Thread Gurpreet Dhanoa
hi ALok

You can stop the resubmitting of form with the help of Tokens in struts

- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 11:00 AM
Subject: RE: Error message display in the case of redirect = true




 You are right even I knew that it was the same problem. But then in that
 case if I make redirect = false and if the user refreshes the page then
the
 request is again submitted.
 So, can you throw some light on how to stop the user from re submitting
the
 same URL.

 Alok Garg
 Polaris Software Lab Ltd.
 ( + 91 - 022 - 28290019 Ext. # 1308 )



   Navjot Singh
   [EMAIL PROTECTED] To:  Struts Users
Mailing List [EMAIL PROTECTED]
   dia.net cc:  (bcc:
alok.garg/Polaris)
Subject: RE: Error message
display in the case of redirect = true
   12/09/03 06:02
   PM
   Please respond
   to Struts Users
   Mailing List







 not sure but the logic says that error messages are being stored in the
 REQUEST SCOPE and when you set redirect=true, naturally that's a new
 request
 so you won't get the errors set in earlier request.

 anybody else?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 09, 2003 5:53 PM
 To: Struts Users Mailing List
 Subject: Error message display in the case of redirect = true
 
 
 Hello all,
 I want to display the errors stack provided y Struts in the jsp page
using
 the html:errors/ tag. I am able to display it but the moment I add the
 redirect=true in the action mapping tag I am not able to see the error
 messages.
 
 Please help with it.
 
 Alok Garg
 Polaris Software Lab Ltd.
 ( + 91 - 022 - 28290019 Ext. # 1308 )
 
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]













 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Selective error message display

2002-11-19 Thread James Childers
All,

I know this question has been asked before, but I couldn't find the answer in the 
archive.

I would like to be able to selectively display an error, depending on what exactly it 
was. Here is the code from my validate method in my VacationFinderForm:

if (retCal.before(depCal))
errors.add(returningMonthError, new 
ActionError(finder.error.returnbeforeleave));

And in my JSP:
logic:present name=vacationFinderForm property=returningMonthError
tr
td colspan=2
pkghtml:error property=returningMonth /
/td
/tr
/logic:present

Without the logic:present tags everything works fine, except the display isn't what 
I need it to be. I think the problem lies in the arguments being passed to the 
logic:present tag, but I can't figure out what they should be.

Thanks in advance,

-= James

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Selective error message display

2002-11-19 Thread Kris Schneider
James,

For 1.1, you might try something like:

logic:messagesPresent property=returningMonthError
  tr
td colspan=2
  html:errors property=returningMonthError/
/td
  /tr
/logic:messagesPresent

Quoting James Childers [EMAIL PROTECTED]:

 All,
 
 I know this question has been asked before, but I couldn't find the answer in
 the archive.
 
 I would like to be able to selectively display an error, depending on what
 exactly it was. Here is the code from my validate method in my
 VacationFinderForm:
 
 if (retCal.before(depCal))
 errors.add(returningMonthError, new
 ActionError(finder.error.returnbeforeleave));
 
 And in my JSP:
 logic:present name=vacationFinderForm property=returningMonthError
   tr
   td colspan=2
   pkghtml:error property=returningMonth /
   /td
   /tr
 /logic:present
 
 Without the logic:present tags everything works fine, except the display
 isn't what I need it to be. I think the problem lies in the arguments being
 passed to the logic:present tag, but I can't figure out what they should
 be.
 
 Thanks in advance,
 
 -= James
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Selective error message display

2002-11-19 Thread James Childers
Kris,

Unfortunately we are limited to using 1.0.2. Thanks for the suggestion, though.

-= J

 -Original Message-
 From: Kris Schneider [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 19, 2002 10:40 AM
 To: Struts Users Mailing List
 Subject: Re: Selective error message display
 
 
 James,
 
 For 1.1, you might try something like:
 
 logic:messagesPresent property=returningMonthError
   tr
 td colspan=2
   html:errors property=returningMonthError/
 /td
   /tr
 /logic:messagesPresent
 
 Quoting James Childers [EMAIL PROTECTED]:
 
  All,
  
  I know this question has been asked before, but I couldn't 
 find the answer in
  the archive.
  
  I would like to be able to selectively display an error, 
 depending on what
  exactly it was. Here is the code from my validate method in my
  VacationFinderForm:
  
  if (retCal.before(depCal))
  errors.add(returningMonthError, new
  ActionError(finder.error.returnbeforeleave));
  
  And in my JSP:
  logic:present name=vacationFinderForm 
 property=returningMonthError
  tr
  td colspan=2
  pkghtml:error property=returningMonth /
  /td
  /tr
  /logic:present
  
  Without the logic:present tags everything works fine, 
 except the display
  isn't what I need it to be. I think the problem lies in the 
 arguments being
  passed to the logic:present tag, but I can't figure out 
 what they should
  be.
  
  Thanks in advance,
  
  -= James
  

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Selective error message display

2002-11-19 Thread Kris Schneider
James,

I know the feeling ;-). Well, you could always check out the code for the 1.1
tag and develop your own for 1.0.2. I know that feeling too...

Quoting James Childers [EMAIL PROTECTED]:

 Kris,
 
 Unfortunately we are limited to using 1.0.2. Thanks for the suggestion,
 though.
 
 -= J
 
  -Original Message-
  From: Kris Schneider [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, November 19, 2002 10:40 AM
  To: Struts Users Mailing List
  Subject: Re: Selective error message display
  
  
  James,
  
  For 1.1, you might try something like:
  
  logic:messagesPresent property=returningMonthError
tr
  td colspan=2
html:errors property=returningMonthError/
  /td
/tr
  /logic:messagesPresent
  
  Quoting James Childers [EMAIL PROTECTED]:
  
   All,
   
   I know this question has been asked before, but I couldn't 
  find the answer in
   the archive.
   
   I would like to be able to selectively display an error, 
  depending on what
   exactly it was. Here is the code from my validate method in my
   VacationFinderForm:
   
   if (retCal.before(depCal))
   errors.add(returningMonthError, new
   ActionError(finder.error.returnbeforeleave));
   
   And in my JSP:
   logic:present name=vacationFinderForm 
  property=returningMonthError
 tr
 td colspan=2
 pkghtml:error property=returningMonth /
 /td
 /tr
   /logic:present
   
   Without the logic:present tags everything works fine, 
  except the display
   isn't what I need it to be. I think the problem lies in the 
  arguments being
   passed to the logic:present tag, but I can't figure out 
  what they should
   be.
   
   Thanks in advance,
   
   -= James
   
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]