Results 1 to 2 of 2

Thread: Java problems

  1. #1
    Join Date
    Jul 2003
    Location
    aku org malaysia...
    Posts
    45
    Rep Power
    0

    Exclamation Java problems

    help plz...

    wanna ask about java programming...

    if i want to called string value,the code should be like this:

    name=(String)inputText2.getValue();

    but,how to called integer value coz when i write this line of code,i got error :

    patientId = (Integer)inputText1.getValue();
    Last edited by spicy_girl; 09-01-2008 at 08:26 AM.
    aku seadanya...

  2. #2
    Join Date
    Apr 2004
    Location
    Ampang
    Posts
    18
    Rep Power
    0
    Is this Java or Javascript?

    Assuming that it is Java, and assuming that string is form of request attribute:

    Code:
    patientId = Integer.parseInt(inputText1.getValue());
    I assume this would work.
    ""If you must break the law, do it to seize power: in all other cases observe it." - Julius Caesar

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is STREAMYX have problems
    By gethosted in forum Mamak Stall
    Replies: 4
    Last Post: 28-01-2006, 01:54 AM
  2. Help you to solve your Problems for FREE!
    By Yummy in forum Other Webmaster-related Services and Promotion
    Replies: 4
    Last Post: 02-08-2004, 04:03 PM
  3. Problems with Signature
    By sportstoto3368 in forum Website Programming
    Replies: 7
    Last Post: 13-05-2004, 01:08 AM
  4. ImageColorAllocate and ImageString problems
    By kpyew in forum Website Programming
    Replies: 3
    Last Post: 24-05-2002, 06:39 PM

Posting Permissions

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

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39