Malini,
I wrote a piece some classes to do that not long ago. If you look in the
archives of this list (TOPIC='RE: session cleanup'). I don't have to code
right now but I posted it to the list. If you can't find it let me know and
I will find it and repost it.
What it basically did was to create
Hi all,
I didnot know that you could not put a jsp:include tag in the body of a
custom tag.
Could someone tell me WHY that is???
I thought as long as you specified that the Body content was JSP then you
could do ANY JSP.
TIA,
Lee
>From: JSP Insider <[EMAIL PROTECTED]>
>Reply-To: A mailing lis
CORRECTION!
I forgot the 'where' clause.
The code should be:
.
.
.
if (last_productname != null)
{
strSQL += " where productname = '" + last_productname + "'";
}
>From: Lee Collins <[EMAIL PROTECTED]>
>Reply-To: A ma
Karan,
If your data is ORDERED then it is easy and you DO NOT have to cache the
data.
For example:
You want to display a list of products alphabetically (25 at a time).
SQL is like: select * from product
Loop thru the results for 25 rows and send the list to the browser.
After you 25th row, sto
Here is the Code in 3 files.
SessionMonitor.java - the monitor object itself
SessionMonitorListener.java the listener interface
YourServlet.java - example servlet to show how you would use a
SessionMonitor in your Servlet.
SessionMonitor.java ///
Samir,
What I have done in the past is to have an additional thread running who's
job it was to invalidateSessions and free related resources.
You need an object to hold a ref to the Session objet and to the Thread so
that when each Session is invalidated, you can destroy the thread.
I may be a
Hi all,
I know that forwarding after content has been written will cause an
IllegalStateException.
However, why am I having a problem including? Does including have the same
restrictions as forwqarding?
ERROR>
Included servlet error: 500
Location: /Shower
Internal Se
Hi all,
I know that forwarding after content has been written will cause an
IllegalStateException.
However, why am I having a problem including? Does including have the same
restrictions as forwqarding?
ERROR>
Included servlet error: 500
Location: /Shower
Internal Se
Tiana,
// static method File.createTempFile() will produce a File Object
representing a UNIQUE File. You pass a 3rd parameter (File dir) if you want
to specify a certain directory.
File f = File.createTempFile("jspGen", "*.html");
String strFilename = f.getAbsolutePath();
Lee
>From: Tiana Zhan
Tiana,
If you are doing this cleanup when the App is ending then you don't want to
put the file info in the Session. Sessions are for data that lasts only as
long as a user's session lasts - Session scope. Since you're using
jspDestroy() i will assume you mean to give it Application scope. To ach
I got this list from
http://www.jguru.com/jguru/faq/view.jsp?EID=11699 .
CGI Variable Servlet Request Method
SERVER_SOFTWARE ?
SERVER_NAME HttpServletRequest.getServerName()
GATEWAY_INTERFACE N/A The revision of the CGI specification to which
this server complies. Format: CGI/revi
Vinay,
Did you specify a scope??
If you set the scope to 'session', then when a user goes from page to page
he will recieve the SAME BEAN. A new bean will NOT be instantiated.
If ALL users wish to view/modify the bean then you probably want
scope='application'.
I don't know what the default i
12 matches
Mail list logo