Re: session and cookies

2000-04-13 Thread Raghuraman Sridharan
Hi! Do you store the password in crypted from in the database (or) as it is. Kindly enlighten me of security threats. Thanks and regards Raghuraman S -- From: Som Subhra Chakraborty [SMTP:[EMAIL PROTECTED]] Sent: Thursday, April 13, 2000 2:50 PM To: [E

Re: I want to find a good web site that have samples of JSP. Who can tell me?

2000-04-13 Thread liuhao
hi: there are some simple samples of jsp on the site where you registered you name in this mail list. - Original Message - From: ayin <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 14, 2000 2:27 PM Subject: I want to find a good web site that have samples of JSP. Who can t

I want to find a good web site that have samples of JSP. Who can tell me?

2000-04-13 Thread ayin
Hi , all I want to find a good web site that have samples of JSP. Who can tell me? ayin === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: h

[RE]How do I use RMI in JSP

2000-04-13 Thread ¹Ú¼º¼ö
I think that it is security manager in RMI. You have to setting up secutiry manager. In case of application, C:\>java -Djava.security.policy=java.policy ### java.policy grant { permission java.security.AllPermission; }; In case of applet, you don't warry. Because of that is alrea

How do I use RMI in JSP

2000-04-13 Thread ±èÁø¹Î
I am testing rmi in JSP. Jsp engine is jswk1-0. But I got Security error. How do I use RMI in JSP? ÇÑ ¹ø °¡ÀÔÇÏ¸é ¸ÞÀÏ + ȨÆäÀÌÁö + µ¿È£È¸¸¦ Æò»ý ¹«·á·Î ! Lycos Korea Inc. http://www.lycos.co.kr -

Re: JSP and IIS?

2000-04-13 Thread ernest wright
Prove it. At what cost. What is its compatibility, Windows, Unix etc. ? - Original Message - From: Kevin Duffey <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 13, 2000 8:21 PM Subject: Re: JSP and IIS? > Actually, Resin provides better performance. > > > >-Ori

Re: Request.getParameter

2000-04-13 Thread liuhao
> There are a few mistakes in your application : > - Do not use Request.getParameter("anvnamn") in declaration tag <%! %> > - You do not have to import "javax.servlet.ServletRequest" > - The real syntax is : String temp = > request.getParameter("anvnamn").toString(); > hi Burky: do you

Re: User Authentication

2000-04-13 Thread Vyacheslav Pedak
- Original Message - From: John Tangney <[EMAIL PROTECTED]> > > See Java Servlet API specification 2.2, you can download it from > > http://java.sun.com/products/servlet/2.2/ > > Thanks, but I *also* scoured the spec. What parts of the spec answer my > question? Section 11.5 Authenticati

Re: JSP and IIS?

2000-04-13 Thread Kevin Duffey
Actually, Resin provides better performance. >-Original Message- >From: A mailing list about Java Server Pages specification and reference >[mailto:[EMAIL PROTECTED]]On Behalf Of Vince Bonfanti >Sent: Thursday, April 13, 2000 5:38 PM >To: [EMAIL PROTECTED] >Subject: Re: JSP and IIS? > >

Re: JSP and IIS?

2000-04-13 Thread D. J. Hagberg
You may want to start with the links at the bottom of this email. In addition, there is a reasonably complete list of vendors at: Look for those that say they are an Add-on Engine. JRun and Resin are both reasonable alternatives, with

Re: JSP and IIS?

2000-04-13 Thread Vince Bonfanti
You should try ServletExec, which provides the best performance of any servlet/JSP engine for IIS: http://www.newatlanta.com/downloads.html Vince Bonfanti New Atlanta Communications, LLC > -Original Message- > From: A mailing list about Java Server Pages specification and refere

Re: [Recruiting] Enterprise Java developers required (from USA and AUS )

2000-04-13 Thread Kevin Duffey
Just a note...what you call CV is called Resume in the US. ;) I learned this on IRC the other day. Its basically the same deal I believe. >-Original Message- >From: A mailing list about Java Server Pages specification and reference >[mailto:[EMAIL PROTECTED]]On Behalf Of Drew Cox >Sent:

Re: JSP and IIS?

2000-04-13 Thread O'Connor, Daniel
zoxx, I use JRun on IIS. It is available from here -> http://www.allaire.com/ The demo download is fully functional, but will only allow 5 concurrent users. Regards Dan [EMAIL PROTECTED] > -- > From: zoxx[SMTP:[EMAIL PROTECTED]] > Reply To: A mailing list about Java Serve

Re: How to call a servlet from a JSP page ?

2000-04-13 Thread Shrisha Radhakrishna
Remove the .class from the URL this is the way to do it ... ... - Original Message - From: "Pamela Cotture" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 13, 2000 7:39 AM Subject: How to call a servlet from a JSP page ? > I'd like to call a servlet from a JSP p

Re: JSP and IIS?

2000-04-13 Thread Kevin Duffey
Hi, We use JRUN, but I would use Resin over JRUN. It supports JSP 1.1, Servlet 2.2, which JRUN doesn't, and it allows it to be a standalone server so you dont even need IIS. Then again, I would also look at Tomcat, and Orion app server (www.orionserver.com) as replacements for IIS, which tends t

[Recruiting] Enterprise Java developers required (from USA and AUS )

2000-04-13 Thread Drew Cox
First off, my apologies if you consider this type of message to be spam on these lists. If so, hit delete and move on. I thought it through and decided, that as a regular reader and contributor to these lists myself, I am not botherd by the odd, clearly indicated recruiting post. If helps t

Re: JSP no-cache problem on IE 5

2000-04-13 Thread He Huan
Matt, Amazing, it works Thanks, huan On Thu, 13 April 2000, Matt Krevs wrote: > > Cant remember where i read this but it works for me > > Apparently IE5 has a bit of a browser caching bug. > > If I have the following meta tag at the very bottom of my html it fixes my caching >problems.

Re: JSP equivalent of JHTML

2000-04-13 Thread Kevin Duffey
Hi, We currently employ the calls right now, and have been replacing them with calls. The /servlet/ is mapped to where your class package starts, but other than that, its pretty much the same. IF your using JSP 1.1, you can do the to include params like you can in the servlet. JSP 1.

JSP and IIS?

2000-04-13 Thread zoxx
Hi all, Does anybody know some plugin for IIS which enables JSP to run? Note that there is a lot of .asp on that IIS, and boss wants that both .asp and .jsp works on that IIS. Thanks in advance, zoxx P.S. I'm a newbee in JSP... Pozdrav, zoxx [EMAIL PROTECTED] =

Re: JSP equivalent of JHTML

2000-04-13 Thread Craig R. McClanahan
Rich Carreiro wrote: > I am dealing with some JHTML pages (stuff parsed with the Sun-provided > pageCompile > servlet that shipped with JWS 1.1 and is still in JWS 2.0 but deprecated) > that use > the tags to embed servlet output into a page. > > As far as I can tell from reading the JSP spec, t

Re: response.encodeURL not working

2000-04-13 Thread Arun Thomas
response.encodeURL does not encode in the manner that you suggest. (This is a rather confusing issue) response.encodeURL is responsible for rewriting the URL in order to add a parameter for identifying a particular session. java.net.URLEncoder.encode(String) is responsible for doing as you

Re: JSP no-cache problem on IE 5

2000-04-13 Thread Matt Krevs
Cant remember where i read this but it works for me Apparently IE5 has a bit of a browser caching bug. If I have the following meta tag at the very bottom of my html it fixes my caching problems. In the document I read it said that if the meta tag isnt at the very bottom of the page then it do

JSP equivalent of JHTML

2000-04-13 Thread Rich Carreiro
I am dealing with some JHTML pages (stuff parsed with the Sun-provided pageCompile servlet that shipped with JWS 1.1 and is still in JWS 2.0 but deprecated) that use the tags to embed servlet output into a page. As far as I can tell from reading the JSP spec, these tags are not part of JSP, nor

Re: JSP no-cache problem on IE 5

2000-04-13 Thread He Huan
Hi, Scott, Thanks for your reply, but I had ever tried the tag before, it doesn't work either. Based on the docs for IE 5, this tag is ignored over IE 4 & 5 without https connection. Thanks, Huan On Thu, 13 April 2000, Scott Smith wrote: > > you might try putting this in the area of your pa

Re: How to access environment variables such as "QUERY_STRING"?

2000-04-13 Thread Hans Bergsten
"Cogley, Jonathan" wrote: > > Hi, > > Anyone know how to access environment variables? > such as "QUERY_STRING" WITHOUT using request.getParameter,etc > > There is a method System.getenv() but it is deprecated ... > The error mentions using "use properties and -D instead" > but how do you achieve

Re: Model 2 and multi-page techniques

2000-04-13 Thread Kevin Duffey
Hi, I'll try responding. ;) >* Would multiple forms/pages require a different validation bean for each >page? (This assumes that you want to validate the user's input on a per >page basis, rather than, or in addition to, when he/she chooses the finish >option.) Actually, I prefer client-side va

Re: Heavy-weight context switch

2000-04-13 Thread Chris Wilson
i think what you want to use in jsp to do instance variables when the jsp is compiled into a servlet is <%! String myClassVar = "something" %> declarations put in scriptlets <% ... %> are not converted to instance variables. hope that helps. cheerio, chris chris wilson > web developer > andrew

Java Security

2000-04-13 Thread Pujari, Pradeep Kumar (GEA, 081970)
java.security.AccessControlException: access denied I am getting the above error, when I try to load the HelloSwingApplet page of the Java Tutorial: I am using NT4.0 and IE4. I am new to Swing and was rading the swing

Re: Model 2 and multi-page techniques

2000-04-13 Thread Mike LaBudde
I'm reposting this with a different subject heading, since I got zero responses from my first posting. I've seen so many messages from people that were replied to quite quickly, I guess I've come to expect the same. Hopefully the new subject line will prompt others to read/respond Thanks, Mik

Re: long to date?

2000-04-13 Thread Joseph B. Ottinger
On Thu, 13 Apr 2000, Rick Reumann wrote: > I'm trying to use file.lastModified() to get the last mod date of a file > and then print on the screen as a string. The problem is it looks > like lastModified() returns a long? Do I have to covert my long to a > string and then use SimpleDateFormater t

long to date?

2000-04-13 Thread Rick Reumann
I'm trying to use file.lastModified() to get the last mod date of a file and then print on the screen as a string. The problem is it looks like lastModified() returns a long? Do I have to covert my long to a string and then use SimpleDateFormater to format it how I want or is there a way to go rig

Re: cookies

2000-04-13 Thread Patricio Otamendi
This code sends a cookie to the browser: // Create de cookie Cookie cookieTest = new Cookie("MyName","MyValue"); // Sends de cookie response.addCookie(cookieTest); This code get a cookie from the browser: javax.servlet.http.Cookie cookies[]; cookies = request.getC

How to access environment variables such as "QUERY_STRING"?

2000-04-13 Thread Cogley, Jonathan
Hi, Anyone know how to access environment variables? such as "QUERY_STRING" WITHOUT using request.getParameter,etc There is a method System.getenv() but it is deprecated ... The error mentions using "use properties and -D instead" but how do you achieve this? Many thanks, Jonathan

Re: cookies

2000-04-13 Thread Sreenivasa Majji [TEMP]
You might some info on cookies at cookiecentral.com -Kumar |Content-Transfer-Encoding: 7bit |X-Priority: 3 |X-MSMail-Priority: Normal |X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 |Subject: cookies |To: [EMAIL PROTECTED] | |hello every body | |Can any body give me information how to

cookies

2000-04-13 Thread Mr. Srinivas Rao
hello every body Can any body give me information how to acess cookies from jsp. kindly give me some info on this. thanks your faithfully, srinivas === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTERE

Re: JSP no-cache problem on IE 5

2000-04-13 Thread Scott Smith
you might try putting this in the area of your page: hth, scott At 11:21 AM 4/13/00 -0700, you wrote: >Hello, > >Currently I am developing some JSPs and want the pages not to be cached >on IE 5 browser. According to the docs in IE 5, I put these three lines in my JSP >code, but it doesn't wo

JSP no-cache problem on IE 5

2000-04-13 Thread He Huan
Hello, Currently I am developing some JSPs and want the pages not to be cached on IE 5 browser. According to the docs in IE 5, I put these three lines in my JSP code, but it doesn't work at all. Just wonder who knows what the problem is ? My java web server is Apache + JRun. <% response.setHeade

Re: Use of implicit variables in custom tags?

2000-04-13 Thread Hans Bergsten
Adolf Liepelt wrote: > > Hi all, > > I want to use the reference of a bean declared by .../> in my custom tag. Does anybody know how to get this reference with > the correct type? The action places a reference to the bean in the specified scope, or the page scope by default, using the name spec

Re: using jsp-scope request in a servlet

2000-04-13 Thread Hans Bergsten
Monsieur Lapin wrote: > > I want to create a bean in a jsp page with scope=request > The request is, however not sent to another jsp page but to a servlet. > > How can I access this bean in the servlet? > > I know I can work around by making scope=session, but then I have to do the > cleanup etc.

Re: compatible java version

2000-04-13 Thread Hans Bergsten
Neil Harrison wrote: > > Hi everyone. > > I'm going to be using JSP scriplets within Netscape Communicator 4.7 - does > anyone know if there are compatibility issues with using > JDK v1.1.8_10? > > I've had problems before when limited to Netscape 4.04 with a later version > of the JDK. If anyone

redirect slow on netscape?

2000-04-13 Thread Tom Gordon
In a jsp page, I want to redirect the user to the next page, after a form submit using POST. I am using response.sendRedirect(newURL). This works fine in Internet Explorer 5, but in Navigator 4.7.2, it takes about 20 seconds or so before the browser goes to the next page. Has anyone encountered

Re: User Authentication

2000-04-13 Thread Craig McClanahan
>On 4/12/00 7:13 PM, Vyacheslav Pedak at [EMAIL PROTECTED] wrote: > >>> I'm looking for some code (or guidance) for performing user authentication >>> in JSP. The JSP spec makes some vague comment about being an extension of >>> the servlet spec, but what does that mean? What do I need to do to >>

Re: User Authentication

2000-04-13 Thread Mike McKechnie
One method I've used fairly successfully is to let the webserver do the authentication -- this allows your site to be added to other sites and rely on their authentication. All I do is turn on the built-in auth for the web server, and it takes care of sending a WWW-Authenticate header to users wh

Re: User Authentication

2000-04-13 Thread D. J. Hagberg
John Tangney wrote: > On 4/12/00 7:13 PM, Vyacheslav Pedak at [EMAIL PROTECTED] wrote: > > See Java Servlet API specification 2.2, you can download it from > > http://java.sun.com/products/servlet/2.2/ > > Thanks, but I *also* scoured the spec. What parts of the spec answer my > question? I don't

Re: Request.getParameter

2000-04-13 Thread Lance Lavandowska
request.getParameter() returns a String, so the toString() call is unnecessary. It is also dangerous as request.getParameter("var") may return NULL if "var" was not a form element in the submitted form, or if it was an unchecked Checkbox or Radiobutton. from http://java.sun.com/products/servlet/2

Re: Request.getParameter

2000-04-13 Thread Burky Stéphane
There are a few mistakes in your application : - Do not use Request.getParameter("anvnamn") in declaration tag <%! %> - You do not have to import "javax.servlet.ServletRequest" - The real syntax is : String temp = request.getParameter("anvnamn").toString(); Fred >- Original Messa

Re: about scpritlet

2000-04-13 Thread Shannon Moschetti
Actually, as far as I know, if you submit the form, the username textfield is not null, but an empty string. You should test for null and for an empty string. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of

Re: User Authentication

2000-04-13 Thread John Tangney
On 4/12/00 7:13 PM, Vyacheslav Pedak at [EMAIL PROTECTED] wrote: >> I'm looking for some code (or guidance) for performing user authentication >> in JSP. The JSP spec makes some vague comment about being an extension of >> the servlet spec, but what does that mean? What do I need to do to >> auth

Re: How to call a servlet from a JSP page ?

2000-04-13 Thread Ferro, Tim
Looks like you're missing the closing bracket for your anchor tag - try this: http://127.0.0.1:7001/servletclasses/myServlet.class"> > href="http://127.0.0.1:7001/servletclasses/myServlet.class" g border=0 > height=14 hspace=8 src="/pics/buttons/submit.gif"> >

Re: How to call a servlet from a JSP page ?

2000-04-13 Thread Fratila, Johnny
You can try and make your image a submit button. -Original Message- From: Pamela Cotture [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 13, 2000 9:40 AM To: [EMAIL PROTECTED] Subject: How to call a servlet from a JSP page ? I'd like to call a servlet from a JSP page when I cl

Re: How to call a servlet from a JSP page ?

2000-04-13 Thread Scott Smith
i think you need to remove the .class from your href At 04:39 PM 4/13/00 +0200, you wrote: >I'd like to call a servlet from a JSP page when I click on an image that >represents my submit button. > >I've tested the following code in my jsp page but I got an 404-Error : > >http://127.0.0.1:7001/ser

Re: response.encodeURL not working

2000-04-13 Thread Donald E. Vandenbeld
I think you have to encode the parameters that you intend to tack on. That means substituting +'s for spaces: <% String link="cuba2.jsp?Name=Khoo+Swee+Chin";%> <%=link%> Donald - Original Message - From: "Khoo Swee Chin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, Apri

How to call a servlet from a JSP page ?

2000-04-13 Thread Pamela Cotture
I'd like to call a servlet from a JSP page when I click on an image that represents my submit button. I've tested the following code in my jsp page but I got an 404-Error : http://127.0.0.1:7001/servletclasses/myServlet.class" Anyone can help me ? Thanks Pamela mailto:[EMAIL PROTECTED]

Re: Connection Pool

2000-04-13 Thread Chun, Byung (GEAE, Elano)
Hi Sanjay, you can avoid the problem by using the double-checked locking pattern (Schmidt-Harris) as follows: public static ConnectionPoolAsSingelton getInstance() { // check for null singleton if(instance==null) { // obtain

compatible java version

2000-04-13 Thread Neil Harrison
Hi everyone. I'm going to be using JSP scriplets within Netscape Communicator 4.7 - does anyone know if there are compatibility issues with using JDK v1.1.8_10? I've had problems before when limited to Netscape 4.04 with a later version of the JDK. If anyone has a list of compatible versions/br

Re: Connection Pool

2000-04-13 Thread Radhakrishnan, Sanjay (c)
Hi Thomas, I have 2 questions, 1. the protected instance in the Singleton class should be static right? and Im sure thats what you meant. 2. Also shouldn't you make both the get and put methods thread safe. You've mentioned that only the Put method should be thread safe.

Request.getParameter

2000-04-13 Thread Pablo Rito (ERA)
hi all, I have a problem with Request.getParameter() , i wrote <%! String namn=""; String temp=Request.getParameter("anvnamn"); %> I have also included the package like this <%@ page import = "javax.servlet.ServletRequest" contentType="text/vnd.wap.wml" % But i still don't manage it work. -O

Use of implicit variables in custom tags?

2000-04-13 Thread Adolf Liepelt
Hi all, I want to use the reference of a bean declared by in my custom tag. Does anybody know how to get this reference with the correct type? -- Adolf Liepelt === To unsubscribe: mailto [EMAIL PROTECTED] with body: "sign

Re: Writing XML in JSP file

2000-04-13 Thread Kaseman, Mark T
Yes you can. The main requirement is to include something like the following <<< where the href points to your XML style sheet The style sheet contains all the HTML instead. -Original Message- From: Nishi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 12, 2000 11:54 PM To: [EMA

Re: Heavy-weight context switch

2000-04-13 Thread LynchWu
>Question: Is it possible to put variables, in JSP, outside of the per-request scope, such >what we can do the pooling also? > >Answer: Use scope="session" in the jsp tag Ex: > Maybe not. Session variables are very different from class variables in servlets. The former has a from-page-to-page scop

Re: JSP and Javascript

2000-04-13 Thread Som Subhra Chakraborty
why don't u try HTML meta tag for refresh after say, every 5 sec.? -- From: Cogley, Jonathan[SMTP:[EMAIL PROTECTED]] Reply To: A mailing list about Java Server Pages specification and reference Sent: Wednesday, April 12, 2000 5:38 PM To: [EMAIL PROTECTED] Subject:Re:

Re: session and cookies

2000-04-13 Thread Som Subhra Chakraborty
Hi, U can maintain a database of names & coresponding passwords. Everytime a user logs in, do something like, boolean ok = obj.getPassword(loginName,passwd,group); if (ok) //The method returns true if the name matches the passwd allow(); else donotAllow(); -- From: Nadeem[SMT

using jsp-scope request in a servlet

2000-04-13 Thread Monsieur Lapin
I want to create a bean in a jsp page with scope=request The request is, however not sent to another jsp page but to a servlet. How can I access this bean in the servlet? I know I can work around by making scope=session, but then I have to do the cleanup etc. Any help would be appreciated, Fr

Re: ASKING FOR HELP: Unhandled error!

2000-04-13 Thread Veronique Dupierris
Hi, wildwolf horse a écrit : > Hi Veronique Dupierris: > > thanks a lot for your help. > I just checked the it in Webserver.xml and I added it > like that > docBase="WebApp" /> > I tried your's but it seems not work too. Maybe I > should specify the path? Yes, you should specify your path i

No Subject

2000-04-13 Thread Veronique Dupierris
If you do not want to use the session object to store the date, a solution could be to get the data in A.jsp and then set them in the src as request param to get them in b.jsp : b.jsp?param=val Or you could also, group all yout data in a bean and only save the bean in the session to be ab

Re: Heavy-weight context switch

2000-04-13 Thread Som Subhra Chakraborty
Question: Is it possible to put variables, in JSP, outside of the per-request scope, such what we can do the pooling also? Answer: Use scope="session" in the jsp tag Ex: === To unsubscribe: mailto [EMAIL PROTECTED] with bo

JSP FAQ & Resource Information

2000-04-13 Thread Anil K. Vijendran
This is a weekly informative posting to the jsp-interest list. Before asking questions of a general nature, please check out the resources available online to see if your question already has an answer. The best place to start