File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes can Servlet help create a multi-store system? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "can Servlet help create a multi-store system?" Watch "can Servlet help create a multi-store system?" New topic
Author

can Servlet help create a multi-store system?

federico vigna
Greenhorn

Joined: Mar 21, 2012
Posts: 2
Hi,
i've a web app (tomcat6 and struts-->we're updating to JSF2+Primefaces)
that manage a single store.
I've to move it to a more complex system to manage multistore.
I'm finding the best solution from server side to help this.
i.e. Is it possible to manage every different store with a "symbolic" subfolder:
es. www.mydomain.com\store1
www.mydomain.com\store2
etc..

for symbolic i intend the store1 and store2 are not a physical folder but only represent a paramter that configure the User SESSION to the "StoreX".
Another classic way could be passing a GET parameter (www.mydomain.com?store=1) but i don't think it's a great idea.

Any suggest?
How con servlet can help me?

thanks in advance
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Not a servlet, exactly. A filter would be more suitable, since it could identify the "store number" and set up the session the way you want.
 
jQuery in Action, 2nd edition
 
subject: can Servlet help create a multi-store system?