Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

planning of a project using ServletContextListener and servlet instance  RSS feed

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

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.

Thanks,
Bob
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!