mdb
0eb0714926
Removed some debug logging.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@435 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 20:55:51 +00:00
mdb
383632dd53
A crapload of changes: load more stuff from servlet config; message
...
manager now supports site-specific translation messages; application
automatically configures Velocity to use things like the
SiteResourceManager and the ImportDirective.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@434 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 20:16:47 +00:00
mdb
ef8376124a
Pass SiteResourceLoader in constructor, changed name to
...
SiteJarResourceLoader, no longer pass fallbackToServletContext argument.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@433 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 19:19:47 +00:00
mdb
70e6a94aa4
Commented out some debug log messages.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@432 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 05:37:57 +00:00
mdb
8d4c490c0d
Added code to cache resolved resource bundles in the request object so
...
that we don't have to re-resolve the bundle for every single message
lookup.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@431 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 05:35:54 +00:00
mdb
864d282c3d
Activate caching for the time being.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@430 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 05:22:39 +00:00
mdb
0d8cfc27c3
Need to explicitly check to make sure the site-specific jar file exists.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@429 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 05:05:28 +00:00
mdb
3be945b22a
Many changes to provide site-specific resource loading (we're almost
...
there) and to bring things up to date with some Velocity changes Geir made
at my prompting.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@428 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 04:49:32 +00:00
mdb
4d10799b9e
Added ability to retrieve last modified time of the site-specific jar
...
file.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@427 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 04:48:54 +00:00
mdb
d9622d84de
Added clarification to documentation indicating the valid range of values
...
for site identifiers.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@426 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 04:48:35 +00:00
mdb
e65d5436a7
Documentation fix.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@425 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 04:48:08 +00:00
mdb
5f85b12298
Created a version of ListUtil that works with arrays of ints.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@424 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 02:13:29 +00:00
mdb
9f3f17633a
Clear out the last element of the array when the rest of the array is
...
shifted down to remove an element.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@423 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 02:13:09 +00:00
mdb
3148bf5c76
Added a version of getResourceAsStream() that takes the site identifier
...
for when the site has already been identified.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@422 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 18:08:01 +00:00
mdb
dad303a022
Notes.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@421 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 09:21:30 +00:00
mdb
6e2bf74078
Updated library dependencies.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@420 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 09:18:10 +00:00
mdb
c5fdf91de8
Created a testing framework for the samskivert library based on JUnit and
...
ant. The test drivers are located in a separate hierarchy and are built
and invoked as a single ant target.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@419 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 09:13:25 +00:00
mdb
820c633b73
Created site resource loader which loads resources based on the site
...
identified from an http request. Also created a unit test driver for the
loader.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@418 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 09:12:31 +00:00
mdb
24b66722d2
Geir didn't like velocityWillInit(), so he created initVelocity() which we
...
override when setting the application context.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@417 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-02 18:46:48 +00:00
mdb
c0ca26e578
Have to set the application context in velocityWillInit() (which I added)
...
so that it's around before Velocity.init() gets called, which happens in
super.init().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@416 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-02 02:30:54 +00:00
mdb
346c8c8797
Be more robust and log a warning if we're used without first properly
...
setting the servlet context into the application context.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@415 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-02 02:30:24 +00:00
mdb
f09ce0d0fc
Modified dispatcher servlet to stick servlet context into Velocity's
...
application context and implemented a servlet context resource loader
which loads resources via ServletContext.getResourceAsStream().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@414 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-02 02:03:23 +00:00
mdb
f06fb0b18a
Fixed classpath so that things in classes are preferred, things in
...
lib/*.jar are next and things in /usr/share/java/*.jar are last.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@413 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-02 02:02:27 +00:00
mdb
6e7375aedc
Fixed spelling error: createSiteIdentifier(), not createSiteIdentifer().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@412 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-02 00:58:22 +00:00
mdb
86fe064444
Sort the domain mappings once we've loaded them; fixed a SQL bug; wrote
...
toString() for the mapping object.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@411 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-02 00:57:47 +00:00
mdb
44d534a2c0
Created a site identifier that reads data from a JDBC table.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@410 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-01 21:34:19 +00:00
mdb
73c6d2ee86
Changed preInit() to postInit() in Application so that calls to things
...
like createSiteIdentifier() can happen after the application is
initialized and has access to things like connection providers.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@409 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-01 21:34:03 +00:00
mdb
f1d62ace67
Made Operation public because otherwise I can't do something like this:
...
public FooRepository
extends SimpleRepository implements SimpleRepository.Operation
{
}
which seems wacky to me but I can see how we may not have entered the
protected namespace of the extended class while we're processing our
interface implementation declarations. Seems a bit like a bug though.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@408 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-01 02:08:17 +00:00
mdb
f099bd4e03
Formatting.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@407 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-01 01:49:12 +00:00
mdb
0a6e39fb78
Created a runtime exception that can be thrown if for some reason a
...
service can't make its services available (like the database is down, or
their team lost, or their girlfriend turned out to be a guy).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@406 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-01 01:15:18 +00:00
mdb
7e839ce429
Applications now create a site identifier at init time which can be used
...
to identify sites in the course of operating the application.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@405 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-01 01:02:20 +00:00
mdb
cf9dc555ca
Added action() and submit() which make doing standard things like a hidden
...
form field named "action" and a submit button named "submit" more
convenient.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@404 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-01 00:35:05 +00:00
mdb
b58441fa4e
Added support for checkbox form elements.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@403 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-01 00:28:30 +00:00
mdb
445f4c115c
Extracted common code, added support for password input fields.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@402 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-01 00:22:48 +00:00
mdb
e3b925aff0
The big name-change ola: userid -> userId, etc. Added siteId to user
...
record (and table).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@401 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-01 00:07:19 +00:00
mdb
101dbe608f
Created a site identifier interface which is used to determine through
...
which site a particular request originated.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@400 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-31 23:38:37 +00:00
mdb
879f0a5aaa
Created a form tool for generating form fields that automatically inherit
...
the values from the request parameters. Modified dispatcher servlet to put
one in the context for every request.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@399 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-31 11:07:55 +00:00
mdb
39680c9e25
Needed a FriendlyException import.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@398 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-31 09:45:23 +00:00
mdb
57953b968a
Converted my web application framework to work with Velocity and cleaned
...
up some other stuff (removed multiple application support because it was
pointless). Moved some general purpose things into servlet.util (still
need to modify the WebMacro version of the framework to use the general
purpose versions).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@397 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-31 09:44:22 +00:00
mdb
d098fee4ff
Notes.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@396 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-31 09:42:55 +00:00
mdb
69ad1692fe
Notes.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@395 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-29 04:15:54 +00:00
mdb
b9b3962420
Better error reporting.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@394 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-25 01:25:06 +00:00
mdb
743f4e4460
We need a TableLobby now rather than a plain Lobby.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@393 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-24 03:25:11 +00:00
mdb
71f43d5e37
Implement TableConfig.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@392 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-24 03:24:53 +00:00
mdb
d2e1c00a5f
Documentation fix.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@391 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-24 03:24:36 +00:00
mdb
28ad54b543
Added a "Back to lobby" button.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@390 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-24 03:24:20 +00:00
mdb
a3bd6d36ae
Use the system messages now that we have 'em.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@389 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 23:57:02 +00:00
mdb
29af0f5a94
Try always repainting after computing our dimensions because revalidate()
...
doesn't seem to always result in a repaint.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@388 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 23:11:24 +00:00
mdb
8f4e14d756
Don't score cities with zero farmers next to them.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@387 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 23:11:03 +00:00
mdb
330465ad43
Modify the geometry of TWO_CITY_TWO temporarily to make it visually
...
clearer that it is two separate cities.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@386 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 21:52:01 +00:00