Re: How to call a servlet from a javascript function?

2000-07-26 Thread Teodor Cimpoesu

[OT]
Hi Anu!
On Wed, 26 Jul 2000, Anu Pidaparti wrote:

 Can anyone provide me an example of how to do this? I have seen the
 archives and learnt that this can be done but I didn't find an
 example. More specifically, I need to populate one listbox based on a
 selection in another listbox and I need to make trip to the server to
 get the data.
this is more a JS question.
you will need an aditional frame/layer/iframe to get the data from the server into it.
that would be something like:
var url='http://server.com/servlet?param=valso=on';
- new window : window.open(url,'win','other params');
- new location: frame.location.replace(url);

so on.

-- teodor

===
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: JavaScripts : Wanna disable viewing source of the page...

2000-06-29 Thread Teodor Cimpoesu

Hi Vivek!
On Fri, 30 Jun 2000, Vivek Vijapure wrote:

 Hey JavaGurus there,

 Can anybody tell me how to disable the mouse click, view source of
 the HTML page in Netscape and IE. I tried to use
 'document.captureEvents' but it doesn't fit to my purpose. Also the menu
 option 'view/Page Source' should be handled.

Sorry, but how does this relates to JSP?
To make it fit, let's say you will do a
Response.addHeader('Cache-control','no-cache, pre-check=0, post-check=0');
Response.addHeader('Pragma','no-cache');
*BUT*, I can do a netstat  sniffit, so the only safe way is not to serve it :)

-- teodor

===
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: Way to detect which browser

2000-06-25 Thread Teodor Cimpoesu

Hi Sven!
On Sun, 25 Jun 2000, Sven van 't Veer wrote:

 "Aggarwal, Pawan" wrote:
 
  Hi All,
 
  Is there any program which can detect what browser and what version is one
  using...
  so that to work out different javascript for them..
 
you can parse User-Agent request header and make a guess. A `browsecap'
file should be helpful.

-- teodor

===
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: call a servlet i javascript

2000-06-07 Thread Teodor Cimpoesu

Hi Atul!
On Wed, 07 Jun 2000, Atul Purushan wrote:

 hi all,
 can we call a servlet from a function using Javascript.
 thanx in advance.
 Atul.
If you are refering to a client side call, yes.
This is just a JS matter of opening a link, or posting a form
back to an URL on the server.
As this is off-topic I can send you a JS snippet is you like.
regards,
-- teodor

===
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/JAVA IDE

2000-05-18 Thread Teodor Cimpoesu

++ 17/05/00 19:14 -0400 - Frank Apap:
 Does anyone know a good jsp and java IDE for linux?  The only one I know of
 that does what I want is Borland's JBuilder 3.5.  But only the enterprise
 edition supports jsp and I don't have the money for it.  Any suggestions
 would be great thanks.
IBM's VisualAge for Java (free - in Linux App. Devel. Kit, a CD w/ lots
of stuff from IBM) works for me, though usually I use only 'Visual
Improved'  jikes :)

--teodor

===
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