• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question Abt Order of init parameters

 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Above code is fragment of web.xml and doPost method.
o/p is
Email: gowher_naik@rediffmail.com
Address: Mumbai
Name: Gowher Naik

My question is that why output is not inorder as per init-params in web.xml.
i.e according me output should be
Address: Mumbai
Name: Gowher Naik
Email: gowher_naik@rediffmail.com
Thanks
 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simply because the init parameter name/value is stored in a Map.
Hence there is no order.

Regards,
Shivani
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok it means we cannot rely on the order of init-param in web.xml
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic