File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Refreshing a page before forwarding Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Refreshing a page before forwarding" Watch "Refreshing a page before forwarding" New topic
Author

Refreshing a page before forwarding

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 219
Hi all,

I want to refresh a jsp page before it is forwarded to another jsp page.

I have tried below codes.Nothing is working.
1.

2.


How can I do that?


Thanks in Advance,
Kousik
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

That doesn't make much sense. What are you really trying to accomplish?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 219
The thing that I am really trying to accomplish is described below :

1. I want to run a batch(.bat) file with some parameter using Runtime.getRuntime().exec command.
2. As soon as the above batch will be called the current page will be forwarded to another page.

Problem I am facing:-

i) When I am using the below code the batch is running but not in a separate process because after the Runtime.getRuntime
().exec is called untill the batch processing ends the page is NOT getting forwarded to another page.So it is taking longer time to forward to next page. I want it to be immediately forwarded to next page.


ii) Now If I run the below code removing the getErrorStream() snippet the batch is not getting called.


I am confused.
Please help.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Refreshing a page before forwarding
 
Similar Threads
Default Page, How?
Auto Refresh in Struts
Refreshing a jsp page
Browser won't refresh unless you hit F5 - how can I do this in code?
How to include timer in OnLine Examination