I have a jsp page.
Is it reasonable that the page have the code "session.setAttribute("abc")" if I use a mvc framework ?
I think the view layer should only the logic for presentation.
I think the "session.setAttribute("abc")" has some smell for bussiness logic.
Can somebody give me other suggestion?
Thanks~
My Way,My Pace
Jimmy Clark
Ranch Hand
Joined: Apr 16, 2008
Posts: 2187
posted
1
Maybe that attribute has something to do with Presentation logic. If it does then it complies with MVC object-oriented design pattern.
If that attribute has something to do with Business logic, then it shouldn't be in the JSP page.