File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

onInit() and redirect

 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • 0
  • 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.
 
sachin mor
Greenhorn
Posts: 1
  • 0
  • 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
  • 0
  • 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