Hi Swee
        If you write your business logic in doView, for every render request ur 
business logic executes. 
if you have 4 portlets in youe page , then submit ie ActionRequest to one 
portlet and render request to other portlets.

-----Original Message-----
From: swee heng [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 2:57 PM
To: Jetspeed Users List
Subject: Re: Jsp to portlet application


>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


This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to