How to execute java batch file in JSP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • byjufromgamut
    New Member
    • Feb 2008
    • 2

    #1

    How to execute java batch file in JSP

    I created a batch file, when executes gives a preview window(using swings & JFrame). I created another java fie in which used a Process object and Runtime.getRunt ime().exec(path ) , where path specifies the location of above batch file. when indepedantly executes i am able to execute the bath file through this second program.
    Now the problem is that i want to execute the batch file in my JSP where i have tried a lot to execute the batch file ,but nothing worked so far..no jsp erorr too..
    Can any one help me?very urgent....
    I am using Tomcat 5.5 and jdk1.5.08 where all path have set properly..
    Thanks in advance..
    Byjufromgamut
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Hey there good buddy!

    I would only suggest you post the code in question, especially in a state of emergency such as this. You're likely to get better support.

    Hope you found what you were after though...

    Dököll

    Comment

    Working...