mu baosen <mubaosen <at> gmail.com> writes: > > > > > Thanks for replying. > > I have write a lot of code in b.jsp. Should I move them to the > processAction method of the portlet class? Should all requests in my > application be handled by the portlet class? If I have a lot of jsps, how > can I know that which jsp the request was sent by ? > > Regards, > Mubaosen >
It is generally good practice to handle the business logic outside of the JSP view. So yes, in the processAction method. That being said, you don't *have* to do this. But, one thing to be aware of is that your JSP code will be executed everytime the portal page is rendered, even if the current request is targetting a different portlet on the same page. This could mean for example that you will place unnecessary additional load on a backend database or other resources. HTH, aaron --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
