• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can Servlet help create a multi-store system?

 
federico vigna
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic