aspose file tools*
The moose likes Linux / UNIX and the fly likes executing RCS commands for checkin and checkout from jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "executing RCS commands for checkin and checkout from jsp" Watch "executing RCS commands for checkin and checkout from jsp" New topic
Author

executing RCS commands for checkin and checkout from jsp

rinni dubey
Greenhorn

Joined: Sep 30, 2007
Posts: 2
Hi,

can anybody tell how to execute RCS check in commands (ci) ,from a jsp page
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8964
    
    9

You can execute a native command with either java.lang.Runtime or java.lang.ProcessBuilder.
You would do well to study the pitfalls of these commands.
You should also be aware that JSP's are intended for presentation logic, not what we call "business" or application logic. It is a Best Practice to separate your logic and presentation layers.


[How To Ask Questions On JavaRanch]
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11503
    
  95

The 3rd link in a Google search for "Java" and "cvs" shows jCVS, which may meet your requirements. Since they even have Servlets that provide much of your desired functionality built already, you may just have to work on some of your presentation layers.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: executing RCS commands for checkin and checkout from jsp