From: Ben Schumacher Date: 2004-10-14T23:29:13+09:00 Subject: IOWA Question (long because of code snippets) Hello- I've been looking through the archives of this list some, but I'm feel like I'm missing some critical (and probably simple) piece of information. I'm trying to setup a page in IOWA where the URL contains some a piece of information needed to render the page. Basically, I want to take URLs like: http://localhost:2000/details/FOO/ And have my application render a page using FOO as a variable. My problem is that I'm using IOWA Webrick and it seems that IOWA is just passing on processing this. However, if I just go to http://localhost:2000/details/FOO/, it's working correctly. Maybe I'm using the mapfile wrong? Or do I just not need the mapfile at all? My MyApplication class looks like this: require 'iowa_webrick' class MyApplication < Iowa::Application def initialize(*args) @@cachedSession = 10 @mapfile = 'mapfile.cnf' super end end Iowa.startDaemon('app.cnf') Iowa.run And my Main.iwa looks like (which I found on this list): class Main < Iowa::Component def setup $stderr.puts session.context.request.inspect asin = File.basename(session.context.request.uri) dispatch_page = page_named('Details') dispatch_page.parameter = parameter dispatch_context = Iowa::Context.new(session.context.request, session.context.response) dispatch_context.sessionID = session.context.sessionID dispatch_context.requestID = session.requestCount dispatch_page.handleResponse(dispatch_context) session.currentPage = dispatch_page.dup end end And finally, my mapfile.cnf has: /: Details /details: Details /details/: Details [ Which is obviously mostly useless, I just was trying a bunch of different things. Thanks for your help. Ben