How to protect file from download in JSP?

2002-09-04 Thread Edward King
I have a JSP file and I deploy it with Apache Tomcat.For example,test.jsp is follows: <%@page contentType="text/html> <%@page language="java" %> test http://192.168.39.143:8080/test/system.js";> µç×Ó½ÚÄ¿Ö¸ÄÏϵͳ When user visit this test.jsp,he may view this JSP

Re: JSP Apostrophe in JDBC

2002-09-04 Thread Benoit Jodoin
Try replacing your single quote with 2 single quotes..works just fine for me with sqlserver. Regards Ben At 01:12 AM 9/5/2002 -0400, you wrote: >[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer] Line 1: Incorrect >syntax near 's'. > >- Original Message - >From: "Benoit Jodoin" <[EM

Re: JSP Apostrophe in JDBC

2002-09-04 Thread Joseph Ottinger
The answer, of course, is to avoid the use of apostrophes. Alternately, you can write a set of utility functions to parse and modify every field to cater to the whims of whatever database you're working with. This should be fun, as most DBs need to modify apostrophes, but some need to modify doub

Re: Worm Klez.E immunity

2002-09-04 Thread L-Soft list server at Sun Microsystems Inc. (1.8d)
> Klez.E is the most common world-wide spreading worm.It's very dangerous by Unknown command - "KLEZ.E". Try HELP. > corrupting your files. Unknown command - "CORRUPTING". Try HELP. > Because of its very smart stealth and anti-anti-virus technic,most common AV Unknown command - "BECAUSE". Try HE

Re: JSP Apostrophe in JDBC

2002-09-04 Thread techhead4life
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer] Line 1: Incorrect syntax near 's'. - Original Message - From: "Benoit Jodoin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 04, 2002 11:36 PM Subject: Re: JSP Apostrophe in JDBC > Can you give us your error

Re: JSP Apostrophe in JDBC

2002-09-04 Thread Benoit Jodoin
Can you give us your error msg plz?:) At 11:33 PM 9/4/2002 -0400, you wrote: >I am getting an error when updating some input text records using a form > >When I enter an Apostrophe in the text fields and send to the jsp page >which update the record in the db, it causes an error on the sql jdbc c

Re: newbie question

2002-09-04 Thread Kesavanarayanan, Ramesh (Cognizant)
No I get these messages in the error messages. ??Ramesh Kesavanarayanan ?[EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 7:09 AM To: [EMAIL PROTECTED] Subject: Re: newbie question Hi, When you entered the

Re: JSP Apostrophe in JDBC

2002-09-04 Thread techhead4life
I am getting an error when updating some input text records using a form When I enter an Apostrophe in the text fields and send to the jsp page which update the record in the db, it causes an error on the sql jdbc call. How do you treat Apostrophe in jsp, esp when sql is involved ? ===

Re: newbie question

2002-09-04 Thread 강동혁
Hi, When you entered the site, was a window asking userid and password popped up? so, how about using java.net.Authenticator class? - Original Message - From: "Kesavanarayanan, Ramesh (Cognizant)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 04, 2002

Re: Topic creator that allows you to create a topic

2002-09-04 Thread L-Soft list server at Sun Microsystems Inc. (1.8d)
> Content-Type: application/octet-stream; Unknown command - "CONTENT-TYPE:". Try HELP. > name=cluster.html Unknown command - "NAME=CLUSTER.HTML". Try HELP. > Content-Transfer-Encoding: base64 Unknown command - "CONTENT-TRANSFER-ENCODING:". Try HELP. > Content-ID: Unknown command - "CONTENT-ID:

Re: page directive

2002-09-04 Thread Martin Gainty
MSN Photos is the easiest way to share and print your photos: Click Here === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST"

Re: page directive

2002-09-04 Thread Bhiogade, Mittal S (SUPP)
INHERITANCE use class A extends B all the functions in Class "B" would be available in Class "A" Regards, Mittal S.Bhiogade GE-Supply, Corporate Drive, 6th Floor, Shelton, CT, -Original Message- From: Lai, Kenny [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 3:44 PM To

Re: page directive

2002-09-04 Thread Shawn Bayern
On Wed, 4 Sep 2002, Lai, Kenny wrote: > hey does anyone know the pure java equivilent of > > <%@ include file="/somefile.html" %>? There isn't a pure-Java equivalent. This is a translation-time directive that instructs the JSP translator to read and include, in place, another file; this file is

page directive

2002-09-04 Thread Lai, Kenny
hey does anyone know the pure java equivilent of <%@ include file="/somefile.html" %>? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-

need help

2002-09-04 Thread [Qing LI]
Hello, all, I am beginer and I have signed up. Who can tell me why I don't receive email from mailinglist and how I need to do. Please send email to my email address: [EMAIL PROTECTED] I can not get message from mailinglist. Thanks in advance. --Qing ===

Re: How to do authentication in java against NT domain?

2002-09-04 Thread Bhangale, Bhushan
What about the password and domain name? I have an application where user gives Domain name/Username and password. I want to authenticate this information against NT domain. The System.getProperties().getProperty("user.name"); gives information abou the user name who logged in into machine. But o

Re: How to do authentication in java against NT domain?

2002-09-04 Thread Joe Brennan
This code will the OS user of the JVM System.getProperties().getProperty("user.name"); In most cases I'd say this will be the same as the Logged-In User on an NT / Windows 2000 Machine. I did a Test and it correctly returned my UserName. Joe -Original Message- From: Bhangale, Bhushan [m

How to do authentication in java against NT domain?

2002-09-04 Thread Bhangale, Bhushan
Hi All, I want to authenticate a person userid and password against NT domain. How to go about it? "The information in this e-mail, and any attachment therein, is confidential and for use by the addressee only. If you are not the intended recipient, please return the e-mail to the sender and de

How to do authentication in java against NT domain?

2002-09-04 Thread Bhangale, Bhushan
Hi All, I want to authenticate a person userid and password against NT domain. How to go about it? Thanks & Regards Bhushan Bhangale Sr. Software Engineer Fusion Infotech India Private Ltd. Ph. no. - 1-212-641-6932 (O) "The information in this e-mail, and any attachment therein, is confidenti

Re: Exceptin occurred when using JSTL in Weblogic 7.0

2002-09-04 Thread Shawn Bayern
It's hard to know for sure because I don't have a copy of Weblogic, but it looks as if this is a bug in Weblogic's construction of the XML view. The SAXParseException is most likely coming from JSTL's TagLibraryValidator class, which needs the XML view in order to validate the page. If this view

Re: How to pass a JS variable to JSP method ?

2002-09-04 Thread Shawn Bayern
On Wed, 4 Sep 2002, Chetan K.R wrote: > Hi all, > > I need to pass the value of a JS variable to a JSP method > > The JSP is enclosed inside tag > > The value returned by JSP is used for some purpose in JS > > Any idea how to do it ? There is no direct interface between JSP and JavaScript. The

Re: need some idea

2002-09-04 Thread Shawn Bayern
On Wed, 4 Sep 2002, randie ursal wrote: > do you know where i can look to find out the SSL session-timeout > setting on IE? > could i configure this setting? Okay, I looked into it a little more closely, and the story appears to be this: Internet Explorer 5.5 SP2 and Internet Explorer

Re: off topic:HTML encoding

2002-09-04 Thread Emmanuel Eze
thanks -Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 1:30 PM To: [EMAIL PROTECTED] Subject: Re: off topic:HTML encoding > -Original Message- > From: Emmanuel Eze [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 04,

Re: Values not updated

2002-09-04 Thread Dayanand
Hi, I understand that you are trying to retrieve records from DB and have a page where users can insert/update records. Based on the above understading... Your method of generating new id in the client end is very serious ! The DB integrity is lost ! What if there is more than one user accessin

Re: Toolkit... getDefaultToolkit()...HEADACHE

2002-09-04 Thread Adrian Janssen
imports are r4esolved at compile time... so while it may compile (because the class path is correct at compile time) it may not run (because the class path is NOT correct at run time), so it sounds like Hugo (below) is on the right track... > -Original Message- > From: Hugo Pragt [SMTP:[E

Re: newbie question

2002-09-04 Thread Hugo Pragt
http://username:[EMAIL PROTECTED] may work depends if the receiving site actually uses these values. Hugo - Original Message - From: "Kesavanarayanan, Ramesh (Cognizant)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 04, 2002 12:11 PM Subject: newbie question

Re: off topic:HTML encoding

2002-09-04 Thread Vikramjit Singh
> -Original Message- > From: Emmanuel Eze [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 04, 2002 3:41 AM > To: [EMAIL PROTECTED] > Subject: off topic:HTML encoding > > > Hi All, > > In my JSP I dynamically generate a hyperlink say: > 'vstatus.jsp?rand=wAnIVSMoAAA9dcu49TPn=Q&code=

off topic:HTML encoding

2002-09-04 Thread Emmanuel Eze
Hi All, In my JSP I dynamically generate a hyperlink say: 'vstatus.jsp?rand=wAnIVSMoAAA9dcu49TPn=Q&code=TRAN&staffno=92012&trancode=T& T&rid=2002-09-04' Pls note that the parameter trancode has T&T as its value. How can I encode the url so that my JSP page cannot see T as a separate parameter.

newbie question

2002-09-04 Thread Kesavanarayanan, Ramesh (Cognizant)
Hi all, I create a URL object and URLConnection objects. But when I opent he connection, the site presented in URL object asks me for userid and password. Is there any way I can give the user name and password also while creating the URL object??/ Regards RameshKesavanarayanan [EMAIL PROTECTED]

Values not updated

2002-09-04 Thread VTR Ravi Kumar
Hi, I have a jsp page which retrieves some data from database and the users updates or inserts in that table. When the user clicks create new an id is generated which is the next maximum number the user has his values stored against it. If the user again wants to create another new entry then

Exceptin occurred when using JSTL in Weblogic 7.0

2002-09-04 Thread Donghyeok Kang
Hi... I am trying JSTL in BEA Weblogic 7.0 server. Whenever I declared the tag library in a JSP page like "<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>", an exception occurred. The exception is java.io.IOException: javax.servlet.jsp.JspException: The taglib validator rejected th

Remove from the list

2002-09-04 Thread rajesh b. sachula
Please remove my address from the list === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servl

Re: Toolkit... getDefaultToolkit()...HEADACHE

2002-09-04 Thread Hugo Pragt
Hmmm, I had a problem which sounds like this one a while ago. >From what I remember from it, you actually have different classloaders for the webserver and the programs actually running in the web container. These classloaders can and will have different settings (for instance classpath...) But si