Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the button on your post.
Well first make sure that the capitalization is correct. I think request parameters are case sensitive so Pname and pname are different. Although your code shows correct capitalization, still it would be a good idea to recheck it.
Also I'm not sure of the input tag syntax you are using. Try using this
there is no issue in your jsp/servlet, i tried its working , since you are using system.out.println, the servlet prints the form values in standard output, not the browser. if you want it to print in browser , use printwriter instead. let me know if you able to.
subject: request.getParameter() returns a null value in the servlet