WebSphere Portal Server - repeatedly calling createURI with changing actionURIs - ?

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > June 2004 > repeatedly calling createURI with changing actionURIs - ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author repeatedly calling createURI with changing actionURIs - ?
akloppe

2004-06-28, 7:35 pm

I have three View-JSPs for my portlet.

viewPortlet_one
viewPortlet_two
viewPortlet_three

each jsp (all are for viewing) has a previous and next button, which
allows me to navigate between them (next-previous, etc..

To generate the action i perform a createURI; effectivly reloading
the portlet and passing it an action to determine in doView() the
approproate previous or next jsp page.

The problems is that after creating the FIRST createURI > actionURI >
actionPerform() - doView() the action doesn't seam to change. Even
though I see the JSP page calling distinct action the acitonPerform
always picks up me the action I triggered in the first jsp.

Question: is it at all possible to call within view Mode multiple JSP
(via createURI) and passing them changing actions? The sense I'm
getting is, that this is not possible (?)
Justin Rosenberg

2004-06-29, 6:00 pm

Would be helpful if I could see your code, but you should be able to do
something like this

<a href="<portletAPI:createURI><portletAPI:URIAction
name="Action1"/></portletAPI:createURI>">First Action</a><BR>

<a href="<portletAPI:createURI><portletAPI:URIAction
name="Action2"/></portletAPI:createURI>">Second Action</a><BR>

<a href="<portletAPI:createURI><portletAPI:URIAction
name="Action3"/></portletAPI:createURI>">Third Action</a><BR>

If that doesn't work please send me some code and I can investigate it
further.

Justin Rosenberg

akloppe wrote:
> I have three View-JSPs for my portlet.
>
> viewPortlet_one
> viewPortlet_two
> viewPortlet_three
>
> each jsp (all are for viewing) has a previous and next button, which
> allows me to navigate between them (next-previous, etc..
>
> To generate the action i perform a createURI; effectivly reloading
> the portlet and passing it an action to determine in doView() the
> approproate previous or next jsp page.
>
> The problems is that after creating the FIRST createURI > actionURI >
> actionPerform() - doView() the action doesn't seam to change. Even
> though I see the JSP page calling distinct action the acitonPerform
> always picks up me the action I triggered in the first jsp.
>
> Question: is it at all possible to call within view Mode multiple JSP
> (via createURI) and passing them changing actions? The sense I'm
> getting is, that this is not possible (?)

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com