-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I  have not done this, but just some thoughts.
1) you need to start at
^/applicationname/control/ if your using any of the application that
come with ofbiz, since there is a a control.xml for each application.
and then direct to the application.
so even if you removed the /control
you still need the /applicationname in the URL
I did attempt at one time to put all the applications thru one
control.xml but ran into integration problems.

lets say you have only one application and you are not calling any other
 of the built-in screens.
another approach is to use an apache front end and ajp
http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-HTTPD

you can use rewrite rules


euronymous sent the following on 1/22/2009 11:26 AM:
> Hi list...
> Jaques correctly pointed to post my question here, instead of Dev: here it
> is...Hope someone is gonna help us ;) Thanks
> 
> Hi list
> 
> we were looking around possibilities to remove the Control Servlet from a
> customized application, in a way that the frontend will not contain in the
> URL /control/.
> 
> Is there a way to do that directly in the application web.xml descriptor?
> That's just a strange request of one of our customers...for us it is
> definitely ok to leave it ;) But you all know that customer request must be
> satisfied (as much as we can)...
> 
> We tried urlrewrite, without totally success. Using a rule like the
> following one, we were able to filter the content generated from
> response.encodeURL:
> 
>  <outbound-rule>
>         <note>
>             When response.encodeURL is called (RequestHandler.encodeURL)
>             the url /control/something will be rewritten to /something.
> 
>             The above rule and this outbound-rule means that end users
> should never see the
>             url /control/something /something both in thier location bar and
> in hyperlinks
>             in your pages.
>         </note>
>         <from>^/control/(.*)$</from>
>         <to>/$1</to>
>     </outbound-rule>
> 
> Anyway we need also another rule to filter input...something like this (not
> working):
> 
>  <rule>
>         <note>
>             Requests without /control/ will be silently rewritten.
>         </note>
>        
>         <from>^/(.+)$</from>
>         <to>/control/$1</to>
>     </rule>
> 
> I've read that months ago Jaques was speaking on urlrewrite...
> Is there someone that had our same necessity before?
> 
> Thanks list, thanks Ofbiz developers
> 
> Michele OrrĂ¹
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJeNH4rP3NbaWWqE4RAn1FAJ4j3WyVLzuK1qNFDPHgjG6q+6elWACfSlYg
gVt8f5euOPH5cfd1F5krKaU=
=gJHm
-----END PGP SIGNATURE-----

Reply via email to