Hey guys,

In JSP I used to create my sessions in my servlet like this:

session.setAttribute("user", username);

and then call it from a JSP page like this:

<%= session.getAttribute("user") %>

However this does not work in JSPX pages and its driving me crazy.

Can any one help me?

Any help would be appreciated

Recommended Answers

All 2 Replies

Hey guys,

In JSP I used to create my sessions in my servlet like this:

session.setAttribute("user", username);

and then call it from a JSP page like this:

<%= session.getAttribute("user") %>

However this does not work in JSPX pages and its driving me crazy.

Can any one help me?

Any help would be appreciated

Dont worry huys I've figured it out!

SO what did you do? It is always nice to share solution...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.