Contact Us
  
 
 
    SearchSearch   RegisterRegister   Log inLog in 

how to execute DOS command through java jsp

how to execute DOS command through java jsp

 
Post new topic   Reply to topic     Forum Index -> Java,Struts framework, Velocity, JSF, Hibernate, Servlet, JSP, javaBeans
View previous topic :: View next topic  
Author Message
juniormember



Joined: 28 Jun 2008
Posts: 154

PostPosted: Wed Oct 29, 2008 2:32 pm    Post subject: how to execute DOS command through java jsp Reply with quote

Hi

I have some application which is made in DOS. This Application is on server. I want to execute this "DOS" command through jsp or java through tomcat server. But i dont know how to run DOS command through java. Or what package i need to run this command in java. Can anybody help to give code to execute DOS command and get output in file by java servlet or jsp.
Back to top
View user's profile Send private message
seniormember
Site Admin


Joined: 20 Jul 2008
Posts: 77

PostPosted: Mon Nov 03, 2008 4:18 pm    Post subject: Reply with quote

Dos command can be executed by using java runtime classes. Search on more about runtime class and their example

I saw some good

http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html

about more detail
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Java,Struts framework, Velocity, JSF, Hibernate, Servlet, JSP, javaBeans All times are GMT
Page 1 of 1

 
Jump to:  
  Quick Post a Reply Topic
     
  Name (required)  
     
  Email Address (will not be published) (required)  
     
  Subject of topic (required)  
     
   
     
   
     
  Advertisement  
     
 
     


  More Links  
 
JSP Introduction
JSP Setup
Simple JSP Example
JSP Variable
Array Declaration in JSP
JSP Forms and User Input
Form Validation
JSP Cookies
JSP Session Object
Loop, content collection, iterator, conditional check in JSP
JSP Application Object
JSP Include
JSP Response Object
JSP Request Object
JSP Error Handling
JSP File Handling Object
JSP Action Tag
JSP Implicit Objects
JSP Declaration
JSP Directive
JDBC Introduction
JDBC Driver
JDBC Connection
JDBC Prepared/Statement
JDBC ResultSet
JDBC Close Connection object
JDBC Insert
JDBC Display Records
JDBC Update
JDBC Delete
JDBC Sorting
JDBC Query
JDBC Exception
JDBC Add Batch
JDBC Transaction/RollBack