I was hoping somebody might be able to help me out w/ a pretty basic question. I'm creating a web app and trying to use the MVC pattern where I have a controller servlet that intercepts requests, does some work (like say reading from a database), possibly setting some application/session/request/page scope objects then forwards the request on to a JSP page that renders the info.
So far I've think I've got an ok handle how that's done (though I think I may be overusing and/or misusing the requestScope object to get things to the JSP page, but that's a different story).
Anyway, my question is: what about pages where it's not a 'request'? That is, it's not an html <form> being submitted. E.g imagine I have a page with a link that says 'Display Employees' and when the user clicks on this link, I want my app to query the database for all the employees and display them in a table. The issue I have is that this is just a 'link' not a <form> being submitted, so my controller servlet never even gets involved. How can I route this page to my controller servlet so that it can go out to query the database, etc. Is there a standard pattern for handling this scenario?
Anyway, hope that made sense. Sorry so basic. Just starting out w/ this.