location of error messages

2003-11-26 Thread koen boutsen
Hi

In my validation, I create multiple actionErrors. 
On the jsp page, I want each error message to be displayed next to the corresponding 
input field.

I have this in my resource file :
errors.header=ULfont color=red
errors.prefix=LI
errors.suffix=/LI
errors.footer=/font/UL

and this in my .jsp : 
tdhtml:text property=orgName size=50 /html:errors property=orgName //td

On screen, the error message is always displayed below the input field, and not next 
to it.

How could I resolve this ?

Thanks in advance

Koen




Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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



Re: location of error messages

2003-11-26 Thread Kris Schneider
Might just be a table layout issue. You could always try stuffing the error
message in it's own cell:

tdhtml:text property=orgName size=50//td
tdhtml:errors property=orgName//td

Quoting koen boutsen [EMAIL PROTECTED]:

 Hi
 
 In my validation, I create multiple actionErrors. 
 On the jsp page, I want each error message to be displayed next to the
 corresponding input field.
 
 I have this in my resource file :
 errors.header=ULfont color=red
 errors.prefix=LI
 errors.suffix=/LI
 errors.footer=/font/UL
 
 and this in my .jsp : 
 tdhtml:text property=orgName size=50 /html:errors property=orgName
 //td
 
 On screen, the error message is always displayed below the input field, and
 not next to it.
 
 How could I resolve this ?
 
 Thanks in advance
 
 Koen

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

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



RE: location of error messages

2003-11-26 Thread Robert Lamping
Dear Koen,

You probably strictly follow the example at:
http://husted.com/struts/tips/017.html

This is an tip to show the errors in one cluster on your page.

What you are doing is mentioning the errors per input property. So you won't
need the LI construction

LI always begins at a new page (unless you modify this using a
stylesheet).

If you would test TEST LITEST2/LI  in a html file you would get the same
result

To make it work in your situation, omit the UL en LI begin and end tags.

errors.header=font color=red
#errors.prefix=
#errors.suffix=
errors.footer=/font

Kind regards,

Robert Lamping
The Netherlands

-Original Message-
From: koen boutsen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 2:31 PM
To: [EMAIL PROTECTED]
Subject: location of error messages


Hi

In my validation, I create multiple actionErrors. 
On the jsp page, I want each error message to be displayed next to the
corresponding input field.

I have this in my resource file :
errors.header=ULfont color=red
errors.prefix=LI
errors.suffix=/LI
errors.footer=/font/UL

and this in my .jsp : 
tdhtml:text property=orgName size=50 /html:errors
property=orgName //td

On screen, the error message is always displayed below the input field, and
not next to it.

How could I resolve this ?

Thanks in advance

Koen




Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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