The easy Weblog and Wiki Software
[ start | index | login ]
start > CodingQuestions

CodingQuestions

Created by winkler. Last edited by winkler, 5 years and 327 days ago. Viewed 476 times. #1
[edit] [rdf]
labels
attachments
(as always, guys, please feel free to refactor as you see fit)

How do I get the active SnipSpace from my JSP?

I have written code which retrieves Snips from the active SnipSpace. It works fine standalone, if I duplicate the mckoi db in the proper place.

I now want to call this code from a JSP in the /applications/snipsnap/app directory. I put it there, and open the page. When I call Snipspace.getInstance(), it attempts to open a new JDBC connection, and fails. How do I get my JSP to have access to the static Snipspace.instance? Is there I'm sure it's some basic JSP error, haven't worked with this stuff in a while. thanks.

6 comments (by winkler, leo) | post comment

What is SnipSnap?
SnipSnap is a free and easy to install weblog and wiki tool written in Java.

SnipSnap download
Current version: 1.0b3-uttoxeter
Try our >>Web Start Demo!

Resources

5567 Users and 13713 Snips. Installed 6 years and 41 days ago

Logged in Users: (1)
… and 30 Guests.

snipsnap-changed for older changes.

< August 2008 >
SunMonTueWedThuFriSat
12
3456789
10111213141516
17181920212223
24252627282930
31

snipsnap
Listed on BlogShares
XHTML 1.0 validated
CSS validated
RSS 2.0 validated
RSS Feed

pico-powered

Powered by SnipSnap 1.0b3-uttoxeter
YourKit >>Java Profiler

Fraunhofer FIRST

snipsnap.org | Copyright 2000-2006 Fraunhofer FIRST