Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic JSPDynpage

Hello!

It's question for my understanding, I think.

I have JSPDynpage: JSP, class, bean.

If I want to dynamic show/hide (add/remove) some elements(button, for example) on my page, what should I do?

When I have only class(Dynpage) it's simple, but I have JSPDynpage.

replied

Hi Paul,

You need to put the if condition inside a scriplet in the .jsp file.

Here is a sample code.

<% 
    if(myBean.isCheckAdminFlag())		
    {	
%>
         <hbj:button  id="bhp_btn_edit"
	            text="Edit"
	            onClientClick="callEditForm()">
         </hbj:button>
<% 
    } 
%>

Hope this helps.

Regards,

Melwyn.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question