1
vote
3answers
302 views

How to extract query string from a URL of a web-page using java

From the following URL in OathCallBack page I want extract access_token and token_type using Java. Any idea how to do it? ...
0
votes
2answers
32 views

if you want to create an object that holds arguments and parameters that represent a query string, what kind of object is best suited for this task?

In .net there is a class named WebClient which has a property named "QueryString" which is of type NameValueCollection (a collection of key/value pairs where each key can have one or more values). ...
0
votes
2answers
1k views

Java HttpServer/HttpExchange GET

I am trying to create a simple HttpServer in Java to handle GET requests, but when I try to get the GET parameters for a request I noticed the HttpExchange class does not have a method for that. Does ...
0
votes
2answers
2k views

How to access query string using Struts 2 tags from a JSP?

I am redirecting to a JSP that has to print the whole incoming query string. Like in this other question, Request parameter in jsp page, I do not want to access one parameter but the whole query ...
0
votes
2answers
707 views

Java Web: Detect a URL with a trailing question mark and empty query string

Is there any way I can tell if there is a trailing question mark in a URL? This would theoretically be an empty non null query string while no question mark at all would be a null query string. But ...
1
vote
1answer
192 views

QueryStringBindable for a custom enum

I've defined an enum type Format that implements QueryStringBindable. I think I've implemented it correctly, but in my routes file, I can't specify my type as a route parameter, because the compiler ...
0
votes
1answer
257 views

Passing arraylist in querystring in java?

I encoded an image to string and put that in arraylist. how can i send that arraylist throw querystring to server and get that arraylist in a php? Is it possible to send arraylist in querystring? ...
0
votes
1answer
363 views

Parsing/Unmarshaling query strings which passing arrays as parameters in Java

Is there a way to Parse/Unmarshall query strings which passing arrays as parameters in Java into Map or custom class? URL example: ...
0
votes
0answers
795 views

How to validate GET/POST parameter to avoid javascript injection

I'm building an AJAX enabled web application in which I'm accepting to inputs from user or sometimes building query string based on user action. Using firebug or other tools anyone can inspect and ...