capturing standard out

2000-07-28 Thread Chris Probert

JSP list,

Could anyone help me? I am attempting to run a java class (which
has a main method) from within a jsp page, and display the
output, which is being sent to System.out.println. Is this
possible, I feel that it should be, but my attempts have all
fallen flat.
If this is not simple to do with jsp, could anyone advise a
better way to run a java class and capture the output in a
browser? I have tried perl but can't seem to get hold of the
output.

TIA


Chris Probert
[EMAIL PROTECTED]

Electronic Trade Services
St. Alkmunds House
103 Belper Road
Derby
DE1 3ER

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: DSN-less JDBC connection

2000-06-29 Thread Chris Probert

Yes, in ADO/ASP I could build up a connection string with the
full database psth, which driver to use, password to use, etc.
and pass this to the call which opened aconnection to the
databaes. This way I could run the code on any NT server without
having to set up a DSN.

> What are you asking is do-able ??? Are you trying to access the database without
> the DSN ???
>
> Thanks,
>
> Pedro
>
> Chris Probert wrote:
>
> > Hello all,
> >
> > I am currently converting an asp app. into jsp. The app. needs
> > to talk to an Access database and I have managed to do this fine
> > through JDBC using a machine DSN. In the asp (ADO) version I
> > was able to get away without the DSN by specifying a connection
> > string. Does anybody know whether this is do-able through the
> > JDBC Access driver? I haven't been able to find any mention of
> > it in the resources that I have found.
> >
> > TIA
> >
> > Chris Probert
> > [EMAIL PROTECTED]
> >
> > Electronic Trade Services
> > St. Alkmunds House
> > 103 Belper Road
> > Derby
> > DE1 3ER
> >
> > ===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
Chris Probert
[EMAIL PROTECTED]

Electronic Trade Services
St. Alkmunds House
103 Belper Road
Derby
DE1 3ER

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



DSN-less JDBC connection

2000-06-29 Thread Chris Probert

Hello all,

I am currently converting an asp app. into jsp. The app. needs
to talk to an Access database and I have managed to do this fine
through JDBC using a machine DSN. In the asp (ADO) version I
was able to get away without the DSN by specifying a connection
string. Does anybody know whether this is do-able through the
JDBC Access driver? I haven't been able to find any mention of
it in the resources that I have found.

TIA



Chris Probert
[EMAIL PROTECTED]

Electronic Trade Services
St. Alkmunds House
103 Belper Road
Derby
DE1 3ER

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Dynamic HREF parameter values?

2000-06-27 Thread Chris Probert

Try pointing the HREF to a JavaScript function specified in a
 block at the top of the page, you should then be able
to access the value of the radio button using the DOM and use
this to append to a URL stream. Then set the self.location
parameter to this URL. This certainly works in IE, but I'm not
sure about Netscape.


> From:  "Hines, Bill" <[EMAIL PROTECTED]>
> To:[EMAIL PROTECTED]
> Subject:   Dynamic HREF parameter values?

> A co-worker has a JSP page that has some  pages. Now, on one of these links, he must pass a parameter that is the
> value of a selected radion button on this same page as the link. I know he
> can do that by turning the hyperlinks into submit buttons and making the
> whole thing a form, but there are many of these links and it would be ugly.
> How can he include the value of a selected radio button on a page as a
> parameter to this HREF target? I never had to tackle that one before and I'm
> not real familiar with JavaScript and the DOM but I think it might be an
> answer somehow.
>
> Thanks in advance..
>
Chris Probert
[EMAIL PROTECTED]

Electronic Trade Services
St. Alkmunds House
103 Belper Road
Derby
DE1 3ER

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP and Beans location

2000-06-21 Thread Chris Probert

This is a combination of the classpath variables in the
startserver file (.bat if windows) and the webserver.xml file in
the same directory. Add the path to your beans or jars in the
former, and the details of your website (location/alias/etc.) in
the latter. It is quite well documented.

From: Asri Ismail <[EMAIL PROTECTED]>

> how do I know where to put the jsp pages and beans  and servlet classes into
> which directory ?
>
> I'm using JDK1.3 and JSWDK
>
> thanks
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
Chris Probert
[EMAIL PROTECTED]

Electronic Trade Services
St. Alkmunds House
103 Belper Road
Derby
DE1 3ER

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



jswdk & linux

2000-06-20 Thread Chris Probert

Hello,

I have successfully been using the jswdk jsp server on my win98
machine for quite a while and want to move some of my code over
onto our (red hat) linux box. However, after insallation of
jswdk (and a few hiccups) the startsever setup file is not
running properly and is coming up with the following error:

java.lang.NoClassDefFoundError:
java/rmi/server/UnicastRemoteObject

I assume this means that some system variables or paths are not
set correctly, has anyone got any experience of this sort of
problem.

TIA
Chris Probert
[EMAIL PROTECTED]

Electronic Trade Services
St. Alkmunds House
103 Belper Road
Derby
DE1 3ER

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Question on browser caching

2000-06-20 Thread Chris Probert

Hello,

I agree, but I have found, with certain setups, that:

response.setDateHeader ("Expires", -1);

actually seems to work whereas:

response.setDateHeader ("Expires", 0);

Does not.

> Date:  Tue, 20 Jun 2000 10:32:29 +0100
> Reply-to:  A mailing list about Java Server Pages specification and
>reference <[EMAIL PROTECTED]>
> From:  Warrell Harries <[EMAIL PROTECTED]>
> To:[EMAIL PROTECTED]
> Subject:   Re: Question on browser caching

> I got this tip off the jguru.com jsp faq
> Put this code as the first lines in your jsp
>
> <%
> response.setHeader("Cache-Control","no-store"); //HTTP 1.1
> response.setHeader("Pragma","no-cache"); //HTTP 1.0
> response.setDateHeader ("Expires", 0); //prevents caching at the proxy
> server
> %>
>
> -Original Message-
> From: Rajesh Nagarjunan [mailto:[EMAIL PROTECTED]]
> Sent: 06 June 2000 10:20
> To: [EMAIL PROTECTED]
> Subject: Question on browser caching
>
>
> Hi,
>
> Can someone please help me out with the browser caching issue where in I
> have a JSP with some java servlet code embedded in it.
> Is there any browser setting along with code that will fix the problem
> of caching the pages...
> I did have a look at the archive of mails relating to the jsp-interest
> group... but nothing worked out (depressing).
> Any help in view of this issue will be greatly appreciated.
>
> Thanks in advance
>
> Cheers
> Raj
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
Chris Probert
[EMAIL PROTECTED]

Electronic Trade Services
St. Alkmunds House
103 Belper Road
Derby
DE1 3ER

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets