Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

planning of a project using ServletContextListener and servlet instance

Mark Curlette
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hope you all have a good week. I have a question related to the planning of a student project using ServletContextListening and servlet instances.
I would like to have a walk through of my planning with you , and ask you if it sounds ok to you , or do i need to make any change to it.
I have a scenario where I plan to use the ServletContextListener's ContextInitialized method to get a JSON object by using HTTPClient get method on a xml published site. I then use the Context.setAttribute on the JSON object to have it as
an application scope attribute which will be available to all of my servlets and jsp in my application. I then have jsp calling a servlet in which the servlet will get the JSON application scope, parse through it , and return whatever defined values to my jsp.
Please let me know if the planning is ok.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic