repeatedly calling createURI with changing actionURIs - ?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > repeatedly calling createURI with changing actionURIs - ?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    repeatedly calling createURI with changing actionURIs - ?  
akloppe


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 12:35 AM

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 (?)





[ Post a follow-up to this message ]



    Re: repeatedly calling createURI with changing actionURIs - ?  
Justin Rosenberg


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 11: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 (?)





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:17 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register