Struts Portlet and Page Navigation
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 > Struts Portlet and Page Navigation




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

    Struts Portlet and Page Navigation  
Sascha Mamsch


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


 
06-09-04 09:51 PM

Hi,

how do I know when a user returns to a page with a Struts portlet (or
any portlet, for that matter)?

We have a portal (WPS v5) with several pages.  On PageA, there is
Portlet1, a Struts portlet.  The user performs some steps within that
portlet.  Having reached step 3 of 5, he decides to go to a different
portal page, PageB.  After some time, he goes back to PageA using the
portal navigation (in the theme).  Portlet1 still displays step 3 of 5.

For us, this is a problem.  We want to have the user start over again
with step 1 of 5 whenever he returns to PageA.  That is, the welcome
file (in web.xml) is supposed to be called and forward to a Struts
action which must be executed.  Is there a way to signal the event "user
returns to page" to the portlet?

We'd appreciate any help or comment.  Regards, Sascha






[ Post a follow-up to this message ]



Linda is offline     Re: Struts Portlet and Page Navigation  
Linda


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


Click Here to See the Profile for Linda Click here to Send Linda a Private Message Find more posts by Linda Add Linda to your buddy list
 
06-14-04 03:37 PM

I have exactly the same problem. Did you find a solution yet? I think you ha
ve to adjust the PageBarInclude.jsp and/or the PlaceBarInclude.jsp. Both jsp
's are includes in the default.jsp.

quote:
Originally posted by Sascha Mamsch Hi, how do I know when a user returns to a page with a Struts portlet (or any portlet, for that matter)? We have a portal (WPS v5) with several pages. On PageA, there is Portlet1, a Struts portlet. The user performs some steps within that portlet. Having reached step 3 of 5, he decides to go to a different portal page, PageB. After some time, he goes back to PageA using the portal navigation (in the theme). Portlet1 still displays step 3 of 5. For us, this is a problem. We want to have the user start over again with step 1 of 5 whenever he returns to PageA. That is, the welcome file (in web.xml) is supposed to be called and forward to a Struts action which must be executed. Is there a way to signal the event "user returns to page" to the portlet? We'd appreciate any help or comment. Regards, Sascha




[ Post a follow-up to this message ]



    Re: Struts Portlet and Page Navigation  
gpinkham


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


 
06-15-04 10:53 PM

You could have a request attribute passed from page to page..    Upon return
ing to the page (or on refresh to.. no difference) the attribute will not be
 there...    Then you can check for it's presence in the jsps and if it's no
t there forward to the 1st
page...

<logic:notPresent attribute="DONTRUNAGAIN">
<logic:forward name="WelcomeAction"/>
</logic:notPresent>

One note.. I haven't done this yet.. thought of it today and plan to try it 
out this week.. so your mileage may vary... :-)





[ Post a follow-up to this message ]



rduriseti is offline     Re: Re: Struts Portlet and Page Navigation  
rduriseti


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


Click Here to See the Profile for rduriseti Click here to Send rduriseti a Private Message Find more posts by rduriseti Add rduriseti to your buddy list
 
09-08-04 03:12 PM

quote:
Originally posted by gpinkham You could have a request attribute passed from page to page.. Upon return ing to the page (or on refresh to.. no difference) the attribute will not be there... Then you can check for it's presence in the jsps and if it's no t there forward to the 1st page... <logic:notPresent attribute="DONTRUNAGAIN"> <logic:forward name="WelcomeAction"/> </logic:notPresent> One note.. I haven't done this yet.. thought of it today and plan to try it out this wee k.. so your mileage may vary... :-)
did anybody solve this problem.. i a also facing the same problem.. i have a user list portlet in page A which is a struts based portlet on click of the user name i should go to page b user information portlet which is also a st ruts portlet. first time i click on the user link i go to index.jsp and farw ord a action get userinfo.do then when i go back to the User List again i cl ick on other user in the list it goes to the UserIfno portlet it just displa yes the previous user info and it dosent go to index.jsp for farword... can some body help me in this?




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:06 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