[SOLVED] JSTL equiv of this scriplet?
Hello,
I'm trying to convert following scriplet to JSTL
Code:
<%@ page import="org.apache.tomcat.util.buf.Base64" %>
<%
String pass = request.getHeader("authorization");
pass = pass.substring(6);
pass = Base64.base64Decode(pass);
pass = pass.substring(pass.indexOf(":") + 1);
%>
<h3>Info using Scriplet</h3>
You are : <b><%=request.getRemoteUser()%></b><br>
Password : <b><%=pass%></b><br>
So far I did following :
Code:
<h3>Info using JSTL</h3>
You are : <b>${pageContext.request.remoteUser}</b><br>
Password : <b>???</b><br>
I'm stuck on the last two line... that is how should I call Base64.base64Decode(pass); in JSTL.....
thanks for any help...
Q#2. btw is it right that if one using BASIC AUTH then there is no way to log off user except closing the browser window?