Questions tagged [param]
304 questions
12
votes
2 answers
htaccess Redirect directory name to parameter
I would like to redirect all paths like this:
myurl.com/worldwide/en
myurl.com/worldwide/pt
myurl.com/worldwide/de
to:
myurl.com/worldwide/index.php?lang=en
myurl.com/worldwide/index.php?lang=pt
myurl.com/worldwide/index.php?lang=de
Just to be…

Dominic
- 62,658
- 20
- 139
- 163
10
votes
1 answer
What is the purpose of @param annotation in Java code?
/**
*@param context
*@param attrs
*/
Public DotView(Context context, Attribute attrs) {
super(context, attrs);
setFocusAbleInTouch(true);
}
Does the @param serve any purpose. I saw this code in an Android programming book, but the author…

JavaNoob
- 299
- 2
- 5
- 11
10
votes
1 answer
XSL: How do I assign the value of an XML element to a variable (minimal change to page below)?
See xslt to operate on element value before displaying? for the original XML and XSL. I got an answer to my question there.
My other question on this same XML/XSL is: if I would like to capture the value of an element (such as the "title" element)…

talkaboutquality
- 1,312
- 2
- 16
- 34
8
votes
2 answers
T-SQL's equivalent of Oracle's %TYPE operator?
When writing a procedure in PL/SQL, I can declare a parameter's type as myTable.myColumn%TYPE so that when I alter myColumn's type from say varchar2(20) to varchar2(50) I don't have to change the procedure's parameter type. Is there something…

hli
- 259
- 3
- 10
7
votes
1 answer
fromString method of ParamConverter is not called on Null values in JAX-RS
I have written a ParamConverterProvider and a ParamConverter in order to let JAX-RS (Jersey) instantiate an enum in HeaderParam. The converter looks like this
@Provider
public class MyEnumParamConverterProvider implements ParamConverterProvider {
…

LAC
- 852
- 4
- 11
- 31
7
votes
3 answers
In Extjs4.1, how to add additional params before one store sync?
In store, there is an event beforeload:
beforeload( Ext.data.Store store, Ext.data.Operation operation, Object eOpts )
by listening to this event, i can add my additional param to operation when i do query action, like this:
store.on('beforeload',…

txx
- 81
- 1
- 4
7
votes
1 answer
Sending/Receiving a string through PostMessage
Although there are already a few resources online that address this rough topic, I still haven't found an answer that works for me.
I desire to have full communication between my VB.net process and my C++ process. I would like to be able to send a…

Spooky
- 2,966
- 8
- 27
- 41
6
votes
3 answers
Passing an array to a PowerShell script
I am trying to pass an array to a PowerShell script, but I always get just one value. I have googled my butt off, but I can't find anything. All I need to do is pass an array to the script. Here is my…

user2142466
- 105
- 1
- 1
- 5
5
votes
3 answers
How to bind param multiple times with MySQLI?
This is how I'm binding my params:
$Con = mysqli_connect(...);
$Statement = mysqli_stmt_init($Con);
mysqli_stmt_prepare($Statement,"select * from users where name=? and…

jondinham
- 8,271
- 17
- 80
- 137
5
votes
5 answers
why jsp:include parameters not visible
I have exactly the same basic question about accessing jsp:param values as this poster; following his example exactly does not work for me. The parameters passed in via jsp:include don't seem to show up in the included file. Is there something…

Justin
- 4,437
- 6
- 32
- 52
5
votes
2 answers
How can I assign a null value to a query param in ColdFusion?
I have a database table with an int column that can also be null. Adding an int to the column is fine, but setting it back to null causes an error. Since ColdFusion does not support null values, I usually pass the value as an empty…

Mohamad
- 34,731
- 32
- 140
- 219
5
votes
2 answers
Passing an urlencoded URL as parameter to a controller / action at CakePHP
I'm fairly new on CakePHP and because of so, there are some basic things that I used to do with Zend Framework that I'm beaten up with Cake.
I'm working on a project where I have to pass a named parameter to a controller / action. Setting up the…

Mcloide
- 422
- 5
- 16
5
votes
3 answers
How to permit hash with * key => values?
I want to create an object with strong params that can accept dynamic hash keys.
This is my code,
Quiz.create(quiz_params)
def quiz_params
params.require(:quiz).permit(:user_id, :percent, :grade, questions: {})
end
data that gets passed in…

Eric Chu
- 1,649
- 3
- 20
- 26
5
votes
1 answer
Passing C# Parameter to Powershell Script - Cannot validate argument on parameter 'Identity'
I am trying to write a Windows Form App in C# that outputs AD Attributes for a specified user. The way I want it to work is that the user inputs a value (username) into a text box, which is passed as a parameter to the Powershell script and the…

Nick Grabau
- 51
- 1
5
votes
1 answer
Parameterized method call in with variable number of method parameters
I have a template that's part of a form to edit some element. The action to be performed is different depending on the page in which it is included. So I pass the action method as a parameter:
…

Tobías
- 6,142
- 4
- 36
- 62