Hi Farakh!
It looks like you're trying to pass an instance of the Servlet class (HTMLParameters.java) into a function in another class (DisplayRecords.java) in your code. I'm not sure if that would work for what you're trying to accomplish. If I'm reading your code right, what you have won't work because "name" isn't class variable for HTMLParameters.
Since the parameters are contained on the request object, what you could do is pass the request object to the class that needs those values.
Or you create a class that can contains all of the parameter values you'll need (I'll call it ParameterKey), and pass an instance of that class to the classes that need it.
This is a newbie answer to an admittedly limited understanding of your question, but it's my best shot!
Let us know if it helps!
Update: Mixed UBB code with Not-UBB code. Embarrassing! And fixed!