Well, I can think of at least two possibilities:

1) the URL you're copying includes a session ID, as suggested by Dale

2) the URL you're copying includes request parameters for user name and password

What is the exact URL you're copying? What do the relevant action mappings, JSPs and Java classes look like? You're doing something wrong, but we'll need to see everything to see where the problem is.

L.

Sawan wrote:
Thanks buddy for your reply,

Very firstly I am sorry for provide the confusing code here. I am not
putting the same data into each session and I am sure that I am getting the
same instance of that data , not just separate copies of the same data.
Actually I have a Login.jsp page and on click SUBMIT button the java class
will be called. In the java class I am fetching the user name and password
from the Login.jsp page and putting them into the session. Now if anyone
copy and paste the url on another machine's browser, then How can he/she
will get the user name and password there..? But it is happening in my case.

I think now I am able to explain in detail...:-)

Thanks & regards

Sawan



Laurie Harper wrote:
Firstly, you're unconditionally putting the same data into each session, so are you sure you're getting the same *instance* of that data, not just separate copies of the same data?

Actions should be instantiated for each request, so if your code is as simple as you've presented and you really are getting the same instance in different sessions, there must be something wrong with your configuration somewhere.

L.

Sawan wrote:
Hello experts,

I have following code...

JAVA class:
public class Support extends ActionSupport implements SessionAware
{
    protected Map<String, Object> session;
    public Map<String, Object> getSession() { return session; }
    @SuppressWarnings({"unchecked"}) public void setSession(Map session)
{
this.session = session; }
}

Action class:
public class Child extends Support
{
  ArrayList alt = new ArrayList();
alt.add("Test"); public String execute() throws Exception
  {
    if ((ArrayList)session.get("obj")==null)
    {
     session.put("obj",alt);
    }
  }
}

I have run this code first time and set the "alt" for this session only.
Now
I copied the link from the browser window and paste it in other machines
browser. But unfortunately I also got the SAME "alt" on other machine's
browser.

I was assuming that for each new browser it will generate a new session
and
will set new alt for each session.

Can any expert help me for this issue...

Thanks in advance Sawan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to