>From my understanding of portlet, everytime when a actionURL event is being
fired, the processAction method will triggered followed by the doView
method. Therefore, i personally preferred to put my business logic inside
the doView method and then dispatch to the respective JSP pages to handle
the view. In this case, all my business logic are in java classes which I
will used in my portlet. Is there a more effective way to what I am doing
now?

  public void doView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)throws PortletException, IOException{
    ...
    BusinessLogicClass blc = new BusinessLogicClass();
    ...

getPortletConfig().getPortletContext().getRequestDispatcher("/helloworld.jsp").include(request,
response);
  }

On 2/8/06, mu baosen <[EMAIL PROTECTED]> wrote:
>
> >
> > 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
>
>


--
Best Regards
Will

Appxolute 4D Support
Appxolute Pte Ltd
Contact: +65 6339 6789
Fax: +65 6399 2576
http://www.appxolute.com

Reply via email to