Results 1 to 2 of 2
  1. #1
    casid is offline Member
    Join Date
    Nov 2008
    Rep Power

    Default Passing value....


    I like to learn how to pass value to Textbox from JSP or servlet ? like in javascript

    for example :
    var document.formname.textboxname.value

    another question is, how to add action methods to button in JSP ?
    in java we were adding actionlistener for button
    button.addactionlistener and we were writing what button is wanted to do so how will we assign methods to button in JSP?

    thanks for any supports

  2. #2
    luckacc is offline Member
    Join Date
    Nov 2008
    Rep Power


    i donot know whether i understand you actually.
    you can add a button ,the type is button ,not submit.
    then add its onclick() method on this button with funciton :fun2().
    now,you can do you what you want in fun().

Similar Threads

  1. Passing a value..
    By Lagarto in forum New To Java
    Replies: 3
    Last Post: 01-23-2011, 06:58 PM
  2. passing something
    By dinosoep in forum Threads and Synchronization
    Replies: 2
    Last Post: 12-05-2009, 10:26 AM
  3. jms message passing
    By kirtichopra2003 in forum Advanced Java
    Replies: 0
    Last Post: 09-15-2009, 08:33 AM
  4. MVC passing objects
    By simo_mon in forum New To Java
    Replies: 1
    Last Post: 07-17-2009, 07:57 AM
  5. Passing Strings ?
    By aldo1987 in forum New To Java
    Replies: 17
    Last Post: 04-24-2009, 06:03 AM

Posting Permissions

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