> -Original Message-
> From: Pavlikus [mailto:[EMAIL PROTECTED]
>
> <%
> UserSessionInfo info = (UserSessionInfo)
> session.getAttribute(UserSessionInfo.USER_SESSION_INFO_KEY);
>
>
> out.println(info.getUser().getLogin());
> %>
>
> Later on page:
>
>
>
>
>
>
Which scope you want the data in depends on your needs (request, session,
application, database).
At 11:23 PM 6/20/2004, javen fang wrote:
this is in struts mailing list, and you MUST be using
Struts
So in struts, we avoid to use scriptlets in JSP page.
All your data is prepared in struts Action
this is in struts mailing list, and you MUST be using
Struts
So in struts, we avoid to use scriptlets in JSP page.
All your data is prepared in struts Action
--- Pavlikus <[EMAIL PROTECTED]> wrote:
> Hello all.
>
> <%
> UserSessionInfo info = (UserSessionInfo)
>
>
session.getAttribut
Hello Pavlikus,
I got the same problem. I overcome this problem with very crude method.
use import jsp tag for getting appropriate classes
First I create 1 instance with
Then I reinitialise the info with session.getAttribute in JSP.
& then you can use your methods using JSTL or simple java code.
5:22
> To: [EMAIL PROTECTED]
> Subject: jstl trouble
>
>
> Hello all.
>
> <%
> UserSessionInfo info = (UserSessionInfo)
> session.getAttribute(UserSessionInfo.USER_SESSION_INFO_KEY);
>
>
> out.println(info.getUser().getLogin());
> %&g
Hello all.
<%
UserSessionInfo info = (UserSessionInfo)
session.getAttribute(UserSessionInfo.USER_SESSION_INFO_KEY);
out.println(info.getUser().getLogin());
%>
Later on page:
Please tell me where my mistake.
Also, is there ways to avoid scriptlets on my jsp?
I use but
6 matches
Mail list logo