### WebHandle Request URI Parameter

Example of getting the Request URI and its Parameter
Request URI used:
http://localhost:51042/tablehelper/TableHelper?method=show&_=1439449238593
`Private Sub Handle(req As ServletRequest, resp As ServletResponse)
'Get the fullrequest as URI
Dim sFullRequestURI As String = req.FullRequestURI
Log("Request URI: " & sFullRequestURI)
Log("Request URI Split")
'Split the string using pattern /
Dim p() As String = Regex.Split("/", sFullRequestURI)
'Show the splitted entries
For i = 0 To p.Length - 1
Log(p(i))
Next
'To get the parameter from the URI
Log("Request URI Parameter Split")
'Get the parameter map
Dim m As Map = req.ParameterMap
'Get the keys and the values
For i = 0 To m.size - 1
Dim key As String = m.GetKeyAt(i)
Dim values() As String = req.GetParameterValues(key)
For j = 0 To values.Length -1
Log(key & " = " & values(0))
Next
Next
...
Output Example
Request URI: http://localhost:51042/tablehelper/TableHelper?method=show&_=1439450318754
Request URI Split
http:
localhost:51042
tablehelper
TableHelper?method=show&_=1439450318754
Request URI Parameter Split
method = show
_ = 1439450318754
`

Changed: , Category: WebApps, File: T6C277M2084.htm, ID: 2084