With JDK1.1, security manager should be the constraining factor to invoke
external programs through servlets. But with JDK1.2 it should be possible.
Security is more configurable in JDK 1.2 . As we all know browser's sandbox
is composed of Class loader + Security manager + byte code verifier. Is
servlet sandbox security model also similar. I think only Class loader part
is implemented differently, and rest is same.
Somebody can add more to this topic.
-mukul
At 12:58 PM 7/16/99 +0500, Mukul Gandhi wrote:
>Is it really possible to invoke external programs through servlets ? I
>think SecurityManager won't allow this..
>
>-mukul
>
>At 01:45 PM 7/16/99 +0800, TaNiA wrote:
>>Hi,
>>
>>Could someone help me please?
>>
>>I have a Servlet which builds a form with has 4 checkboxes. A user may
>>select 1-4 checkboxes. For each of the selected checkboxes, the servlet
>>should run a perl script. How should I write my servlet such that I will be
>>able to run 4 perl scripts simulataneously if a user selects all 4
>>checkboxes?
>>
>>Many thanks in advance...
>>cheers...
>>Tania
>>
>>********Pseudocode**************
>>
>>public class ExampleServlet extends HttpServlet
>>{
>> public void doPost(HttpServletResponse response, HttpServletRequest
>>request)
>> {
>> // CBone, CBtwo, CBthree and CBfour are the four CheckBoxes...
>> String CBone = request.getParameter("CBone");
>> String CBtwo = request.getParameter("CBtwo");
>> String CBthree = request.getParameter("CBthree");
>> String CBfour = request.getParameter("CBfour");
>>
>> // pseudocode
>> for all the checkboxes which are not null, run a corresponding
>> Perl script...
>> // QUESTION: how do I run 4 processes at teh same time?
>>
>> }
>>}
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html