>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




General

Author Thread: how to use wild paths
Brian.Chizever
how to use wild paths
Posted: Wednesday, December 22, 2004 10:33 AM (EST)

I'm trying to use wildpaths and it's not working.  I'm hoping I'm just doing something stupid and that someone can help me.

 

What I'm trying to do is that I want any "page" with a .bmc extension to be a virtual path.  To do this I set up a virtual path of "/*.bmc".  If a user goes to the page abc.htm, it should get that static page.  If a user goes to abc.bmc, or xyz.bmc, or anything.bmc, I want it to call a function in my workspace.  I thought a virtual path of "/*.bmc" would do it, but abc.bmc and xyz.bmc both return a page not found error.  (But, if I go to http://localhost/*.bmc, it works.)

 

So, is there something I need to do to turn on wildcards in virtual paths?  Am I just doing it completely wrong?  Do I need a different version of APLWS (I'm using 1.1.1644.25552).

 

Thanks in advance,

Brian


Comments:

Author Thread:
fred.waid
how to use wild paths
Posted: Thursday, December 30, 2004 6:12 PM (EST)

There is a tutorial for using wildpaths at:

 

http://apldn.apl2000.com/Articles/APL+Web+Articles/292.aspx

 

A wildcard path (or "wildpath") is defined when the virtual path ends with a "*". Any request-uri that begins with a wildcard path will be accepted and processed by the related wsid.

 

What you are looking for is actually wildfiles, which we have not done yet, but it is not a bad idea.

 

Fred

     



APL2000 Official Web Site

You must be the change you wish to see in the world.
--- Mahatma Ghandi

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |