You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pankaj Gupta <pa...@hsc.com> on 2006/06/06 06:49:25 UTC

[Fwd: Conditional display of components]

Hi,

I wish to display some components like buttons and links conditionally
meaning if the user is a basic operator, he should not see a submit
button and a link on his page otherwise if a user is an advanced
operator he should be allowed to see it. Can somebody please suggest how
should I do it.

regards,
Pankaj

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


Re: [Fwd: Conditional display of components]

Posted by Angelo zerr <an...@gmail.com>.
Hello,
you can use FormView. With FormView you can set a state for a particulary
HTML input (butto, text,...).
State manage your render (hidden, visible, ,...) for your input.
So it's not in your JSP taht you have your condition (logic:equal) but it's
your Struts action which decide which input must be displayed,...

You can find FormView at http://formview.sourceforge.net/

Reagrds Angelo

2006/6/6, I HARIKRISHNA <ih...@yahoo.co.in>:
>
> put that contextdto in session
>
> I HARIKRISHNA <ih...@yahoo.co.in> wrote:  Create a contextDTO which holds
> the logged in user credentials like username etc
> Now in each jsp use logic:equal and decide whether to show or not
>
> Pankaj Gupta
> wrote:
> Hi,
>
> I wish to display some components like buttons and links conditionally
> meaning if the user is a basic operator, he should not see a submit
> button and a link on his page otherwise if a user is an advanced
> operator he should be allowed to see it. Can somebody please suggest how
> should I do it.
>
> regards,
> Pankaj
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
> ---------------------------------
> Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with
> Voice.
>
>
> ---------------------------------
> New Yahoo! Messenger with Voice. Call regular phones from your PC and save
> big.
>

Re: [Fwd: Conditional display of components]

Posted by I HARIKRISHNA <ih...@yahoo.co.in>.
put that contextdto in session 

I HARIKRISHNA <ih...@yahoo.co.in> wrote:  Create a contextDTO which holds the logged in user credentials like username etc
Now in each jsp use logic:equal and decide whether to show or not

Pankaj Gupta 
wrote:
Hi,

I wish to display some components like buttons and links conditionally
meaning if the user is a basic operator, he should not see a submit
button and a link on his page otherwise if a user is an advanced
operator he should be allowed to see it. Can somebody please suggest how
should I do it.

regards,
Pankaj

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




---------------------------------
Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with Voice.

		
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Re: [Fwd: Conditional display of components]

Posted by I HARIKRISHNA <ih...@yahoo.co.in>.
Create a contextDTO which holds  the logged in user credentials like username etc
  Now in each jsp use logic:equal and decide whether to show or not

Pankaj Gupta <pa...@hsc.com> wrote:
  Hi,

I wish to display some components like buttons and links conditionally
meaning if the user is a basic operator, he should not see a submit
button and a link on his page otherwise if a user is an advanced
operator he should be allowed to see it. Can somebody please suggest how
should I do it.

regards,
Pankaj

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



		
---------------------------------
Be a chatter box. Enjoy free PC-to-PC calls  with Yahoo! Messenger with Voice.