Questions tagged [url-parameters]

URL Parameters are parameters whose values are set dynamically in a page’s URL, and can be accessed by its template and its data sources. This makes pages incredibly dynamic, enabling a single page to power an endless number of views.

The URL points to a web page. The URL may contain a static path, such as:

http://www.myStore/womens/Clothing.jsp

As is the case with any URL, you can append dynamic parameters that are used by the page located by the URL to the URL itself. At runtime, those dynamic parameters are replaced by property values, then passed to the page. For example:

http://www.myStore/womens/Clothing.jsp?type=$itemType&name=$displayName

The type parameter is replaced with the item’s item type and the name parameter is replaced by the item’s display name.

1203 questions
3
votes
1 answer

Can I have a variable number of URI parameters or key-value pairs in Laravel 4?

I've got a shopping cart that I'd like to be able to pass a variable amount of optional parameters. Things like: sort by, filter by, include/exclude etc. So the URL may…
Beau
  • 1,771
  • 1
  • 15
  • 20
3
votes
3 answers

Javascript regular expression to parse path string

I have an application that shows photos and albums to a user. Based on current state of the application I show appropriate view. Everytime view changes I change the url, controller then gets the url value using window.location.hash It returns the…
sublime
  • 4,013
  • 9
  • 53
  • 92
3
votes
5 answers

Extract JSON-response into parameter

I need to extract this specific JSON-field into a parameter for my performance test in Visual Studio: "ExamAnswerId": "757a3735-e626-412b-934c-e577c6963d51" the problem occurs when I try to do this manually by right clicking the response and click…
3
votes
3 answers

WSO2 Synapse: setting a URL parameter

I am trying to do something that seems straightforward but can't get it to work. Basically I want the WSO2 API manager to add a URL parameter to a REST call. Setup and Problem I have a WSO2 API manager installed. I also have a Tomcat running with a…
JRobinss
  • 191
  • 1
  • 10
3
votes
2 answers

PHP - Get URL Parameters and Rearrange In Array

The URL coming to the page looks something like this: "http://localhost/testSite/id/1/friend_id/32/msg_id/5/category_id/40" I would like to strip these variables (id/1, friend_id/32, msg_id/5 etc.) and make them into an array like this: $params =…
user1302430
  • 342
  • 3
  • 6
  • 14
3
votes
3 answers

Url rewriting rules for static web pages - returning 404 after using url with additional parameters

I use URL Rewriting module for IIS7 - because of URL rewrite for few static files. Basically I am mapping /pretty-url to /real-file-name.html So far it is simple. But after adding query string to pretty url it throws 404 status code. So far I have…
Crank
  • 461
  • 2
  • 8
  • 15
3
votes
1 answer

Unit Testing Action Parameters in the WebAPI

I'm writing some unit tests for WebAPI controllers, and one of the aspects that I want to assert is that the parameters match. I've followed the method used in Filip Wojcieszyn's blog, which is working fine, but I'm now looking to extend its…
awj
  • 7,482
  • 10
  • 66
  • 120
3
votes
2 answers

Passing indefinite Query Parameters with RESTful URL and reading them in RESTEasy

I have a requirement to design a RESTful Service using RESTEasy. Clients can call this common service with any number of Query Parameters they would want to. My REST code should be able to read these Query Params in some way. For example if I have a…
hashcoder
  • 498
  • 7
  • 19
3
votes
1 answer

HTML/Javascript: Outputting keyboard strokes to URL Parameters

I'll first explain my overall goal and then the question itself. Overall Goal: To send commands to an Arduino board that is connected to a router. A computer will be connected to the router over wifi. The Arduino will serve a local website that the…
3
votes
1 answer

Best way to add parameter to the current URL in ASP.NET MVC3

I ask a similar question here, I need to keep current URL and add new parameter to it, the only answer (yet) is : RouteValueDictionary rt = new RouteValueDictionary(); foreach(string item in Request.QueryString.AllKeys) rt.Add(item, …
Saeid
  • 13,224
  • 32
  • 107
  • 173
2
votes
1 answer

Conditionally render JSF h:panelGrid based on presence of query string (or no query string at all)

I'm trying to dynamically render some composition/templates based on the presence of a query string or the absence of a query string. For example: localhost:9080/myWonderfulApp/test.xhtml?foo=bar This works, A.xhtml gets pulled…
magenta placenta
  • 1,461
  • 7
  • 22
  • 34
2
votes
2 answers

How to encrypt or tokenize a username and date token?

Need to pass a tokenized (encrypted) username and date from webapp A to webapp B via a url parameter. Something like http://webappB?username=userA×tamp=13445341313 should be sent as http://webappB?token=geufjsggtj26hjdhcjre87klj3. The receiving…
dev_doctor
  • 722
  • 6
  • 10
2
votes
3 answers

Keeping GWT History Hashes thru Spring Security Login

I'm retrofitting my application with GWT History support, and I've stumbled on a case where I'm not quite sure what to do. The answer to this question doesn't necessarily have to be GWT-related. GWT's History support functions by passing around hash…
Chris Cashwell
  • 22,308
  • 13
  • 63
  • 94
2
votes
1 answer

chrome extension desktop notification send get params

I would like to send some parameters to my desktop notification but i can't retrieve them. I open a notification with that code : var notification = webkitNotifications.createHTMLNotification( '../html/notification.html?data='+nb ); Where nb is…
Syl
  • 2,232
  • 8
  • 34
  • 45
2
votes
2 answers

Detect Users Viewing Same Webpage, or URL

I have a ticketing system that will allow any users to view any ticket they wish to select. Each ticket will share the same page. (ex. ticket.php) The URL will contain unique parameters to identify the ticket. For an example:…