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]



Validator-How to put the fields value in the resulting error message?

2004-02-03 Thread David Erickson
Hey all, still new with the validator.. I'm using the emailAddress validator
and I just want it to put the value of the field in the error message if its
not valid.. ie:
blah!blah.com is not a valid email address.

however I can't seem to make that happen.. here's what I've tried:
form name=/getPassword

field property=userName depends=required

arg0 key=User Name resource=false/

/field

field property=emailAddress depends=required,email

arg0 key=${emailAddress} resource=false/

/field

/form

and in my properties file

errors.email=li{0} is an invalid e-mail address./li



Thanks,

David


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



Re: Validator-How to put the fields value in the resulting error message?

2004-02-03 Thread hgosper
I think you have to do this in code in your form's validate method.

errors.add(new ActionError(errors.email), emailAddress);

I could be wrong but this is the way that I do it anyway... I'm not sure 
if the struts validator can do this using an expression like you have 
tried to do. 

Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155  Fax: +61 (0) 2 62468100
MOB: 0401 611779

This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.






David Erickson [EMAIL PROTECTED]
04/02/2004 10:56 AM
Please respond to Struts Users Mailing List

 
To: Struts Mailing List [EMAIL PROTECTED]
cc: 
Subject:Validator-How to put the fields value in the resulting error 
message?


Hey all, still new with the validator.. I'm using the emailAddress 
validator
and I just want it to put the value of the field in the error message if 
its
not valid.. ie:
blah!blah.com is not a valid email address.

however I can't seem to make that happen.. here's what I've tried:
form name=/getPassword

field property=userName depends=required

arg0 key=User Name resource=false/

/field

field property=emailAddress depends=required,email

arg0 key=${emailAddress} resource=false/

/field

/form

and in my properties file

errors.email=li{0} is an invalid e-mail address./li



Thanks,

David


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



This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com





RE: Please Help With This Error Message

2003-12-17 Thread fredatwork
Your statement is OK. It comes from the surrounding quote.

The only idea I have is to check double-quotes correctly.

Fred 

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: mercredi 17 décembre 2003 07:41
To: [EMAIL PROTECTED]
Subject: Please Help With This Error Message

Please help me to figure out this error message that I
got in the browser: equal symbol expected.

The error complains about this statement in my JSP:
bean:define id=author name=creator
scope=session type=java.lang.String/

and the above statement is intended to retrieve the
string creator from a session object.



__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-
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]



Re: Please Help With This Error Message

2003-12-17 Thread Firat TIRYAKI
maybe you don't have a space character between creator and scope... try to
write the tag in one line, not multiple lines.

F.

- Original Message - 
From: fredatwork [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 8:53 AM
Subject: RE: Please Help With This Error Message


Your statement is OK. It comes from the surrounding quote.

The only idea I have is to check double-quotes correctly.

Fred

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: mercredi 17 décembre 2003 07:41
To: [EMAIL PROTECTED]
Subject: Please Help With This Error Message

Please help me to figure out this error message that I
got in the browser: equal symbol expected.

The error complains about this statement in my JSP:
bean:define id=author name=creator
scope=session type=java.lang.String/

and the above statement is intended to retrieve the
string creator from a session object.



__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-
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]



Re: Please Help With This Error Message

2003-12-17 Thread Caroline Jen
Hi, I tried and tried.  I cannot figure out the error.
 I need your sharp eyes and experience.  I keep
getting this error message in the browser:

ServletException in:/article/content/postForm.jsp]
/article/content/postForm.jsp(32,67) equal symbol
expected' 

This postForm.jsp had worked find before I inserted:

bean:define id=author name=cr scope=session
type=java.lang.String/
html:text property=creator value=bean:write
name=author/ size=82 maxlength=25
tabindex=1/

And the error message points at the bean:define ...
tag.  The statements are in ONE line (they do not
wrapped around) in my file.

cr is passed to the postForm.jsp in a session object
this way:

c:set var=cr value=${articleForm.creator}
scope=session/ 

Thanks a lot.

-C 
--- Firat TIRYAKI [EMAIL PROTECTED] wrote:
 maybe you don't have a space character between
 creator and scope... try to
 write the tag in one line, not multiple lines.
 
 F.
 
 - Original Message - 
 From: fredatwork [EMAIL PROTECTED]
 To: 'Struts Users Mailing List'
 [EMAIL PROTECTED]
 Sent: Wednesday, December 17, 2003 8:53 AM
 Subject: RE: Please Help With This Error Message
 
 
 Your statement is OK. It comes from the surrounding
 quote.
 
 The only idea I have is to check double-quotes
 correctly.
 
 Fred
 
 -Original Message-
 From: Caroline Jen [mailto:[EMAIL PROTECTED]
 Sent: mercredi 17 décembre 2003 07:41
 To: [EMAIL PROTECTED]
 Subject: Please Help With This Error Message
 
 Please help me to figure out this error message that
 I
 got in the browser: equal symbol expected.
 
 The error complains about this statement in my JSP:
 bean:define id=author name=creator
 scope=session type=java.lang.String/
 
 and the above statement is intended to retrieve the
 string creator from a session object.
 
 
 
 __
 Do you Yahoo!?
 New Yahoo! Photos - easier uploading and sharing.
 http://photos.yahoo.com/
 

-
 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]
 


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



RE: Please Help With This Error Message

2003-12-17 Thread Barett McGavock
C,

You can't nest tags as you did in the value attribute.
bean:define ... value=bean:write name=author/ /

The rest of the list will croak when I recommend that you use
%= author %
instead of
bean:write name=author/

Maybe they can tell you a fancy -el/JSTL way to do it. :)

B

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 17, 2003 4:46 PM
To: Struts Users Mailing List
Subject: Re: Please Help With This Error Message


Hi, I tried and tried.  I cannot figure out the error.
 I need your sharp eyes and experience.  I keep
getting this error message in the browser:

ServletException in:/article/content/postForm.jsp]
/article/content/postForm.jsp(32,67) equal symbol
expected' 

This postForm.jsp had worked find before I inserted:

bean:define id=author name=cr scope=session type=java.lang.String/
html:text property=creator value=bean:write name=author/ size=82
maxlength=25 tabindex=1/

And the error message points at the bean:define ...
tag.  The statements are in ONE line (they do not
wrapped around) in my file.

cr is passed to the postForm.jsp in a session object
this way:

c:set var=cr value=${articleForm.creator} scope=session/ 

Thanks a lot.

-C 
--- Firat TIRYAKI [EMAIL PROTECTED] wrote:
 maybe you don't have a space character between
 creator and scope... try to
 write the tag in one line, not multiple lines.
 
 F.
 
 - Original Message -
 From: fredatwork [EMAIL PROTECTED]
 To: 'Struts Users Mailing List'
 [EMAIL PROTECTED]
 Sent: Wednesday, December 17, 2003 8:53 AM
 Subject: RE: Please Help With This Error Message
 
 
 Your statement is OK. It comes from the surrounding
 quote.
 
 The only idea I have is to check double-quotes
 correctly.
 
 Fred
 
 -Original Message-
 From: Caroline Jen [mailto:[EMAIL PROTECTED]
 Sent: mercredi 17 décembre 2003 07:41
 To: [EMAIL PROTECTED]
 Subject: Please Help With This Error Message
 
 Please help me to figure out this error message that
 I
 got in the browser: equal symbol expected.
 
 The error complains about this statement in my JSP: bean:define 
 id=author name=creator scope=session type=java.lang.String/
 
 and the above statement is intended to retrieve the
 string creator from a session object.
 
 
 
 __
 Do you Yahoo!?
 New Yahoo! Photos - easier uploading and sharing. 
 http://photos.yahoo.com/
 

-
 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]
 


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

-
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]



RE: Please Help With This Error Message

2003-12-17 Thread hgosper
 Maybe they can tell you a fancy -el/JSTL way to do it. :)

yes, if you use html-el:text instead then you should be able to use an el 
expression a'la:

html-el:text property=creator value=${author}/ size=82 
maxlength=25 tabindex=1/

you'll need something like this at the top of your jsp

%@ taglib uri=/WEB-INF/struts-html-el.tld prefix=html-el %

Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155  Fax: +61 (0) 2 62468100
MOB: 0401 611779

This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.






Barett McGavock [EMAIL PROTECTED]
18/12/2003 10:58 AM
Please respond to Struts Users Mailing List

 
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
cc: 'Caroline Jen' [EMAIL PROTECTED]
Subject:RE: Please Help With This Error Message


C,

You can't nest tags as you did in the value attribute.
bean:define ... value=bean:write name=author/ /

The rest of the list will croak when I recommend that you use
%= author %
instead of
bean:write name=author/

Maybe they can tell you a fancy -el/JSTL way to do it. :)

B

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 17, 2003 4:46 PM
To: Struts Users Mailing List
Subject: Re: Please Help With This Error Message


Hi, I tried and tried.  I cannot figure out the error.
 I need your sharp eyes and experience.  I keep
getting this error message in the browser:

ServletException in:/article/content/postForm.jsp]
/article/content/postForm.jsp(32,67) equal symbol
expected' 

This postForm.jsp had worked find before I inserted:

bean:define id=author name=cr scope=session 
type=java.lang.String/
html:text property=creator value=bean:write name=author/ 
size=82
maxlength=25 tabindex=1/

And the error message points at the bean:define ...
tag.  The statements are in ONE line (they do not
wrapped around) in my file.

cr is passed to the postForm.jsp in a session object
this way:

c:set var=cr value=${articleForm.creator} scope=session/ 

Thanks a lot.

-C 
--- Firat TIRYAKI [EMAIL PROTECTED] wrote:
 maybe you don't have a space character between
 creator and scope... try to
 write the tag in one line, not multiple lines.
 
 F.
 
 - Original Message -
 From: fredatwork [EMAIL PROTECTED]
 To: 'Struts Users Mailing List'
 [EMAIL PROTECTED]
 Sent: Wednesday, December 17, 2003 8:53 AM
 Subject: RE: Please Help With This Error Message
 
 
 Your statement is OK. It comes from the surrounding
 quote.
 
 The only idea I have is to check double-quotes
 correctly.
 
 Fred
 
 -Original Message-
 From: Caroline Jen [mailto:[EMAIL PROTECTED]
 Sent: mercredi 17 décembre 2003 07:41
 To: [EMAIL PROTECTED]
 Subject: Please Help With This Error Message
 
 Please help me to figure out this error message that
 I
 got in the browser: equal symbol expected.
 
 The error complains about this statement in my JSP: bean:define 
 id=author name=creator scope=session type=java.lang.String/
 
 and the above statement is intended to retrieve the
 string creator from a session object.
 
 
 
 __
 Do you Yahoo!?
 New Yahoo! Photos - easier uploading and sharing. 
 http://photos.yahoo.com/
 

-
 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]
 


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

-
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]





RE: Please Help With This Error Message

2003-12-17 Thread hgosper
Sorry, shouldn't have copy/pasted. I meant

html-el:text property=creator value=${author} size=82 
maxlength=25 tabindex=1/

Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155  Fax: +61 (0) 2 62468100
MOB: 0401 611779

This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.






[EMAIL PROTECTED]
18/12/2003 01:05 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:RE: Please Help With This Error Message


 Maybe they can tell you a fancy -el/JSTL way to do it. :)

yes, if you use html-el:text instead then you should be able to use an el 
expression a'la:

html-el:text property=creator value=${author}/ size=82 
maxlength=25 tabindex=1/

you'll need something like this at the top of your jsp

%@ taglib uri=/WEB-INF/struts-html-el.tld prefix=html-el %

Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155  Fax: +61 (0) 2 62468100
MOB: 0401 611779

This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 

e-mail for such purpose.






Barett McGavock [EMAIL PROTECTED]
18/12/2003 10:58 AM
Please respond to Struts Users Mailing List

 
To: 'Struts Users Mailing List' 
[EMAIL PROTECTED]
cc: 'Caroline Jen' [EMAIL PROTECTED]
Subject:RE: Please Help With This Error Message


C,

You can't nest tags as you did in the value attribute.
bean:define ... value=bean:write name=author/ /

The rest of the list will croak when I recommend that you use
%= author %
instead of
bean:write name=author/

Maybe they can tell you a fancy -el/JSTL way to do it. :)

B

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 17, 2003 4:46 PM
To: Struts Users Mailing List
Subject: Re: Please Help With This Error Message


Hi, I tried and tried.  I cannot figure out the error.
 I need your sharp eyes and experience.  I keep
getting this error message in the browser:

ServletException in:/article/content/postForm.jsp]
/article/content/postForm.jsp(32,67) equal symbol
expected' 

This postForm.jsp had worked find before I inserted:

bean:define id=author name=cr scope=session 
type=java.lang.String/
html:text property=creator value=bean:write name=author/ 
size=82
maxlength=25 tabindex=1/

And the error message points at the bean:define ...
tag.  The statements are in ONE line (they do not
wrapped around) in my file.

cr is passed to the postForm.jsp in a session object
this way:

c:set var=cr value=${articleForm.creator} scope=session/ 

Thanks a lot.

-C 
--- Firat TIRYAKI [EMAIL PROTECTED] wrote:
 maybe you don't have a space character between
 creator and scope... try to
 write the tag in one line, not multiple lines.
 
 F.
 
 - Original Message -
 From: fredatwork [EMAIL PROTECTED]
 To: 'Struts Users Mailing List'
 [EMAIL PROTECTED]
 Sent: Wednesday, December 17, 2003 8:53 AM
 Subject: RE: Please Help With This Error Message
 
 
 Your statement is OK. It comes from the surrounding
 quote.
 
 The only idea I have is to check double-quotes
 correctly.
 
 Fred
 
 -Original Message-
 From: Caroline Jen [mailto:[EMAIL PROTECTED]
 Sent: mercredi 17 décembre 2003 07:41
 To: [EMAIL PROTECTED]
 Subject: Please Help With This Error Message
 
 Please help me to figure out this error message that
 I
 got in the browser: equal symbol expected.
 
 The error complains about this statement in my JSP: bean:define 
 id=author name=creator scope=session type=java.lang.String/
 
 and the above statement is intended to retrieve the
 string creator from a session object.
 
 
 
 __
 Do you Yahoo!?
 New Yahoo! Photos - easier uploading and sharing. 
 http://photos.yahoo.com/
 

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

Please Help With This Error Message

2003-12-16 Thread Caroline Jen
Please help me to figure out this error message that I
got in the browser: equal symbol expected.

The error complains about this statement in my JSP:
bean:define id=author name=creator
scope=session type=java.lang.String/

and the above statement is intended to retrieve the
string creator from a session object.



__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



Re: Please Help With This Error Message

2003-12-16 Thread Gurpreet Dhanoa
hi Caroline

According to me this is perfectly fine. Please see there may be something
worng in your JSP

Regards
Gary
- Original Message -
From: Caroline Jen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 12:11 PM
Subject: Please Help With This Error Message


 Please help me to figure out this error message that I
 got in the browser: equal symbol expected.

 The error complains about this statement in my JSP:
 bean:define id=author name=creator
 scope=session type=java.lang.String/

 and the above statement is intended to retrieve the
 string creator from a session object.



 __
 Do you Yahoo!?
 New Yahoo! Photos - easier uploading and sharing.
 http://photos.yahoo.com/

 -
 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]



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!

2003-12-09 Thread Zakaria khabot
Hi,
I received this error message and don't understand the soiurce of error :

javax.servlet.jsp.JspException: No getter method for property action of bean 
org.apache.struts.taglib.html.BEAN

java.lang.Object 
org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext, 
java.lang.String, java.lang.String, java.lang.String)

RequestUtils.java:968

int org.apache.struts.taglib.html.BaseFieldTag.doStartTag()

BaseFieldTag.java:176

int org.apache.struts.taglib.html.HiddenTag.doStartTag()

HiddenTag.java:123

void _detail._jspService(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)

[/detail.jsp]

detail.jsp:29

My detail.jsp file is the following :
%@ page contentType=text/html;charset=windows-1252%
%@ taglib uri=/WEB-INF/app.tldprefix=app %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %

html
head
meta http-equiv=Content-Type content=text/html; charset=windows-1252
title
Consultation et modification des données.
/title
/head

body bgcolor=white
BLes données sur le DVD./B
html:errors/

html:form name=myform type=mypackage19.DetailForm  action=/process
 
script type=text/javascript
function go(action) {
document.forms[myform].action.value=action;
 }
 
/script

 
html:hidden property=action /


!--html:hidden property=action/--
table border=1 width=100%

  tr
td align=right
  bean:message key=prompt.id/:
/td
td align=left
html:text property=id size=16 /
!--html:hidden property=username write=true/--  

/td 

  /tr

  tr
td align=right
  bean:message key=prompt.title/:
/td
td align=left
  html:password property=title size=16 maxlength=16/
/td
  /tr

  tr
td align=right
  bean:message key=prompt.length/:
/td
td align=left
  html:text property=length size=50/
/td
  /tr

  tr
td align=right
  bean:message key=prompt.actors/:
/td
td align=left
  html:text property=actors size=50/
/td
  /tr

  tr
td align=right
html:submit value=Create onclick=go('create')
bean:message key=button.create/

  /html:submit
/td

td align=left
html:submit value=Update onclick=go('update')
 bean:message key=button.update/
/html:submit
nbsp;
html:submit value=Delete onclick=go('delete')
 bean:message key=button.delete/
/html:submit
nbsp;
html:reset
 bean:message key=button.reset/
/html:reset
nbsp;
html:cancel
 bean:message key=button.cancel/
/html:cancel
/td
  /tr

/table
/html:form

/body
/html

Thanks.
Zakaria

  


RE: Error message!

2003-12-09 Thread Jitesh Sinha
Do you have getAction() method in your actionForm?

-Original Message-
From: Zakaria khabot [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 08, 2002 9:25 PM
To: struts-user-help; struts-user
Subject: Error message!


Hi,
I received this error message and don't understand the soiurce of error :

javax.servlet.jsp.JspException: No getter method for property action of bean
org.apache.struts.taglib.html.BEAN

java.lang.Object
org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext,
java.lang.String, java.lang.String, java.lang.String)

RequestUtils.java:968

int org.apache.struts.taglib.html.BaseFieldTag.doStartTag()

BaseFieldTag.java:176

int org.apache.struts.taglib.html.HiddenTag.doStartTag()

HiddenTag.java:123

void _detail._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)

[/detail.jsp]

detail.jsp:29

My detail.jsp file is the following :
%@ page contentType=text/html;charset=windows-1252%
%@ taglib uri=/WEB-INF/app.tldprefix=app %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %

html
head
meta http-equiv=Content-Type content=text/html; charset=windows-1252
title
Consultation et modification des données.
/title
/head

body bgcolor=white
BLes données sur le DVD./B
html:errors/

html:form name=myform type=mypackage19.DetailForm  action=/process

script type=text/javascript
function go(action) {
document.forms[myform].action.value=action;
 }

/script


html:hidden property=action /


!--html:hidden property=action/--
table border=1 width=100%

  tr
td align=right
  bean:message key=prompt.id/:
/td
td align=left
html:text property=id size=16 /
!--html:hidden property=username write=true/--

/td

  /tr

  tr
td align=right
  bean:message key=prompt.title/:
/td
td align=left
  html:password property=title size=16 maxlength=16/
/td
  /tr

  tr
td align=right
  bean:message key=prompt.length/:
/td
td align=left
  html:text property=length size=50/
/td
  /tr

  tr
td align=right
  bean:message key=prompt.actors/:
/td
td align=left
  html:text property=actors size=50/
/td
  /tr

  tr
td align=right
html:submit value=Create onclick=go('create')
bean:message key=button.create/

  /html:submit
/td

td align=left
html:submit value=Update onclick=go('update')
 bean:message key=button.update/
/html:submit
nbsp;
html:submit value=Delete onclick=go('delete')
 bean:message key=button.delete/
/html:submit
nbsp;
html:reset
 bean:message key=button.reset/
/html:reset
nbsp;
html:cancel
 bean:message key=button.cancel/
/html:cancel
/td
  /tr

/table
/html:form

/body
/html

Thanks.
Zakaria




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



Re: Error message!

2003-12-09 Thread Gurpreet Dhanoa
hi
It seems your tld file for HTML is not right. Try to open the tld file and
check it
- Original Message -
From: Zakaria khabot [EMAIL PROTECTED]
To: struts-user-help [EMAIL PROTECTED]; struts-user
[EMAIL PROTECTED]
Sent: Sunday, December 08, 2002 9:24 PM
Subject: Error message!


Hi,
I received this error message and don't understand the soiurce of error :

javax.servlet.jsp.JspException: No getter method for property action of bean
org.apache.struts.taglib.html.BEAN

java.lang.Object
org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext,
java.lang.String, java.lang.String, java.lang.String)

RequestUtils.java:968

int org.apache.struts.taglib.html.BaseFieldTag.doStartTag()

BaseFieldTag.java:176

int org.apache.struts.taglib.html.HiddenTag.doStartTag()

HiddenTag.java:123

void _detail._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)

[/detail.jsp]

detail.jsp:29

My detail.jsp file is the following :
%@ page contentType=text/html;charset=windows-1252%
%@ taglib uri=/WEB-INF/app.tldprefix=app %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %

html
head
meta http-equiv=Content-Type content=text/html; charset=windows-1252
title
Consultation et modification des données.
/title
/head

body bgcolor=white
BLes données sur le DVD./B
html:errors/

html:form name=myform type=mypackage19.DetailForm  action=/process

script type=text/javascript
function go(action) {
document.forms[myform].action.value=action;
 }

/script


html:hidden property=action /


!--html:hidden property=action/--
table border=1 width=100%

  tr
td align=right
  bean:message key=prompt.id/:
/td
td align=left
html:text property=id size=16 /
!--html:hidden property=username write=true/--

/td

  /tr

  tr
td align=right
  bean:message key=prompt.title/:
/td
td align=left
  html:password property=title size=16 maxlength=16/
/td
  /tr

  tr
td align=right
  bean:message key=prompt.length/:
/td
td align=left
  html:text property=length size=50/
/td
  /tr

  tr
td align=right
  bean:message key=prompt.actors/:
/td
td align=left
  html:text property=actors size=50/
/td
  /tr

  tr
td align=right
html:submit value=Create onclick=go('create')
bean:message key=button.create/

  /html:submit
/td

td align=left
html:submit value=Update onclick=go('update')
 bean:message key=button.update/
/html:submit
nbsp;
html:submit value=Delete onclick=go('delete')
 bean:message key=button.delete/
/html:submit
nbsp;
html:reset
 bean:message key=button.reset/
/html:reset
nbsp;
html:cancel
 bean:message key=button.cancel/
/html:cancel
/td
  /tr

/table
/html:form

/body
/html

Thanks.
Zakaria



-
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!

2003-12-09 Thread Oron Gill Haus
It looks as though one of your tags in the 'app' include doesn't have a
getter/setter for an attribute you have specified in your TLD.

--- Zakaria khabot [EMAIL PROTECTED] wrote:
 Hi,
 I received this error message and don't understand the soiurce of
 error :
 
 javax.servlet.jsp.JspException: No getter method for property action
 of bean org.apache.struts.taglib.html.BEAN
 
   java.lang.Object

org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext,
 java.lang.String, java.lang.String, java.lang.String)
 
   RequestUtils.java:968
 
   int org.apache.struts.taglib.html.BaseFieldTag.doStartTag()
 
   BaseFieldTag.java:176
 
   int org.apache.struts.taglib.html.HiddenTag.doStartTag()
 
   HiddenTag.java:123
 
   void _detail._jspService(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse)
 
   [/detail.jsp]
 
   detail.jsp:29
 
 My detail.jsp file is the following :
 %@ page contentType=text/html;charset=windows-1252%
 %@ taglib uri=/WEB-INF/app.tldprefix=app %
 %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
 %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
 %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
 
 html
 head
 meta http-equiv=Content-Type content=text/html;
 charset=windows-1252
 title
 Consultation et modification des données.
 /title
 /head
 
 body bgcolor=white
 BLes données sur le DVD./B
 html:errors/
 
 html:form name=myform type=mypackage19.DetailForm 
 action=/process
  
 script type=text/javascript
 function go(action) {
 document.forms[myform].action.value=action;
  }
  
 /script
 
  
 html:hidden property=action /
 
 
 !--html:hidden property=action/--
 table border=1 width=100%
 
   tr
 td align=right
   bean:message key=prompt.id/:
 /td
 td align=left
 html:text property=id size=16 /
 !--html:hidden property=username write=true/--  
 
 /td 
 
   /tr
 
   tr
 td align=right
   bean:message key=prompt.title/:
 /td
 td align=left
   html:password property=title size=16 maxlength=16/
 /td
   /tr
 
   tr
 td align=right
   bean:message key=prompt.length/:
 /td
 td align=left
   html:text property=length size=50/
 /td
   /tr
 
   tr
 td align=right
   bean:message key=prompt.actors/:
 /td
 td align=left
   html:text property=actors size=50/
 /td
   /tr
 
   tr
 td align=right
 html:submit value=Create onclick=go('create')
 bean:message key=button.create/
 
   /html:submit
 /td
 
 td align=left
 html:submit value=Update onclick=go('update')
  bean:message key=button.update/
 /html:submit
 nbsp;
 html:submit value=Delete onclick=go('delete')
  bean:message key=button.delete/
 /html:submit
 nbsp;
 html:reset
  bean:message key=button.reset/
 /html:reset
 nbsp;
 html:cancel
  bean:message key=button.cancel/
 /html:cancel
 /td
   /tr
 
 /table
 /html:form
 
 /body
 /html
 
 Thanks.
 Zakaria
 
   
 


=
Oron Gill Haus
IBM CSE Content Manager 8 - Sun Certified Programmer Java 2 1.4
office: (410) 539-3733 x1348
fax:(410) 837-9535 c/o Oron
e-mail: [EMAIL PROTECTED]
web: http://www.electronicscene.com/oron_haus

-
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]



how to create an error message with a filter

2003-11-20 Thread Arne Brutschy
Hello,

I want to create a error message with my authentication filter. The
filter checks for an idle timeout. If this occours, it invalidates the
session. At this point, the filter should create a error message, i.e.
you have been idle for too long!. After that the filter redirects to
the login jsp (as always if the session is not valid). The jsp page
should use the common struts tags, to display this error message.

How can I do this? how can I store such a message in my request? How
can I forward that to my redirect?

Regards,
Arne


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



RE: how to create an error message with a filter

2003-11-20 Thread Joe Hertz
Suggestion:

In your filter, stick the current timestamp as an attribute in the
httpSession.

Before you do that though, check the timestamp that got stuck there on
the last request. If the delta  threshold, bounce the user to the right
page.

If you *really* wanted, you could generate an ActionError inside of the
filter I suppose, so the login page displays the reason he wound up
there, but I've never tried that, and my newbie self kind of shudders at
that.

-Joe

 -Original Message-
 From: Arne Brutschy [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 20, 2003 4:11 AM
 To: [EMAIL PROTECTED]
 Subject: how to create an error message with a filter
 
 
 Hello,
 
 I want to create a error message with my authentication 
 filter. The filter checks for an idle timeout. If this 
 occours, it invalidates the session. At this point, the 
 filter should create a error message, i.e. you have been 
 idle for too long!. After that the filter redirects to the 
 login jsp (as always if the session is not valid). The jsp 
 page should use the common struts tags, to display this error message.
 
 How can I do this? how can I store such a message in my 
 request? How can I forward that to my redirect?
 
 Regards,
 Arne
 
 
 -
 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]



Re[2]: how to create an error message with a filter

2003-11-20 Thread Arne Brutschy
Hello,

Thursday, November 20, 2003, 10:32:01 AM, Joe wrote:
JH If you *really* wanted, you could generate an ActionError inside of the
JH filter I suppose, so the login page displays the reason he wound up
JH there, but I've never tried that, and my newbie self kind of shudders at
JH that.

I got it, it's pretty easy. This is my code:

// check if the user was idle for too long
Date date = new Date();
if (session.getLastAccessedTime() + idleTimeout  date.getTime()) {
  session.invalidate();
  session = null;
  ActionErrors errors = new ActionErrors();
  errors.add(ActionErrors.GLOBAL_ERROR, new 
ActionError(login.message.timeout.idle));
  httpRequest.setAttribute(Globals.ERROR_KEY, errors);

// check if the session expired
} else if (session.getCreationTime() + authTimeout  date.getTime()) {
  session.invalidate();
  session = null;
  ActionErrors errors = new ActionErrors();
  errors.add(ActionErrors.GLOBAL_ERROR, new 
ActionError(login.message.timeout.auth));
  httpRequest.setAttribute(Globals.ERROR_KEY, errors);
}


Regards,
Arne


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



Can not get error message to display on the same page

2003-11-13 Thread Kam Lung Leung
Hi,

I am trying to write a logon page as discribed on the struts-example, but finding
some problem with my logon.jsp when  ActionLogon.java trys to return ActionErrors
or ActionMessages back to the original page, the logon.jsp. I am using Struts1.1
+ jboss-3.2.1_tomcat-4.1.24. I tried two ways to display the errors by using the 
htlm:errors/ tag and without the tag. Can someone tell me what is going on.

Thank you in advance,
Kam Lung Leung


Below is the tested condictions for both situations:
  
The first part which is without the html:errors/ on the logon page and I only
had the code listed
below in the logon.jsp.

logic:messagesPresent
There were errors
font color='red' 
html:messages id=validatorMsgs  message=true 
 bean:write name=validatorMsgs/ 
/html:messages
/font
/logic:messagesPresent

I tested the following conditions:
1) userName == empty string, and password == empty string (invalid format case)
  I got the popup window saying that User Name is required and Password is
required.

2) userName == hohoho and password == empty string (invalid format case)
  I got the popup window saying that Password is required.

3) userName == hohoho, and password == ho (invalid format case)
  I got no popup window, but instead the error massage was on the same logon page
saying There were errors. I am expecting a popup window with an error message
saying that password can not be less then 6 characters.

4) userName == hohoho, and password == hohoho (valid format case, but wrong
password)
  I got either popup window nor error message on the logon page. I am especting  
an error message as Invalid Password for this user on the logon page.

The second part which is with the html:errors/ on the logon page and I had the
code listed
below in the logon.jsp.
html:errors/
logic:messagesPresent
There were errors
font color='red' 
html:messages id=validatorMsgs  message=true 
 bean:write name=validatorMsgs/ 
/html:messages
/font
/logic:messagesPresent

I tested the following conditions:
1) userName == empty string, and password == empty string (invalid format case)
  I got the popup windown saying that User Name is required and Password is
required.
  
2) userName == hohoho and password == empty string (invalid format case)   
 
  I got the popup windown saying that Password is required.

3) userName == hohoho, and password == ho (invalid format case)
  I got these messages on the logon page. 
Password can not be less than 6 characters.
There were errors
  I am expecting to see the Password can not be less than 6 characters. on the
popup windown at least.

4) userName == hohoho, and password == hohoho (valid format case, but wrong
password)
   I got either popup windown nor error message on the logon page. I am especting
  an error message as Invalid Password for this user on the logon page.

 application.property 
adminLogonForm.userName=User Name
adminLogonForm.userName.maskmsg=The First Character Of The User Name Must Be A
Letter.
adminLogonForm.password=Password
adminLogonForm.password.maskmsg=The First Character Of The Password Must Be A
Letter.
adminLogonForm.error.password=Invalid Password for this user.


 Here is the validation.xml file 
global
constant
constant-namepasswordMask/constant-name
constant-value^[a-zA-Z]{1}[a-zA-Z0-9_]*$/constant-value
/constant
/global
formset
 form  name=adminLogonForm
   .
   .
   field property=password
 depends=required,minlength,maxlength,mask
 msg name=mask key=adminLogonForm.password.maskmsg/
 arg0 key=adminLogonForm.password/
 arg1 name=minlength key=${var:minlength} resource=false/
 arg1 name=maxlength key=${var:maxlength} resource=false/
 var
  var-nameminlength/var-name
  var-value6/var-value
 /var
 var
  var-namemaxlength/var-name
  var-value12/var-value
 /var
 var
  var-namemask/var-name
  var-value${passwordMask}/var-value
 /var
  /field
/form
/formset


struts-config.xml 
   form-bean   name=adminLogonForm
   type=com.wlwa.Infra.WebComponemt.Dispatcher.Forms.AdminLogonForm /
   /form-beans
 
   global-forwards
forward   name=logoff path=/adminLogoff.do/
forward   name=logon 
   path=/Infra/WebComponemt/Presentation/AdminLogon.jsp/
   /global-forwards
 
   action   path=/adminLogonSubmit
  type=com.wlwa.Infra.WebComponemt.Dispatcher.Actions.AdminLogonAction
  name=adminLogonForm
  scope=session
  validate=true
  input=logon
  forward name=success 
   path=/Infra/WebComponemt/Presentation/index.jsp

Re: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread Caroline Jen
My welcome page is displayed as the very first
screen without any problem.  The page has
logic:present and logic:notPresent tags, which
test if any registered user has logged on.  

The problem occurred after I filled out username, and
clicked the Submit button.  Thereafter, the welcome
page was not shown.  My welcome page looks like the
following:

Welcome.jsp

%@ taglib uri=/tags/struts-bean prefix=bean %
%@ taglib uri=/tags/struts-html prefix=html %
%@ taglib uri=/tags/struts-logic prefix=logic %
HTML
HEAD
TITLEWelcome!/TITLE
html:base/
/HEAD
BODY
logic:present name=user
H3Welcome bean:write name=user
property=username/!/H3
/logic:present
logic:notPresent scope=session name=user
H3Welcome World!/H3
/logic:notPresent
html:errors/
UL
LIhtml:link forward=logonSign
in/html:link/LI
logic:present name=user
LIhtml:link forward=logoffSign
out/html:link/LI
/logic:present
/UL
IMG src='struts-power.gif' alt='Powered by Struts'
/BODY
/HTML
--- Kwok Peng Tuck [EMAIL PROTECTED] wrote:
 You might want to put System.out.println(Line
 [number]) ; to see
 the flow in your action. BTW did you actually put
 anything(like hello 
 world) in Welcome.jsp ?
 
 
 Caroline Jen wrote:
 
 Which resource file needs to be updated?  I have
 checked the application.properties.  Nothing in
 that
 file is relevant to my problem.
 --- Abhijeet Mahalkar
 [EMAIL PROTECTED] wrote:
   
 
 have u updated the Resource files... ?
 abhijeet
  
 - Original Message - 
 From: Caroline Jen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, September 30, 2003 9:45 AM
 Subject: No Error Message But A Blank Page Is
 Displayed.
 
 
 I am experimenting a basic application - logon.  I
 got
 the first two screens working without problem. 
 However, the third screen displays a blank page
 (no
 error message).  I am having a very difficult time
 to
 figure out the problem; henceforth, seeking help. 
 Here is the history of my application:
 
 1. http://localhost:8080/LogonPractice/index.jsp
 (no
 problem and I clicked on Sign in)
 2.
 
 
 

http://localhost:8080/LogonPractice/Logon.do;jsessionid=170B50E4D8E07EE36290E98342E8BF9C
   
 
 (no problem and the screen asked for username and
 password.  I filled out the information and
 clicked
 on
 Submit)  
 3.
 http://localhost:8080/LogonPractice/LogonSubmit.do
 (displayed a blank page)
 
 The Tomcat log file shows the following (no error
 message at all):
 
 2003-09-29 23:29:26 action: Processing a GET for
 /Logon
 2003-09-29 23:29:26 action:  Looking for Action
 instance for class
 org.apache.struts.actions.ForwardAction
 2003-09-29 23:29:26 action:   Double checking for
 Action instance already there
 2003-09-29 23:29:26 action:   Creating new Action
 instance
 2003-09-29 23:29:35 action: Processing a POST for
 /LogonSubmit
 2003-09-29 23:29:35 action:  Looking for
 ActionForm
 bean under attribute 'logonForm'
 2003-09-29 23:29:35 action:  Creating new
 ActionForm
 instance of class
 'org.apache.artimus.logon.LogonForm'
 2003-09-29 23:29:35 action:  Storing instance
 under
 attribute 'logonForm' in scope 'request'
 2003-09-29 23:29:35 action:  Populating bean
 properties from this request
 2003-09-29 23:29:35 action:  Validating input form
 properties
 2003-09-29 23:29:35 action:   No errors detected,
 accepting input
 2003-09-29 23:29:35 action:  Looking for Action
 instance for class
 org.apache.artimus.logon.LogonAction
 2003-09-29 23:29:35 action:   Double checking for
 Action instance already there
 2003-09-29 23:29:35 action:   Creating new Action
 instance
 
 in my struts-config.xml, I have:
 
 action 
 path=/LogonSubmit

 type=org.apache.artimus.logon.LogonAction
 name=logonForm
 scope=request
 validate=true
 input=/signin/Logon.jsp
 forward
 name=valid
 path=/signin/Welcome.jsp/
 /action
 
 and my LogonAction.java is:
 
 package org.apache.artimus.logon;
 
 import java.io.IOException;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpSession;
 import javax.servlet.http.HttpServletResponse;
 import org.apache.struts.action.Action;
 import org.apache.struts.action.ActionError;
 import org.apache.struts.action.ActionErrors;
 import org.apache.struts.action.ActionForm;
 import org.apache.struts.action.ActionForward;
 import org.apache.struts.action.ActionMapping;
 import org.apache.struts.action.ActionServlet;
 
 import org.apache.artimus.lang.Constants;
 
 public final class LogonAction extends Action {
 
 public boolean isUserLogon(String username,
 String password) throws
 UserDirectoryException
 {
 
 return
 
 
 

(UserDirectory.getInstance().isValidPassword(username,password));
   
 
 // return true;
 
 }
 
 
 public ActionForward execute(ActionMapping
 mapping,
 ActionForm form,
 HttpServletRequest request

Re: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread amind
Your missing html:form
 My welcome page is displayed as the very first
 screen without any problem.  The page has
 logic:present and logic:notPresent tags, which
 test if any registered user has logged on.

 The problem occurred after I filled out username, and
 clicked the Submit button.  Thereafter, the welcome
 page was not shown.  My welcome page looks like the
 following:

 Welcome.jsp

 %@ taglib uri=/tags/struts-bean prefix=bean %
 %@ taglib uri=/tags/struts-html prefix=html %
 %@ taglib uri=/tags/struts-logic prefix=logic %
 HTML
 HEAD
 TITLEWelcome!/TITLE
 html:base/
 /HEAD
 BODY
 logic:present name=user
 H3Welcome bean:write name=user
 property=username/!/H3
 /logic:present
 logic:notPresent scope=session name=user
 H3Welcome World!/H3
 /logic:notPresent
 html:errors/
 UL
 LIhtml:link forward=logonSign
 in/html:link/LI
 logic:present name=user
 LIhtml:link forward=logoffSign
 out/html:link/LI
 /logic:present
 /UL
 IMG src='struts-power.gif' alt='Powered by Struts'
 /BODY
 /HTML
 --- Kwok Peng Tuck [EMAIL PROTECTED] wrote:
 You might want to put System.out.println(Line
 [number]) ; to see
 the flow in your action. BTW did you actually put
 anything(like hello
 world) in Welcome.jsp ?


 Caroline Jen wrote:

 Which resource file needs to be updated?  I have
 checked the application.properties.  Nothing in
 that
 file is relevant to my problem.
 --- Abhijeet Mahalkar
 [EMAIL PROTECTED] wrote:
 
 
 have u updated the Resource files... ?
 abhijeet
 
 - Original Message -
 From: Caroline Jen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, September 30, 2003 9:45 AM
 Subject: No Error Message But A Blank Page Is
 Displayed.
 
 
 I am experimenting a basic application - logon.  I
 got
 the first two screens working without problem.
 However, the third screen displays a blank page
 (no
 error message).  I am having a very difficult time
 to
 figure out the problem; henceforth, seeking help.
 Here is the history of my application:
 
 1. http://localhost:8080/LogonPractice/index.jsp
 (no
 problem and I clicked on Sign in)
 2.
 
 
 

http://localhost:8080/LogonPractice/Logon.do;jsessionid=170B50E4D8E07EE36290E98342E8BF9C
 
 
 (no problem and the screen asked for username and
 password.  I filled out the information and
 clicked
 on
 Submit)
 3.
 http://localhost:8080/LogonPractice/LogonSubmit.do
 (displayed a blank page)
 
 The Tomcat log file shows the following (no error
 message at all):
 
 2003-09-29 23:29:26 action: Processing a GET for
 /Logon
 2003-09-29 23:29:26 action:  Looking for Action
 instance for class
 org.apache.struts.actions.ForwardAction
 2003-09-29 23:29:26 action:   Double checking for
 Action instance already there
 2003-09-29 23:29:26 action:   Creating new Action
 instance
 2003-09-29 23:29:35 action: Processing a POST for
 /LogonSubmit
 2003-09-29 23:29:35 action:  Looking for
 ActionForm
 bean under attribute 'logonForm'
 2003-09-29 23:29:35 action:  Creating new
 ActionForm
 instance of class
 'org.apache.artimus.logon.LogonForm'
 2003-09-29 23:29:35 action:  Storing instance
 under
 attribute 'logonForm' in scope 'request'
 2003-09-29 23:29:35 action:  Populating bean
 properties from this request
 2003-09-29 23:29:35 action:  Validating input form
 properties
 2003-09-29 23:29:35 action:   No errors detected,
 accepting input
 2003-09-29 23:29:35 action:  Looking for Action
 instance for class
 org.apache.artimus.logon.LogonAction
 2003-09-29 23:29:35 action:   Double checking for
 Action instance already there
 2003-09-29 23:29:35 action:   Creating new Action
 instance
 
 in my struts-config.xml, I have:
 
 action
 path=/LogonSubmit
 
 type=org.apache.artimus.logon.LogonAction
 name=logonForm
 scope=request
 validate=true
 input=/signin/Logon.jsp
 forward
 name=valid
 path=/signin/Welcome.jsp/
 /action
 
 and my LogonAction.java is:
 
 package org.apache.artimus.logon;
 
 import java.io.IOException;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpSession;
 import javax.servlet.http.HttpServletResponse;
 import org.apache.struts.action.Action;
 import org.apache.struts.action.ActionError;
 import org.apache.struts.action.ActionErrors;
 import org.apache.struts.action.ActionForm;
 import org.apache.struts.action.ActionForward;
 import org.apache.struts.action.ActionMapping;
 import org.apache.struts.action.ActionServlet;
 
 import org.apache.artimus.lang.Constants;
 
 public final class LogonAction extends Action {
 
 public boolean isUserLogon(String username,
 String password) throws
 UserDirectoryException
 {
 
 return
 
 
 

(UserDirectory.getInstance().isValidPassword(username,password));
 
 
 // return true;
 
 }
 
 
 public ActionForward execute(ActionMapping
 mapping,
 ActionForm form,
 HttpServletRequest

Re: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread amind
You're missing html:form
 My welcome page is displayed as the very first
 screen without any problem.  The page has
 logic:present and logic:notPresent tags, which
 test if any registered user has logged on.

 The problem occurred after I filled out username, and
 clicked the Submit button.  Thereafter, the welcome
 page was not shown.  My welcome page looks like the
 following:

 Welcome.jsp

 %@ taglib uri=/tags/struts-bean prefix=bean %
 %@ taglib uri=/tags/struts-html prefix=html %
 %@ taglib uri=/tags/struts-logic prefix=logic %
 HTML
 HEAD
 TITLEWelcome!/TITLE
 html:base/
 /HEAD
 BODY
 logic:present name=user
 H3Welcome bean:write name=user
 property=username/!/H3
 /logic:present
 logic:notPresent scope=session name=user
 H3Welcome World!/H3
 /logic:notPresent
 html:errors/
 UL
 LIhtml:link forward=logonSign
 in/html:link/LI
 logic:present name=user
 LIhtml:link forward=logoffSign
 out/html:link/LI
 /logic:present
 /UL
 IMG src='struts-power.gif' alt='Powered by Struts'
 /BODY
 /HTML
 --- Kwok Peng Tuck [EMAIL PROTECTED] wrote:
 You might want to put System.out.println(Line
 [number]) ; to see
 the flow in your action. BTW did you actually put
 anything(like hello
 world) in Welcome.jsp ?


 Caroline Jen wrote:

 Which resource file needs to be updated?  I have
 checked the application.properties.  Nothing in
 that
 file is relevant to my problem.
 --- Abhijeet Mahalkar
 [EMAIL PROTECTED] wrote:
 
 
 have u updated the Resource files... ?
 abhijeet
 
 - Original Message -
 From: Caroline Jen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, September 30, 2003 9:45 AM
 Subject: No Error Message But A Blank Page Is
 Displayed.
 
 
 I am experimenting a basic application - logon.  I
 got
 the first two screens working without problem.
 However, the third screen displays a blank page
 (no
 error message).  I am having a very difficult time
 to
 figure out the problem; henceforth, seeking help.
 Here is the history of my application:
 
 1. http://localhost:8080/LogonPractice/index.jsp
 (no
 problem and I clicked on Sign in)
 2.
 
 
 

http://localhost:8080/LogonPractice/Logon.do;jsessionid=170B50E4D8E07EE36290E98342E8BF9C
 
 
 (no problem and the screen asked for username and
 password.  I filled out the information and
 clicked
 on
 Submit)
 3.
 http://localhost:8080/LogonPractice/LogonSubmit.do
 (displayed a blank page)
 
 The Tomcat log file shows the following (no error
 message at all):
 
 2003-09-29 23:29:26 action: Processing a GET for
 /Logon
 2003-09-29 23:29:26 action:  Looking for Action
 instance for class
 org.apache.struts.actions.ForwardAction
 2003-09-29 23:29:26 action:   Double checking for
 Action instance already there
 2003-09-29 23:29:26 action:   Creating new Action
 instance
 2003-09-29 23:29:35 action: Processing a POST for
 /LogonSubmit
 2003-09-29 23:29:35 action:  Looking for
 ActionForm
 bean under attribute 'logonForm'
 2003-09-29 23:29:35 action:  Creating new
 ActionForm
 instance of class
 'org.apache.artimus.logon.LogonForm'
 2003-09-29 23:29:35 action:  Storing instance
 under
 attribute 'logonForm' in scope 'request'
 2003-09-29 23:29:35 action:  Populating bean
 properties from this request
 2003-09-29 23:29:35 action:  Validating input form
 properties
 2003-09-29 23:29:35 action:   No errors detected,
 accepting input
 2003-09-29 23:29:35 action:  Looking for Action
 instance for class
 org.apache.artimus.logon.LogonAction
 2003-09-29 23:29:35 action:   Double checking for
 Action instance already there
 2003-09-29 23:29:35 action:   Creating new Action
 instance
 
 in my struts-config.xml, I have:
 
 action
 path=/LogonSubmit
 
 type=org.apache.artimus.logon.LogonAction
 name=logonForm
 scope=request
 validate=true
 input=/signin/Logon.jsp
 forward
 name=valid
 path=/signin/Welcome.jsp/
 /action
 
 and my LogonAction.java is:
 
 package org.apache.artimus.logon;
 
 import java.io.IOException;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpSession;
 import javax.servlet.http.HttpServletResponse;
 import org.apache.struts.action.Action;
 import org.apache.struts.action.ActionError;
 import org.apache.struts.action.ActionErrors;
 import org.apache.struts.action.ActionForm;
 import org.apache.struts.action.ActionForward;
 import org.apache.struts.action.ActionMapping;
 import org.apache.struts.action.ActionServlet;
 
 import org.apache.artimus.lang.Constants;
 
 public final class LogonAction extends Action {
 
 public boolean isUserLogon(String username,
 String password) throws
 UserDirectoryException
 {
 
 return
 
 
 

(UserDirectory.getInstance().isValidPassword(username,password));
 
 
 // return true;
 
 }
 
 
 public ActionForward execute(ActionMapping
 mapping,
 ActionForm form,
 HttpServletRequest

RE: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread Karr, David
I would want to see your web.xml, and any information that shows up in
the Tomcat console (not log file).

 -Original Message-
 From: Caroline Jen [mailto:[EMAIL PROTECTED] 
 
 I am experimenting a basic application - logon.  I got
 the first two screens working without problem. 
 However, the third screen displays a blank page (no
 error message).  I am having a very difficult time to
 figure out the problem; henceforth, seeking help. 
 Here is the history of my application:
 
 1. http://localhost:8080/LogonPractice/index.jsp (no
 problem and I clicked on Sign in)
 2.
 http://localhost:8080/LogonPractice/Logon.do;jsessionid=170B50
 E4D8E07EE36290E98342E8BF9C
 (no problem and the screen asked for username and
 password.  I filled out the information and clicked on
 Submit)  
 3. http://localhost:8080/LogonPractice/LogonSubmit.do
 (displayed a blank page)
 
 The Tomcat log file shows the following (no error
 message at all):
 
 2003-09-29 23:29:26 action: Processing a GET for
 /Logon
 2003-09-29 23:29:26 action:  Looking for Action
 instance for class
 org.apache.struts.actions.ForwardAction
 2003-09-29 23:29:26 action:   Double checking for
 Action instance already there
 2003-09-29 23:29:26 action:   Creating new Action
 instance
 2003-09-29 23:29:35 action: Processing a POST for
 /LogonSubmit
 2003-09-29 23:29:35 action:  Looking for ActionForm
 bean under attribute 'logonForm'
 2003-09-29 23:29:35 action:  Creating new ActionForm
 instance of class 'org.apache.artimus.logon.LogonForm'
 2003-09-29 23:29:35 action:  Storing instance under
 attribute 'logonForm' in scope 'request'
 2003-09-29 23:29:35 action:  Populating bean
 properties from this request
 2003-09-29 23:29:35 action:  Validating input form
 properties
 2003-09-29 23:29:35 action:   No errors detected,
 accepting input
 2003-09-29 23:29:35 action:  Looking for Action
 instance for class
 org.apache.artimus.logon.LogonAction
 2003-09-29 23:29:35 action:   Double checking for
 Action instance already there
 2003-09-29 23:29:35 action:   Creating new Action
 instance
 
 in my struts-config.xml, I have:
 
 action 
 path=/LogonSubmit

 type=org.apache.artimus.logon.LogonAction
 name=logonForm
 scope=request
 validate=true
 input=/signin/Logon.jsp
 forward
 name=valid
 path=/signin/Welcome.jsp/
 /action
 
 and my LogonAction.java is:
 
 package org.apache.artimus.logon;
 
 import java.io.IOException;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpSession;
 import javax.servlet.http.HttpServletResponse;
 import org.apache.struts.action.Action;
 import org.apache.struts.action.ActionError;
 import org.apache.struts.action.ActionErrors;
 import org.apache.struts.action.ActionForm;
 import org.apache.struts.action.ActionForward;
 import org.apache.struts.action.ActionMapping;
 import org.apache.struts.action.ActionServlet;
 
 import org.apache.artimus.lang.Constants;
 
 public final class LogonAction extends Action {
 
 public boolean isUserLogon(String username,
 String password) throws UserDirectoryException
 {
 
 return
 (UserDirectory.getInstance().isValidPassword(username,password));
 // return true;
 
 }
 
 
 public ActionForward execute(ActionMapping
 mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
 throws IOException, ServletException {
 
 // Obtain username and password from web tier
 String username = ((LogonForm)
 form).getUsername();
 String password = ((LogonForm)
 form).getPassword();
 
 // Validate credentials with business tier
 boolean validated = false;
 try {
 
 validated =
 isUserLogon(username,password);
 }
 
 catch (UserDirectoryException ude) {
 // couldn't connect to user directory
 ActionErrors errors = new ActionErrors();
 errors.add(ActionErrors.GLOBAL_ERROR,
 new ActionError(error.logon.connect));
 saveErrors(request,errors);
 // return to input page
 return (new
 ActionForward(mapping.getInput()));
 }
 
 if (!validated) {
 // credentials don't match
 ActionErrors errors = new ActionErrors();
 errors.add(ActionErrors.GLOBAL_ERROR,
 new ActionError(error.logon.invalid));
 saveErrors(request,errors);
 // return to input page
 return (new
 ActionForward(mapping.getInput()));
 }
 
 // Save our logged-in user in the session,
 // because we use it again later.
 HttpSession session = request.getSession();
 session.setAttribute(Constants.USER_KEY,
 form);
 
 // Log this event, if appropriate

RE: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread Srinivas Gunturu
I have seen this behavior when the jsp page I am forwarding to is not found such as in 
wrong location, wrong case (Welcome.jsp vs welcome.jsp).  But we are using tiles so 
not sure if it is tiles specific or not.

Hope this helps.

 [EMAIL PROTECTED] 09/30/03 10:28AM 
I would want to see your web.xml, and any information that shows up in
the Tomcat console (not log file).

 -Original Message-
 From: Caroline Jen [mailto:[EMAIL PROTECTED] 
 
 I am experimenting a basic application - logon.  I got
 the first two screens working without problem. 
 However, the third screen displays a blank page (no
 error message).  I am having a very difficult time to
 figure out the problem; henceforth, seeking help. 
 Here is the history of my application:
 
 1. http://localhost:8080/LogonPractice/index.jsp (no
 problem and I clicked on Sign in)
 2.
 http://localhost:8080/LogonPractice/Logon.do;jsessionid=170B50 
 E4D8E07EE36290E98342E8BF9C
 (no problem and the screen asked for username and
 password.  I filled out the information and clicked on
 Submit)  
 3. http://localhost:8080/LogonPractice/LogonSubmit.do 
 (displayed a blank page)
 
 The Tomcat log file shows the following (no error
 message at all):
 
 2003-09-29 23:29:26 action: Processing a GET for
 /Logon
 2003-09-29 23:29:26 action:  Looking for Action
 instance for class
 org.apache.struts.actions.ForwardAction
 2003-09-29 23:29:26 action:   Double checking for
 Action instance already there
 2003-09-29 23:29:26 action:   Creating new Action
 instance
 2003-09-29 23:29:35 action: Processing a POST for
 /LogonSubmit
 2003-09-29 23:29:35 action:  Looking for ActionForm
 bean under attribute 'logonForm'
 2003-09-29 23:29:35 action:  Creating new ActionForm
 instance of class 'org.apache.artimus.logon.LogonForm'
 2003-09-29 23:29:35 action:  Storing instance under
 attribute 'logonForm' in scope 'request'
 2003-09-29 23:29:35 action:  Populating bean
 properties from this request
 2003-09-29 23:29:35 action:  Validating input form
 properties
 2003-09-29 23:29:35 action:   No errors detected,
 accepting input
 2003-09-29 23:29:35 action:  Looking for Action
 instance for class
 org.apache.artimus.logon.LogonAction
 2003-09-29 23:29:35 action:   Double checking for
 Action instance already there
 2003-09-29 23:29:35 action:   Creating new Action
 instance
 
 in my struts-config.xml, I have:
 
 action 
 path=/LogonSubmit

 type=org.apache.artimus.logon.LogonAction
 name=logonForm
 scope=request
 validate=true
 input=/signin/Logon.jsp
 forward
 name=valid
 path=/signin/Welcome.jsp/
 /action
 
 and my LogonAction.java is:
 
 package org.apache.artimus.logon;
 
 import java.io.IOException;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpSession;
 import javax.servlet.http.HttpServletResponse;
 import org.apache.struts.action.Action;
 import org.apache.struts.action.ActionError;
 import org.apache.struts.action.ActionErrors;
 import org.apache.struts.action.ActionForm;
 import org.apache.struts.action.ActionForward;
 import org.apache.struts.action.ActionMapping;
 import org.apache.struts.action.ActionServlet;
 
 import org.apache.artimus.lang.Constants;
 
 public final class LogonAction extends Action {
 
 public boolean isUserLogon(String username,
 String password) throws UserDirectoryException
 {
 
 return
 (UserDirectory.getInstance().isValidPassword(username,password));
 // return true;
 
 }
 
 
 public ActionForward execute(ActionMapping
 mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
 throws IOException, ServletException {
 
 // Obtain username and password from web tier
 String username = ((LogonForm)
 form).getUsername();
 String password = ((LogonForm)
 form).getPassword();
 
 // Validate credentials with business tier
 boolean validated = false;
 try {
 
 validated =
 isUserLogon(username,password);
 }
 
 catch (UserDirectoryException ude) {
 // couldn't connect to user directory
 ActionErrors errors = new ActionErrors();
 errors.add(ActionErrors.GLOBAL_ERROR,
 new ActionError(error.logon.connect));
 saveErrors(request,errors);
 // return to input page
 return (new
 ActionForward(mapping.getInput()));
 }
 
 if (!validated) {
 // credentials don't match
 ActionErrors errors = new ActionErrors();
 errors.add(ActionErrors.GLOBAL_ERROR,
 new ActionError(error.logon.invalid));
 saveErrors(request,errors);
 // return to input page
 return (new
 ActionForward(mapping.getInput

RE: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread Richard J. Duncan
In my experience, this is because your execute/perform is returning null as the result 
of findForward(forwardname) not finding anything. Usually, this is because I 
misspelled the forward name.

Returning null from execute/perform tells struts that your method wrote the response 
itself.

Regards,
 
Rich

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2003 3:05 AM
To: Struts Users Mailing List
Subject: Re: No Error Message But A Blank Page Is Displayed.

Your missing html:form
 My welcome page is displayed as the very first
 screen without any problem.  The page has
 logic:present and logic:notPresent tags, which
 test if any registered user has logged on.

 The problem occurred after I filled out username, and
 clicked the Submit button.  Thereafter, the welcome
 page was not shown.  My welcome page looks like the
 following:

 Welcome.jsp

 %@ taglib uri=/tags/struts-bean prefix=bean %
 %@ taglib uri=/tags/struts-html prefix=html %
 %@ taglib uri=/tags/struts-logic prefix=logic %
 HTML
 HEAD
 TITLEWelcome!/TITLE
 html:base/
 /HEAD
 BODY
 logic:present name=user
 H3Welcome bean:write name=user
 property=username/!/H3
 /logic:present
 logic:notPresent scope=session name=user
 H3Welcome World!/H3
 /logic:notPresent
 html:errors/
 UL
 LIhtml:link forward=logonSign
 in/html:link/LI
 logic:present name=user
 LIhtml:link forward=logoffSign
 out/html:link/LI
 /logic:present
 /UL
 IMG src='struts-power.gif' alt='Powered by Struts'
 /BODY
 /HTML
 --- Kwok Peng Tuck [EMAIL PROTECTED] wrote:
 You might want to put System.out.println(Line
 [number]) ; to see
 the flow in your action. BTW did you actually put
 anything(like hello
 world) in Welcome.jsp ?


 Caroline Jen wrote:

 Which resource file needs to be updated?  I have
 checked the application.properties.  Nothing in
 that
 file is relevant to my problem.
 --- Abhijeet Mahalkar
 [EMAIL PROTECTED] wrote:
 
 
 have u updated the Resource files... ?
 abhijeet
 
 - Original Message -
 From: Caroline Jen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, September 30, 2003 9:45 AM
 Subject: No Error Message But A Blank Page Is
 Displayed.
 
 
 I am experimenting a basic application - logon.  I
 got
 the first two screens working without problem.
 However, the third screen displays a blank page
 (no
 error message).  I am having a very difficult time
 to
 figure out the problem; henceforth, seeking help.
 Here is the history of my application:
 
 1. http://localhost:8080/LogonPractice/index.jsp
 (no
 problem and I clicked on Sign in)
 2.
 
 
 

http://localhost:8080/LogonPractice/Logon.do;jsessionid=170B50E4D8E07EE36290E98342E8BF9C
 
 
 (no problem and the screen asked for username and
 password.  I filled out the information and
 clicked
 on
 Submit)
 3.
 http://localhost:8080/LogonPractice/LogonSubmit.do
 (displayed a blank page)
 
 The Tomcat log file shows the following (no error
 message at all):
 
 2003-09-29 23:29:26 action: Processing a GET for
 /Logon
 2003-09-29 23:29:26 action:  Looking for Action
 instance for class
 org.apache.struts.actions.ForwardAction
 2003-09-29 23:29:26 action:   Double checking for
 Action instance already there
 2003-09-29 23:29:26 action:   Creating new Action
 instance
 2003-09-29 23:29:35 action: Processing a POST for
 /LogonSubmit
 2003-09-29 23:29:35 action:  Looking for
 ActionForm
 bean under attribute 'logonForm'
 2003-09-29 23:29:35 action:  Creating new
 ActionForm
 instance of class
 'org.apache.artimus.logon.LogonForm'
 2003-09-29 23:29:35 action:  Storing instance
 under
 attribute 'logonForm' in scope 'request'
 2003-09-29 23:29:35 action:  Populating bean
 properties from this request
 2003-09-29 23:29:35 action:  Validating input form
 properties
 2003-09-29 23:29:35 action:   No errors detected,
 accepting input
 2003-09-29 23:29:35 action:  Looking for Action
 instance for class
 org.apache.artimus.logon.LogonAction
 2003-09-29 23:29:35 action:   Double checking for
 Action instance already there
 2003-09-29 23:29:35 action:   Creating new Action
 instance
 
 in my struts-config.xml, I have:
 
 action
 path=/LogonSubmit
 
 type=org.apache.artimus.logon.LogonAction
 name=logonForm
 scope=request
 validate=true
 input=/signin/Logon.jsp
 forward
 name=valid
 path=/signin/Welcome.jsp/
 /action
 
 and my LogonAction.java is:
 
 package org.apache.artimus.logon;
 
 import java.io.IOException;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpSession;
 import javax.servlet.http.HttpServletResponse;
 import org.apache.struts.action.Action;
 import org.apache.struts.action.ActionError;
 import org.apache.struts.action.ActionErrors;
 import org.apache.struts.action.ActionForm;
 import org.apache.struts.action.ActionForward;
 import

RE: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread Caroline Jen
I am very grateful for the overwhelming help that I
have received.  

I followed the advices given by all of you and paid
special attention to possible mis-spelling in forward
mapping.  I did not find any mis-spelling or mixing up
of lower case/upper case.

Finally, I re-typed all the key words in the forward
mapping parts of the program.  Everything worked -  I
got the expected page displayed in the browser.

I still do not have any idea why I got a blank page
last night.  I would be more than happy to share my
experience with all of you if I knew the root cause of
the problem.  But, I do not know.

-Caroline
--- Richard J. Duncan [EMAIL PROTECTED] wrote:
 In my experience, this is because your
 execute/perform is returning null as the result of
 findForward(forwardname) not finding anything.
 Usually, this is because I misspelled the forward
 name.
 
 Returning null from execute/perform tells struts
 that your method wrote the response itself.
 
 Regards,
  
 Rich
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 30, 2003 3:05 AM
 To: Struts Users Mailing List
 Subject: Re: No Error Message But A Blank Page Is
 Displayed.
 
 Your missing html:form
  My welcome page is displayed as the very first
  screen without any problem.  The page has
  logic:present and logic:notPresent tags, which
  test if any registered user has logged on.
 
  The problem occurred after I filled out username,
 and
  clicked the Submit button.  Thereafter, the
 welcome
  page was not shown.  My welcome page looks like
 the
  following:
 
  Welcome.jsp
 
  %@ taglib uri=/tags/struts-bean prefix=bean
 %
  %@ taglib uri=/tags/struts-html prefix=html
 %
  %@ taglib uri=/tags/struts-logic prefix=logic
 %
  HTML
  HEAD
  TITLEWelcome!/TITLE
  html:base/
  /HEAD
  BODY
  logic:present name=user
  H3Welcome bean:write name=user
  property=username/!/H3
  /logic:present
  logic:notPresent scope=session name=user
  H3Welcome World!/H3
  /logic:notPresent
  html:errors/
  UL
  LIhtml:link forward=logonSign
  in/html:link/LI
  logic:present name=user
  LIhtml:link forward=logoffSign
  out/html:link/LI
  /logic:present
  /UL
  IMG src='struts-power.gif' alt='Powered by
 Struts'
  /BODY
  /HTML
  --- Kwok Peng Tuck [EMAIL PROTECTED] wrote:
  You might want to put System.out.println(Line
  [number]) ; to see
  the flow in your action. BTW did you actually put
  anything(like hello
  world) in Welcome.jsp ?
 
 
  Caroline Jen wrote:
 
  Which resource file needs to be updated?  I have
  checked the application.properties.  Nothing in
  that
  file is relevant to my problem.
  --- Abhijeet Mahalkar
  [EMAIL PROTECTED] wrote:
  
  
  have u updated the Resource files... ?
  abhijeet
  
  - Original Message -
  From: Caroline Jen [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, September 30, 2003 9:45 AM
  Subject: No Error Message But A Blank Page Is
  Displayed.
  
  
  I am experimenting a basic application - logon.
  I
  got
  the first two screens working without problem.
  However, the third screen displays a blank page
  (no
  error message).  I am having a very difficult
 time
  to
  figure out the problem; henceforth, seeking
 help.
  Here is the history of my application:
  
  1.
 http://localhost:8080/LogonPractice/index.jsp
  (no
  problem and I clicked on Sign in)
  2.
  
  
  
 

http://localhost:8080/LogonPractice/Logon.do;jsessionid=170B50E4D8E07EE36290E98342E8BF9C
  
  
  (no problem and the screen asked for username
 and
  password.  I filled out the information and
  clicked
  on
  Submit)
  3.
 
 http://localhost:8080/LogonPractice/LogonSubmit.do
  (displayed a blank page)
  
  The Tomcat log file shows the following (no
 error
  message at all):
  
  2003-09-29 23:29:26 action: Processing a GET
 for
  /Logon
  2003-09-29 23:29:26 action:  Looking for Action
  instance for class
  org.apache.struts.actions.ForwardAction
  2003-09-29 23:29:26 action:   Double checking
 for
  Action instance already there
  2003-09-29 23:29:26 action:   Creating new
 Action
  instance
  2003-09-29 23:29:35 action: Processing a POST
 for
  /LogonSubmit
  2003-09-29 23:29:35 action:  Looking for
  ActionForm
  bean under attribute 'logonForm'
  2003-09-29 23:29:35 action:  Creating new
  ActionForm
  instance of class
  'org.apache.artimus.logon.LogonForm'
  2003-09-29 23:29:35 action:  Storing instance
  under
  attribute 'logonForm' in scope 'request'
  2003-09-29 23:29:35 action:  Populating bean
  properties from this request
  2003-09-29 23:29:35 action:  Validating input
 form
  properties
  2003-09-29 23:29:35 action:   No errors
 detected,
  accepting input
  2003-09-29 23:29:35 action:  Looking for Action
  instance for class
  org.apache.artimus.logon.LogonAction
  2003-09-29 23:29:35 action:   Double checking
 for
  Action instance already there
  2003-09-29 23:29:35 action:   Creating new
 Action
  instance
  
  in my struts-config.xml, I have

No Error Message But A Blank Page Is Displayed.

2003-09-29 Thread Caroline Jen
I am experimenting a basic application - logon.  I got
the first two screens working without problem. 
However, the third screen displays a blank page (no
error message).  I am having a very difficult time to
figure out the problem; henceforth, seeking help. 
Here is the history of my application:

1. http://localhost:8080/LogonPractice/index.jsp (no
problem and I clicked on Sign in)
2.
http://localhost:8080/LogonPractice/Logon.do;jsessionid=170B50E4D8E07EE36290E98342E8BF9C
(no problem and the screen asked for username and
password.  I filled out the information and clicked on
Submit)  
3. http://localhost:8080/LogonPractice/LogonSubmit.do
(displayed a blank page)

The Tomcat log file shows the following (no error
message at all):

2003-09-29 23:29:26 action: Processing a GET for
/Logon
2003-09-29 23:29:26 action:  Looking for Action
instance for class
org.apache.struts.actions.ForwardAction
2003-09-29 23:29:26 action:   Double checking for
Action instance already there
2003-09-29 23:29:26 action:   Creating new Action
instance
2003-09-29 23:29:35 action: Processing a POST for
/LogonSubmit
2003-09-29 23:29:35 action:  Looking for ActionForm
bean under attribute 'logonForm'
2003-09-29 23:29:35 action:  Creating new ActionForm
instance of class 'org.apache.artimus.logon.LogonForm'
2003-09-29 23:29:35 action:  Storing instance under
attribute 'logonForm' in scope 'request'
2003-09-29 23:29:35 action:  Populating bean
properties from this request
2003-09-29 23:29:35 action:  Validating input form
properties
2003-09-29 23:29:35 action:   No errors detected,
accepting input
2003-09-29 23:29:35 action:  Looking for Action
instance for class
org.apache.artimus.logon.LogonAction
2003-09-29 23:29:35 action:   Double checking for
Action instance already there
2003-09-29 23:29:35 action:   Creating new Action
instance

in my struts-config.xml, I have:

action 
path=/LogonSubmit
   
type=org.apache.artimus.logon.LogonAction
name=logonForm
scope=request
validate=true
input=/signin/Logon.jsp
forward
name=valid
path=/signin/Welcome.jsp/
/action

and my LogonAction.java is:

package org.apache.artimus.logon;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;

import org.apache.artimus.lang.Constants;

public final class LogonAction extends Action {

public boolean isUserLogon(String username,
String password) throws UserDirectoryException
{

return
(UserDirectory.getInstance().isValidPassword(username,password));
// return true;

}


public ActionForward execute(ActionMapping
mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {

// Obtain username and password from web tier
String username = ((LogonForm)
form).getUsername();
String password = ((LogonForm)
form).getPassword();

// Validate credentials with business tier
boolean validated = false;
try {

validated =
isUserLogon(username,password);
}

catch (UserDirectoryException ude) {
// couldn't connect to user directory
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(error.logon.connect));
saveErrors(request,errors);
// return to input page
return (new
ActionForward(mapping.getInput()));
}

if (!validated) {
// credentials don't match
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(error.logon.invalid));
saveErrors(request,errors);
// return to input page
return (new
ActionForward(mapping.getInput()));
}

// Save our logged-in user in the session,
// because we use it again later.
HttpSession session = request.getSession();
session.setAttribute(Constants.USER_KEY,
form);

// Log this event, if appropriate
if (servlet.getDebug() = Constants.DEBUG) {
StringBuffer message =
new StringBuffer(LogonAction: User
');
message.append(username);
message.append(' logged on in session );
message.append(session.getId());
servlet.log(message.toString

Re: No Error Message But A Blank Page Is Displayed.

2003-09-29 Thread Abhijeet Mahalkar
have u updated the Resource files... ?
abhijeet
 
- Original Message - 
From: Caroline Jen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 9:45 AM
Subject: No Error Message But A Blank Page Is Displayed.


I am experimenting a basic application - logon.  I got
the first two screens working without problem. 
However, the third screen displays a blank page (no
error message).  I am having a very difficult time to
figure out the problem; henceforth, seeking help. 
Here is the history of my application:

1. http://localhost:8080/LogonPractice/index.jsp (no
problem and I clicked on Sign in)
2.
http://localhost:8080/LogonPractice/Logon.do;jsessionid=170B50E4D8E07EE36290E98342E8BF9C
(no problem and the screen asked for username and
password.  I filled out the information and clicked on
Submit)  
3. http://localhost:8080/LogonPractice/LogonSubmit.do
(displayed a blank page)

The Tomcat log file shows the following (no error
message at all):

2003-09-29 23:29:26 action: Processing a GET for
/Logon
2003-09-29 23:29:26 action:  Looking for Action
instance for class
org.apache.struts.actions.ForwardAction
2003-09-29 23:29:26 action:   Double checking for
Action instance already there
2003-09-29 23:29:26 action:   Creating new Action
instance
2003-09-29 23:29:35 action: Processing a POST for
/LogonSubmit
2003-09-29 23:29:35 action:  Looking for ActionForm
bean under attribute 'logonForm'
2003-09-29 23:29:35 action:  Creating new ActionForm
instance of class 'org.apache.artimus.logon.LogonForm'
2003-09-29 23:29:35 action:  Storing instance under
attribute 'logonForm' in scope 'request'
2003-09-29 23:29:35 action:  Populating bean
properties from this request
2003-09-29 23:29:35 action:  Validating input form
properties
2003-09-29 23:29:35 action:   No errors detected,
accepting input
2003-09-29 23:29:35 action:  Looking for Action
instance for class
org.apache.artimus.logon.LogonAction
2003-09-29 23:29:35 action:   Double checking for
Action instance already there
2003-09-29 23:29:35 action:   Creating new Action
instance

in my struts-config.xml, I have:

action 
path=/LogonSubmit
   
type=org.apache.artimus.logon.LogonAction
name=logonForm
scope=request
validate=true
input=/signin/Logon.jsp
forward
name=valid
path=/signin/Welcome.jsp/
/action

and my LogonAction.java is:

package org.apache.artimus.logon;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;

import org.apache.artimus.lang.Constants;

public final class LogonAction extends Action {

public boolean isUserLogon(String username,
String password) throws UserDirectoryException
{

return
(UserDirectory.getInstance().isValidPassword(username,password));
// return true;

}


public ActionForward execute(ActionMapping
mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {

// Obtain username and password from web tier
String username = ((LogonForm)
form).getUsername();
String password = ((LogonForm)
form).getPassword();

// Validate credentials with business tier
boolean validated = false;
try {

validated =
isUserLogon(username,password);
}

catch (UserDirectoryException ude) {
// couldn't connect to user directory
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(error.logon.connect));
saveErrors(request,errors);
// return to input page
return (new
ActionForward(mapping.getInput()));
}

if (!validated) {
// credentials don't match
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(error.logon.invalid));
saveErrors(request,errors);
// return to input page
return (new
ActionForward(mapping.getInput()));
}

// Save our logged-in user in the session,
// because we use it again later.
HttpSession session = request.getSession();
session.setAttribute(Constants.USER_KEY,
form);

// Log this event, if appropriate
if (servlet.getDebug() = Constants.DEBUG) {
StringBuffer message

Re: No Error Message But A Blank Page Is Displayed.

2003-09-29 Thread Caroline Jen
Which resource file needs to be updated?  I have
checked the application.properties.  Nothing in that
file is relevant to my problem.
--- Abhijeet Mahalkar
[EMAIL PROTECTED] wrote:
 have u updated the Resource files... ?
 abhijeet
  
 - Original Message - 
 From: Caroline Jen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, September 30, 2003 9:45 AM
 Subject: No Error Message But A Blank Page Is
 Displayed.
 
 
 I am experimenting a basic application - logon.  I
 got
 the first two screens working without problem. 
 However, the third screen displays a blank page (no
 error message).  I am having a very difficult time
 to
 figure out the problem; henceforth, seeking help. 
 Here is the history of my application:
 
 1. http://localhost:8080/LogonPractice/index.jsp (no
 problem and I clicked on Sign in)
 2.

http://localhost:8080/LogonPractice/Logon.do;jsessionid=170B50E4D8E07EE36290E98342E8BF9C
 (no problem and the screen asked for username and
 password.  I filled out the information and clicked
 on
 Submit)  
 3.
 http://localhost:8080/LogonPractice/LogonSubmit.do
 (displayed a blank page)
 
 The Tomcat log file shows the following (no error
 message at all):
 
 2003-09-29 23:29:26 action: Processing a GET for
 /Logon
 2003-09-29 23:29:26 action:  Looking for Action
 instance for class
 org.apache.struts.actions.ForwardAction
 2003-09-29 23:29:26 action:   Double checking for
 Action instance already there
 2003-09-29 23:29:26 action:   Creating new Action
 instance
 2003-09-29 23:29:35 action: Processing a POST for
 /LogonSubmit
 2003-09-29 23:29:35 action:  Looking for ActionForm
 bean under attribute 'logonForm'
 2003-09-29 23:29:35 action:  Creating new ActionForm
 instance of class
 'org.apache.artimus.logon.LogonForm'
 2003-09-29 23:29:35 action:  Storing instance under
 attribute 'logonForm' in scope 'request'
 2003-09-29 23:29:35 action:  Populating bean
 properties from this request
 2003-09-29 23:29:35 action:  Validating input form
 properties
 2003-09-29 23:29:35 action:   No errors detected,
 accepting input
 2003-09-29 23:29:35 action:  Looking for Action
 instance for class
 org.apache.artimus.logon.LogonAction
 2003-09-29 23:29:35 action:   Double checking for
 Action instance already there
 2003-09-29 23:29:35 action:   Creating new Action
 instance
 
 in my struts-config.xml, I have:
 
 action 
 path=/LogonSubmit

 type=org.apache.artimus.logon.LogonAction
 name=logonForm
 scope=request
 validate=true
 input=/signin/Logon.jsp
 forward
 name=valid
 path=/signin/Welcome.jsp/
 /action
 
 and my LogonAction.java is:
 
 package org.apache.artimus.logon;
 
 import java.io.IOException;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpSession;
 import javax.servlet.http.HttpServletResponse;
 import org.apache.struts.action.Action;
 import org.apache.struts.action.ActionError;
 import org.apache.struts.action.ActionErrors;
 import org.apache.struts.action.ActionForm;
 import org.apache.struts.action.ActionForward;
 import org.apache.struts.action.ActionMapping;
 import org.apache.struts.action.ActionServlet;
 
 import org.apache.artimus.lang.Constants;
 
 public final class LogonAction extends Action {
 
 public boolean isUserLogon(String username,
 String password) throws
 UserDirectoryException
 {
 
 return

(UserDirectory.getInstance().isValidPassword(username,password));
 // return true;
 
 }
 
 
 public ActionForward execute(ActionMapping
 mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
 throws IOException, ServletException {
 
 // Obtain username and password from web
 tier
 String username = ((LogonForm)
 form).getUsername();
 String password = ((LogonForm)
 form).getPassword();
 
 // Validate credentials with business tier
 boolean validated = false;
 try {
 
 validated =
 isUserLogon(username,password);
 }
 
 catch (UserDirectoryException ude) {
 // couldn't connect to user directory
 ActionErrors errors = new
 ActionErrors();
 errors.add(ActionErrors.GLOBAL_ERROR,
 new ActionError(error.logon.connect));
 saveErrors(request,errors);
 // return to input page
 return (new
 ActionForward(mapping.getInput()));
 }
 
 if (!validated) {
 // credentials don't match
 ActionErrors errors = new
 ActionErrors();
 errors.add(ActionErrors.GLOBAL_ERROR,
 new ActionError(error.logon.invalid));
 saveErrors(request,errors);
 // return to input page
 return (new
 ActionForward(mapping.getInput

Re: No Error Message But A Blank Page Is Displayed.

2003-09-29 Thread Kwok Peng Tuck
You might want to put System.out.println(Line [number]) ; to see
the flow in your action. BTW did you actually put anything(like hello 
world) in Welcome.jsp ?

Caroline Jen wrote:

Which resource file needs to be updated?  I have
checked the application.properties.  Nothing in that
file is relevant to my problem.
--- Abhijeet Mahalkar
[EMAIL PROTECTED] wrote:
 

have u updated the Resource files... ?
abhijeet
- Original Message - 
From: Caroline Jen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 9:45 AM
Subject: No Error Message But A Blank Page Is
Displayed.

I am experimenting a basic application - logon.  I
got
the first two screens working without problem. 
However, the third screen displays a blank page (no
error message).  I am having a very difficult time
to
figure out the problem; henceforth, seeking help. 
Here is the history of my application:

1. http://localhost:8080/LogonPractice/index.jsp (no
problem and I clicked on Sign in)
2.
   

http://localhost:8080/LogonPractice/Logon.do;jsessionid=170B50E4D8E07EE36290E98342E8BF9C
 

(no problem and the screen asked for username and
password.  I filled out the information and clicked
on
Submit)  
3.
http://localhost:8080/LogonPractice/LogonSubmit.do
(displayed a blank page)

The Tomcat log file shows the following (no error
message at all):
2003-09-29 23:29:26 action: Processing a GET for
/Logon
2003-09-29 23:29:26 action:  Looking for Action
instance for class
org.apache.struts.actions.ForwardAction
2003-09-29 23:29:26 action:   Double checking for
Action instance already there
2003-09-29 23:29:26 action:   Creating new Action
instance
2003-09-29 23:29:35 action: Processing a POST for
/LogonSubmit
2003-09-29 23:29:35 action:  Looking for ActionForm
bean under attribute 'logonForm'
2003-09-29 23:29:35 action:  Creating new ActionForm
instance of class
'org.apache.artimus.logon.LogonForm'
2003-09-29 23:29:35 action:  Storing instance under
attribute 'logonForm' in scope 'request'
2003-09-29 23:29:35 action:  Populating bean
properties from this request
2003-09-29 23:29:35 action:  Validating input form
properties
2003-09-29 23:29:35 action:   No errors detected,
accepting input
2003-09-29 23:29:35 action:  Looking for Action
instance for class
org.apache.artimus.logon.LogonAction
2003-09-29 23:29:35 action:   Double checking for
Action instance already there
2003-09-29 23:29:35 action:   Creating new Action
instance
in my struts-config.xml, I have:

   action 
   path=/LogonSubmit
  
type=org.apache.artimus.logon.LogonAction
   name=logonForm
   scope=request
   validate=true
   input=/signin/Logon.jsp
   forward
   name=valid
   path=/signin/Welcome.jsp/
   /action

and my LogonAction.java is:

package org.apache.artimus.logon;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;
import org.apache.artimus.lang.Constants;

public final class LogonAction extends Action {

   public boolean isUserLogon(String username,
   String password) throws
UserDirectoryException
{
   return

   

(UserDirectory.getInstance().isValidPassword(username,password));
 

   // return true;

   }

   public ActionForward execute(ActionMapping
mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
   throws IOException, ServletException {
   // Obtain username and password from web
tier
   String username = ((LogonForm)
form).getUsername();
   String password = ((LogonForm)
form).getPassword();
   // Validate credentials with business tier
   boolean validated = false;
   try {
   validated =
isUserLogon(username,password);
   }
   catch (UserDirectoryException ude) {
   // couldn't connect to user directory
   ActionErrors errors = new
ActionErrors();
   errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError(error.logon.connect));
   saveErrors(request,errors);
   // return to input page
   return (new
ActionForward(mapping.getInput()));
   }
   if (!validated) {
   // credentials don't match
   ActionErrors errors = new
ActionErrors();
   errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError(error.logon.invalid));
   saveErrors(request,errors);
   // return to input page
   return (new
ActionForward(mapping.getInput()));
   }
   // Save our

RE: No Error Message But A Blank Page Is Displayed.

2003-09-29 Thread Chen, Gin
I'm not sure where in your scenario the error was supposed to occur.
I would suggest just right clicking on the blank page and see what the src
holds.
If you change the last line to:

ActionForward valForward = mapping.findForward(Constants.VALID);
servlet.log(Forwarding to:  + valForward );
return valForward;

That might help too.

-Tim

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2003 12:15 AM
To: [EMAIL PROTECTED]
Subject: No Error Message But A Blank Page Is Displayed.


I am experimenting a basic application - logon.  I got
the first two screens working without problem. 
However, the third screen displays a blank page (no
error message).  I am having a very difficult time to
figure out the problem; henceforth, seeking help. 
Here is the history of my application:

1. http://localhost:8080/LogonPractice/index.jsp (no
problem and I clicked on Sign in)
2.
http://localhost:8080/LogonPractice/Logon.do;jsessionid=170B50E4D8E07EE36290
E98342E8BF9C
(no problem and the screen asked for username and
password.  I filled out the information and clicked on
Submit)  
3. http://localhost:8080/LogonPractice/LogonSubmit.do
(displayed a blank page)

The Tomcat log file shows the following (no error
message at all):

2003-09-29 23:29:26 action: Processing a GET for
/Logon
2003-09-29 23:29:26 action:  Looking for Action
instance for class
org.apache.struts.actions.ForwardAction
2003-09-29 23:29:26 action:   Double checking for
Action instance already there
2003-09-29 23:29:26 action:   Creating new Action
instance
2003-09-29 23:29:35 action: Processing a POST for
/LogonSubmit
2003-09-29 23:29:35 action:  Looking for ActionForm
bean under attribute 'logonForm'
2003-09-29 23:29:35 action:  Creating new ActionForm
instance of class 'org.apache.artimus.logon.LogonForm'
2003-09-29 23:29:35 action:  Storing instance under
attribute 'logonForm' in scope 'request'
2003-09-29 23:29:35 action:  Populating bean
properties from this request
2003-09-29 23:29:35 action:  Validating input form
properties
2003-09-29 23:29:35 action:   No errors detected,
accepting input
2003-09-29 23:29:35 action:  Looking for Action
instance for class
org.apache.artimus.logon.LogonAction
2003-09-29 23:29:35 action:   Double checking for
Action instance already there
2003-09-29 23:29:35 action:   Creating new Action
instance

in my struts-config.xml, I have:

action 
path=/LogonSubmit
   
type=org.apache.artimus.logon.LogonAction
name=logonForm
scope=request
validate=true
input=/signin/Logon.jsp
forward
name=valid
path=/signin/Welcome.jsp/
/action

and my LogonAction.java is:

package org.apache.artimus.logon;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;

import org.apache.artimus.lang.Constants;

public final class LogonAction extends Action {

public boolean isUserLogon(String username,
String password) throws UserDirectoryException
{

return
(UserDirectory.getInstance().isValidPassword(username,password));
// return true;

}


public ActionForward execute(ActionMapping
mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {

// Obtain username and password from web tier
String username = ((LogonForm)
form).getUsername();
String password = ((LogonForm)
form).getPassword();

// Validate credentials with business tier
boolean validated = false;
try {

validated =
isUserLogon(username,password);
}

catch (UserDirectoryException ude) {
// couldn't connect to user directory
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(error.logon.connect));
saveErrors(request,errors);
// return to input page
return (new
ActionForward(mapping.getInput()));
}

if (!validated) {
// credentials don't match
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(error.logon.invalid));
saveErrors(request,errors);
// return to input page
return (new
ActionForward(mapping.getInput()));
}

// Save our

Validation Failed error message

2003-09-18 Thread Mehran Zonouzi
I get a 'Validation Failed' error message when I run my code...
I suspect that my naming convention for the getters and setters methods in my 
ActionForm class may not be
correct...

I think it is the contactId param that must be causing the problem.
What should the getters and setters for contactId be called?

// This is my ActionForm class

package com.db.gcp.lemweb.blotter.contacts;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;

//---
// Author: Mehran Zonouzi
// Date: 15/09/2003
// Purpose: This bean saves the param values that are to be
//  used with the EditContactAction class
//

public final class EditContactForm extends ActionForm {

   private String page = null;
   private String contactId = null;


// The usual getter and setter methods for beans

  public String getContactId(){
return (this.contactId);
  }

  public void setContactId(String contactId){
this.contactId = contactId;
  }

  public String getPage(){
return (this.page);
  }

  public void setPage(String page){
this.page = page;
  }

  // This method performs the form validation
  public ActionErrors validate(ActionMapping mapping, HttpServletRequest request){
 ActionErrors errors = new ActionErrors() ;

 if ( page == null || .equals(page)){
   errors.add(page, new ActionError(error.page));
 }

 if ( contactId == null || .equals(contactId)){
   errors.add(contactid, new ActionError(error.contactid));
 }

 return errors;
  }
}




--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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



Re: Validation Failed error message

2003-09-18 Thread Sgarlata Matt
I'm not sure I understand the problem here, can you send the full error
message you are receiving?

Your getters and setters are correct for the contactId parameter.  FYI here
are some useful links for more information about correct JavaBeans naming
conventions.
http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils/package-summary.html#overview
(this is documentation for the beanutils subproject in commons, look at the
bullets)
http://java.sun.com/products/javabeans/docs/spec.html

One thing that does look suspicious is this line of code from your validate
method:

errors.add(contactid, new ActionError(error.contactid));

I would guess you should be doing

errors.add(contactId, new ActionError(error.contactid));

note that contactId is not contactid.

Matt
- Original Message - 
From: Mehran Zonouzi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 5:11 AM
Subject: Validation Failed error message


 I get a 'Validation Failed' error message when I run my code...
 I suspect that my naming convention for the getters and setters methods in
my ActionForm class may not be
 correct...

 I think it is the contactId param that must be causing the problem.
 What should the getters and setters for contactId be called?

 // This is my ActionForm class

 package com.db.gcp.lemweb.blotter.contacts;

 import javax.servlet.http.HttpServletRequest;
 import org.apache.struts.action.*;


//--
-
 // Author: Mehran Zonouzi
 // Date: 15/09/2003
 // Purpose: This bean saves the param values that are to be
 //  used with the EditContactAction class

//--
--

 public final class EditContactForm extends ActionForm {

private String page = null;
private String contactId = null;


 // The usual getter and setter methods for beans

   public String getContactId(){
 return (this.contactId);
   }

   public void setContactId(String contactId){
 this.contactId = contactId;
   }

   public String getPage(){
 return (this.page);
   }

   public void setPage(String page){
 this.page = page;
   }

   // This method performs the form validation
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request){
  ActionErrors errors = new ActionErrors() ;

  if ( page == null || .equals(page)){
errors.add(page, new ActionError(error.page));
  }

  if ( contactId == null || .equals(contactId)){
errors.add(contactid, new
ActionError(error.contactid));
  }

  return errors;
   }
 }




 --

 This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



 -
 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]



Re: Displaying a single error message for multiple properties

2003-08-18 Thread Koni Roth
At the beginning I had also some problems using validation. Since I 
understand the power of validation it's one of the coolest thing...

Validation displays you automatic one error message for multiple 
properties. To check if a property is empty or not, use required in 
your validation.xml. To compare two fields see section Comparing Two 
Fields at:
http://jakarta.apache.org/struts/userGuide/dev_validator.html

If you follow all the steps it will solve your problem. For an example 
how I solved a validation problem see a prior posting at:

http://marc.theaimsgroup.com/?l=struts-userm=106068603102209w=2

hope this helps
Koni
 Original Message 
Subject: Displaying a single error message for multiple properties
Date: Mon, 18 Aug 2003 11:41:30 +1000
From: James JKE95 Kerridge [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Just starting to use Struts in anger I have found an inflexibility in the
Struts error model that I need to get around.
Basically I want to be able to raise a single ActionError for 2
properties.
e.g.

a password field and a confirm password field exist

if they don't match then I want to display one message saying Password
and confirmation password don't match
I also want to highlight both fields.

To highlight both fields I would ideally raise a single error for each
property.
Sadly the model doesn't seem to support multiple properties for a single
error.
It seems that my choices will be to create a dodgy convention when raising
messages and have a special tag lib for displaying them.
Has anyone found a nice way of doing this. It must a problem everyone has
faced because surely most web apps have cross field validation and want to
have a single error message that relates to the fields involved in the
cross validation. e.g. field B cannot be foo when field A is bar.
Cheers

James

***Confidentiality and Privilege Notice***

This email is intended only to be read or used by the addressee.
It is confidential and may contain legally privileged information.
If you are not the addressee indicated in this message (or
responsible for delivery of the message to such person), you
may not copy or deliver this message to anyone, and you should
destroy this message and kindly notify the sender by reply email.
Confidentiality and legal privilege are not waived or lost by
reason of mistaken delivery to you.
Qantas Airways Limited
ABN 16 009 661 901
Visit Qantas online at http://www.qantas.com.au



--
visit us at:
 http://www.rothweb.ch
 http://www.rothconsulting.com
 Jump and the earth will rise to meet you!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Displaying a single error message for multiple properties

2003-08-18 Thread James JKE95 Kerridge
Koni,

thanks for your effort. I can now raise the one error message for as many 
properties.


Though I think my solution will be to raise multiple messages (each the 
same) against the grouping of properties on error.

Then I will write a taglib that extends the the logic:getMessages and add 
a dedupe=true|false  attribute.

This way I can still test if each of the properties are individually in 
error and still only display one general message at the top.

Cheers

James

***Confidentiality and Privilege Notice***

This email is intended only to be read or used by the addressee. 
It is confidential and may contain legally privileged information. 
If you are not the addressee indicated in this message (or 
responsible for delivery of the message to such person), you 
may not copy or deliver this message to anyone, and you should 
destroy this message and kindly notify the sender by reply email. 
Confidentiality and legal privilege are not waived or lost by
reason of mistaken delivery to you.

Qantas Airways Limited
ABN 16 009 661 901

Visit Qantas online at http://www.qantas.com.au



Displaying a single error message for multiple properties

2003-08-17 Thread James JKE95 Kerridge
Just starting to use Struts in anger I have found an inflexibility in the 
Struts error model that I need to get around.

Basically I want to be able to raise a single ActionError for 2 
properties.

e.g.

a password field and a confirm password field exist

if they don't match then I want to display one message saying Password 
and confirmation password don't match

I also want to highlight both fields.

To highlight both fields I would ideally raise a single error for each 
property.

Sadly the model doesn't seem to support multiple properties for a single 
error.

It seems that my choices will be to create a dodgy convention when raising 
messages and have a special tag lib for displaying them.

Has anyone found a nice way of doing this. It must a problem everyone has 
faced because surely most web apps have cross field validation and want to 
have a single error message that relates to the fields involved in the 
cross validation. e.g. field B cannot be foo when field A is bar.

Cheers

James

***Confidentiality and Privilege Notice***

This email is intended only to be read or used by the addressee. 
It is confidential and may contain legally privileged information. 
If you are not the addressee indicated in this message (or 
responsible for delivery of the message to such person), you 
may not copy or deliver this message to anyone, and you should 
destroy this message and kindly notify the sender by reply email. 
Confidentiality and legal privilege are not waived or lost by
reason of mistaken delivery to you.

Qantas Airways Limited
ABN 16 009 661 901

Visit Qantas online at http://www.qantas.com.au



Re: Displaying a single error message for multiple properties

2003-08-17 Thread Kwok Peng Tuck
What you want to acheive is not impossible. 

In your action form you just need to handle this in your validate method.
It's pretty simple :
if(!password.equals(username))  {
   //Add whatever action error here,
   //and it will be returned to the input page.
}


There's no need for you to write special taglibs to do this, as there is 
already a html:error tag that does this.



James JKE95 Kerridge wrote:

Basically I want to be able to raise a single ActionError for 2 
properties.

e.g.

a password field and a confirm password field exist

if they don't match then I want to display one message saying Password 
and confirmation password don't match

I also want to highlight both fields.

To highlight both fields I would ideally raise a single error for each 
property.

Sadly the model doesn't seem to support multiple properties for a single 
error.

It seems that my choices will be to create a dodgy convention when raising 
messages and have a special tag lib for displaying them.

Has anyone found a nice way of doing this. It must a problem everyone has 
faced because surely most web apps have cross field validation and want to 
have a single error message that relates to the fields involved in the 
cross validation. e.g. field B cannot be foo when field A is bar.

Cheers

James

***Confidentiality and Privilege Notice***

This email is intended only to be read or used by the addressee. 
It is confidential and may contain legally privileged information. 
If you are not the addressee indicated in this message (or 
responsible for delivery of the message to such person), you 
may not copy or deliver this message to anyone, and you should 
destroy this message and kindly notify the sender by reply email. 
Confidentiality and legal privilege are not waived or lost by
reason of mistaken delivery to you.

Qantas Airways Limited
ABN 16 009 661 901
Visit Qantas online at http://www.qantas.com.au

 



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


Re: Displaying a single error message for multiple properties

2003-08-17 Thread James JKE95 Kerridge
Kwok,

thanks for the reply.

My problem is not as simple as that.

What I want to do is display a single error which relates to 2 different 
fields.

In the view I wish to highlight both of the fields that are in error and 
display only 1 error message that relates to both. Not just 1.

As this must be a standard requirement I was wondering how others have 
implemented this and whether there is a 'standard' approach that might be 
followed/copied.

Cheers

James



From:   Kwok Peng Tuck [EMAIL PROTECTED] on 18/08/2003 10:06 ZE8
Please respond to Struts Users Mailing List 
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:Re: Displaying a single error message for multiple properties

What you want to acheive is not impossible. 

In your action form you just need to handle this in your validate method.
It's pretty simple :

if(!password.equals(username))  {
//Add whatever action error here,
//and it will be returned to the input page.
}



There's no need for you to write special taglibs to do this, as there is 
already a html:error tag that does this.



James JKE95 Kerridge wrote:

Basically I want to be able to raise a single ActionError for 2 
properties.

e.g.

a password field and a confirm password field exist

if they don't match then I want to display one message saying Password 
and confirmation password don't match

I also want to highlight both fields.

To highlight both fields I would ideally raise a single error for each 
property.

Sadly the model doesn't seem to support multiple properties for a single 
error.

It seems that my choices will be to create a dodgy convention when 
raising 
messages and have a special tag lib for displaying them.

Has anyone found a nice way of doing this. It must a problem everyone has 

faced because surely most web apps have cross field validation and want 
to 
have a single error message that relates to the fields involved in the 
cross validation. e.g. field B cannot be foo when field A is bar.

Cheers

James

***Confidentiality and Privilege 
Notice***

This email is intended only to be read or used by the addressee. 
It is confidential and may contain legally privileged information. 
If you are not the addressee indicated in this message (or 
responsible for delivery of the message to such person), you 
may not copy or deliver this message to anyone, and you should 
destroy this message and kindly notify the sender by reply email. 
Confidentiality and legal privilege are not waived or lost by
reason of mistaken delivery to you.

Qantas Airways Limited
ABN 16 009 661 901

Visit Qantas online at http://www.qantas.com.au


 



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






***Confidentiality and Privilege Notice***

This email is intended only to be read or used by the addressee. 
It is confidential and may contain legally privileged information. 
If you are not the addressee indicated in this message (or 
responsible for delivery of the message to such person), you 
may not copy or deliver this message to anyone, and you should 
destroy this message and kindly notify the sender by reply email. 
Confidentiality and legal privilege are not waived or lost by
reason of mistaken delivery to you.

Qantas Airways Limited
ABN 16 009 661 901

Visit Qantas online at http://www.qantas.com.au



Re: Displaying a single error message for multiple properties

2003-08-17 Thread Kwok Peng Tuck
You seem to have missed the point about my response.

In this section :

if(!password.equals(username))  {
   //Add whatever action error here,
   //and it will be returned to the input page.
}

The action error that you create will contain the message you want. Just 
select or create the message
that you need.  It will be returned to the page. You of course need to 
define the text in the message resource properties first.
I understand that this is only a code snippet and may only serve to 
confuse you, if this is the case have a look at some of the 
samples(source, specifically
classes which extend ActionForm) that come with of Struts.



James JKE95 Kerridge wrote:

Kwok,

thanks for the reply.

My problem is not as simple as that.

What I want to do is display a single error which relates to 2 different 
fields.

In the view I wish to highlight both of the fields that are in error and 
display only 1 error message that relates to both. Not just 1.

As this must be a standard requirement I was wondering how others have 
implemented this and whether there is a 'standard' approach that might be 
followed/copied.

Cheers

James



From:   Kwok Peng Tuck [EMAIL PROTECTED] on 18/08/2003 10:06 ZE8
Please respond to Struts Users Mailing List 
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:Re: Displaying a single error message for multiple properties

What you want to acheive is not impossible. 

In your action form you just need to handle this in your validate method.
It's pretty simple :
if(!password.equals(username))  {
   //Add whatever action error here,
   //and it will be returned to the input page.
}


There's no need for you to write special taglibs to do this, as there is 
already a html:error tag that does this.



James JKE95 Kerridge wrote:

 

Basically I want to be able to raise a single ActionError for 2 
properties.

e.g.

a password field and a confirm password field exist

if they don't match then I want to display one message saying Password 
and confirmation password don't match

I also want to highlight both fields.

To highlight both fields I would ideally raise a single error for each 
property.

Sadly the model doesn't seem to support multiple properties for a single 
error.

It seems that my choices will be to create a dodgy convention when 
   

raising 
 

messages and have a special tag lib for displaying them.

Has anyone found a nice way of doing this. It must a problem everyone has 
   

 

faced because surely most web apps have cross field validation and want 
   

to 
 

have a single error message that relates to the fields involved in the 
cross validation. e.g. field B cannot be foo when field A is bar.

Cheers

James

***Confidentiality and Privilege 
   

Notice***
 

This email is intended only to be read or used by the addressee. 
It is confidential and may contain legally privileged information. 
If you are not the addressee indicated in this message (or 
responsible for delivery of the message to such person), you 
may not copy or deliver this message to anyone, and you should 
destroy this message and kindly notify the sender by reply email. 
Confidentiality and legal privilege are not waived or lost by
reason of mistaken delivery to you.

Qantas Airways Limited
ABN 16 009 661 901
Visit Qantas online at http://www.qantas.com.au



   



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




***Confidentiality and Privilege Notice***

This email is intended only to be read or used by the addressee. 
It is confidential and may contain legally privileged information. 
If you are not the addressee indicated in this message (or 
responsible for delivery of the message to such person), you 
may not copy or deliver this message to anyone, and you should 
destroy this message and kindly notify the sender by reply email. 
Confidentiality and legal privilege are not waived or lost by
reason of mistaken delivery to you.

Qantas Airways Limited
ABN 16 009 661 901
Visit Qantas online at http://www.qantas.com.au

 



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


Re: Displaying a single error message for multiple properties

2003-08-17 Thread James JKE95 Kerridge
Kwok,

thanks for bearing with me.

I think I getting it.

So your example is saying. I can compare the 2 properties. 

Then I can raise 1 action error for it.

That's seems fine.

Then I get to the input page and I display the one error somewhere which 
can be donn with just html:errors/ if I want (though I will use 
logic:messages tags).

Then I want to redisplay the property fields on the screen differently 
(i.e. orange label text) because they are in error.

So I can use logic:messagesPresent property=username or 
logic:messagesPresent property=password depending on which property I 
raised the error against to test whether I should highlight the field.

So with this strategy if an error exists for the username (or password 
field) I end up highlighting both fields in error. Which is fine, if all I 
want to validate is that they are equal but I may wish to validate 
separately that both fields are filled in. In this case only one of the 
fields may be blank and I may want to only highlight one of the fields not 
both.

So my solution in this case may be to either raise an error against a 
special property name i.e. username,password when raising one message 
for multiple fields and then handling the test for errors using a 
specialized tag lib perhaps. However, I worry that this approach goes 
against conventions for using the error model.

I would not have this issue if I could add an action error against 
multiple properties.

Anyway thanks for your help. I shall continue to ponder the most elegant 
way of encoding data into either the property key or the message itself. 
Or just raise 2 error messages exactly the same for each of the 2 fields 
and dedupe the message when displaying it. 

Anyone see issues with these approaches.

James

***Confidentiality and Privilege Notice***

This email is intended only to be read or used by the addressee. 
It is confidential and may contain legally privileged information. 
If you are not the addressee indicated in this message (or 
responsible for delivery of the message to such person), you 
may not copy or deliver this message to anyone, and you should 
destroy this message and kindly notify the sender by reply email. 
Confidentiality and legal privilege are not waived or lost by
reason of mistaken delivery to you.

Qantas Airways Limited
ABN 16 009 661 901

Visit Qantas online at http://www.qantas.com.au



How to display error message coming from DynaValidatorForm?

2003-08-14 Thread Laurent MARQUEZ

I would like to display error message coming from my DynaValidatorForm.
/html:error doesn't work.

html:form action=/project
table width=45% border=0
tr
tdbean:message
key=project.data.name/:/td
tdhtml:text property=name//td
/tr   
tr
td colspan=2 align=centerhtml:submit
//td
/tr
/table
/html:form


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



RE : How to display error message coming from DynaValidatorForm?

2003-08-14 Thread Julie . Huang
yes, it works fine.  but I can't see any html:errors/ in your code?




Laurent MARQUEZ [EMAIL PROTECTED]
08/14/03 09:24 AM
Please respond to Struts Users Mailing List

 
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
cc: 
Subject:RE : How to display error message coming from 
DynaValidatorForm?


Ok for typo, but 
does html:errors / work with dynaValidatorForm?

-Message d'origine-
De : Jeff Kyser [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 14 août 2003 14:09
À : Struts Users Mailing List
Objet : Re: How to display error message coming from DynaValidatorForm?


Don't know if you've just got a typo in your e-mail or not, but

 html:errors/  (plural)

works fine.

 or for your specific field below, html:errors 
property=name/

-jeff

On Thursday, August 14, 2003, at 07:02  AM, Laurent MARQUEZ wrote:


 I would like to display error message coming from my 
 DynaValidatorForm. /html:error doesn't work.

 html:form action=/project
table width=45% border=0
tr
tdbean:message
 key=project.data.name/:/td
tdhtml:text 
property=name//td
/tr 
tr
td colspan=2 
align=centerhtml:submit
 //td
/tr
/table
 /html:form


 -
 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 
transmittal and any attachments may contain confidential, privileged or sensitive 
information and is solely for the use of the intended recipient. If you are not 
intended recipient, you are hereby notified that you have received this transmittal 
and any such attachments in error and any review, dissemination, distribution or 
copying thereof is strictly prohibited. If you have received this transmittal and any 
attachments in error please notify the sender and immediately destroy the message and 
all its attachments. Any opinions herein expressed may be those of the author and not 
necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no 
responsibility for the accuracy or completeness of any information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 


Indecipherable error message

2003-08-14 Thread Slattery, Tim - BLS
I added the JSTL and Struts-el libraries to my application. In particular, I
added c.tld, fmt.tld, struts-bean-el.tld, struts-html-el.tld, and
struts-logic-el.tld to my Web-Inf directory, added jakarta-oro.jar,
jstl.jar, standard.jar, and struts-el.jar to my Web-Inf/lib directory, and
updated web.xml to include taglib directives describing the five new
taglibs.

Then, in the first page of my app, I added:

%@ taglib uri=/WEB-INF/c.tld prefix=c %

so I could use the core directives from the JSTL. Then I changed a
logic:iterate... tag to c:forEach..., and changed several
bean:write... tags to c:out... (in the process eliminating a couple of
bean:define

When I run the app, I get this error message:

Servlet failed with IOException
java.io.IOException: javax.servlet.jsp.JspException: The taglib validator
rejected the page: org.xml.sax.SAXParseException: The value of attribute
language must begin with either a single or double quote character., 
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:124)
at
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255)

Etc, etc.

What the heck is this trying to tell me? The word language is NOWHERE in
the page, the web.xml, or any of the taglibs, new or old. (Actually it's in
the first line in the page - %@ page language=java % - which I did not
touch.)

--
Tim Slattery
[EMAIL PROTECTED]


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



Indexed Prop Submit Error (message cleaned up)

2003-08-14 Thread David Erickson
Sorry about the earlier messages, my code didn't get put into the email
right so it'd be impossible to read.. fixed that problem:

The problem seems to be on submission of the form the array in the form
class that should be storing the values is not getting its size increased,
and the function that should be doing it is not getting called... I tried
making a constructor for the form class and it simply increased the array
size up to 20, and I got the same error in submission except it said the
array index requested was 25 and the size was 21.

Here's my code:
public class EditUserForm extends ActionForm {

 private ArrayList myBeans = new ArrayList();

 public ArrayList getIndexedBeans() {
   return this.myBeans;
 }

 public void setIndexedBeans(ArrayList myBeans) {
  this.myBeans = myBeans;
 }

//THIS METHOD IS REQUIRED IF YOUR FORM IS OF REQUEST SCOPE.
 public PermissionLine getIndexedBeans(int index) {

 System.out.println(Index Requested:  + index +  Size of Array:  +
this.myBeans.size());
   while (index = this.myBeans.size())
  this.myBeans.add(new PermissionLine());

   return (PermissionLine) this.myBeans.get(index);
 }
}


And the HTML Code
html-el:form action=/saveuser.do?user=${param.user} name=edituserForm
type=salesweb.EditUserForm
logic:iterate name=edituserForm property=indexedBeans
id=indexedBeans
!-- Please note that id in logic:iterate tag should match
 the name in html:text tag --
trtdhtml:checkbox name=indexedBeans property=available
indexed=true//td
tdhtml:textarea name=indexedBeans property=id indexed=true
//td
tdhtml:textarea name=indexedBeans property=description
indexed=true //td/tr
/logic:iterate
/table
html:submit value=Submit Changes styleClass=submitButton/
/html-el:form


This works no problem in session scope, because the array is instantiated in
my edituseraction class.  However I want it to be in request scope.  Also
the display part of this works fine, just submission causes the below error.
Here's what the HTML source looks like when the jsp is run:
form name=edituserForm method=GET
action=/salesweb/saveuser.do?user=mike

!-- Please note that id in logic:iterate tag should match
 the name in html:text tag --
trtdinput type=checkbox name=indexedBeans[0].available
value=on/td
tdtextarea
name=indexedBeans[0].idproductInformation/textarea/td
tdtextarea name=indexedBeans[0].descriptionAccess Product
Information/textarea/td/tr

!-- Please note that id in logic:iterate tag should match
 the name in html:text tag --
trtdinput type=checkbox name=indexedBeans[1].available
value=on/td
tdtextarea name=indexedBeans[1].idemployeeServices/textarea/td
tdtextarea name=indexedBeans[1].descriptionAccess Employee
Services/textarea/td/tr

!-- Please note that id in logic:iterate tag should match
 the name in html:text tag --
trtdinput type=checkbox name=indexedBeans[2].available
value=on/td
tdtextarea name=indexedBeans[2].idcustomerServices/textarea/td
tdtextarea name=indexedBeans[2].descriptionAccess Customer
Services/textarea/td/tr

!-- Please note that id in logic:iterate tag should match
 the name in html:text tag --
trtdinput type=checkbox name=indexedBeans[3].available
value=on checked=checked/td
tdtextarea
name=indexedBeans[3].idsystemAdministration/textarea/td
tdtextarea name=indexedBeans[3].descriptionPerform System
Administration/textarea/td/tr

!-- Please note that id in logic:iterate tag should match
 the name in html:text tag --
trtdinput type=checkbox name=indexedBeans[4].available
value=on checked=checked/td
tdtextarea name=indexedBeans[4].idviewProductSpec/textarea/td
tdtextarea name=indexedBeans[4].descriptionView Product
Specifications/textarea/td/tr

/table
input type=submit value=Submit Changes class=submitButton
/form


Oh and here's the error im getting:
exception

javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:821)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
root cause java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:508)
at java.util.ArrayList.get(ArrayList.java:320)
at
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.
java:521)
at
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.
java:428)
at
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.j
ava:770)
at
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:80
1)
I know this is a lot to digest but hopefully you guys can spot the problem
right off hand.. and just to clarify that 

Re: RE : How to display error message coming from DynaValidatorForm?

2003-08-14 Thread Jeff Kyser
That's what I use whenever I can, and it works fine for me.

-jeff

On Thursday, August 14, 2003, at 08:24  AM, Laurent MARQUEZ wrote:

Ok for typo, but
does html:errors / work with dynaValidatorForm?
-Message d'origine-
De : Jeff Kyser [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 14 août 2003 14:09
À : Struts Users Mailing List
Objet : Re: How to display error message coming from DynaValidatorForm?
Don't know if you've just got a typo in your e-mail or not, but

	html:errors/		(plural)

works fine.

	or for your specific field below, html:errors property=name/

-jeff

On Thursday, August 14, 2003, at 07:02  AM, Laurent MARQUEZ wrote:

I would like to display error message coming from my
DynaValidatorForm. /html:error doesn't work.
html:form action=/project
table width=45% border=0
tr
tdbean:message
key=project.data.name/:/td
tdhtml:text property=name//td
/tr 
tr
td colspan=2 align=centerhtml:submit
//td
/tr
/table
/html:form
-
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]


RE : How to display error message coming from DynaValidatorForm?

2003-08-14 Thread Laurent MARQUEZ
Ok for typo, but 
does html:errors / work with dynaValidatorForm?

-Message d'origine-
De : Jeff Kyser [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 14 août 2003 14:09
À : Struts Users Mailing List
Objet : Re: How to display error message coming from DynaValidatorForm?


Don't know if you've just got a typo in your e-mail or not, but

html:errors/  (plural)

works fine.

or for your specific field below, html:errors property=name/

-jeff

On Thursday, August 14, 2003, at 07:02  AM, Laurent MARQUEZ wrote:


 I would like to display error message coming from my 
 DynaValidatorForm. /html:error doesn't work.

 html:form action=/project
   table width=45% border=0
   tr
   tdbean:message
 key=project.data.name/:/td
   tdhtml:text property=name//td
   /tr   
   tr
   td colspan=2 align=centerhtml:submit
 //td
   /tr
   /table
 /html:form


 -
 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]



Re: How to display error message coming from DynaValidatorForm?

2003-08-14 Thread Jeff Kyser
Don't know if you've just got a typo in your e-mail or not, but

	html:errors/		(plural)

works fine.

	or for your specific field below, html:errors property=name/

-jeff

On Thursday, August 14, 2003, at 07:02  AM, Laurent MARQUEZ wrote:

I would like to display error message coming from my DynaValidatorForm.
/html:error doesn't work.
html:form action=/project
table width=45% border=0
tr
tdbean:message
key=project.data.name/:/td
tdhtml:text property=name//td
/tr 
tr
td colspan=2 align=centerhtml:submit
//td
/tr
/table
/html:form
-
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]


Re: Indexed Prop Submit Error (message cleaned up)

2003-08-14 Thread Lynn Guy
Ok, I'm a newbie at this so some of the subtle differences are still a
mystery to me.  I have included my code (which does work) so you can see
where you are slightly different.  Maybe it will give you a clue as to what
is going wrong.  I did have to play with the naming a bit to get this to go.
I dont see anything obvious but I have a deadline and cant look at it in
detail now.  I dont do anything in the reset and it works in request scope.
So hope this helps.  If you figure it out let me know so I can learn from
it.

see below

- Original Message -
From: David Erickson [EMAIL PROTECTED]
To: Struts Mailing List [EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 1:59 PM
Subject: Indexed Prop Submit Error (message cleaned up)


 Sorry about the earlier messages, my code didn't get put into the email
 right so it'd be impossible to read.. fixed that problem:

 The problem seems to be on submission of the form the array in the form
 class that should be storing the values is not getting its size increased,
 and the function that should be doing it is not getting called... I tried
 making a constructor for the form class and it simply increased the array
 size up to 20, and I got the same error in submission except it said the
 array index requested was 25 and the size was 21.

 Here's my code:
 public class EditUserForm extends ActionForm {

  private ArrayList myBeans = new ArrayList();

  public ArrayList getIndexedBeans() {
return this.myBeans;
  }

  public void setIndexedBeans(ArrayList myBeans) {
   this.myBeans = myBeans;
  }

 //THIS METHOD IS REQUIRED IF YOUR FORM IS OF REQUEST SCOPE.
  public PermissionLine getIndexedBeans(int index) {

  System.out.println(Index Requested:  + index +  Size of Array:  +
 this.myBeans.size());
while (index = this.myBeans.size())
   this.myBeans.add(new PermissionLine());

return (PermissionLine) this.myBeans.get(index);
  }
 }

* here's mine **
protected ArrayList ageList = new ArrayList();
public ArrayList getAgeList() { return this.ageList; }
public void setAgeList(ArrayList ageList) {this.ageList = ageList; }

// need a getter with SAME NAME USED IN JSP for iterate
public DependentsInfo getAgelistinfo(int index) {
  while (index = this.ageList.size()) {
logger.debug(looping index =  + Integer.toString(index));
this.ageList.add(new DependentsInfo() );
  }
  return (DependentsInfo) this.ageList.get(index);
}






 And the HTML Code
 html-el:form action=/saveuser.do?user=${param.user} name=edituserForm
 type=salesweb.EditUserForm
 logic:iterate name=edituserForm property=indexedBeans
 id=indexedBeans
 !-- Please note that id in logic:iterate tag should match
  the name in html:text tag --
 trtdhtml:checkbox name=indexedBeans property=available
 indexed=true//td
 tdhtml:textarea name=indexedBeans property=id indexed=true
 //td
 tdhtml:textarea name=indexedBeans property=description
 indexed=true //td/tr
 /logic:iterate
 /table
 html:submit value=Submit Changes styleClass=submitButton/
 /html-el:form


 here's mine  ***

bean:define id=agelist name=borrowerForm type=java.util.ArrayList
property=ageList /


logic:iterate id=agelistinfo indexId=ind
   type=com.usaloan.dmodel.dbinfo.DependentsInfo
   name=agelist 
 html:text name=agelistinfo property=dependentAge indexed=true
styleClass=age /
 html:hidden name=agelistinfo property=dependentId indexed=true /
/logic:iterate



 This works no problem in session scope, because the array is instantiated
in
 my edituseraction class.  However I want it to be in request scope.  Also
 the display part of this works fine, just submission causes the below
error.
 Here's what the HTML source looks like when the jsp is run:
 form name=edituserForm method=GET
 action=/salesweb/saveuser.do?user=mike

 !-- Please note that id in logic:iterate tag should match
  the name in html:text tag --
 trtdinput type=checkbox name=indexedBeans[0].available
 value=on/td
 tdtextarea
 name=indexedBeans[0].idproductInformation/textarea/td
 tdtextarea name=indexedBeans[0].descriptionAccess Product
 Information/textarea/td/tr

 !-- Please note that id in logic:iterate tag should match
  the name in html:text tag --
 trtdinput type=checkbox name=indexedBeans[1].available
 value=on/td
 tdtextarea
name=indexedBeans[1].idemployeeServices/textarea/td
 tdtextarea name=indexedBeans[1].descriptionAccess Employee
 Services/textarea/td/tr

 !-- Please note that id in logic:iterate tag should match
  the name in html:text tag --
 trtdinput type=checkbox name=indexedBeans[2].available
 value=on/td
 tdtextarea
name=indexedBeans[2].idcustomerServices/textarea/td
 tdtextarea name=indexedBeans[2].descriptionAccess Customer
 Services/textarea/td/tr

 !-- Please note that id in logic:iterate tag should match
  the name

Error message headers and footers?

2003-08-14 Thread Jason Long
I am looking for a way to simplify my ApplicationResources.properties
file.  For example:

errors.header=div ALIGN=centercenterTABLE class=error_tableTR
class=error_trTD class=error_trValidation Errorhr//TD/TR
errors.footer=/TABLE/center/div
error.footageRequired.integer=TR class=error_trTD
class=error_tdimg src=images/star.gif border=0 /Footage
required must be a positive integer/TD/TR
error.chkItems.required=TR class=error_trTD class=error_tdimg
src=images/star.gif border=0 /At least 1 item must be
selected/TD/TR


I basically do not want to put
 TR class=error_trTD class=error_tdimg src=images/star.gif
border=0 /
in front of each entry or
 /TD/TR
following them.

Is this already possible?


Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering  


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



Re: Error message headers and footers?

2003-08-14 Thread Jason Lea
Jason Long wrote:

I am looking for a way to simplify my ApplicationResources.properties
file.  For example:
errors.header=div ALIGN=centercenterTABLE class=error_tableTR
class=error_trTD class=error_trValidation Errorhr//TD/TR
errors.footer=/TABLE/center/div
error.footageRequired.integer=TR class=error_trTD
class=error_tdimg src=images/star.gif border=0 /Footage
required must be a positive integer/TD/TR
error.chkItems.required=TR class=error_trTD class=error_tdimg
src=images/star.gif border=0 /At least 1 item must be
selected/TD/TR
I basically do not want to put
 TR class=error_trTD class=error_tdimg src=images/star.gif
border=0 /
in front of each entry or
 /TD/TR
following them.
Is this already possible?
If you look at this:
http://jakarta.apache.org/struts/userGuide/struts-html.html#messages
You can use it like so:

logic:messagesPresent
div ALIGN=center
  center
TABLE class=error_table
  TR class=error_tr
TD class=error_trValidation Errorhr//TD
  /TR
  html:messages id=error
TR class=error_tr
  TD class=error_tdimg src=images/star.gif
 border=0 /c:out value=${error} //TD
/TR
  /html:messages
/TABLE
 /center
  /div
/logic:messagesPresent
In your ApplicationResources.properties file you just need:

error.footageRequired.integer=Footage required must be a positive integer
error.chkItems.required=At least 1 item must be selected
Much more tidy :) and we don't need errors.header or errors.footer

The html:messages tag will iterate over the ActionErrors, so you don't 
need to put markup in your .properties file.  The 
logic:messagesPresent will mean the table will only be displayed if 
there are errors.

I use the JSTL way c:out value=${error} / of outputting the error 
message, but you could use bean:write name=error/ I think.

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering  

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



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


Strange error message

2003-08-06 Thread Slattery, Tim - BLS
Here we go again, just after I told somebody on this list that upgrading to
Struts 1.1 was no problem.

I'm getting an error message I don't understand when I submit a page. Bear
in mind, this worked fine before upgrading to 1.1.

The message is:

Root cause of ServletException
java.lang.IllegalArgumentException: No bean specified at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti
ls.java:837)  

Etc, etc, etc..

This apparently happens while Struts is trying to populate the form bean,
prior to calling the Action item. It seems to be telling me that the form
bean doesn't exist, which is nuts, since it's supposed to create one at this
point. Does anybody know what I should be looking for here?

--
Tim Slattery
[EMAIL PROTECTED]


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



Link/Forward inside error message

2003-07-30 Thread Kat Luna
Hi all,

I have an error message in ApplicationResources.properties like this:

error.password.expired=Your password has expired.  Please go to Change Password
and select a new one.

However Change Password needs to be a link to the Password Management page. 
In the JSP, I would have put: html:link forward=passwordmanagement...etc,
but I don't know how to put put the forward in the ApplicationResources file. 
Is there a syntax for this?  Or can I get the content of the forward inside the
Action and pass it to the error when I create the ActionError?  For testing
purposes, I put an a href=/myapp/jsp/changePassword.jsp tag in the error
description, but I don't want to have to edit this every time we move the
ContextPath of the application.

Any suggestions?

thanks,
Kat

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Link/Forward inside error message

2003-07-30 Thread Bailey, Shane C.


It makes sense that the struts tags are done being interpreted after the
error message is displayed so it won't get interpreted if in the error
message.

You could do something like (possibly a little modification to determine
exactly which error is returned):

Properties file:
error.password.expired=Your password has expired.


JSP:
html:errors/
logic:present name== org.apache.struts.Globals.ERROR_KEY % 
font color=red
Please go to html:link forward=passwordmanagementChange
Password/html:link and create a new one.
/font
/logic:present


-Original Message-
From: Kat Luna [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 1:23 PM
To: struts
Subject: Link/Forward inside error message

Hi all,

I have an error message in ApplicationResources.properties like this:

error.password.expired=Your password has expired.  Please go to Change
Password
and select a new one.

However Change Password needs to be a link to the Password Management
page. 
In the JSP, I would have put: html:link
forward=passwordmanagement...etc,
but I don't know how to put put the forward in the ApplicationResources
file. 
Is there a syntax for this?  Or can I get the content of the forward inside
the
Action and pass it to the error when I create the ActionError?  For testing
purposes, I put an a href=/myapp/jsp/changePassword.jsp tag in the error
description, but I don't want to have to edit this every time we move the
ContextPath of the application.

Any suggestions?

thanks,
Kat

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
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]



Re: Link/Forward inside error message

2003-07-30 Thread katluna1
Ah, that's a good idea.  I never remember to use the logic:present 
tags.  I'll give it a try.

thanks,

kat

--- In [EMAIL PROTECTED], Bailey, Shane C. 
[EMAIL PROTECTED] wrote:
 
 
 It makes sense that the struts tags are done being interpreted 
after the
 error message is displayed so it won't get interpreted if in the 
error
 message.
 
 You could do something like (possibly a little modification to 
determine
 exactly which error is returned):
 
 Properties file:
 error.password.expired=Your password has expired.
 
 
 JSP:
 html:errors/
 logic:present name== org.apache.struts.Globals.ERROR_KEY % 
 font color=red
 Please go to html:link forward=passwordmanagementChange
 Password/html:link and create a new one.
 /font
 /logic:present
 
 
 -Original Message-
 From: Kat Luna [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 30, 2003 1:23 PM
 To: struts
 Subject: Link/Forward inside error message
 
 Hi all,
 
 I have an error message in ApplicationResources.properties like 
this:
 
 error.password.expired=Your password has expired.  Please go to 
Change
 Password
 and select a new one.
 
 However Change Password needs to be a link to the Password 
Management
 page. 
 In the JSP, I would have put: html:link
 forward=passwordmanagement...etc,
 but I don't know how to put put the forward in the 
ApplicationResources
 file. 
 Is there a syntax for this?  Or can I get the content of the 
forward inside
 the
 Action and pass it to the error when I create the ActionError?  For 
testing
 purposes, I put an a href=/myapp/jsp/changePassword.jsp tag in 
the error
 description, but I don't want to have to edit this every time we 
move the
 ContextPath of the application.
 
 Any suggestions?
 
 thanks,
 Kat
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 
 
-
 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]



RE: Link/Forward inside error message

2003-07-30 Thread Kat Luna
Ah, good idea.  I keep forgetting about logic:present tags.  I'll give that a
try.

thanks,

Kat
--- Bailey, Shane C. [EMAIL PROTECTED] wrote:
 
 
 It makes sense that the struts tags are done being interpreted after the
 error message is displayed so it won't get interpreted if in the error
 message.
 
 You could do something like (possibly a little modification to determine
 exactly which error is returned):
 
 Properties file:
 error.password.expired=Your password has expired.
 
 
 JSP:
 html:errors/
 logic:present name== org.apache.struts.Globals.ERROR_KEY % 
 font color=red
 Please go to html:link forward=passwordmanagementChange
 Password/html:link and create a new one.
 /font
 /logic:present
 
 
 -Original Message-
 From: Kat Luna [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 30, 2003 1:23 PM
 To: struts
 Subject: Link/Forward inside error message
 
 Hi all,
 
 I have an error message in ApplicationResources.properties like this:
 
 error.password.expired=Your password has expired.  Please go to Change
 Password
 and select a new one.
 
 However Change Password needs to be a link to the Password Management
 page. 
 In the JSP, I would have put: html:link
 forward=passwordmanagement...etc,
 but I don't know how to put put the forward in the ApplicationResources
 file. 
 Is there a syntax for this?  Or can I get the content of the forward inside
 the
 Action and pass it to the error when I create the ActionError?  For testing
 purposes, I put an a href=/myapp/jsp/changePassword.jsp tag in the error
 description, but I don't want to have to edit this every time we move the
 ContextPath of the application.
 
 Any suggestions?
 
 thanks,
 Kat
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 
 -
 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]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Logging error message

2003-07-15 Thread Ryan Cuprak

 Does anyone know how to solve the exception trace below? Both commons
logging and log4j are in the lib directory. Is this a class loading problem?

 -Ryan


avax.servlet.ServletException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:471)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:359)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
at java.lang.Thread.run(Thread.java:554)

root cause 
java.lang.ExceptionInInitializerError
at org.apache.struts.taglib.html.HtmlTag. (HtmlTag.java:94)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:68)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at 

Single error message for multiple fields using Validator?

2003-07-08 Thread Poon, Johnny
Hi,

I'm using Validator.  Can anyone tell me if there's a way to only show one
general error message when there are errors on several fields on the page?
Further, how to change the font on the title and move focus to of all the
error field?

What I want to do when validation comes back false are these:
1) Show a general message for a type of invalidity, e.g. for required
fields: Please fill out all of the required fields.
2) Change all the font of the title of the invalid fields.
3) Put the cursor focus on the first error field and have the input
highlighted(selected).

Any help and pointers would be greatly appreciated.

Thanks!

JP



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


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



Error Message From Action Class

2003-07-07 Thread Anurag Garg
Hi All,

In my Action class, If i get any exception I am populating my ActionErrors
object and passing that object in saveErrors method of the Action Class.
Then I redirect the navigation to an error page defined in global forward
where i am using html:errors / to display the error message.
Error page defined in the global forwards is displayed but the error
message is not displayed. Is there any way to acheive this functionality.
Below is the code snippet from my Action Class.


errors.add(ActionErrors.GLOBAL_ERROR,new ActionError(NAMING));
saveErrors(request,errors);
responsePage = error;


Anurag Garg


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



RE: Error Message From Action Class

2003-07-07 Thread Anurag Garg
Yes...NAMING property is already there in the resource properties file...
This is my global forward mapping..

forward name=error path=/error.jsp/



-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 12:19 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Error Message From Action Class


Did you define a property called NAMING in your resource properties file?

-D
- Original Message -
From: Anurag Garg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 06, 2003 11:36 PM
Subject: Error Message From Action Class


 Hi All,

 In my Action class, If i get any exception I am populating my ActionErrors
 object and passing that object in saveErrors method of the Action Class.
 Then I redirect the navigation to an error page defined in global forward
 where i am using html:errors / to display the error message.
 Error page defined in the global forwards is displayed but the error
 message is not displayed. Is there any way to acheive this functionality.
 Below is the code snippet from my Action Class.


 errors.add(ActionErrors.GLOBAL_ERROR,new ActionError(NAMING));
 saveErrors(request,errors);
 responsePage = error;


 Anurag Garg


 -
 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]



struts: error/message handling: saveErrors

2003-07-03 Thread Denis Wang
Hello, all,

I have the following problem:
In ActionA{

ActionErrors errors = new ActionErrors();
errors.add( ActionErrors.GLOBAL_ERROR, new ActionError(
Afailed ) );
saveErrors( request, errors );
}

In ActionB{

ActionErrors errors = new ActionErrors();
errors.add( ActionErrors.GLOBAL_ERROR, new ActionError(
Bfailed ) );
saveErrors( request, errors );
}

When ActionA returns it will forward the processing to ActionB and then the
Bfailed error will override the Afailed error.

How can I show both Afailed and Bfailed error messages?  Thanks a lot!
Denis



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



Re: struts: error/message handling: saveErrors

2003-07-03 Thread Jamie M. Guillemette
we probably need to know more about your code to really answer your
question. But here are few pointers.

when using actionErrors.  note that many functions return boolean by
returning actionErrors.isEmpty();

in these cases if an error was found.. it will not bother to process the
other errors.. ( cause lets face it .. the first error may be the only
reason the next error was caused )

if you are using the validate() method. you can achieve this by simply
adding new errors prior to returning.

JMG



- Original Message -
From: Denis Wang [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 11:48 AM
Subject: struts: error/message handling: saveErrors


 Hello, all,

 I have the following problem:
 In ActionA{
 
 ActionErrors errors = new ActionErrors();
 errors.add( ActionErrors.GLOBAL_ERROR, new ActionError(
 Afailed ) );
 saveErrors( request, errors );
 }

 In ActionB{
 
 ActionErrors errors = new ActionErrors();
 errors.add( ActionErrors.GLOBAL_ERROR, new ActionError(
 Bfailed ) );
 saveErrors( request, errors );
 }

 When ActionA returns it will forward the processing to ActionB and then
the
 Bfailed error will override the Afailed error.

 How can I show both Afailed and Bfailed error messages?  Thanks a lot!
 Denis



 -
 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]



RE: struts: error/message handling: saveErrors

2003-07-03 Thread Varun Garg
Instead of doing a new ActionErrors I have a function in my base Action
(U can just put it in the action that your are working on Baction).

public ActionErrors getErrors(HttpServletRequest request){
if (request.getAttribute(ERROR_KEY) != null) {
return (ActionErrors) request.getAttribute(ERROR_KEY);
}
return new ActionErrors();
}

Use this inside the execute.
ActionErrors errors = getErrors(request);

 
Varun

-Original Message-
From: Denis Wang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 03, 2003 10:48 AM
To: Struts Users Mailing List
Subject: struts: error/message handling: saveErrors


Hello, all,

I have the following problem:
In ActionA{

ActionErrors errors = new ActionErrors();
errors.add( ActionErrors.GLOBAL_ERROR, new ActionError(
Afailed ) );
saveErrors( request, errors );
}

In ActionB{

ActionErrors errors = new ActionErrors();
errors.add( ActionErrors.GLOBAL_ERROR, new ActionError(
Bfailed ) );
saveErrors( request, errors );
}

When ActionA returns it will forward the processing to ActionB and then
the Bfailed error will override the Afailed error.

How can I show both Afailed and Bfailed error messages?  Thanks a
lot! Denis



-
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]



RE: struts: error/message handling: saveErrors

2003-07-03 Thread Denis Wang
Thanks for your attention.
Note that ActionA and ActionB are totally different classes.
In this case, the 'errors' attached to request in ActionA will get lost in
ActionB if the following statement is executed:
// in ActionB
ActionErrors errors = new ActionErrors();
...
saveErrors( request, errors );


In order that the ActionB remembers the Afailed error, i need
functionalities like the following:
In ActionB {
ActionErrors errors = getErrors( request ); // This is the faked code which
should have been enabled by struts
errors.add(...)
saveErrors( request, errors );

Unfortunately struts does not provide such functionalities, I doubt.
Denis
-Original Message-
From: Jamie M. Guillemette [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 11:59 AM
To: Struts Users Mailing List
Subject: Re: struts: error/message handling: saveErrors


we probably need to know more about your code to really answer your
question. But here are few pointers.

when using actionErrors.  note that many functions return boolean by
returning actionErrors.isEmpty();

in these cases if an error was found.. it will not bother to process the
other errors.. ( cause lets face it .. the first error may be the only
reason the next error was caused )

if you are using the validate() method. you can achieve this by simply
adding new errors prior to returning.

JMG



- Original Message -
From: Denis Wang [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 11:48 AM
Subject: struts: error/message handling: saveErrors


 Hello, all,

 I have the following problem:
 In ActionA{
 
 ActionErrors errors = new ActionErrors();
 errors.add( ActionErrors.GLOBAL_ERROR, new ActionError(
 Afailed ) );
 saveErrors( request, errors );
 }

 In ActionB{
 
 ActionErrors errors = new ActionErrors();
 errors.add( ActionErrors.GLOBAL_ERROR, new ActionError(
 Bfailed ) );
 saveErrors( request, errors );
 }

 When ActionA returns it will forward the processing to ActionB and then
the
 Bfailed error will override the Afailed error.

 How can I show both Afailed and Bfailed error messages?  Thanks a lot!
 Denis



 -
 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]



RE: struts: error/message handling: saveErrors

2003-07-03 Thread Denis Wang
Thanks a lot.  it works for me.
Denis

-Original Message-
From: Varun Garg [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 11:55 AM
To: 'Struts Users Mailing List'
Subject: RE: struts: error/message handling: saveErrors


Instead of doing a new ActionErrors I have a function in my base Action
(U can just put it in the action that your are working on Baction).

public ActionErrors getErrors(HttpServletRequest request){
if (request.getAttribute(ERROR_KEY) != null) {
return (ActionErrors) request.getAttribute(ERROR_KEY);
}
return new ActionErrors();
}

Use this inside the execute.
ActionErrors errors = getErrors(request);

 
Varun

-Original Message-
From: Denis Wang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 03, 2003 10:48 AM
To: Struts Users Mailing List
Subject: struts: error/message handling: saveErrors


Hello, all,

I have the following problem:
In ActionA{

ActionErrors errors = new ActionErrors();
errors.add( ActionErrors.GLOBAL_ERROR, new ActionError(
Afailed ) );
saveErrors( request, errors );
}

In ActionB{

ActionErrors errors = new ActionErrors();
errors.add( ActionErrors.GLOBAL_ERROR, new ActionError(
Bfailed ) );
saveErrors( request, errors );
}

When ActionA returns it will forward the processing to ActionB and then
the Bfailed error will override the Afailed error.

How can I show both Afailed and Bfailed error messages?  Thanks a
lot! Denis



-
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]



how to get the error message in java code

2003-06-11 Thread Duan Qiang
Hi,

How can I get the error message for a certain field so that I can customize
the field contents (styleClass)?

What I need is to change the style class of a certain field if there is
error message, and show the error message on the specified layer div

For example,

html:text property=abc onmouseover=javascript:showErrorMessage(%=
errorText %) onmouseout=javascript:resetErrorMessage();
styleClass=XXX /

The function showErrorMessage shows the error text for this field and the
other resetErrorMessage cleares the error message. It seems that I need to
get the errorText for this property but I do not know how.

Thx for your help.

Regards,

Dq


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



RE: how to get the error message in java code

2003-06-11 Thread Krishnakumar N


If you are stuck without more elegant solutions, I would try something like
this:

...
function showErrorMessage(errorItem)
{
errorMessage = errorItem.alt;
...
... 
...
logic:messagesPresent property=time
html:messages id=errorText property=time/
jsp:useBean id=errorText type=java.lang.String/
html:text property=time
onmouseover=javascript:showErrorMessage(this)
onmouseout=javascript:resetErrorMessage(); styleClass=XXX
alt=%=errorText%/
/logic:messagesPresent
logic:messagesNotPresent property=time
html:text property=time styleClass=YYY /
/logic:messagesNotPresentCheers,

Brief explanation:

The (nop) loop thru the html:messages just populates a pagecontext
bean with the (last) error message. The usebean makes it available as a
scripting variable. The ALT field is used to store the error message for
the field.

HTH,
Krishna 

 -Original Message-
 From: Duan Qiang [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 11, 2003 12:44 PM
 To: Struts Users Mailing List
 Subject: how to get the error message in java code
 
 
 Hi,
 
 How can I get the error message for a certain field so that I 
 can customize
 the field contents (styleClass)?
 
 What I need is to change the style class of a certain field 
 if there is
 error message, and show the error message on the specified layer div
 
 For example,
 
 html:text property=abc 
 onmouseover=javascript:showErrorMessage(%=
 errorText %) onmouseout=javascript:resetErrorMessage();
 styleClass=XXX /
 
 The function showErrorMessage shows the error text for this 
 field and the
 other resetErrorMessage cleares the error message. It seems 
 that I need to
 get the errorText for this property but I do not know how.
 
 Thx for your help.
 
 Regards,
 
 Dq
 
 
 -
 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: Invalid indexed property

2003-06-11 Thread Sashi Ravipati
Hi

I am using logic:iterate tag as shown below

logic:iterate id=element name=addRateForm   property=firstName  indexId=i 
  tr
  % int j = ((Integer) pageContext.getAttribute(i)).intValue();  %
   tdhtml:text name=addRateForm property=firstName[%=j%]/td
  
  /tr 
/logic:iterate

Error Message: Invalid indexed property  'firstName[]' 

I did print the vlaues of j and they are fine. 


What am i doing wrong in the above expression. 

Thanks


Re: Error Message: Invalid indexed property

2003-06-11 Thread Gemes Tibor
Sashi R

  tdhtml:text name=addRateForm property=firstName[%=j%]/td
 

runtime props must start w/ %=
so
html:text name=addRateForm property='%= firstName[  + j + ] %'/

bui I would learn use nested taglibs if I were you.

Tib



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


RE: Error Message: Invalid indexed property

2003-06-11 Thread O_Parthasarathy Kesavaraj
try like this
% String fname=firstName[+j+];%
  tdhtml:text name=addRateForm property=%=fname%/td
i didnt check it.pardon me if it doesn't work
Partha

 --
 From: Sashi Ravipati[SMTP:[EMAIL PROTECTED]
 Reply To: Struts Users Mailing List
 Sent: Wednesday, June 11, 2003 5:48 PM
 To:   [EMAIL PROTECTED]
 Subject:  Error Message: Invalid indexed property
 
 Hi
 
 I am using logic:iterate tag as shown below
 
 logic:iterate id=element name=addRateForm   property=firstName
 indexId=i 
   tr
   % int j = ((Integer)
 pageContext.getAttribute(i)).intValue();  %
tdhtml:text name=addRateForm
 property=firstName[%=j%]/td
   
   /tr 
 /logic:iterate
 
 Error Message: Invalid indexed property  'firstName[]' 
 
 I did print the vlaues of j and they are fine. 
 
 
 What am i doing wrong in the above expression. 
 
 Thanks
 

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



RE: Error Message: Invalid indexed property

2003-06-11 Thread Sashi Ravipati
I tried that it works , but I have many HTML elements like that and I
would like to use 
html:text name=addRateForm  property=firstName[%=j%]/

so that I dont have to create different String objects.

Thanks


 [EMAIL PROTECTED] 06/11/03 08:57AM 
try like this
% String fname=firstName[+j+];%
  tdhtml:text name=addRateForm property=%=fname%/td
i didnt check it.pardon me if it doesn't work
Partha

 --
 From: Sashi Ravipati[SMTP:[EMAIL PROTECTED]
 Reply To: Struts Users Mailing List
 Sent: Wednesday, June 11, 2003 5:48 PM
 To: [EMAIL PROTECTED]
 Subject: Error Message: Invalid indexed property
 
 Hi
 
 I am using logic:iterate tag as shown below
 
 logic:iterate id=element name=addRateForm   property=firstName
 indexId=i 
   tr
   % int j = ((Integer)
 pageContext.getAttribute(i)).intValue();  %
tdhtml:text name=addRateForm
 property=firstName[%=j%]/td
   
   /tr 
 /logic:iterate
 
 Error Message: Invalid indexed property  'firstName[]' 
 
 I did print the vlaues of j and they are fine. 
 
 
 What am i doing wrong in the above expression. 
 
 Thanks
 

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


RE: Error Message: Invalid indexed property

2003-06-11 Thread shirishchandra.sakhare
try..
html:text name=addRateForm property=%=\firstName[\+i+\]\%/

This way you dont need to create strings..

BTW, are u using struts 1.0?
Because with 1.1, you can directly use nested  tags..

-Original Message-
From: Sashi Ravipati [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 2:56 PM
To: [EMAIL PROTECTED]
Subject: RE: Error Message: Invalid indexed property


I tried that it works , but I have many HTML elements like that and I
would like to use 
html:text name=addRateForm  property=firstName[%=j%]/

so that I dont have to create different String objects.

Thanks


 [EMAIL PROTECTED] 06/11/03 08:57AM 
try like this
% String fname=firstName[+j+];%
  tdhtml:text name=addRateForm property=%=fname%/td
i didnt check it.pardon me if it doesn't work
Partha

 --
 From: Sashi Ravipati[SMTP:[EMAIL PROTECTED]
 Reply To: Struts Users Mailing List
 Sent: Wednesday, June 11, 2003 5:48 PM
 To: [EMAIL PROTECTED]
 Subject: Error Message: Invalid indexed property
 
 Hi
 
 I am using logic:iterate tag as shown below
 
 logic:iterate id=element name=addRateForm   property=firstName
 indexId=i 
   tr
   % int j = ((Integer)
 pageContext.getAttribute(i)).intValue();  %
tdhtml:text name=addRateForm
 property=firstName[%=j%]/td
   
   /tr 
 /logic:iterate
 
 Error Message: Invalid indexed property  'firstName[]' 
 
 I did print the vlaues of j and they are fine. 
 
 
 What am i doing wrong in the above expression. 
 
 Thanks
 

-
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]



RE: Error Message: Invalid indexed property

2003-06-11 Thread Sashi Ravipati
Thanks , it did the trick for me.



 [EMAIL PROTECTED] 06/11/03 09:00AM 
try..
html:text name=addRateForm property=%=\firstName[\+i+\]\%/

This way you dont need to create strings..

BTW, are u using struts 1.0?
Because with 1.1, you can directly use nested  tags..

-Original Message-
From: Sashi Ravipati [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 2:56 PM
To: [EMAIL PROTECTED]
Subject: RE: Error Message: Invalid indexed property


I tried that it works , but I have many HTML elements like that and I
would like to use 
html:text name=addRateForm  property=firstName[%=j%]/

so that I dont have to create different String objects.

Thanks


 [EMAIL PROTECTED] 06/11/03 08:57AM 
try like this
% String fname=firstName[+j+];%
  tdhtml:text name=addRateForm property=%=fname%/td
i didnt check it.pardon me if it doesn't work
Partha

 --
 From: Sashi Ravipati[SMTP:[EMAIL PROTECTED]
 Reply To: Struts Users Mailing List
 Sent: Wednesday, June 11, 2003 5:48 PM
 To: [EMAIL PROTECTED]
 Subject: Error Message: Invalid indexed property
 
 Hi
 
 I am using logic:iterate tag as shown below
 
 logic:iterate id=element name=addRateForm   property=firstName
 indexId=i 
   tr
   % int j = ((Integer)
 pageContext.getAttribute(i)).intValue();  %
tdhtml:text name=addRateForm
 property=firstName[%=j%]/td
   
   /tr 
 /logic:iterate
 
 Error Message: Invalid indexed property  'firstName[]' 
 
 I did print the vlaues of j and they are fine. 
 
 
 What am i doing wrong in the above expression. 
 
 Thanks
 

-
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]


Odd Validator Error Message with 1.1RC2

2003-06-11 Thread Brown, Melonie S. - Contractor
I upgraded to Struts 1.1 RC2 from RC1, and have began seeing the error below
when Tomcat starts up.  Any ideas as to how to fix this?  Validation seems
to work just fine, but I don't like seeing messages like this.

INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
Jun 11, 2003 3:11:13 PM org.apache.struts.validator.ValidatorPlugIn
initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'
Jun 11, 2003 3:11:14 PM org.apache.struts.validator.ValidatorPlugIn init
SEVERE: null
java.lang.NullPointerException
at java.util.HashMap.init(HashMap.java:210)
at org.apache.commons.validator.Field.clone(Field.java:692)
at
org.apache.commons.validator.ValidatorResources.internalProcessForms(Validat
orResources.java:504)
at
org.apache.commons.validator.ValidatorResources.process(ValidatorResources.j
ava:442)
at
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.ja
va:237)
at
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:161)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1156)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:307)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Jun 11, 2003 3:11:14 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080

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



Re: Odd Validator Error Message with 1.1RC2

2003-06-11 Thread David Graham
This is a bug in commons-validator 1.1-dev.  Struts 1.1 final will ship with 
validator 1.0.2 but I will fix this ASAP.

David


I upgraded to Struts 1.1 RC2 from RC1, and have began seeing the error 
below
when Tomcat starts up.  Any ideas as to how to fix this?  Validation seems
to work just fine, but I don't like seeing messages like this.

INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
Jun 11, 2003 3:11:13 PM org.apache.struts.validator.ValidatorPlugIn
initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'
Jun 11, 2003 3:11:14 PM org.apache.struts.validator.ValidatorPlugIn init
SEVERE: null
java.lang.NullPointerException
at java.util.HashMap.init(HashMap.java:210)
at org.apache.commons.validator.Field.clone(Field.java:692)
at
org.apache.commons.validator.ValidatorResources.internalProcessForms(Validat
orResources.java:504)
at
org.apache.commons.validator.ValidatorResources.process(ValidatorResources.j
ava:442)
at
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.ja
va:237)
at
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:161)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1156)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:307)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Jun 11, 2003 3:11:14 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Problem with name displayed in error message for custom validator

2003-02-18 Thread jeff kyser
Hello all,

I've given this one a pretty good effort, having hacked at it a while,
looked at the lists, read the chapters from several of the books, and 
still
don't seem to have it quite right.

I set out to write my own custom validator, using the example of 
requireIdentical,
to make sure when a new user is added, the confirmation matches the 
password

I put the following in my application resources file, to identify my 
three fields:
username, password, confirm:

	# userForm fields
	userForm.username.displayname=User Name
	userForm.password.displayname=Password
	userForm.confirm.displayname=Confirm

I've got all the validator-specific messages in a separate bundle,
ValidatorResources.properties, and the one of interest to me here is:

	errors.identical={0} must be identical to {1}.

I've implemented it in an (add) user form, where I would expect a 
message such as:

	Confirm must be identical to Password

to appear when the confirmation doesn't match the  password as a new 
user is being added.

Here's my form details in my validation.xml file:

form name=userForm
field property=username depends=required
arg0 key=userForm.username.displayname/
/field
field property=password depends=required
arg0 key=userForm.password.displayname/
/field
field property=passwordConfirm depends=identical
arg0 key=userForm.confirm.displayname/
arg1 key=${var:identicalTo} resource=false/
var
var-nameidenticalTo/var-name
var-valuepassword/var-value
/var
/field
/form

So, passwordConfirm depends on the identical rule which triggers
properly when the two values are not the same.

My problem/question is: have I set this up right? The reason I ask is 
because
instead of displaying the value of userForm.password.displayname 
(=Password),
it displays the plain password instead.

In other words, it appears to be displaying the 
var-valuepassword/var-value
instead of displaying the userForm's password displayname (Password).

Is that what I should expect? It doesn't seem so to me.  Have I set 
this up wrong,
or is that just the way it works.

thanks!

-jeff

Oh, and for completeness, my jsp looks as follows with respect to the 
example:

	html:password property=passwordConfirm/
 html:errors property=passwordConfirm
 		bundle=VALIDATOR_BUNDLE/

(The rule fires properly, a message comes up, it just isn't the one I 
expected :)


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



html:messages not working for error message with line breaks

2003-02-11 Thread Charlie Toohey
Hi,

I'm switching from using:

html:errors/

to using:

logic:messagesPresent
  ul
html:messages id=error
  libean:write name=error//li
/html:messages
  /ul
/logic:messagesPresent

I have error messages that span multiple lines. With html:errors, I used br 
for the newlines, and all was working well --- the error message was 
displayed on multiple lines.

Now, using html:messages with bean:write instead, the error message is 
displayed as a single long line, with each br displayed on the page where 
there should be a line break.
Viewing the HTML source, I see this where each br is in my error message:
lt;brgt;

Can anyone help me to get my line breaks back, using html:messages with 
bean:write instead of html:errors ?

Thanks,
Charlie






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




RE: html:messages not working for error message with line breaks

2003-02-11 Thread Todd Pierce
To disable html filtering set bean:write filter=false ... as per:

http://jakarta.apache.org/struts/doc-1.0.2/struts-bean.html#write

-Original Message-
From: Charlie Toohey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 12 February 2003 1:41 PM
To: [EMAIL PROTECTED]
Subject: html:messages not working for error message with line breaks


Hi,

I'm switching from using:

html:errors/

to using:

logic:messagesPresent
  ul
html:messages id=error
  libean:write name=error//li
/html:messages
  /ul
/logic:messagesPresent

I have error messages that span multiple lines. With html:errors, I used
br 
for the newlines, and all was working well --- the error message was 
displayed on multiple lines.

Now, using html:messages with bean:write instead, the error message is 
displayed as a single long line, with each br displayed on the page where 
there should be a line break.
Viewing the HTML source, I see this where each br is in my error message:
lt;brgt;

Can anyone help me to get my line breaks back, using html:messages with 
bean:write instead of html:errors ?

Thanks,
Charlie






-
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]




RE: html:rewrite gets the error message Body is supposed to be empty for html:rewrite

2003-01-21 Thread pqin
Replace  with '

a class=menuItem href='html:rewrite page=/main.do/'Main/a

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Jagdish Arora [mailto:[EMAIL PROTECTED]] 
Sent: January 21, 2003 2:06 AM
To: Struts Users Mailing List
Subject: Re: html:rewrite gets the error message Body is supposed to be
empty for html:rewrite

try
  a class=menuItem href=html:rewrite page=/main.do/Main/a

- Original Message -
From: Jason Yam [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, January 21, 2003 1:09 AM
Subject: html:rewrite gets the error message Body is supposed to be empty
for html:rewrite


 Hi everyone,

 I get this error during executing html:rewrite.  Anyone know how to
 solve this problem?

 Error message:
  Body is supposed to be empty for html:rewrite

 Source code:
 a class=menuItem href=html:rewrite
 page=/main.do/html:rewriteMain/a

 Thank you

 Jason


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



RE: html:rewrite gets the error message Body is supposed to be empty for html:rewrite

2003-01-21 Thread Jason Yam
Hi everyone,

thank you very much.  I solve the problem following your advices.

Thank you

Jason

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 21, 2003 10:31 PM
 To: [EMAIL PROTECTED]
 Subject: RE: html:rewrite gets the error message Body is 
 supposed to
 be empty for html:rewrite
 
 
 Replace  with '
 
 a class=menuItem href='html:rewrite page=/main.do/'Main/a
 
 Regards,
  
  
 PQ
  
 This Guy Thinks He Knows Everything
 This Guy Thinks He Knows What He Is Doing
 
 -Original Message-
 From: Jagdish Arora [mailto:[EMAIL PROTECTED]] 
 Sent: January 21, 2003 2:06 AM
 To: Struts Users Mailing List
 Subject: Re: html:rewrite gets the error message Body is 
 supposed to be
 empty for html:rewrite
 
 try
   a class=menuItem href=html:rewrite page=/main.do/Main/a
 
 - Original Message -
 From: Jason Yam [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Tuesday, January 21, 2003 1:09 AM
 Subject: html:rewrite gets the error message Body is 
 supposed to be empty
 for html:rewrite
 
 
  Hi everyone,
 
  I get this error during executing html:rewrite.  
 Anyone know how to
  solve this problem?
 
  Error message:
   Body is supposed to be empty for html:rewrite
 
  Source code:
  a class=menuItem href=html:rewrite
  page=/main.do/html:rewriteMain/a
 
  Thank you
 
  Jason
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 

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




RE: html:rewrite gets the error message Body is supposed to be empty for html:rewrite

2003-01-21 Thread Todd Pierce
Why not just use:

html:link page=main.do styleClass=menuItemMainhtml:link

It's much cleaner than trying to shove tags into attributes.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 21, 2003 10:31 PM
 To: [EMAIL PROTECTED]
 Subject: RE: html:rewrite gets the error message Body is 
 supposed to
 be empty for html:rewrite
 
 
 Replace  with '
 
 a class=menuItem href='html:rewrite page=/main.do/'Main/a
 
 Regards,
  
  
 PQ
  
 This Guy Thinks He Knows Everything
 This Guy Thinks He Knows What He Is Doing
 
 -Original Message-
 From: Jagdish Arora [mailto:[EMAIL PROTECTED]] 
 Sent: January 21, 2003 2:06 AM
 To: Struts Users Mailing List
 Subject: Re: html:rewrite gets the error message Body is 
 supposed to be
 empty for html:rewrite
 
 try
   a class=menuItem href=html:rewrite page=/main.do/Main/a
 
 - Original Message -
 From: Jason Yam [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Tuesday, January 21, 2003 1:09 AM
 Subject: html:rewrite gets the error message Body is 
 supposed to be empty
 for html:rewrite
 
 
  Hi everyone,
 
  I get this error during executing html:rewrite.  
 Anyone know how to
  solve this problem?
 
  Error message:
   Body is supposed to be empty for html:rewrite
 
  Source code:
  a class=menuItem href=html:rewrite
  page=/main.do/html:rewriteMain/a
 
  Thank you
 
  Jason
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 

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




html:rewrite gets the error message Body is supposed to be empty for html:rewrite

2003-01-20 Thread Jason Yam
Hi everyone,
 
I get this error during executing html:rewrite.  Anyone know how to
solve this problem?
 
Error message:
 Body is supposed to be empty for html:rewrite 
 
Source code:
a class=menuItem href=html:rewrite
page=/main.do/html:rewriteMain/a
 
Thank you
 
Jason



RE: [FRIDAY] Best error message ever

2002-12-16 Thread Nelson, Laird
 -Original Message-
 From: James Turner [mailto:[EMAIL PROTECTED]]
 FILE SYSTEM FUKT: Call RMS

Oh, that's priceless.  I'm just picturing the matter/anti-matter explosion
that would have resulted had RMS showed up in a room full of generals.

Cheers,
Laird

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




RE: [FRIDAY] Best error message ever

2002-12-16 Thread Nelson, Laird
 -Original Message-
 From: Peter S. Hamlen [mailto:[EMAIL PROTECTED]]
 Please investigate yourself?  Do you need to hire a private 
 investigator
 to run a background search on yourself?  :)

I just like the fact that it apparently should be the type of
self-investigation that could get you stuck (what would that be, exactly?).
And that you would then be expected to call some team somewhere to come
rescue you from your own idiocy.

SELF-INVESTIGATOR: {with foot wrapped around head}  Hello?  Hello?  Is this
the XYZ team?  Yes, I must say, I'm quite embarrassed; you see I've been
investigating myself, and now I find that I'm rather stuck.  Please don't
tell anyone.

What if you got so stuck you couldn't reach the phone?

Cheers,
Laird

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




Re: [FRIDAY] Best error message ever

2002-12-16 Thread Eddie Bush
Nelson, Laird wrote:


-Original Message-
From: James Turner [mailto:[EMAIL PROTECTED]]
FILE SYSTEM FUKT: Call RMS
   


Oh, that's priceless.  I'm just picturing the matter/anti-matter explosion
that would have resulted had RMS showed up in a room full of generals.


LOL - Have you ever actually met RMS?  I have ... and ... he's a bit ... 
how would you put it ... eccentric?  Seeing him placed in that situation 
would indeed be priceless!

Cheers,
Laird


--
Eddie Bush




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




Re: [FRIDAY] Best error message ever

2002-12-15 Thread Max Cooper
I don't think this will trump any of the fine examples posted so far, but I
have always found this gsu error message amusing:

gsu: you won't be doing that today.

This is what you get if you try to gsu to an account that you don't have
access to.

-Max

- Original Message -
From: Nelson, Laird [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 13, 2002 9:42 AM
Subject: [FRIDAY] Best error message ever


 Just ran across this error message in an old legacy system (I couldn't
make
 this up if I tried):

 Unspecified security problem. Please investigate yourself, but call [name
 changed to protect the innocent] team if you get stuck.

 Cheers,
 Laird

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





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




Re: [FRIDAY] Best error message ever

2002-12-14 Thread Craig R. McClanahan


On Fri, 13 Dec 2002, Nelson, Laird wrote:

 Date: Fri, 13 Dec 2002 12:42:32 -0500
 From: Nelson, Laird [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: [FRIDAY] Best error message ever

 Just ran across this error message in an old legacy system (I couldn't make
 this up if I tried):

 Unspecified security problem. Please investigate yourself, but call [name
 changed to protect the innocent] team if you get stuck.

 Cheers,
 Laird


That one probably tops my previous favorite -- a particular syntax error
in the command line interpreter of an ancient operating system I once used
simply returned:

  You can't do that

Craig


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




[FRIDAY] Best error message ever

2002-12-13 Thread Nelson, Laird
Just ran across this error message in an old legacy system (I couldn't make
this up if I tried):

Unspecified security problem. Please investigate yourself, but call [name
changed to protect the innocent] team if you get stuck.

Cheers,
Laird

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




Re: [FRIDAY] Best error message ever

2002-12-13 Thread Peter S. Hamlen
LOL!

Please investigate yourself?  Do you need to hire a private investigator
to run a background search on yourself?  :)

-Peter


On Fri, 2002-12-13 at 12:42, Nelson, Laird wrote:
 Just ran across this error message in an old legacy system (I couldn't make
 this up if I tried):
 
 Unspecified security problem. Please investigate yourself, but call [name
 changed to protect the innocent] team if you get stuck.
 
 Cheers,
 Laird
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




Re: [FRIDAY] Best error message ever

2002-12-13 Thread James Turner
Laird Nelson wrote:
Just ran across this error message in an old legacy system (I couldn't
make
this up if I tried):

Unspecified security problem. Please investigate yourself, but call
[name
changed to protect the innocent] team if you get stuck.

Cheers,
Laird

Not even close:

Back when I worked for LISP Machine, Inc., we had a very important demo
of some AI software for a bunch of multi-star Generals at DOD.  Imagine
our chagrin when the following error message popped up:

FILE SYSTEM FUKT: Call RMS

(RMS, of course, being Richard M. Stallman)

_
James 
ICQ#: 8239923
More ways to contact me: http://wwp.icq.com/8239923
See more about me: http://web.icq.com/whitepages/about_me?Uin=8239923
_



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




Re: [FRIDAY] Best error message ever

2002-12-13 Thread Eddie Bush
LMAO - that's too funny!  (I guess the server is back up now!)

James Turner wrote:


Laird Nelson wrote:
 

Just ran across this error message in an old legacy system (I couldn't
   

make
 

this up if I tried):
   


 

Unspecified security problem. Please investigate yourself, but call
   

[name
 

changed to protect the innocent] team if you get stuck.
   


 

Cheers,
Laird
   


Not even close:

Back when I worked for LISP Machine, Inc., we had a very important demo
of some AI software for a bunch of multi-star Generals at DOD.  Imagine
our chagrin when the following error message popped up:

FILE SYSTEM FUKT: Call RMS

(RMS, of course, being Richard M. Stallman)



--
Eddie Bush





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




display error message including dynamic data

2002-11-28 Thread Cathy Osekizoglu

Hi:
According to the result from my action class, I need to display message to user using 
the dynamic data. 
This is what I am doing: In my action class, I got the result that user can only 
retrieve maximum 50 dollars from his credit card. When user try to retrieve more than 
50 dollars, I want to display the error message:  you can't retrieve more that 50 
dollars. (50 is dynamic data here). In my action class, I have 
errors.add(ActionErrors.GLOBAL_ERROR,  new ActionError(error.amount)); in my Jsp, I 
have html:error/. How can I achieve it in ApplicationResource.properties?(I am using 
struts1.1-b2).
Thank you very much for your reply



-
Post your free ad now! Yahoo! Canada Personals



display error message including dynamic data

2002-11-28 Thread Cathy Osekizoglu

Hi:
According to the result from my action class, I need to display message to user using 
the dynamic data. 
This is what I am doing: In my action class, I got the result that user can only 
retrieve maximum 50 dollars from his credit card. When user try to retrieve more than 
50 dollars, I want to display the error message:  you can't retrieve more that 50 
dollars. (50 is dynamic data here). In my action class, I have 
errors.add(ActionErrors.GLOBAL_ERROR,  new ActionError(error.amount)); in my Jsp, I 
have html:error/. How can I achieve it in ApplicationResource.properties?(I am using 
struts1.1-b2).
Thank you very much for your reply



-
Post your free ad now! Yahoo! Canada Personals



  1   2   >