Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat problem

 
Mary Cole
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Am using tomcat 401 and whenever any field value is an empty strin tomcat treats it as null string....whereas Weblogic treats as an empty string.
In my validation if I check the particaular value as empty strin it passes thru in weblogic , but doesn't in tomcat..
Is there any change i need to make to trea the empty string as an empty string not as null in tomcat
Response is highly appreciated
Mary
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18014
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To the best of my knowledge, if you do a request.getParameter() and pass it the name of an item not defined in the request, it should come up null whether you're running WebLogic OR Tomcat.
If it doesn't then WebLogic is in violation of the official JavaDocs, which explicitly state that undefined parameter queries will return null.
But last time I checked WebLogic was returning null, just like it should.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic