473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

mvc--> usage of session.setAttribute

12
hi,
im using javabeans to separate the java code from my jsp page.
i have the following code:

rs=st.executeQuery("select meetingid.nextval from dual");
int serialno=0;
if(rs.next())
{
serialno=rs.getInt(1);
}
session.setAttribute("thenum",new Integer(serialno));

My java file would obviously not take this last statement [session.setAttribute("thenum",new Integer(serialno)); ] so how do i use it?
Please help
May 9 '07 #1
1 3463
dmjpro
2,476 2GB
i m not so much familiar with <jsp:useBean> tag.

i think u used this .. having this assumtion .... i responding u

can't u pass the request or session implicit variables to the java code?????

if possible then rest u can do it.
best of luck.

kind regards.
May 9 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: marslee | last post by:
I want to prevent non-registered users to view a page in my website, For example, when a non-registered user clicks the history page, the website site refuses to go there since he is not...
1
by: anks | last post by:
I am using jsp for my web based application. All participants enter through login password provided to them. Is it possible to capture the session status information(connected, disconnected time...
3
by: D E | last post by:
What are some good methods of letting a user's "identity" (?session?) be known across several webpages. For example, a user logs in, and several pages say "Welcome back KNOWN USER" if he...
15
by: dee | last post by:
Hi, What is the maximum number of minutes for Session timeout that I can specify in web.config? Thanks. Dee
6
by: Dan | last post by:
I'm using python's xml.dom.minidom module to generate xml files, and I'm running into memory problems. The xml files I'm trying to create are relatively flat, with one root node which may have...
1
by: uninvitedm | last post by:
Hiya.. I have a jsp page to upload some files.. The session is used to store a Map ( session.setAttribute("filemap", filemap ) ). This map contains all the files to be uploaded. I have a...
0
by: krishna81m | last post by:
Could some one please explain why the session is not being maintained when I am doing a forward in a servlet after setting a cookie. I am even unable to set session attributes or parameters and...
3
by: ajeeshc | last post by:
using jsp Create a sample page for login and when i enter the correct string moves to inner page and when i clicked logout it redirect to home page from there when i click the back button it goes to...
0
by: tangara | last post by:
Hi, I would like to know how to make use of session to apply in my jsp pages. My login.html page contains the session codes as follows:- <%@page import="java.util.*"%> <String str =...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.