The only difference between a web based app and an ordinary app is how the user accesses your application.
It has got nothing to do with the way you implement your "business logic". So, well, yeah, like Kenkag mentioned, put your factory pattern in a web application