fixing url strings used in properties

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

fixing url strings used in properties

BJ Freeman
some properties are hard coded
the most recent example is paypal.
the urls are
http://[yourServerName]/ecommerce/control/payPalNotify

yet the Web.xml has been changed from
/ecommerce
to
/
So I propose a change as a best practice
for configs that are product store or website dependent
so that the server name is taken from the website entity Http Port and
Https Port.
Use the Webapp  mount-point for /

for configs that are more global use the
baseUrl and baseSecureUrl with Webapp  mount-point.

so the only thing in the config is the URL
payPalNotify

have I missed something

going to do this with paypalevents.java first.


--
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.