Zamboo
Zamboo

Reputation: 539

Spring mvc 3 Web app design

In a Spring MVC app, I use a unique controller where users populate info of their session (I'm using @SessionAttributes("Form") ).

1) It looks that it works fine, but is it the right way to do things ?
2) I would like to share some data between users, how could I do that ?

Upvotes: 0

Views: 218

Answers (1)

stivlo
stivlo

Reputation: 85486

  1. why not, you said it works for you, and is simple and clean. Using one controller is fine until the number of methods aren't too many, after that simple split the class creating a new controller, trying to group Request Mappings logically.

  2. save it in a database.

Upvotes: 1

Related Questions