Look at the <logic:messagesPresent> tag. From the description of the messagesPresent tag (http://jakarta.apache.org/struts/userGuide/struts-logic.html#messagesPresent):
"Evaluates the nested body content of this tag if an |ActionMessages| object, |ActionErrors| object, a String, or a String array is in request scope. If such a bean is not found, nothing will be rendered."


You could also modify your message resource properties to display your errors in a table and let Struts do all of the work for you. From the description of the html:errors tag (http://jakarta.apache.org/struts/userGuide/struts-html.html#errors):

"In order to use this tag successfully, you must have defined an application scope |MessageResources| bean under the default attribute name, with optional definitions of the following message keys:

   * *errors.header* - Text that will be rendered before the error
     messages list. Typically, this message text will end with |<ul>|
     to start the error messages list.
   * *errors.footer* - Text that will be rendered after the error
     messages list. Typically, this message text will begin with
     |</ul>| to end the error messages list.
   * *errors.prefix* - Text that will be rendered before each
     individual error in the list.
   * *errors.suffix* - Text that will be rendered after each individual
     error in the list."


Silverio Wagner Silva(Secorp) wrote:


People,

IŽd like to put the errors from <html:errors/> in a personalized table in my
jsp. But the code depends on existing any errors to show the table or not.

The question is how can I evaluate if the tag <html:erros/> will return
something.

Thanks in advance,

-----Mensagem original-----
De: Vic Cekvencih [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 31 de julho de 2003 08:45
Para: [EMAIL PROTECTED]
Assunto: Re: Survey Builder


Fixed bid development:
http://basebeans.com/do/cmsPg?content=DEVELOPMENT

Most likely it is a few screens. (Ex: Create Survey, Take a survey)
.V


Prashanth.S wrote:


how much do u charge for that kind of an application..


PREETAM Balijepalli <[EMAIL PROTECTED]> wrote: Do u need it for money or free

-----Original Message-----
From: Marco Fabbri [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 3:02 PM
To: Struts Users Mailing List
Subject: Survey Builder


Hi all,
does someone knows how can I find a struts application to dynamically


build a survey?


An example is : http://www.surveytime.com/.

But I need less features than this...
Thanks a lot in advance.

Marco Fabbri

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





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




Reply via email to