Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2008

Tip: Looking for answers? Try searching our database.

Is there a easy way to disable all the session of jsp/servlet?

Thread view: 
lightning - 02 Apr 2008 04:39 GMT
To get that,I write        session="false"             in every jsp
page,which sucks.

It is easy not to use request.getSession(true),
but it is not easy to remember to put   session="false" in every new
jsp page.

Is there?
Lew - 02 Apr 2008 05:36 GMT
> To get that,I write        session="false"             in every jsp
> page,which sucks.
>
> It is easy not to use request.getSession(true),
> but it is not easy to remember to put   session="false" in every new
> jsp [sic] page.

Nor (usually) necessary.  But if that's a requirement for you generally, you
can set up templates in your favorite IDE, most likely, to generate JSPs with
that attribute set the way you need it.  You certainly can in Eclipse and
NetBeans.

NetBeans: Tools / Tamplates => Template Manager
Select "Web / JSP"
Click "Duplicate"
"Rename" the copy, say, to "JSP_no_session"
with the renamed copy, "Open in Editor"
Add the new <%@page%> directive

Now you can select "Web Pages", context menu "New", "Web", "JSP_no_session", etc.

> Is there?

Sorry?

Signature

Lew

lightning - 02 Apr 2008 06:49 GMT


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.