mvc--> usage of session.setAttribute

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anju07
    New Member
    • May 2007
    • 12

    #1

    mvc--> usage of session.setAttribute

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

    rs=st.executeQu ery("select meetingid.nextv al from dual");
    int serialno=0;
    if(rs.next())
    {
    serialno=rs.get Int(1);
    }
    session.setAttr ibute("thenum", new Integer(serialn o));

    My java file would obviously not take this last statement [session.setAttr ibute("thenum", new Integer(serialn o)); ] so how do i use it?
    Please help
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #2
    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.

    Comment

    Working...