在我的应用程序中,输入客户信息是可选的。如果输入是强制性的,用户会得到一个弹出窗口,然后会被引导到设置配置页面。如果没有,他们只会看到一个设置配置图标。我有下面的jsp代码,如果布尔enterInfo为真,我基本上会给客户端一个弹出窗口以输入他们的详细信息。如果用户没有权限,他们会看到设置配置图标。但是,在我的情况下,如果用户没有权限,他们仍然会看到设置的配置页面。我只希望他们看到图标。我以前从未使用过jsp,所以请在不赞成/评论上放轻松;)
这是jsp代码 -
<%if(myenrollment){
boolean isPrivUser = FetchInfo.isPrivUser();%>
<div class="showBrowser" style="display:block"><img src="<%= iphoneIcon %>" height="250px" width="250px"></div>
<%if(isPrivUser) %>
<div class="textSize" style="font-size:50;font-family:Helvetica;"><p><b>Entering the details</b></p></div>
<%}else {%>
<img src="<%=profileIcon%>" height="100px" width="100px" style="margin-top: 20px;">
<div class="textSize" style="font-size:40;font-family:Times new roman;"><p><b>Setting the config..</b></p></div>
<%} %>