• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic