I'm developing with forms 11g for windows and deploying on linux.
I want to deploy the help docs of my application, which I've already migrated from hlp to html / css.
Now, I would like to know where can I deploy that html files to invoke them with web.showdocument (for example).
To what path is relative the url in the web.showdocument built in?
Can I jar them as I did with the icons?
Add a virtual path to your forms.conf file:
# Virtual path for docs
AliasMatch ^/forms/docs/(..*) "/users/docs/$1"
You copy the files in the physical directory
Then in your Web.show_document() use the virtuel path:
I tried it in my local development windows pc.
The html I want to open phisically here:
I added this line in my forms.conf
AliasMatch ^/forms/docs/(..*) "H:\myapp11g\ayuda\html\$1"
And this in the forms trigger:
Restarted weblogic server and run your sample:
I get a 404 page not found. The url in the window is http://ovid001:7001/forms/docs/indice.htm
I tried several combinations (with and without starting /):
gives me the same not found url: http://ovid001:7001/forms/docs/indice.htm
Even tried to jar the html docs and invoke them with the path in the jar, but I always get the not found webpage.
Is there something else I should add to the forms.conf?
ok, thanks anyway,
Maybe the problem is with my weblogic configuration, as it is a windows developer workstation.
I'll send instructions to the sysadmin and try to do it in the linux deployment server.
I've tried also with WLExcludePathOrMimeType , as read in the manual this
When including any user-defined
aliasMatch with the prefix
forms.conf, add the directive
WLExcludePathOrMimeType. For example, in Linux, when defining the
forms.conf, the directive
WLExcludePathOrMimeType is defined as following:
AliasMatch /forms/usericons/(..*) "/home/userx/myicons/$1" WLExcludePathOrMimeType /forms/usericons/
For me declaring an aliasmatch for /forms/<somealias> didn't work either in 11g. However; you can use little trick with a rewrite rule to overcome this problem:
RewriteEngine on RewriteRule ^/forms/usericons/(..*) /alias_usericons/$1 [PT] AliasMatch /alias_usericons/(..*) "/home/userx/myicons/$1"
So the aliasmatch would be
and all calls to
are rewritten to the aliasmatch.
or you omit the rewrite rule, and simply name your aliasmatch /usericons and reference it like
After trial of the aliasmatch solution + WLExcludePathOrMimeType setting, it works in our deployment server.
I supose it's because the developer configuration has server features stripped down, as it has not the full OHS that is bundled with the deployment weblogic middleware installation.
I don't know if it is possible to get this to work in the developer version. If it is not possible, I cannot see the point on including a forms.conf file in developer version which has no use at all.
the development version there is no Apache; you'd need to declare your aliasmatch in weblogic. See MOS:
How to Create Virtual Mappings in Forms 11.1.x (Doc ID 1063043.1)