Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

how to get a session object in jsp?

  Asked By: Matilda    Date: Jun 30    Category: Java    Views: 5330
  

how to get a session object in jsp? how to put and get values in this?

what is a customizable tag in jsp?

what is difference between page & pageconfig objects?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Rosalie Holmes     Answered On: Jun 30

The session  object is automatically exposed in a jsp  with the name
session. To put  and get values, it is something like:

<% session.setAttribute("name", value);
Object value = session.getAttribute("name");
%>

> what is a customizable tag  in jsp?

JSP uses the TagLibs as a way of encapsulating business logic so that it
is not directly accessible by page  designers, but is instead accessible
through certain tags. Check out the JSTL (standard tag libraries) for
some examples.

> what is difference  between page & pageconfig objects?

Not sure about this one.

 
Didn't find what you were looking for? Find more on how to get a session object in jsp? Or get search suggestion and latest updates.




Tagged: