Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

onInit() and redirect  RSS feed

 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

This is my jsp code to do some action at pageload


and this is the code in the backing bean for this jsp ( im using RAD and WAS 6.0)



i wanted to forward the page to showmessage.jsp if the method call "checkAvailabiliy()" returns "norecords". i got the message "hello" printed on the console but its not forwarding the page to showmessage.jsp ! if i do the same in the submit action of a button it works fine. Could someone tell me how to make it work ?

Thanks,
Rajeev.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi rajeev ,

I am also facing similar problem . The method which you have written is not working because the method u have called gets invoked in the render response phase. One can change the view only before the render response phase
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

check this thread
[ March 30, 2006: Message edited by: Rajeev Ravindran ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!