• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

add a java.util.List in application scope parameters.

 
rajitha sa
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am studying for scwcd exam.
in HFSJ page 542 . we have ${applicationScope.colorList}. My question is that how can we set a list to the application scope from the web.xml file?
thanks in advance
 
Rodrigo Vieira
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it�s impossible. In web.xml is allowed to pass just a string value. If you want a list you should use ServletContext.setAttribute("newList", new ArrayList()).
 
Sandeep Bhandari
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya not possible from web.xml
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My question is that how can we set a list to the application scope from the web.xml file?

I don't know what the HFSJ question looks like, but does it even mention web.xml ? Couldn't it be an attribute which has been set from another page or servlet ?
 
rajitha sa
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot for all the replies.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic