Announcement Announcement Module
Collapse
No announcement yet.
getRequestParameterMap Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • getRequestParameterMap

    I saw some codes like this (in jsp):

    var url= 'testFlow.htm?_flowId=testXML' + '&id='tester'
    popup = window.open(url, "popupWindow", args);


    In the JAVA class:

    ...init(RequestContext context)

    context.getExternalContext().getRequestParameterMa p().get("id");

    1)Why not directly use the
    context.getRequestParameters().get("id");? Intead, via getExternalContext()? (any advantage of using ExternalContext?)


    2)Is it also possible to equivalently use: context.getRequestScope() to get "id"? If so, what method to use?


    Thanks


    Scott
    Last edited by scott; May 23rd, 2007, 12:57 PM.

  • #2
    Originally posted by scott View Post
    ...init(RequestContext context)

    context.getExternalContext().getRequestParameterMa p().get("id");

    1)Why not directly use the
    context.getRequestParameters().get("id");? Intead, via getExternalContext()? (any advantage of using ExternalContext?)
    Not that I can think of.

    Originally posted by scott View Post
    2)Is it also possible to equivalently use: context.getRequestScope() to get "id"? If so, what method to use?
    Yes, getRequestScope returns a map. Just use requestScope.get("id").

    Comment

    Working...
    X