|
 |
j2ee thread: how do i use sessions if i use a javabean with a jsp
Message #1 by "sami" <sami.s.n@l...> on Sun, 14 Jan 2001 04:17:18 -0000
|
|
Check your 'import' statement. You should see the 'context'
in which you want to use that bean. There are 4 available
bean context. For the purpose, you described you need 'session'
context. After that you can use that bean in another JSP or
in servlets with regular HttpSession's setters & getters.
Asad Bukhari
>From: "sami" <sami.s.n@l...>
>Reply-To: "Java 2 Enterprise Edition" <j2ee@p...>
>To: "Java 2 Enterprise Edition" <j2ee@p...>
>Subject: [j2ee] how do i use sessions if i use a javabean with a jsp
>Date: Sun, 14 Jan 2001 04:17:18 -0000
>
>i put the import statement and the bean worked
>one more question is
>see i have a jsp which basicallly takes data and inserts into the database
>if the data already exists(i mean if we r registering a customer) and the
>customer login already exists i should give the user a message
>saying logi already exists
>and put the values of the other fields as it is and tell him to choose
>another login
>without using a bean i have done this maintaining the values in a session
>but how do i maintain the session if i use a bean
>pls help
>thanx in advance
|
|
 |