Hi, Seems to be a stupid question, sorry. But since all JSPs must not be accessed in struts directly (is it true?) but through actions, is it some kind of uncomfortable? For example i've got menu in my application like "create quote", "update quote", "create deal" etc. So i have to have action class for each page to call it through action mapping like createQuote.do or smth. Then each page with form will have FormBean and another action which will control this page after submit. So i've got 2 actions: 1 to get to this jsp, second to submit it. Then if i need page which will just display some table from database (like display all users), can i directly call some function from some class which returns Collection and then iterate it? Seems that this collection must be puted to request by action. Is it true? Sorry, im just started to use struts, dont be too strict
Ilja, Yes, it is true that JSPs should be accessed by going through actions. In your database example, the actions would call the function. As you said, you would put the collection in the request so the jsp could iterate through it. Your understand is correct. The idea is to keep stuff out of the jsp as much as possible.