Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

IIS +Tomcat for some reason the query strings are stripped???  RSS feed

 
john mattucci
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering if anyone else has come accross this problem. I have tomcat running under IIS. When I call a jsp page with parameters eg.
www.x.ca?choice = 1 on the address field I see www.x.ca?choice = 1 but my jsp page is always receiving www.x.ca. I know this because I included
<%
choice = (String) request.getParameter("CHOICE");
out.println("The CHOICE is = " + choice);
out.println("QUERY STRINGS ARE " + request.getQueryString());
%>
Both print statements return null. I have tried my code on Tomcat alone and everything is fine. Is it possible that IIS is stripping the parameters when its passing the url to Tomcat?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Tomcat forum.
bear
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!