Re: Can JSP run sys command lines?
Thanks... I ran a mkdir anson command in JSP...it works.but for some reason.it makes the directory in my root directory??...I mean..i thought JSP treats the main webapp dir ,say, /webapps/anson as its main dir How can I make it so it points to that directory? Anson - Original Message - From: Tim Funk <[EMAIL PROTECTED]> Date: Wednesday, October 15, 2003 10:32 pm Subject: Re: Can JSP run sys command lines? > > The restrictions are the same as launching any process from java. > Such as > - Relative vs absolute command line > - If relative - is the current working dir correct > - Is the user_id of the running process correct > - Environment variables carried to the child process > - If there is a secutiry manager - will it allow exec > - ... > > -Tim > > zeallousbigpond.net.au wrote: > > > Can JSP call system exec commands in linux?. > > > > Runtime.getRuntime().exec("pdflatex") > > > > does this work in JSP? ..fyi, pdflatex is installed in > another server.. > > > > so..when you run exec in tomcat...does it run and view those > commands/programs that exist ONLY in the tomcat directory? > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can JSP run sys command lines?
Can JSP call system exec commands in linux?. Runtime.getRuntime().exec("pdflatex") does this work in JSP? ..fyi, pdflatex is installed in another server.. so..when you run exec in tomcat...does it run and view those commands/programs that exist ONLY in the tomcat directory? Anson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP, taking a very long time running java classes..how come? really need help
Hi, I have a problem making use of java class files from JSP. Right now, I'm calling a java class where (inside the method) will generate a PDF file using Linux commands. But its taking ages for some reason. But I also made a testing java class that test if that particular function works. It works in 5 secs. Do anyone of you guys know what might be the reason? I mean ...in the mozilla bar...the "sending" is completed...but the "transferring" is taking such a long time...and I dunno if it actually reached that function. The class...obviously is in the classes folder. Regards, Anson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
include statement in servlets
How do you include a normal jsp or html page in a servlet?... in JSP...to include a page you do: <%@ include file="dfaf.jsp" %> is there a similar way for servlets?? Anson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing objects with any servlets, where the object is already pre-created
Hi guys! Is it possible to create a bunch of objects, put them aside, and Servlets can just access them any time without recreating those objects or having to pass them around?? say, Vector s = a very large vector of Strings that will appear in many servlets, but now I don't want to have to create them in each servlet, I want to have them pre-created somewhere, and servlets will go grab them when they need that Vector of Strings. Thanks! Anson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: method of implementing a 'login' section in a site
haha thanks...but..how do you do that? =P Anson - Original Message - From: "Filip Hanik" <[EMAIL PROTECTED]> Date: Tuesday, September 9, 2003 12:04 pm Subject: Re: method of implementing a 'login' section in a site > use the servlet specification way!! > > ie, protect your pages with entries in web.xml > then tomcat will log in the users for you > > Filip > - Original Message - > From: "zeallousbigpond.net.au" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Monday, September 08, 2003 7:00 PM > Subject: method of implementing a 'login' section in a site > > > hi, > >Thanks a lot for the email guys!! Another question I want to > ask. I > want to create a section of my site where I only allow users to > use IF > they have logged into my site. Either than using cookies to keep > track > if they have logged in or not, what method should I use to keep > track > of their status on each page? > > Anson > > - Original Message - > From: "Marco Tedone" <[EMAIL PROTECTED]> > Date: Tuesday, September 9, 2003 10:36 am > Subject: Re: EJB in tomcat > > > Well, Tomcat needs to 'colloquiate' with an application server > > (where EJBs > > are deployed). The answer is yes, it's possible; all your > > application needs > > to do is to establish a context with an application server and > > then it can > > use the component deployed on application server generally using > a > > lookup. > > Here follow a snippet from a code: > > > > InitialContext context = null; > > //getJbossContext() sets up the correct property file and > returns > > a context > > initialized to that property file > > context = getJbossContext(); > > Object node = context.lookup(sessionName); > > PeopleDbManagerHome home = > > (PeopleDbManagerHome)PortableRemoteObject.narrow(node, > > PeopleDbManagerHome.class); > > bean = home.create(); > > } catch (RemoteException e) { > > printRemoteExceptionMessage(); > > return null; > > } > > Hope it will help, > > > > Marco > > > > - Original Message - > > From: "zeallousbigpond.net.au" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, September 09, 2003 1:17 AM > > Subject: EJB in tomcat > > > > > > > hi, > > > > > > I would like to ask, can Tomcat work with Enterprise > > > Javabeans? 'cause I read from the Java site...it says that we > > need a > > > BEA server? Is it necessary? Or tomcat it self already has those > > > libraries. > > > > > > Anson > > > > > > > > > > > > --- > -- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: tomcat-user- > [EMAIL PROTECTED]> > > > > > > > > > > > - > -- > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --- > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --- > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
method of implementing a 'login' section in a site
hi, Thanks a lot for the email guys!! Another question I want to ask. I want to create a section of my site where I only allow users to use IF they have logged into my site. Either than using cookies to keep track if they have logged in or not, what method should I use to keep track of their status on each page? Anson - Original Message - From: "Marco Tedone" <[EMAIL PROTECTED]> Date: Tuesday, September 9, 2003 10:36 am Subject: Re: EJB in tomcat > Well, Tomcat needs to 'colloquiate' with an application server > (where EJBs > are deployed). The answer is yes, it's possible; all your > application needs > to do is to establish a context with an application server and > then it can > use the component deployed on application server generally using a > lookup. > Here follow a snippet from a code: > > InitialContext context = null; > //getJbossContext() sets up the correct property file and returns > a context > initialized to that property file > context = getJbossContext(); > Object node = context.lookup(sessionName); > PeopleDbManagerHome home = > (PeopleDbManagerHome)PortableRemoteObject.narrow(node, > PeopleDbManagerHome.class); > bean = home.create(); > } catch (RemoteException e) { > printRemoteExceptionMessage(); > return null; > } > Hope it will help, > > Marco > > - Original Message - > From: "zeallousbigpond.net.au" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, September 09, 2003 1:17 AM > Subject: EJB in tomcat > > > > hi, > > > > I would like to ask, can Tomcat work with Enterprise > > Javabeans? 'cause I read from the Java site...it says that we > need a > > BEA server? Is it necessary? Or tomcat it self already has those > > libraries. > > > > Anson > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --- > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
EJB in tomcat
hi, I would like to ask, can Tomcat work with Enterprise Javabeans? 'cause I read from the Java site...it says that we need a BEA server? Is it necessary? Or tomcat it self already has those libraries. Anson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]