Results 1 to 1 of 1
  1. #1
    IceNine is offline Member
    Join Date
    Mar 2013
    Rep Power

    Default Obtaining A Session ID RESTful Web Services Not Using A Servlet


    So i have finally resolved my problem all I did was add

    private HttpServletRequest request;

    which allowed me to call

    return request.getSession().getId();

    within my RESTful web service.

    So im developing some code that allows a user to upload a file using apache tomcat. I have the upload portion working correctly but what I am having trouble with is the code to obtain a users session ID because all i can find is examples that show how to get a session ID using servlets but i am not using a servlet i am using a RESTful webservice. My question is, is it possible to obtain the users session ID without using a servlet because i havent found any way to do this
    Last edited by IceNine; 06-09-2013 at 06:13 PM.

Similar Threads

  1. RESTful Web Services
    By Akynz in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 04-12-2011, 04:48 PM
  2. share session object between servlet and jsp
    By sameerk in forum Java Servlet
    Replies: 6
    Last Post: 09-29-2010, 10:20 AM
  3. session in servlet
    By erakhman in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-14-2010, 05:20 PM
  4. Invocation of Restful services thru POST request
    By userj2ee in forum Advanced Java
    Replies: 0
    Last Post: 05-06-2010, 11:40 AM
  5. Java Servlet and Web Services Communication
    By kiran.doddi in forum Java Servlet
    Replies: 0
    Last Post: 03-16-2010, 07:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts