Hiya,
Got to produce a demo as a proof of concept to get Orion in place before
Friday this coming week, so I'm getting a tad frantic. My apologies if I'm
asking dumb questions.
I have an issue sort of about URL rewriting. (not baking cookies) My app
(see the current one at http://smartoffice.com.au - no comments please! I
know it needs work) has a number of business requirements that allow a user
to browse the site loading up a cart and potentially 'logging-in' and
retaining the cart. I assume everybody is familar with this.
The site has several "sub-sites" which handle different areas. For example,
non-secure, ssl and 'admin'. I'm going to setup a client that can run in
Sydney and connect via RMI/IIOP to the server and databases in Melbourne.
To make life a bit more manageable, I'd like to have the ability to 'munge'
the URL such that a path points to a servlet which picks up the rest of the
URL via getPathInfo() or whatever and gather useful information as a
precursor to actually running the JSP page.
For example:
http://blah.blah.com.au/site/this/that.jsp
and http://blah.blah.com.au/admin/a/bit/deeper.jsp
Where 'site' and 'admin' are the servlets and 'this/that.jsp' and
'a/bit/deeper.jsp' are the 'actual' pages that get actioned by the
respective servlet. The 'admin' servlet for example could request a seperate
structured secure login process, while the 'site' servlet simply gathers
cookies, DSNs etc and runs the JSP. I know this is possible, but be damned
if I can figure out how to set it up in Orion. I've read books, sites and
fiddled around till I'm blue and I'm obviously missing something very
obvious.
If anybody has any suggestions (besides sticking my head in the oven) I
would be most appreciative. A reference to a book, paper or website would be
helpful also. Just in case I have it but can't find it, the books currently
surrounding me are:
Java Servlets by example - Williamson
Professional JSP - (Various) Wrox [Where I found out
about Orion]
Developing Enterprise Apps - Asbury and Weiner
Pure Java 2 - Litwak
Java 2 for Professionals - Morgan
Build Java Enterprise J2EE - Perrone and Chaganti
Sun's dev packs
Kimbo.