DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Thread: JSP stuff

  1. #1
    w Guest

    JSP stuff


    I have a dropdown list box on a html and i want to execute a perticular java
    code onChange event of that list box. How can I do that using JSP? Any help
    will be greatly appreciated.


    Thanks,

  2. #2
    John Peter Jensen Guest

    Re: JSP stuff


    "w" <wonderful_me_us@yahoo.com> wrote:
    >
    >I have a dropdown list box on a html and i want to execute a perticular

    java
    >code onChange event of that list box. How can I do that using JSP? Any help
    >will be greatly appreciated.
    >
    >
    >Thanks,


    Well... JSP is a serverside technology, so one way is to write a JavaScript
    that fires one the "Selection" event of the dropdown list box, which in turn
    post's the selected value in the drop down list box as a form-input. On the
    server you could get the posted variable via the <code>request.getParameter("VarName")</code>
    - method, perform your logic and return the generated HTML to the client!

    The coding you'll have to do on your own : - )

    Regards,

    John


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links