Make sure that the class Session is in the class path...Is the method
signature processRequest() correct ? Just a thought.
Try writing a different method in your bean class "Session" , say
myTrialMethod (String inValue ) { System.out.println("setMyTrialMethod = "
+ inValue);}
and call it as
< js
Use both, the Headers & HTML META tags, it would work. Works fine with me.
Best of Luck
- khaitan
- Original Message -
From: David Wall <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 18, 1999 11:41 AM
Subject: Re: Forcing a HTML Page Refresh from Servlet->JSP
> >
> >
If you modify the included page and do not modify the including page then
you'll have problems.
When a time stamp check is made it looks for the time stamp of the including
page and not that of the
included page.
So, if you access the same inclided page directly then it would work fine
but things
Use this code (from my earlier posting).
- khaitan
1. create a session bean object as per the following code in some file x.jsp
<.. set the login/password properties of the bean..>
2. import the login session in say y.jsp
<%-- if bean not in session the forward request to x.jsp to create t
One way to do it is to use two beans, first for the login and scond for your
info page.
your login page is the start page where you would create the bean instance
and make it a session scoped.
Import this bean instance in your second page, if it is not in session then
send it to the login jsp page
In all probability you are trying ti access the
session bean properties without importing/instantiating the session
bean,
If you are using the session in you homepage make
sure you instantiate(= create) the session, and in later pages keep importing
it.
Hope this helps
- khaitan
-
You can access the individual fields in the resultset by calling resultset's
get mthods eg. getString( ). getString method is overloaded and takes column
name(String) as well as column index(int). There are other methods as well
for some data types.
Hope this helps
-khaitan
- Original Messa
1. create a session bean object as per the following code in some file x.jsp
<.. set say login/password values ..>
2. import the login session in say y.jsp
<%-- if bean not in session the forward request to x.jsp to create the
session --%>
- Original Message -
From: Nanduri Amarnat
Here is a sample code.
Dosomething.jsp
<%-- Import Login info from session --%>
<%-- If Login Info doesn't already exist in session, call login page --%>
First, try to get the bean from the session, if it doesnt exist then forward
the request to the page which creates the