Good day,
I have the following JSP code insert.
My objective is to show the link in the page, only when the user is logged on.
I am testing as follows, but get the link displayed at all times followed by JSP closing bracket
Any suggestions, please.
Thanks you
I have the following JSP code insert.
My objective is to show the link in the page, only when the user is logged on.
I am testing as follows, but get the link displayed at all times followed by JSP closing bracket
Code:
%>
Thanks you
Code:
<% String space = " " ; // test if user is loged on and only show link if user is logged on // if (nullInd != request.getSession().getAttribute("mySavedUserid") ) if (space != request.getSession().getAttribute("mySavedUserid") ) {%> <a href="http://myurl.com?USRNAM=<%=session.getAttribute("mySavedUserid")%>" target="_new"><img src="webfacing/images/IBM/systemscreens/print.jpg" hights="50" width="60">View User Spool Files</a> <%}; %>
Comment