Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

JSP & is it a seperator

  • 09-05-2007 2:22pm
    #1
    Registered Users, Registered Users 2 Posts: 1,559 ✭✭✭


    Okay Im using request.getParameter to retrieve a value from an actual address entered in at the top of the screen.

    I was just wondering if Ive got this big long string with
    tryryrury&cmd=0

    would
    req.getParameter("cmd")

    return a string saying "0"?


Comments

  • Closed Accounts Posts: 291 ✭✭imeatingchips


    aye


  • Registered Users, Registered Users 2 Posts: 139 ✭✭Higgsy


    Thats sounds about right.......

    Do you have a choice of whether or not you have to use JSP?


  • Registered Users, Registered Users 2 Posts: 11,989 ✭✭✭✭Giblet


    You can do stuff like this as well
    Map<String,String[]> parameters = req.getParameterMap();
    for(String key: req.keySet()) 
    {      
           System.out.println("KEY: "+key+" - VALUE: "+parameters.get(key)[0]);
    }
    

    Which would list all parameters and their values, handy for checking multiple parameters.


  • Registered Users, Registered Users 2 Posts: 1,559 ✭✭✭quinnd6


    Nope gotta use jsp.
    Cheers guys for the info.


  • Closed Accounts Posts: 4,655 ✭✭✭Ph3n0m


    dont forget that

    ${param.nameofparameter} also works well


  • Advertisement
Advertisement