Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

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!!!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic