This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
In my index.jsp page i am getting city names from database using select box and Enduser select City names from select box and these values are passed to next page ie first.jsp and i am getting those values using request.getParameter("Selectboxname") and i am able to see those city name values in this page and passing them to sql select query upto this everything is fine and query is executed but problem is i am unable to see result of the query.And i didn't get any syntax error and i am getting blank page with no output.And the problem is only when i am passing string values ie cityname And when i am passing city id ie int type every thing is fine.
Joined: Apr 19, 2013
solved the problem is because of name spaces in request.getparameter(""); for that i used String s= request.getparameter("").trim().
Here trim() removes unwanted spaces.