This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes jsp control problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp control problem" Watch "jsp control problem" New topic
Author

jsp control problem

chindanoor aravind
Greenhorn

Joined: May 06, 2008
Posts: 2
In our project we are Calling java class from a JSP page through Shellscript.Every thing is working fine. but the problem is getting the control back... our requirement is when user clicks process button in JSP we are calling one shellscript and code in shell script calling java class.(ie classname ).But once the user clicks on process button we need to call the Shell script and control should come back to the JSP ....but currently we are receving control after processing of java file....

Please let me know how to get control back to my JSP (immediate call of Shellscript and java program should run in background)

Thanks in advance
Aravind
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

To do this you would need to spawn a new thread to call your script.

By the way, why are you using shell scripts to call Java programs from a JSP?
Why not integrate your Java program with the web app?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
chindanoor aravind
Greenhorn

Joined: May 06, 2008
Posts: 2
Thanks Ben... Defenetly i will try....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jsp control problem
 
Similar Threads
Returning exit code to calling shell script
Java JSP Design Issue
Making oneway calls.
ProcessBuilder and Process
Who called java class