Win a copy of Spring in Action (5th edition) 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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!