Results 1 to 2 of 2
  1. #1
    Zaynab is offline Member
    Join Date
    Feb 2009
    Rep Power

    Question how can take a specific value from a Querystring with multple queries

    Like mypage.jsp?nm1=val1&nm2=val2
    how can I take the value only from nm1???

    am using JSP on Net Beans and the query string usually cums ou like
    if mypage.jsp?nm1=val1 the value is "nm1=val1"

    I'm sort of new so.....:D pls
    Last edited by Zaynab; 02-09-2009 at 04:29 PM.

  2. #2
    Join Date
    Apr 2007
    Rep Power


    String nm1Value = request.getParameter("nm1");
    String nm2Value = request.getParameter("nm2");

    This is not a question related to NetBeans. Please post your question on appropriate sub forum to get answer quickly. Please also tell us first what JSP tutorial, what Servlets tutorial you followed and couldn't solve this problem by your own. There are lots of JSP and Servlets tutorials on the internet. I suggest you read them first and try and ask specific questions here.

    with regards

Similar Threads

  1. Replies: 2
    Last Post: 11-08-2008, 11:40 AM
  2. queries regarding SWT
    By ravian in forum New To Java
    Replies: 0
    Last Post: 11-26-2007, 04:06 PM
  3. some queries
    By Feng in forum New To Java
    Replies: 7
    Last Post: 11-24-2007, 09:10 PM
  4. Multple Clients
    By samson in forum Networking
    Replies: 1
    Last Post: 04-04-2007, 06:37 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