You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Silverio Wagner Silva(Secorp)" <ss...@itaonline.com.br> on 2003/07/31 14:55:05 UTC

tag

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:vic_cekvenich@baseBeans.com] 
Enviada em: quinta-feira, 31 de julho de 2003 08:45
Para: struts-user@jakarta.apache.org
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 <BP...@covansys.com> wrote:
> Do u need it for money or free
> 
> -----Original Message-----
> From: Marco Fabbri [mailto:mfabbri@libero.it]
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: tag

Posted by Andrew Geery <ge...@doc.state.sc.us>.
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:vic_cekvenich@baseBeans.com] 
>Enviada em: quinta-feira, 31 de julho de 2003 08:45
>Para: struts-user@jakarta.apache.org
>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 <BP...@covansys.com> wrote:
>>Do u need it for money or free
>>
>>-----Original Message-----
>>From: Marco Fabbri [mailto:mfabbri@libero.it]
>>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: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
>>
>>---------------------------------
>>Do you Yahoo!?
>>Yahoo! SiteBuilder - Free, easy-to-use web site design software
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>  
>