• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invoking a page URL .. need to append parameters to a URL IBM Portal

 
Dharmesh Chheda
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using JSR168, WPS 5.1

I have a requirement wherein I need to forward control from my struts action to a page URL. I am able generate URL to that page but how do i pass some parameters to that page so that the portlets on that page can utilize them?.. Here is what i have


Using this i am able to redirect. Now i have this code to append my params



The last statement throws ClassCast Exception .. tried different things .. wonder why.. is there any other means to do what i am trying to achieve.?


thanks
dharmesh

[ August 21, 2008: Message edited by: Dharmesh Chheda ]
[ August 21, 2008: Message edited by: Dharmesh Chheda ]
 
Dharmesh Chheda
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well got the issue resolved.

For some strange reason(atleast I noticed this for the first time), in IBM portal, the parameters stored in the Object state are held as string array .. so when I was setting the values as type String, it was throwing a ClassCastException.

now setting the values as String array and works fine.. Phew!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic