Querystring through hyperlink
I am using an Apache Tomcat 4.0 Server.
I am using JDK 1.3.1.
The issue that I am trying to accomplish is to pass an integer number through
a hyperlink by querystring.(EX: ?test=1. When I pass an integer value it
goes to the next page and is treated as string. I get the String value by
declaring a String testing= request.getParameter("test"); Then I use the
Integer.parseInt to covert the information back to an integer. Here is when
I run into a problem. When I pass it into a function for a select query operation
, then it comes up with a java.lang.NullPointerException then it says the
integer value is NULL. I have been beating my brains with the syntax. Help
would be much appreciated.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL