Monorail RC 2.1 routing problem with static files.

2012-09-06 Thread Lionhunter
I've started learning (and using) Monorail a little while ago, and recently, I've dabbled into routing. Unfortunately, the documentation around it is kinda sparse, but I've managed to get some info from various blog posts, most of them 2 years + old. I managed to setup the routing pretty

Fwd: Castle Monorail 1.0 - IIS 7 - Routing problems

2012-04-20 Thread Leonardo Lima
Leonardo -- Forwarded message -- From: Leonardo Lima cont...@leonardolima.com.br Date: 2012/4/20 Subject: Castle Monorail 1.0 - IIS 7 - Routing problems To: castle-project-users@googlegroups.com Hi all, I have a old application using Castle Framework 1.0, and now is needed

Re: Routing and ARDataBind

2010-06-13 Thread Marc Pickett
Did I not phrase this question correctly, or leave some necessary piece of information out? Anyone? On Fri, Jun 11, 2010 at 12:01 PM, Marc marcpick...@gmail.com wrote: I may be missing something basic here but I can not get the ARDataBind to work with my routes. Here is my setup. I have a

Re: Routing and ARDataBind

2010-06-13 Thread Patrick Steele
Have you checked the FORM data to make sure the study.id is coming through properly? --- Patrick Steele http://weblogs.asp.net/psteele On Sun, Jun 13, 2010 at 7:32 AM, Marc Pickett marcpick...@gmail.com wrote: Did I not phrase this question correctly, or leave some necessary piece of

How can I solve this with routing?

2010-04-09 Thread Brian Chan
=3myParam=xyz I see that routing should be able to handle this. But what if the part after the xyz can be anything? As in, I don't want to match anything afterwards. Whatever is after xyz is what the new URL will be. So http://www.abc.com/xyz/area/subarea/display.rails?id=1argJ=4 would be come

Re: How can I solve this with routing?

2010-04-09 Thread John Simons
Hi Brian, Not really. The routing engine needs as a minimum a Controller + Action specified. Eg. RoutingModuleEx.Engine.Add( new PatternRoute(/myparam/controller/action) ); Have a look at http://using.castleproject.org/display/MR/Routing+Overview However if you are using IIS7 you may

Re: Monorail 2.0 Routing---at wit's end

2010-02-24 Thread Ruprict
presume to mean, IIS7.0 (I can't get ANY help/info from them).  It immediately broke our Monorail site, which had been running fine on the old system.  It seems that the routing is now broken.  I have scoured the www looking for how to get this going, and I seem to have it working locally

Monorail 2.0 Routing---at wit's end

2010-02-23 Thread Ruprict
So, my web host (webhost4life) recently migrated our site to a new system, which I presume to mean, IIS7.0 (I can't get ANY help/info from them). It immediately broke our Monorail site, which had been running fine on the old system. It seems that the routing is now broken. I have scoured

Re: Monorail 2.0 Routing---at wit's end

2010-02-23 Thread John Simons
them).  It immediately broke our Monorail site, which had been running fine on the old system.  It seems that the routing is now broken.  I have scoured the www looking for how to get this going, and I seem to have it working locally (on my Windows 7 box) but I cannot get it working on the WH4L

Re: concrete routing

2009-11-12 Thread Ken Egozi
will be required, so you'll achieve exactly what your boss wants. On Mon, Nov 9, 2009 at 2:50 PM, Jan Limpens jan.limp...@gmail.comwrote: Hello! for my FooController/BarAction(string val) I have this routing: /foo/bard/val Now my boss enters and tells me: For the val 'xyz', I want this other routing

concrete routing

2009-11-09 Thread Jan Limpens
Hello! for my FooController/BarAction(string val) I have this routing: /foo/bard/val Now my boss enters and tells me: For the val 'xyz', I want this other routing '/my-wonderful-routing-for-xyz' and for 'abc', I want '/this-is-a-nice-abc', the rest is nice the way it is. And I have no good

Re: Monorail routing

2009-10-19 Thread Ken Egozi
to same method like, photos/list map to - list() method in PhotosController admin/photos/list map to - list() method in PhotosController Is there any way to map the second url to admin_list() method using the common routing

Re: MonoRail default URL without Routing

2009-10-19 Thread Jimmy Shimizu
You could add a regular ASP.NET handler-mapping for default.aspx and in that file make a Server.Transfer if you don't want to use the routing-module. Just define the handler before the MonoRailHttpHandler in your web.config. On 2009-10-15 15:06, Daniel Hölbling wrote: This is probably

Re: Monorail routing

2009-10-18 Thread suneesh
           admin/photos/list map to   -  list()  method in PhotosController         Is there any way to map the second url to admin_list() method using         the common routing.         On Oct 16, 2:15 pm, Ken Egozi egoz...@gmail.com wrote:         why then did you go

Re: Monorail routing

2009-10-18 Thread suneesh
           admin/photos/list map to   -  list()  method in PhotosController         Is there any way to map the second url to admin_list() method using         the common routing.         On Oct 16, 2:15 pm, Ken Egozi egoz...@gmail.com wrote:         why then did you go

Re: Monorail routing

2009-10-16 Thread suneesh
Thanks for your reply Ken Egozi, Here is my code look like, public class PhotosController : SmartDispatcherController { [Layout(user)] public void List() { - code to list in user side

Re: Monorail routing

2009-10-16 Thread Ken Egozi
why then did you go with RoutingModuleEx.Engine.Add(adminhome, new PatternRoute(/admin/home/index.aspx) .DefaultForAction().Is(view) ); ?? you do not have an action named view, and you want the URLs to end with .rails, not .aspx try RoutingModuleEx.Engine.Add(adminhome, new

Re: Monorail routing

2009-10-16 Thread c.sokun
For admin/admin I usually embed SecurityComponent into my view template to make it adjust itself base on the roles. On Oct 16, 4:15 pm, Ken Egozi egoz...@gmail.com wrote: why then did you go with  RoutingModuleEx.Engine.Add(adminhome,     new PatternRoute(/admin/home/index.aspx)    

Re: Monorail routing

2009-10-16 Thread suneesh
Thanks c.sokun for post your suggestion, yes it is nice.but i need seperate view template for admin and user, in admin case the url become admin/controller/action.i need seperate method for admin and user in same controller. On Oct 16, 2:38 pm, c.sokun chornso...@gmail.com wrote: For

Re: Monorail routing

2009-10-16 Thread suneesh
in PhotosController admin/photos/list map to - list() method in PhotosController Is there any way to map the second url to admin_list() method using the common routing. On Oct 16, 2:15 pm, Ken Egozi egoz...@gmail.com wrote: why then did you go

Re: Monorail routing

2009-10-15 Thread suneesh
can anyone help me?.please post reply On Sep 25, 2:33 pm, suneesh t.sune...@gmail.com wrote: Hi, I found an issues with urlrouting. i have used the following for adminrouting url 1 - admin/controller/index url 2 - controller/index I have added 2 methods index and admin_index in the

Re: Monorail routing

2009-10-15 Thread Ken Egozi
I'm sorry, but I cannot understand you problem. how many controllers do you have? what are the names of the actions on the controller(s)? Which url (in the browser) you want to map into which action? attaching your controller's code (structure + method signatures would be enough, you can skip

MonoRail default URL without Routing

2009-10-15 Thread Daniel Hölbling
Hi,I'm facing a bit of a problem and maybe you can help me out. I'm running a MonoRail application that has no routing configured. So I'm using MRs standard Area/Controller/Action.aspx scheme. (I changed the MonoRail handler to listen for .aspx requests). Now, the problem here is that /Home

Re: MonoRail default URL without Routing

2009-10-15 Thread Ken Egozi
http://www.kenegozi.com/blog/2009/02/10/monorail-routing-and-the-homepage-routing-rule.aspxhttp://www.kenegozi.com/blog/2009/02/10/monorail-routing-and-the-homepage-routing-rule.aspx On Thu, Oct 15, 2009 at 2:18 PM, Daniel Hölbling hoelblin...@gmail.comwrote: Hi,I'm facing a bit of a problem

Re: MonoRail default URL without Routing

2009-10-15 Thread Daniel Hölbling
Thanks ken! On Thu, Oct 15, 2009 at 2:58 PM, Ken Egozi egoz...@gmail.com wrote: http://www.kenegozi.com/blog/2009/02/10/monorail-routing-and-the-homepage-routing-rule.aspx http://www.kenegozi.com/blog/2009/02/10/monorail-routing-and-the-homepage-routing-rule.aspx On Thu, Oct 15, 2009 at 2

Re: MonoRail default URL without Routing

2009-10-15 Thread Daniel Hölbling
This is probably not possible without the routing module is it? Since I'm not using it I hoped I could get around that.. greetings Daniel On Thu, Oct 15, 2009 at 3:03 PM, Daniel Hölbling hoelblin...@gmail.comwrote: Thanks ken! On Thu, Oct 15, 2009 at 2:58 PM, Ken Egozi egoz...@gmail.com

Re: MonoRail default URL without Routing

2009-10-15 Thread Symon Rottem
: This is probably not possible without the routing module is it? Since I'm not using it I hoped I could get around that.. greetings Daniel On Thu, Oct 15, 2009 at 3:03 PM, Daniel Hölbling hoelblin...@gmail.comwrote: Thanks ken! On Thu, Oct 15, 2009 at 2:58 PM, Ken Egozi egoz...@gmail.com wrote

Re: MonoRail default URL without Routing

2009-10-15 Thread Ken Egozi
Rottem http://blog.symbiotic-development.com On Thu, Oct 15, 2009 at 3:06 PM, Daniel Hölbling hoelblin...@gmail.comwrote: This is probably not possible without the routing module is it? Since I'm not using it I hoped I could get around that.. greetings Daniel On Thu, Oct 15, 2009 at 3:03 PM

Re: MonoRail default URL without Routing

2009-10-15 Thread Bill Barry
hoelblin...@gmail.com mailto:hoelblin...@gmail.com wrote: This is probably not possible without the routing module is it? Since I'm not using it I hoped I could get around that.. greetings Daniel On Thu, Oct 15, 2009 at 3:03 PM, Daniel Hölbling

Re: MonoRail default URL without Routing

2009-10-15 Thread Symon Rottem
Rottem http://blog.symbiotic-development.com On Thu, Oct 15, 2009 at 3:06 PM, Daniel Hölbling hoelblin...@gmail.comwrote: This is probably not possible without the routing module is it? Since I'm not using it I hoped I could get around that.. greetings Daniel On Thu, Oct 15, 2009 at 3:03

Re: MonoRail default URL without Routing

2009-10-15 Thread Ken Egozi
I, personally, don't like it at all.I like that the url (visible in the address bar) of the site's homepage is what it is. I also suspect that redirecting would yield SEO penalty Rewriting (or routing) to the correct location is pretty simple in Monorail, and even in bad old WebForms (using

Re: MonoRail default URL without Routing

2009-10-15 Thread Bill Barry
Go ahead, Server.Transfer should work in place of Response.Redirect. Ken Egozi wrote: I, personally, don't like it at all. I like that the url (visible in the address bar) of the site's homepage is what it is. I also suspect that redirecting would yield SEO penalty Rewriting (or routing

Re: MonoRail default URL without Routing

2009-10-15 Thread Daniel Hölbling
with that since it uses a 302 redirect to the homepage. I'd rather like to have the homepage be at /. So I guess I'll retrofit the routing module like Ken suggested. Thanks anyway. greetings Daniel On Thu, Oct 15, 2009 at 4:51 PM, Bill Barry after.fall...@gmail.com wrote: Go ahead

Re: MonoRail default URL without Routing

2009-10-15 Thread John Simons
to /Home/index.aspx Yet, I'm not totally happy with that since it uses a 302 redirect to the homepage. I'd rather like to have the homepage be at /. So I guess I'll retrofit the routing module like Ken suggested. Thanks anyway. greetings Daniel On Thu, Oct 15, 2009 at 4:51 PM, Bill Barry

Re: MonoRail default URL without Routing

2009-10-15 Thread Daniel Hölbling
, I'm not totally happy with that since it uses a 302 redirect to the homepage. I'd rather like to have the homepage be at /. So I guess I'll retrofit the routing module like Ken suggested. Thanks anyway. greetings Daniel On Thu, Oct 15, 2009 at 4:51 PM, Bill Barry after.fall

Routing

2009-10-13 Thread c.sokun
Recently I notice there is no improvement over the MonoRail built-in routing engine. Is it possible to use ASP.NET MVC routing engine with MonoRail ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project

Re: Routing

2009-10-13 Thread James Curran
want to run.  Hence we would need to make an adapter which would wrap a Controller/Action into an IHttpHandler. On Tue, Oct 13, 2009 at 6:22 AM, c.sokun chornso...@gmail.com wrote: Recently I notice there is no improvement over the MonoRail built-in routing engine. Is it possible to use

Re: Routing

2009-10-13 Thread Ken Egozi
: Recently I notice there is no improvement over the MonoRail built-in routing engine. Is it possible to use ASP.NET MVC routing engine with MonoRail ? -- Truth, James -- Truth, James -- Ken Egozi. http://www.kenegozi.com/blog http://www.delver.com http

Re: Routing

2009-10-13 Thread c.sokun
Thanks Ken for your comments I my self opt not to use routing just yet (with the project in hand) but as the feature become more and more wide spread I just need to be aware and be ready :) Cheer On Oct 14, 3:52 am, Ken Egozi egoz...@gmail.com wrote: ProcessRequest is not only about

Monorail routing

2009-09-25 Thread suneesh
Hi, I found an issues with url routing. i have used the following for admin routing url 1 - admin/controller/index url 2 - controller/index I have added 2 methods index and admin_index in the controller What i expected is the first url should go to controller/admin_index and later should go

routing and filters

2009-09-10 Thread Jan Limpens
hello! Some of my controllers have a SecureChannelFilter that 301s their actions to their https version. Is there a possibility to let my routing be aware of this and create absolute links with a https:// scheme for these? There are also actions with skipfilter... -- Jan

Re: routing and filters

2009-09-10 Thread John Simons
Sorry Jan, not possible. The routing uses HttpContext.RewritePath to do the http redirections and this method doesn't allow to change the url protocol. On Sep 11, 9:57 am, Jan Limpens jan.limp...@gmail.com wrote: hello! Some of my controllers have a SecureChannelFilter that 301s their actions

Re: Routing works on dev box, but not production server

2009-07-21 Thread Jonathon Rossi
I'm glad you were able to work it out and that the routing wasn't completely broken. On Tue, Jul 21, 2009 at 6:54 AM, JakeS jakesteven...@gmail.com wrote: And I finally got it. There was a sneaky filter applied to all controllers (through some inheritance, not directly) that would redirect

Re: Routing works on dev box, but not production server

2009-07-20 Thread Jonathon Rossi
I just checked and RoutingModuleEx wasn't available in RC3, can you get the subversion revision number from the file version of MR framework dll. You could try checking out the source at that revision and debugging the routing module. Do you have any other castle binaries in the GAC on either

Re: Routing works on dev box, but not production server

2009-07-20 Thread JakeS
the file version of MR framework dll. You could try checking out the source at that revision and debugging the routing module. Do you have any other castle binaries in the GAC on either machine? On Mon, Jul 20, 2009 at 8:15 AM, JakeS jakesteven...@gmail.com wrote: I've inherited a project

Re: Routing works on dev box, but not production server

2009-07-20 Thread JakeS
It looks like the pattern being used for the route is over-zealous. Even if I call the Redeem action on the CouponController directly, it gets munged up and will only receive Redeem as the parameter. If I take out the routing, it works fine. I'm confused by the interface on this. Does anyone

Re: Routing works on dev box, but not production server

2009-07-20 Thread James Curran
On Sun, Jul 19, 2009 at 6:15 PM, JakeSjakesteven...@gmail.com wrote: The global.asax has the following defined:            RoutingModuleEx.Engine.Add(                new PatternRoute(/coupon/couponCode)                    .DefaultForController().Is(coupon)                    

Re: Routing works on dev box, but not production server

2009-07-20 Thread JakeS
I'm not sure why it ever worked on my dev box, but I found the problem. Of course, it was behaving exactly as it should :) With that routing pattern, the following would occur: # user requests http://mysite.com/coupon/1234 # reroute to http://mysite.com/coupon/Redeem.html?couponID=1234

Re: Routing works on dev box, but not production server

2009-07-20 Thread JakeS
as it should :) With that routing pattern, the following would occur: # user requestshttp://mysite.com/coupon/1234 # reroute tohttp://mysite.com/coupon/Redeem.html?couponID=1234 # then THAT would reroute tohttp://mysite.com/coupon/Redeem. I fixed this up by renaming my controller to something

Re: Routing works on dev box, but not production server

2009-07-20 Thread JakeS
...@gmail.com wrote: I'm not sure why it ever worked on my dev box, but I found the problem.  Of course, it was behaving exactly as it should :) With that routing pattern, the following would occur: # user requestshttp://mysite.com/coupon/1234 # reroute tohttp://mysite.com/coupon/Redeem.html

Routing works on dev box, but not production server

2009-07-19 Thread JakeS
I've inherited a project using MonoRail and routing that works fine on my dev box, but has a strange issue in production. The project includes all the Castle binaries required, so the versions appear to be the same on both machines -- 1.0.3.0 (old I know). The global.asax has the following

Re: ?prefix routing in MonoRail

2009-06-11 Thread Daniel Dabrowski
i would use ProductController and derived from it AdminProductController. This admin controller can override some methods or act as a proxy. This admin contoller of course would in admin area. On Jun 10, 4:00 pm, James Curran james.cur...@gmail.com wrote: On Wed, Jun 10, 2009 at 9:04 AM,

Re: ?prefix routing in MonoRail

2009-06-10 Thread R. Rajesh Jeba Anbiah
On Jun 10, 2:02 am, Ken Egozi egoz...@gmail.com wrote: prefix routing? what's that? snip http://example.com/prefix/controller/action should resolve to: Controller::prefix_action() Thus, /admin/users/login will be resolved to Users::admin_login() This is a quick workaround

Re: ?prefix routing in MonoRail

2009-06-10 Thread Jonathon Rossi
Is there a reason you are not using controller areas for admin pages? On Wed, Jun 10, 2009 at 6:45 PM, R. Rajesh Jeba Anbiah ng4rrjanb...@rediffmail.com wrote: On Jun 10, 2:02 am, Ken Egozi egoz...@gmail.com wrote: prefix routing? what's that? snip http://example.com/prefix

Re: ?prefix routing in MonoRail

2009-06-10 Thread James Curran
On Wed, Jun 10, 2009 at 8:05 AM, Jonathon Rossij...@jonorossi.com wrote: Is there a reason you are not using controller areas for admin pages? I've yet to find a reasonable use for Areas, since areas are applied at the controller level. For example, Rejesh would like /admin/users/login to

Re: ?prefix routing in MonoRail

2009-06-10 Thread Jonathon Rossi
Maybe there is a better example, but why would you want login under /admin if it is not an administration area concern, rather than having 2 URLs to the same login functionality? On Wed, Jun 10, 2009 at 10:54 PM, James Curran james.cur...@gmail.comwrote: On Wed, Jun 10, 2009 at 8:05 AM,

Re: ?prefix routing in MonoRail

2009-06-10 Thread James Curran
On Wed, Jun 10, 2009 at 9:04 AM, Jonathon Rossij...@jonorossi.com wrote: Maybe there is a better example, but why would you want login under /admin if it is not an administration area concern, rather than having 2 URLs to the same login functionality? Ok, better example:

Re: ?prefix routing in MonoRail

2009-06-10 Thread Jonathon Rossi
Good point. Having the explicit /admin does make it more complex, I don't usually do it like that but I understand why you may want it like that. This could be done with routing, using a custom IRoutingRule would probably be the easiest way, to strip the /admin and add the /admin back

Re: ?prefix routing in MonoRail

2009-06-10 Thread R. Rajesh Jeba Anbiah
, prefix routing are quick workaround for admin pages--especially when different layout is wanted for admin control panel. Also, for example, this CakePHP article shows how subdomain based admin CP can be implemented with such admin prefix http://bakery.cakephp.org/articles/view/hosting-admin-urls

?prefix routing in MonoRail

2009-06-09 Thread R. Rajesh Jeba Anbiah
Just a quick question: is prefix routing possible in MonoRail? And, how are you implementing admin pages? TIA -- ?php echo 'Just another PHP saint'; ? Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/ --~--~-~--~~~---~--~~ You received

Re: robots.txt and sitemaps with routing

2009-05-20 Thread Ken Egozi
map *.txt extensions to StaticFileHandler, they won't fire up MonoRail at all. On Wed, May 20, 2009 at 2:21 PM, Jimmy Shimizu jimmy.shim...@gmail.comwrote: I'm using RoutingModuleEx, basic MonoRail routing that is mapped like this: add name=MonoRail path=* verb=* type

Re: robots.txt and sitemaps with routing

2009-05-20 Thread Jonathon Rossi
-mail about the default views + routing + filters wasn’t responded to either and nor was the transaction management + nhibernate integration which I mailed about… Communication is the basis of software dev. Regards, Henrik *From:* castle-project-users@googlegroups.com [mailto: castle

RE: robots.txt and sitemaps with routing

2009-05-20 Thread Henrik Feldt
Hello Jimmy, What I did, was to modify the routing in the routing module and also add a property IsStaticFile on the RouteMatch, so that the routing, which is responsible for rewriting the url, checks for static files, rather than letting MRHttpHandlerFactory do it. What MRHHF does is to check

Re: robots.txt and sitemaps with routing

2009-05-20 Thread Jimmy Shimizu
. Henrik Feldt wrote: Hello Jimmy, What I did, was to modify the routing in the routing module and also add a property IsStaticFile on the RouteMatch, so that the routing, which is responsible for rewriting the url, checks for static files, rather than letting MRHttpHandlerFactory do it. What MRHHF

Re: robots.txt and sitemaps with routing

2009-05-20 Thread Ken Egozi
, Henrik Feldt hen...@haf.se wrote: Yes, it's a part of it, but if monorail also has a hit on the url which has a static file, you can override the static file with the routing. I moved a lot of knowledge from the http handler to the routing module. Currently, routingmoduleex

Re: robots.txt and sitemaps with routing

2009-05-20 Thread Jimmy Shimizu
has a hit on the url which has a static file, you can override the static file with the routing. I moved a lot of knowledge from the http handler to the routing module. Currently, routingmoduleex: if (File.Exists(request.PhysicalPath

RE: robots.txt and sitemaps with routing

2009-05-20 Thread Henrik Feldt
-script-mapping-and-iis-7-integrated-pipeline/ This is what I’m led to believe For performance critical applications, Static files, public, no auth/author: * No processing or custom MR routing needed, serve using add name=StaticFile path=* verb=* modules=StaticFileModule

Re: robots.txt and sitemaps with routing

2009-05-19 Thread Ken Egozi
what does the multiple domains has to do with Jimmy's problem? On Tue, May 19, 2009 at 8:22 PM, Henrik Feldt hen...@haf.se wrote: I rewrote the routing to work with multiple domains, but I can't put it up because no one in charge answers my e-mails. Regards, Henrik -Original Message

robots.txt and sitemaps with routing

2009-05-18 Thread Jimmy Shimizu
How do you guys solve the issue with files that are supposed to be found directly under the siteroot when using advanced routing (meaning, catching * with Monorail)? I was planning on using a specific controller that servers robots.txt and sitemaps dynamically, but when someone needs to verify

MR routing with optional areas

2009-05-11 Thread andypike
Hi all, I'm sure this is an easy thing to do, however I am too stupid to figure it out. Basically I have a MR application which has some controllers that are within an area and some that are not. I have the following routes specified: rules.Add(new PatternRoute([controller]/[action])

Re: MR routing with optional areas

2009-05-11 Thread Jimmy Shimizu
().Is() .DefaultForController().Is(Users) .DefaultForAction().Is(Index)); This was just a wild guess from my side though :) This is old routing-syntax, right? Since the new routing-engine uses controller instead of [controller] andypike wrote: Hi all, I'm sure

Re: MR routing with optional areas

2009-05-11 Thread Jimmy Shimizu
Oh, I didn't know that. Well, do you add your area-specific rules before the non-area specific rules? andypike wrote: From the spec (http://using.castleproject.org/display/MR/Routing+Spec) I thought that [] where optional where as are required. I've tried that but it still falls over ;o

Re: MR routing with optional areas

2009-05-11 Thread andypike
? andypike wrote: From the spec (http://using.castleproject.org/display/MR/Routing+Spec) I thought that [] where optional where as are required. I've tried that but it still falls over ;o( On May 11, 2:44 pm, Jimmy Shimizu jimmy.shim...@gmail.com wrote: In which order do you add those

RE: Routing not working when deployed to server

2009-05-09 Thread Henrik Feldt
. Context.UnderlyingContext.Response.Redirect(/login/index); } Are you doing no. 1 and not no. 2? Also, what do you mean with subdomain? Do you mean I want the application path to get prepended? ** By the way; mailing list, I've been fiddling a bit with MonoRail, improving the Routing to work with /, /default.aspx, among other things

routing monorail shared hosting

2009-04-29 Thread Josh Coffman
I figured its about time I look at adding routing to my MR site, only I'm on a shared hosting plan. Is this even possible? I'm fine with only routing urls with .ashx at the end. Thanks, Josh --~--~-~--~~~---~--~~ You received this message because you

Re: routing monorail shared hosting

2009-04-29 Thread Ben Lovell
On Wed, Apr 29, 2009 at 8:01 AM, Josh Coffman joshcoff...@gmail.com wrote: I figured its about time I look at adding routing to my MR site, only I'm on a shared hosting plan. Is this even possible? I'm fine with only routing urls with .ashx at the end. Thanks, Josh Should be fine. I've

Re: routing monorail shared hosting

2009-04-29 Thread James Curran
On Wed, Apr 29, 2009 at 3:01 AM, Josh Coffman joshcoff...@gmail.com wrote: I figured its about time I look at adding routing to my MR site, only I'm on a shared hosting plan. Is this even possible?  I'm fine with only routing urls with .ashx at the end. You will need to have the extension

Re: Routing with multiple domain names

2009-04-21 Thread Jimmy Shimizu
Are they bound to different web-sites with the same path, or the same web-site? Theres a difference. Either way I'm out of ideas. I don't really know a scenario why a routing-rule would be bypassed, maybe someone else can explain what could be the cause of that. eyal wrote: Hi Jimmy

Re: Routing with multiple domain names

2009-04-21 Thread eyal
. Either way I'm out of ideas. I don't really know a scenario why a routing-rule would be bypassed, maybe someone else can explain what could be the cause of that. eyal wrote: Hi Jimmy, the domains point to the same IP and bound to the same folder dir of the site. they all work except when

Re: Routing with multiple domain names

2009-04-21 Thread eyal
, 1:01 am, Jimmy Shimizu jimmy.shim...@gmail.com wrote: Are they bound to different web-sites with the same path, or the same web-site? Theres a difference. Either way I'm out of ideas. I don't really know a scenario why a routing-rule would be bypassed, maybe someone else can explain what

Re: Routing with multiple domain names

2009-04-20 Thread Jimmy Shimizu
://secondarydomain.com/specials/searchresult.rails?categoryId=1 (if .rails is your extension) eyal wrote: Hi All, I am using url routing in my web site. I also have multiple domain names that link to the same root folder. The main domain works fine with all the routed urls. However

Re: Routing with multiple domain names

2009-04-20 Thread eyal
to the same website? Do a non-routed url work? eg: http://secondarydomain.com/specials/searchresult.rails?categoryId=1 (if .rails is your extension) eyal wrote: Hi All, I am using url routing in my web site. I also have multiple domain names that link to the same root folder

New Routing Module problems on Mono+Linux

2009-03-13 Thread Ricardo Lopes
Hi, I am doing some tests on mono+linux and everything works fine for my application (using MONO_IOMAP) except for the new routing module. In the routing rules i define the area as empty but the monorail handler seems to be ignoring it. In my routes i have this: rules.Add(new PatternRoute

Re: Lost images after Routing

2009-02-16 Thread eyal
: Found the solution all I had to do is give the full path. I guess with the routing its needed. Old way src=../container/images/product_images/thumb$image.FileId New way src=http://mysite.com/container/images/product_images/thumb $image.FileId On Feb 12, 12:19 pm, eyal ebarda

Re: Handle Errors with Url Routing

2009-02-16 Thread eyal
...@gmail.com wrote: Hi there, when defining routing pattern rules you can specify type of parameter as such .Restrict(Id).ValidInteger But what if someone tempers with the url and changes the parameter value to a non integer. How can you handle this? For example: mysite.com/productName/12

Re: Handle Errors with Url Routing

2009-02-16 Thread Ricardo Lopes
The default web.config customerrors should apply even if you use routing. http://msdn.microsoft.com/en-us/library/h0hfz6fc.aspx 2009/2/16 eyal ebarda...@gmail.com Also forgot to mention that I have a 404.vm file in the rescues folder. If the url is tempered I understand that the message

Re: Is this possible with Routing

2009-02-12 Thread Daniel Pupek
We have the parenthisese now. With the old routing. Tried it without...no luck On 2/12/09, Jimmy Shimizu jimmy.shim...@gmail.com wrote: why the parentheses? I assume your url is: /someGroupName/images/Banner800x600.png just skip the parentheses and it will work I believe. On 12 feb 2009

Re: Is this possible with Routing

2009-02-12 Thread Daniel Pupek
Just no match. I use /groupname/images/banner(100x100).png On 2/12/09, Jimmy Shimizu jimmy.shim...@gmail.com wrote: Well, try to explain what happens, no match? What url are you trying etc... exceptions? Daniel Pupek wrote: We have the parenthisese now. With the old routing. Tried

Re: Is this possible with Routing

2009-02-12 Thread Jimmy Shimizu
I'm not sure if the routing is case sensitive... but you have banner in your url and Banner in your route. Daniel Pupek wrote: Just no match. I use /groupname/images/banner(100x100).png On 2/12/09, Jimmy Shimizu jimmy.shim...@gmail.com wrote: Well, try to explain what happens

Re: Handle Errors with Url Routing

2009-02-12 Thread eyal
On Feb 11, 11:07 pm, Ken Egozi egoz...@gmail.com wrote: it won't reach the controller since the route won't match. this should be dealt like any other 404 error On Thu, Feb 12, 2009 at 6:52 AM, eyal ebarda...@gmail.com wrote: Hi there, when defining routing pattern rules you can specify

Re: Routing Pattern Rules Issue

2009-02-12 Thread eyal
/categoryId/ and /product/title/id/ this way, URLs with /search/STRING/INT will match the first, and product/STRING/INT will match the latter On Thu, Feb 12, 2009 at 4:57 AM, eyal ebarda...@gmail.com wrote: hi all, For some reason one routing rule replaces the other. Meaning whenever I try

Re: Lost images after Routing

2009-02-12 Thread eyal
the extensions are available within fileId as such .../thumbb41cd7c4- dfd5-470c-b524-6a48e2928e93.jpg The image were working fine before I applied url routing Thanks Eyal On Feb 12, 9:52 am, mausch mauricioschef...@gmail.com wrote: Aren't you missing the extension? i.e. thumb${image.FileId

Combine pagination with url routing

2009-02-12 Thread eyal
Hi All, Does anyone know how to combine url routing with pagination? Regular Pagination: #blockcomponent(DiggStylePagination with page=$products renderifonlyonepage=false) #link button type=button onclick=location.href='searchbypage.ashx?page=$pageIndex';$text/ button

Re: About URL Routing

2009-02-11 Thread Jimmy Shimizu
this bloghttp://using.castleproject.org/display/MR/Routing+Overview My agenda is to convert the following: .../controllerName/searchresult.ashx?categoryId=23 into .../controllerName/categoryName where each categoryId is associated with a Category Name

Lost images after Routing

2009-02-11 Thread eyal
Hi All, I recently applied url routing. However my view lost all its images. All I see on page is the image placement with marked with red X. Any idea of how to fix this? this is how I pull the image to display on page: img name=Image_$cnt alt=$Html.HtmlEncode($row.Title) src

Re: Is this possible with Routing

2009-02-11 Thread eyal
use this to extract image h and w HttpPostedFile image Bitmap sourceImage = new Bitmap(image.InputStream, false); int width = sourceImage.Width; int height = sourceImage.Height; On Feb 11, 6:20 pm, Daniel Pupek

Routing Pattern Rules Issue

2009-02-11 Thread eyal
hi all, For some reason one routing rule replaces the other. Meaning whenever I try to evoke MyView(id) func SearchResult(categoryId) is executed instead. Any ideas of how to fix this? thanks eyal I have the following routing rules: rules.Add(new PatternRoute(/controller

Handle Errors with Url Routing

2009-02-11 Thread eyal
Hi there, when defining routing pattern rules you can specify type of parameter as such .Restrict(Id).ValidInteger But what if someone tempers with the url and changes the parameter value to a non integer. How can you handle this? For example: mysite.com/productName/12 - correct url

Re: About URL Routing

2009-02-11 Thread Jimmy Shimizu
In order to get routing to work, you map * to Monorail, meaning all static requests also tries to get served by monorail. Personally I have all static material in a /static/ folder, which I set to it's own application, with a static file handler (no monorail- handler). On 11 feb 2009

Re: Is this possible with Routing

2009-02-11 Thread Jimmy Shimizu
why the parentheses? I assume your url is: /someGroupName/images/Banner800x600.png just skip the parentheses and it will work I believe. On 12 feb 2009, at 03:20, Daniel Pupek wrote: Ok, I have tested this and so far it doesn't seem to work but I wanted to see if anyone had a suggestion:

  1   2   >