File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Implementing CAP in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Implementing CAP in JSP" Watch "Implementing CAP in JSP" New topic
Author

Implementing CAP in JSP

Bawa Nathan
Greenhorn

Joined: Nov 01, 2009
Posts: 7
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

Joined: Jan 10, 2002
Posts: 56528
    
  14

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?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Bawa Nathan
Greenhorn

Joined: Nov 01, 2009
Posts: 7
Sorry, my bad, CAP = common alerting protocol
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56528
    
  14

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

Joined: Nov 01, 2009
Posts: 7
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!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Implementing CAP in JSP
 
Similar Threads
Whether Sonata software OR CapGemini
WA #1.....word association
print Screen from a jsp
Kathy Sierra - SCJP 5
Mphasis or cap gemini