t;[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: how to use Session in a jsp function?
>Date: Wed, 31 May 2000 14:17:38 +0800
>
>hello,just as you say,to use out.
no can't do ..:)
modify your checkId() to pass in the session object like below:
karen wrote:
> hello,just as you say,to use out.println() method,we need to add like this
> func(JspWriter out)
> {
> }
> if I want to use a Session method,just as session.putValue() or
>session.getValue(
hello,just as you say,to use out.println() method,we need to add like this
func(JspWriter out)
{
}
if I want to use a Session method,just as session.putValue() or
session.getValue(),how can I realize?and more if I can call a bean in a jsp
function?just like below:
<%!
int chkID(String strBar
iginal Message-
> From: yjchen [mailto:[EMAIL PROTECTED]]
> Sent: 28 March 2000 04:09
> To: [EMAIL PROTECTED]
> Subject: How to use session ?
>
> Sorry to ask such stupid question.
>
> I try to trace a user by this code:
>
>
> Your session data:
> <%
> Str
Just a stupid question, but is browser set to accept cookies?
-Original Message-
From: yjchen [mailto:[EMAIL PROTECTED]]
Sent: 28 March 2000 04:09
To: [EMAIL PROTECTED]
Subject: How to use session ?
Sorry to ask such stupid question.
I try to trace a user by this code:
Your session
Sorry to ask such stupid question.
I try to trace a user by this code:
Your session data:
<%
String[] names = session.getValueNames();
for (int i = 0; i < names.length; i++) {
%>
<%= names[i] %> : <%= session.getValue(names[i]) %>
<%
}
%>
Session id: <%= session.getId() %>
New Session: