Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!

Harish Kumar

Greenhorn
+ Follow
since Jun 26, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Harish Kumar

Hi everyone,
I am having a problem when I am trying to execute the shell script from my JSP file.
my code:
<%
Runtime r = Runtime.getRuntime();
Process p = null;
String cmd[] = {"/bin/sh", "-c" , "/root/cfserver.sh"};
p=r.exec(cmd);
InputStreamReader isr = new InputStreamReader(p.getInputStream());
BufferedReader br = new BufferedReader(isr);
String line = null;
while ((line=br.readLine())!=null)
{ out.println(line); }
p.waitFor();
%>
there is no error shown its calmly navigating to next page without executing the "cfserver.sh" file. The case is something like once the user logs in the site a server should automatically start. Please let me know what is wrong with the code i mentioned above and also if you have anyother ways to go on with this.
URGENT!!!
thank you,
Harish.
15 years ago
JSP
Hi Vivek,
Thanks a lot for ur response.
I think now I got a nice picture of what is to be used and when it is to be used.
I will surely contact this forum when I have any doubt. I am very happy to get a response in here.
once again thanks,
Harish.
15 years ago
JSP
Hi,
THanks Amir. The thing which you gave me is working. I want to know the way to set the cookies and call them in each and every page user browses throu'
Can anybody please tell me the way to implement cookies in JSP.
Thank you,
Harish.
15 years ago
JSP
Hi vivek and all,
Thanks for your reply. but i want to know the way of programming.
I logged into rediffmail. I got the inbox page. I copied the URL of that page and logged out from that.
I opened a new IE and pasted the URL in address bar. I got the page of invalid session. I want to make the same sort of thing in my project tooo.
How can i go with it? i am new to programming. Any help in coding is appreciated.
THank you,
Harish.
15 years ago
JSP
Hi everyone,
I want to know how to use the session tracking in my JSP pages. I am presently using hidden fields with which i am able track a user. But i want to stop others (who has no User ID) to copy the URL to the page and have an access over it.
Hope you understood my problem.
Any suggestion is appreciated.
Thank you,
Harish.
15 years ago
JSP