×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    3

    empty select option is not returning null

    Hello..to all..

    i have embedde wml in jsp...in one the form...a multiple select option has been used..when ..empty select option(without selecting any option) is submitting..on the server side it is not returing..null..

    String[] selectedList = request.getParameterValues("OptionSelected");
    if(selectedList == null) {........................}

    Please help me what could be the reason...how to fix this one..

    Thanks...

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    22

    Re: empty select option is not returning null

    The value attribute of the select option determines wat is returned. So if nothing is selected it returns an emtpy string '' instead of null. So use strcomp(selectedstring, '') instead of ==null

Similar Threads

  1. Replies: 35
    Last Post: 2009-04-11, 14:36
  2. Please its veru urgent on nokia 3250
    By siva_guduru in forum Mobile Java General
    Replies: 8
    Last Post: 2008-05-01, 10:24
  3. CCoeEnv::Static() is returning NULL pointer!
    By gwn-sameer in forum Symbian
    Replies: 2
    Last Post: 2007-11-12, 10:05
  4. Connection problem with Nokia 6681.
    By hadhi631 in forum Mobile Java Networking & Messaging & Security
    Replies: 8
    Last Post: 2006-09-08, 21:45
  5. global root overflow(please help)
    By sushant_125 in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2004-05-14, 08:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×