You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Mouratidis, Georg" <GM...@heiler.com> on 2002/11/27 10:31:45 UTC

dynamically display buttons-footer

Hi,

I have a form that can bu used either if a provider or a buyer or a supplier is logged on.

I have two buttons named delete and save. 

I want know display the buttons dynamically under different conditions.

is there something like

  if (provider loggedin AND user has clickt the buyer tab) OR (buyer loggedin AND user clicked the supplier tab)
	display deletebutton
	display savebutton
  else
	display savebutton

any <logic:xxxx> for building such cases?

mit freundlichen Grüßen 

Georg XL. Mouratidis 
Web Application Developer 

Heiler|Software AG 
Mittlerer Pfad 9 
D-70499 Stuttgart 

Tel: 0711-139 84-265
Fax: 0711-866 63 01 
Email: gmouratidis@heiler.com 

Connecting Buyer and Supplier
http://www.heiler.com 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: dynamically display buttons-footer

Posted by gus <gu...@gmx.net>.
Hi Georg!

Try this:
    <html:form action="/exportdoc.do">
       <logic:present role="provider">
          <html:submit value="Delete"/>
          <html:submit value="Save"/>
       </logic:present>
       <logic:notPresent role="provider">
          <html:submit value="Save"/>
       </logic:notPresent>
    </html:form>

Regards
   gus



Mouratidis, Georg schrieb:
> Hi,
> 
> I have a form that can bu used either if a provider or a buyer or a supplier is logged on.
> 
> I have two buttons named delete and save. 
> 
> I want know display the buttons dynamically under different conditions.
> 
> is there something like
> 
>   if (provider loggedin AND user has clickt the buyer tab) OR (buyer loggedin AND user clicked the supplier tab)
> 	display deletebutton
> 	display savebutton
>   else
> 	display savebutton
> 
> any <logic:xxxx> for building such cases?
> 
> mit freundlichen Grüßen 
> 
> Georg XL. Mouratidis 
> Web Application Developer 
> 
> Heiler|Software AG 
> Mittlerer Pfad 9 
> D-70499 Stuttgart 
> 
> Tel: 0711-139 84-265
> Fax: 0711-866 63 01 
> Email: gmouratidis@heiler.com 
> 
> Connecting Buyer and Supplier
> http://www.heiler.com 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>