• Post Reply Bookmark Topic Watch Topic
  • New Topic

Implementing CAP in JSP  RSS feed

 
Bawa Nathan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

Has anyone tried to implement CAP data feeds through JSP? I need to display CAP disaster alerts on our departmental websites.

Thank you in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps it'd be a good idea to let us know what CAP stands for?

Civil Air Patrol?
Center for American Progress?
Citizens for Animal Protection?
A hat?
 
Bawa Nathan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, my bad, CAP = common alerting protocol
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assumed it was "Common Alerting Protocol" but you get the idea... please explain acronyms rather than assuming everyone knows what they mean.

In any case, consuming a feed isn't something that's appropriate for a JSP to be doing. JSPs are for emitting views, not processing data.

Write a Java class that consumes the feed. Then if you need to display it in a JSP, it can easily be sent to the JSP for display.

Have you googled? java cap feed
 
Bawa Nathan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Bear!

I am looking for an alternate instead of implementing through Java. Our departmental websites are published through a content management system where the pages are mainly published in html format. I haven't investigated if its possible to add java content in there. But the previous implementation of disaster alerts using KML was done through javascript. So I have been trying to find resources to implement CAP in javascript but haven't come across any.

Right now, I am trying to put together the different ways to implement CAP file so that I can present it to the publishing team and see what is feasible through our content management system. So any suggestions and advice are really helpful at this stage.

Thank you heaps!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!