Questions tagged [getparameter]

135 questions
1
vote
1 answer

Mod rewrite rule for url with get parameters

I have a domain called wwww.website.com. There, I have a subdirectory called www.website.com/register. In this directory, I have a .htaccess file, which redirect urls for example likes…
Julian Schweppe
  • 148
  • 1
  • 1
  • 10
1
vote
3 answers

Servlet: "%2B" is converted into space

I have very simple problem I'm forming one GET request as follows, parameters are para1=abc+xyz Notice the '+' sign here. Now when I url encode this I get para1=abc%2Bxyz. Which is okay! Now on servlet side, I have code like following String…
Ganesh Satpute
  • 3,664
  • 6
  • 41
  • 78
1
vote
1 answer

Symfony 2 - Getting values from config.yml to SomeController.php (not defined issue)

Here is the case. My config.yml contains fallowing set: ... framework: #esi: ~ translator: { fallbacks: ["%locale%"] } secret: "%secret%" router: resource: "%kernel.root_dir%/config/routing.yml" …
DevWL
  • 17,345
  • 6
  • 90
  • 86
1
vote
2 answers

How to get values of getParameterValues in the order they are sent?

I am sending registration form data through HttpPost method to Servlet and get this data by getParameterValues. No problem with getting data, but I get the data in random order. I want that at servlet I get the data in order of how they are sent. I…
Bhargav Thanki
  • 4,924
  • 2
  • 37
  • 43
1
vote
0 answers

request.getParameter does not work in dopost() but it works in doget()

i want to get parameters from url, request.getParameter is working fine in doget but it doesn't work in dopost. in dopost it returns empty string. i couldn't find why this is happening, PLEASE HELP me find the problem. here is form tag in my jsp…
Saleh Rezaei
  • 160
  • 4
  • 21
1
vote
2 answers

get a value from url - jsp

hello! I have this url www.someurl.jsp?param=1 and i want to store the 1 into a variable i wrote this <% int r=request.getParameter("param");%> and i have an error "incompatible types ,required:int, found:String" i wrote then this <% int…
yaylitzis
  • 5,354
  • 17
  • 62
  • 107
1
vote
1 answer

Remove All $_GET Variables from URL - htaccess

I'm having an issue in trying to get my search URL to be "SEO Friendly", at the moment my URL currently looks like this - www.example.com/pagename?param1=SELECTED-FEATURE&location=ENTERED-LOCATION If the user wants to search for multiple…
Codarz360
  • 424
  • 1
  • 6
  • 16
1
vote
2 answers

Masking the username after user logs in JDBC

So I have the code here to send my username parameter value to my index.jsp welcome page : response.sendRedirect("index.jsp?username=" + username); The name is displayed in my index.jsp page with this : <%= "Welcome " +…
user2297666
  • 321
  • 2
  • 6
  • 20
1
vote
1 answer

Java 1.3 Servlet getParameter for a param that is a URL

Hi i trying to get a request Parameter that is a URL path to a file: I'm using a template from a XSL file to "paste" a div with a onclick event:
Henrique C.
  • 948
  • 1
  • 14
  • 36
1
vote
3 answers

What return me request.getParameter() when I send a GET and/or POST with the same name?

request.getParameter() to retrieve items sent by POST and/or GET. String name = request.getParameter("name"); But how can we distinguish between these two cases? In fact, if I send both a post and get with the same name, what getParameter returns…
lopez.mikhael
  • 9,943
  • 19
  • 67
  • 110
1
vote
1 answer

Why does jsp request.getParameter(“String”) return null after the first call?

If I run my web project, in the first call I get the right Parameter (request.getParamter(userid)), but if I do more then one call, the request.getParamter Method always returns null. I don't know why, and I have tried many things. Thank you for…
java java
  • 405
  • 1
  • 11
  • 25
1
vote
1 answer

Java servlet's parameter values are not decoded

I'm having some problem with java servlet's getParameter() which does not decode param even though I've set Tomcat's encoding properly in server.xml. If I decode raw query I get the decoded query but…
user1318538
  • 321
  • 1
  • 5
  • 6
0
votes
2 answers

JApplet in appletviewer / JRE1.6.0_30 — NullPointerException on getParameter("someArg")

Why am I getting a NullPointerException when I call getParameter() in this very simple JApplet instantiation? public class TestPad extends javax.swing.JApplet { public static void main(String[] args) { …
0
votes
0 answers

Is it possible to compose quick "Add Education" button to LinkedIn like you can with licenses and certifications?

I know that you can compose an html link, which you can send via email or attach to your web site to quickly add licenses and certifications information to user's LinkedIn Profile, which is often used by sites like Coursera, etc. LinkedIn even has…
0
votes
0 answers

Unable to capture Parameter value from AWS Parameter Store if executed from the Cypress Tests(Mocha blocks)

Unable to capture Parameter value from the AWS Parameter Store I have tried doing it using aws-sdk, it worked when it's executed from the seperate node.js file, but when i tried the same from the mocha test(for cypress framework), then it's throwing…
atul parate
  • 760
  • 5
  • 5
1 2
3
8 9