that, my friend, is exactly what i am asking.
the thing is i know it can be done, because a friend of mine did before (using Runtime.exec() or something.
don't ask me about the friend plz :)
it is a very simple task too, only about 7 - 10 lines of code.
thanks for your feedback jstreich. basically along the same lines as i am approaching it. simple and to the point.
i find that one of the biggest problems is there is no help or books or articles (at least i couldn't any) on interpreting markup languages (as opposed to regular languages such as...
hello again.
i had a feeling JNDI is wasn't what i needed. let me try and explain what i want a bit clearer. i know how to use JDBC with databases, odbc, etc.
now, to setup a datasource you have to go to control panel -> administrative tools -> data sources (odbc).
then u would click on "Add"...
i want to make a file parser and interpreter for a markup language such as HTML, CFML (more like CFML).
i justed wanted to get your opinion on what the easiest way to go about this is and why???
for example you have a HTML file with the following content:
<HTML>
<!-- forget the head we...
thanks for the reply sedj
the only lines new to me are:
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/myPoolName");
Connection c = ds.getConnection();
maybe it's because i've never user JNDI. would you be so kind as to give me a brief introduction...
hi all,
this is my first post as i have just joined the tek-tips community. long time reader though, love the site.
i want to set up a data source from within a servlet. the servlet will take in the two variables.
these will be the path to the database and the datasource name.
then another...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.