#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Posts
    2
    Rep Power
    0

    html form datatypes


    I'm passing some form data to a JSP and I can't figure out how to either pass the data as an int or cast from a string to an int so that I can jump into the database with the data.

    Any ideas? Thanks
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Posts
    12
    Rep Power
    0
    int x = new Integer(request.getParameter("x")).intValue()

    You also need to catch the NumberFormatException.

IMN logo majestic logo threadwatch logo seochat tools logo