Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Session creation

  1. #1
    Junior Member
    Join Date
    Apr 2014
    Location
    Pune
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Session creation

    Hi..This is my very first question on this forum..gr8 to have java coders together here...
    I am making a Java project using Eclipse,oracle 10g and apache tomcat.
    Now my problem is that I cant create a session for the users.I have coded on jsp pages mostly.
    I am beginner so would appreciate very very easy answers below for session creation using HttpSession through servlets or jsp


  2. #2
    Member
    Join Date
    Feb 2014
    Posts
    180
    Thanks
    0
    Thanked 48 Times in 45 Posts

    Default Re: Session creation

    The page directive's session attribute controls whether session is enabled in a JSP. E.g., the following turns session off:
    <%@ page session="false" %>
    By default it is "true", i.e., session is enabled.

    You don't need to "create" a session. The session object is already available for the JSP, and it can be accessed using the session implicit objects. (See JSP - Implicit Objects on implicit objects.) See JSP - Session Tracking for a usage example.

    See also Servlet Session Tracking on using the session object via a servlet.

Similar Threads

  1. javadoc creation
    By e93 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 15th, 2014, 06:46 AM
  2. Object Creation Help
    By alex.melz95 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 15th, 2013, 04:30 AM
  3. Image creation
    By alexpolo10 in forum Java IDEs
    Replies: 1
    Last Post: March 6th, 2013, 04:48 PM
  4. servlet instance creation
    By bhavirisetty in forum Java Servlet
    Replies: 0
    Last Post: September 20th, 2012, 01:08 AM
  5. need help in program creation
    By vinaysa86 in forum Loops & Control Statements
    Replies: 4
    Last Post: August 15th, 2012, 07:11 PM

Tags for this Thread