Questions tagged [getparameter]

135 questions
16
votes
2 answers

Servlet get parameter from multipart form in tomcat 7

Making a project and need file upload. So, i am using enctype="multipart/form-data" inform. But i unable to parse parameters from request. I also tried getPart but it returning blank string. Servlet code --> import java.io.File; import…
14
votes
1 answer

Angular 1.0.8 $resource with multiple optional get parameters

My Student ulr looks like this: var Student = $resource('/app/student/:studentid:courseId', {studentid:'@id',courseId:'@cid'} ); When I call it without parameters I would like the url be /app/student/ (works) var names=Student.query( …
HMR
  • 37,593
  • 24
  • 91
  • 160
6
votes
2 answers

symfony 1.4 how to get POST parameters?

I can get a parameter('id' for example) by $request->getParameter('id'); but if I use a form to POST the id, how could I get its value? $request->getParameter('id'); doesn't work.
Peter Long
  • 3,964
  • 2
  • 22
  • 18
5
votes
2 answers

MVC 3: Append get parameters on a ActionLink

I'm using the MVCContrib grid to output some data. When I sort a column, I get a url which may look like this: /?Column=ColumnName&Direction=Ascending Lets say I want to add links to control how many results are being shown. Spontaneously I would…
Bridget the Midget
  • 842
  • 10
  • 21
5
votes
1 answer

Formidable get param not populating value passed in url

URL sample: http://www.samplesite.com/?companyname=abcltd I want to grab values passed in url in a formidable hidden field. I added [get param=companyname] in the hidden field value. Works well when i am logged in as admin. BUt if i logout, I try…
Parag
  • 4,754
  • 9
  • 33
  • 50
4
votes
1 answer

Servlet getParameter() returns null for form-data

I am sending a POST request to my localhost Tomcat 8.0 Servlet 3.1 web application but request.getParameter("") returns me null. This is how I make my request. I am using PostMan to perform my POST request. And on the java side, I am calling…
OmerHalit
  • 401
  • 5
  • 18
3
votes
4 answers

Java servlet sendRequest - getParameter encoding Problem

I'm building a web app for my lesson using java servlets. At some point i want to redirect to a jsp page, sending also some info that want to use there (using the GET method). In my servlet i have the following code: String link = new…
CdB
  • 4,738
  • 7
  • 46
  • 69
3
votes
1 answer

Java.security.Access.ControlException: access denied("java.io.FilePermission" "[object file]" "read")

I have the following problem: I have a Java program that receives via Applet a binary file. I received that file with getParameter(file) and read that file with java.io.FileInputStream(file). I put this file on web server and call the java program…
Fernando
  • 171
  • 1
  • 5
3
votes
3 answers

Servlet request getparameter's performance

I noticed that my app is very slow sometimes, so I've done some tests. It's a very simple web app. One servlet gets some parameters than stores them. Everything's fine except one thing. It takes too long to get a parameter for the first time. It…
Bob
  • 179
  • 1
  • 3
  • 9
3
votes
3 answers

request.getParameter - unable reading &

I have a problem reading a value that contains '&' from the url using java spring. My summary.jsp file contains the following code: `

 

3
votes
2 answers

how to check if the a button has been pressed (in a jsp file)

I am working on a JSP file(don't want to use a servlet), I have a simple form, 2 labels, 2 inputs and 2 buttons, and I want to print out the submitted string on the same jsp page , the problem is that the last values submitted remain printed on the…
user2161721
  • 164
  • 1
  • 2
  • 11
3
votes
4 answers

httpservlet request getparameter of unchecked and checked check boxes in java

my form has several checkboxes on it (around 15) and the issue im having is that the names of the check boxes only appear in the enumeration if they are checked but i want all of them to be returned so that when i print the data it will have the…
StraightEdge
  • 65
  • 1
  • 3
  • 8
2
votes
3 answers

Folder with Get value

Could someone with more experience than me explain how it works the link (for example): http://www.facebook.com/zuck I think it's the same thing of this http://www.facebook.com/profile.php?id=4 I imagine that "zuck" is a GET type string but I…
Matteo Cardellini
  • 876
  • 2
  • 17
  • 41
2
votes
1 answer

Passing Params to a page in key-value pair in CodeIgniter

I am using CodeIgniter, and I am new to it. I came to know that I can pass parameters to another page like http://example.com/users/list/param1/param2/param3/.... and so on. Now on the destination php script, I can get it as $this->uri->segment(2) ,…
Sohail
  • 2,058
  • 7
  • 33
  • 57
2
votes
3 answers

Umlauts issue with $_GET parameter in different browsers (PHP)

I am developing a service and you can send different parameter to this service via the get parameter. For example: www.example.com?query=john&location=... It is also possible to send umlauts to this service. Ex. www.example.com?query=müller My…
PrototypeX7
  • 154
  • 2
  • 10
1
2 3
8 9