File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing parameter problem

 
Faisal Fuad
Ranch Hand
Posts: 83
IBM DB2 Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone. Having a very funny problem. New here in Servlet stuff and so need your help. From a simple html page i want to pass a input to a servlet where it will do some specific talks. Now the logic i was thinking is like: If the user puss null value then the servlet will check and will say "Sorry" or else the servlet will be happy to serve.

I used the IF..ELSE statement to do the evaluation part in the Servlet but don't know why it is everytime going to the ELSE part of the statement even though i am not passing anything from the html page.

The Html page is as follows:


And the Servlet "GetData.java" is as follows:


Can any one please let me know where i am doing the mistake?

Thank you very much.
 
Murthy Tanniru
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
correct the code as below:

 
Faisal Fuad
Ranch Hand
Posts: 83
IBM DB2 Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
..........and it is beautifully resolved. Thank you so much Tanniru. God bless
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic