You are using a Tag Lib within a Scriptlet.
You can assign the variable using the scriplet by the following:

<%
String username = (String) session.getAttribute("userName");
%>

hope that helps.
-scott

At 02:40 PM 12/5/2003 +0100, you wrote:
In the Jsp i have:

<sess:attribute name="userName"/>

witch prints the username. Now i want something like:

<%

String username= <sess:attribute name="userName"/>;

%>

but that doesn't work. How can i assign the session variable to the String username ?

Thanks !



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to