Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6059473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:42:51+00:00 2026-05-23T08:42:51+00:00

is there anyway of sharing the Session data across two different JSP (i mean

  • 0

is there anyway of sharing the Session data across two different JSP (i mean two dynamic web project)
projects

in the 1st project i test like that

  <%if(session.getAttribute("UserName") != null ){%>
  .
  .
   do something
     .
    <% } %>

it’s ok

but when i do that in the 2nd project i got this exception

Etat HTTP 404 - /myEbookSearchClient/myEBook/WebContent/JSP/session/index.jsp

  --------------------------------------------------------------------------------

   type Rapport d''état

    message /myEbookSearchClient/myEBook/WebContent/JSP/session/index.jsp

   description La ressource demandée (/myEbookSearchClient/myEBook/WebContent/JSP/session/index.jsp)        n'est pas disponible.


   --------------------------------------------------------------------------------

  Apache Tomcat/7.0.5

Basically, I’m jumping from a page in one to a page in another

any idea how to Shar the session of the 1st project with the 2 project ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:42:52+00:00Added an answer on May 23, 2026 at 8:42 am

    You cant. Attempting to share sessions is discouraged for a variety of reasons primarily related to security.

    Servlet contexxt methods that retreieve a session by id or return an enumeration of all now all do nothing for precisely this reason.

    You will need to share data in some other manner such as a cache or via a database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way I can synchronize the data(data sharing) between C and Java
Is there anyway to extract the underlying xaml from a control. IE. I have
Is there anyway to determine the Exceptions that can be thrown by methods in
Is there anyway to create a dialog that is modal to a view and
is there anyway that I can convert a png to a bmp in C#?
Is there anyway to grab the referring URL using javascript, lets say the reffering
Is there anyway to retrieve a HTML element's class or ID in the controller
Is there anyway to discover the python value of a PyObject* from a corefile
Is there anyway I can execute stored procedure via EXEC (so not specifying CommandType.StoredProcedure
Is there anyway to test an ASP.NET webpage fully with Expression Studio or is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.