Results 1 to 2 of 2
  1. #1
    fiqueudrue's Avatar
    fiqueudrue is offline Member
    Join Date
    Dec 2008
    Location
    Singapore
    Posts
    55
    Rep Power
    0

    Default web service using visual jsf page

    how can i get the value from the visual jsf textfield,
    instead of just hard code the data like "Honda".
    i cant be everything change the name of the car by exploring the data source and change it .

    isit correct by using or other way
    java.lang.String carModel = textfield1.toString;


    try {

    // Call Web Service Operation
    com.probeans.car.services.NewCarWebServ port = service.getNewCarWebServPort();

    // TODO initialize WS operation arguments here
    java.lang.String carModel = "Honda";


    // TODO process result here
    com.probeans.car.services.NewCarInfoJava result = port.getCarInfo(carModel);

    System.out.println("Result = "+result);

    label1.setText(result.getCarID() + result.getCarModel() + result.getCarDescription() +
    result.getCarTransmission() + result.getCarPrice());

    } catch (Exception ex) {
    label2.setText(ex);
    // TODO handle custom exceptions here
    }
    Last edited by fiqueudrue; 02-10-2009 at 07:34 AM. Reason: [SOLVED]
    VTEC may be long gone... but the power of MZR is coming...

  2. #2
    fiqueudrue's Avatar
    fiqueudrue is offline Member
    Join Date
    Dec 2008
    Location
    Singapore
    Posts
    55
    Rep Power
    0

    Default

    SOLVED
    cheers

    java.lang.String carModel = (String)this.textField1.getText();
    VTEC may be long gone... but the power of MZR is coming...

Similar Threads

  1. Go back to previous page using session in JSP page
    By gopikarikati009 in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 06-23-2011, 11:30 AM
  2. Redirect page in web service
    By bluesheeva in forum Advanced Java
    Replies: 3
    Last Post: 02-04-2009, 12:56 AM
  3. Replies: 0
    Last Post: 12-08-2008, 03:30 PM
  4. setting the view to a jsp page from a self refeshing page
    By deepal_205 in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 08-15-2008, 05:41 PM
  5. warning that page has expired and i need to refresh the page again
    By 82rathi.angara in forum JavaServer Pages (JSP) and JSTL
    Replies: 5
    Last Post: 07-15-2008, 02:48 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
  •