Servlets and JSP online chat next Tuesday, the 22nd.

2000-02-18 Thread Eduardo Pelegri-Llopart

Danny, Cara and myself will be hosting an online chat this next Tuesday,
February 22nd at 11am PST.

The URL to the chat is:

http://developer.java.sun.com/developer/community/chat/

If you misplace this, look for a link at the bottom of the top JSP and
Servlet pages.

- eduard/o

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



You already got writer

2000-02-18 Thread Minsoo Kang

i converted download servlet to jsp, and... exception occurred -"You
already got writer."
here is my jsp code..

%@ page errorPage="error.jsp" %
%
String file = request.getParameter("p_file");

byte b[] = new byte[1024];

File file=new File(pp_file);

FileInputStream fin=new FileInputStream(file);

response.setContentType("application/octet-stream");
response.setHeader("Content-Disposition","attachment;filename=" +
pp_file + ";");
ServletOutputStream dataOut = response.getOutputStream(); // maybe, this
line caused problem.

int numRead = fin.read(b);
while (numRead != -1)
{
dataOut.write(b,0,numRead);
numRead=fin.read(b);
}
dataOut.close();
%

so i tried to use out instead dataOut ..like this..

response.setContentType("application/octet-stream");
response.setHeader("Content-Disposition","attachment;filename=" +
pp_file + ";");

int numRead = fin.read(b);
while (numRead != -1)
{
out.write(b,0,numRead);
numRead=fin.read(b);
}

at this time, content of file just displayed on browser..

how can i solve these problems ? anybody knows ?

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: JSWDK DOESN'T START

2000-02-18 Thread Camille Bell

Ritesh,

Your error message does look like a classpath problem, but there are a
couple of other things you need to make sure you have done that aren't
mentioned in the readme. You said you were a newbee and some of these
things can shot a newbee in the foot. Anyway, they all shot me.

I assume that you have read the readme, so that you started the JSWDK up
with startserver or startserver.bat depending on whether you were on UNIX
or Windows. If you are on a Windows machine and didn't get the "Out of
Environment Space" error message, then the initial environment is OK. If
not look at the read me and follow it's directions for MS-DOS window
configuration.

One of the things the readme assumes and doesn't mention is that you must
be connected to the net for startserver or startserver.bat to work properly
(the real point is that you need an IP address). You probably are since you
didn't mention the error messages that you would have gotten. However,
again assuming Windows, 95 and 98 do not automatically come net connected.
NT may or may not, depending on how it's set up. Given that you are using
JSWDK, which isn't something one would use in a commercial environment, you
are probably connected to the net through your ISP, probably through a dial
up. Anyway you need to connect somehow, especially if your IP address is
dynamically assigned (because that's how you get your IP address). This is
true even though you are only using "localhost" and theoretically aren't
going anywhere outside your own machine. A net connection with the IP needs
to be established when you do startserver or it doesn't know how to find
localhost, because it doesn't know it's IP.

Now assuming that you've gotten this far, one more shoot your self in the
foot possibility which is assumed and isn't documented is that your browser
must be configured to accept cookies. That is the default for both Internet
Explorer and Netscape, but both allow you to "Disable all cookies", which
you may have done. To allow cookies, in Netscape click on Preferences under
the Edit pull down and then negotiate to the Advanced section. If you want
to watch how cookies are used under the covers by JSWDK (and most servers
for that matter) click on the radio button for "Warn me before accepting a
cookie), otherwise click on the radio button  for "Accept only cookies from
the originating server". I don't have IE in front of me at the moment, but
the process is similar (I think it uses Options instead of Preferences, but
look around on the pull-downs and sub-menus and you should find it). Do NOT
click on "Accept all cookies" for security reasons.

hope this helps,

Camille

Ritesh Sinha wrote:

 Thanks for your replies. But i have checked class paths. The locations of
 the webserver.jar, tools.jar, rt.jat etc are correctly specified. I guess
 the problem is due to Initialization on the DefaultServlet as the command
 prompt window shows. The startup file is not able to initialize the
 DefaultServlet.
 So the problem still persists and i will be grateful for any further help.
 Ritesh

 "Ugaas, Ahmed" [EMAIL PROTECTED] on 02/15/2000 12:10:58 AM

 To:   Sinha Ritesh-SWD-ITIL-UB/Itilmail, [EMAIL PROTECTED]
 cc:

 Subject:  RE: JSWDK DOESN'T START

 Set your classpath properly. read the readme file which comes with JSWK

 -Original Message-
 From: Ritesh Sinha [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 14, 2000 7:50 AM
 To: [EMAIL PROTECTED]
 Subject: JSWDK DOESN'T START

 HI All,
 I am facing this peculiar problem. After Installing JSWDK on one of the
 machines I am not able to browse the URL http://localhost:8080/  to see the
 default readme.
 It shpows following error:
 

 Error: 500
 Internal Servlet Error:

 java.lang.NoSuchMethodError: javax.servlet.ServletContext: method
 getResource(Ljava/lang/String;)Ljava/net/URL; not found
  at com.sun.web.core.DefaultServlet.doGet(DefaultServlet.java:54)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
  at
 com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:155)
  at com.sun.web.core.Context.handleRequest(Context.java:414)
  at
 com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:139)
 --

 I am a newcomer to JAVA as well as JSP and JSWDK. So may be I am doing
 something silly .
 Please help,
 Thanks for your time,
 Ritesh

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 JSP-INTEREST".
 FAQs on JSP can be found at:
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
 FAQs on JSP can be found at:
  http://java.sun.com/products/jsp/faq.html
  

Re: JAKARTA: which release to choose?

2000-02-18 Thread Ted Stockwell

We "upgraded" to 3.1 from a pre-3.0 nightly build and experienced problems
with sessions expiring almost immediately instead of expiring after the
default of 30 minutes.
We reverted back to v3.0 and everything was fine once again.

ted stockwell

 -Original Message-
 From: Joachim Peer [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, February 16, 2000 11:40 AM
 To:   [EMAIL PROTECTED]
 Subject:  JAKARTA: which release to choose?

 Hi everybody,

 currently we are using apache and jserv for linux, but to use the new
 Servlet/JSP-API we want to switch to Jakarta (which seems to be the only
 implementation of Servlet API2.2 and JSP 1.1)

 well, at the jakarta page there are three offerings:
 Tomcat 3.0 release (is said to be the most stable version)
 Tomcat 3.1 milestone (is said to be not very stable)
 (Tomcat 3.1 nightly build - all right, this one seems not to meet our
 needs..:)

 but the following quotation from the web-page
 http://jakarta.apache.org/news/news.html is confusing: "As compared to the
 3.0 final release, this drop contains a significant number of fixes from a
 large number of contributors, as well as a few minor functional
 regressions
 which are a necessary part of some of the architectural restructuring
 underway."

 do the "significant number of fixes" outweight the "functional
 regressions"
 or not?

 Has anyone a hint?
 Who has experience with Tomcat 3 / 3.1?
 Or do there exist some linux ports supporting Servlet API 2.1+ / JSP 1.1
 which we should consider?

 thanks a lot,
 Joe Peer
 ---
 [EMAIL PROTECTED]

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 JSP-INTEREST".
 FAQs on JSP can be found at:
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



GNUjsp

2000-02-18 Thread Mohan Radhakrishnan

Hi,
   http://www.bestiary.com/moose/jsp/install.html

 Check this URL mentioned in the installation file of the GNUJsp.jar file.

   This is what I did for several hours  before I was successful.

   1. I put the jsp files in the apache root directory.

   2. I specified a directory for the java files to be compiled into with
the compiler.classpath option.
"compiler.classpath" Not "classes"
servlet.jsp.initArgs=compiler.classpath=c:\java ( I ensured that
there are no spaces in this path )

   3. I set wrapper.bin=c:\jdk1.2.2\bin\java.exe ( for the
interpreter)

   4. I set wrapper.classpath=c:\jdk1.2.2\lib\tools.jar ( for the javac
compiler)

   5. I set the alias as in servlet.jsp.code=org.gjt.jsp.JSPServlet

   6. I used this url to invoke the jsp.
http://localhost/servlet/org.gjt.jsp.JSPServlet/snoop.jsp

   7. It took some time to figure out that I can invoke the GNUJsp servlet
like any other servlet with "snoop.jsp"


  I am still not sure if this helpful or not as I spent many hours doing
this. There is a good article at www.servletcentral.com
  on working with GNUJsp . You have to search for it somehow as I don't
remember the url.

bye,
Mohan

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



jsp:beans

2000-02-18 Thread uwe schaefer

hi

simple (i hope so) newbie question:
how to -cleanly- invoke bean-methods other than getXX / setXX without
using % mybean.action() %
there must be a jsp: - tag for this, right ?

MfG Uwe Schaefer
__
Email: [EMAIL PROTECTED]

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



How to show a document from a jsp

2000-02-18 Thread Pablo J.

Hello, I have the following problem, I need to open a word document in a
new window of the browser when a link is clicked. I vahe used a portion
of javascript code like this in my jsp.
script languaje="javascript"
location="c:\prueba.doc"
/script
It works with internet Explorer but it does not work with Netscape
Navigator.

Thanks

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Info about Java Server Pages

2000-02-18 Thread Sateesh Kumar .K

Hi,
I have heard than the JSP page is actually converted into a servlet
for the first time and then it is compiled and run. Can we view the
servlet code(in any servlet engine).

Sateesh

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Initialising Variables in JSP

2000-02-18 Thread Subu

Could you help me out with a simple way to get a variable initialised in a
jsp to a value ??(similar to the servlet initialization parameters defined
in properties file).

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Servlet on JWS2.0

2000-02-18 Thread Dharmendra Yadav


Config : Web server: JWS2.0 on Win NT 4.0

Tool :  JDeveloper 3.0 on Windows NT Client

hi guys ,
 I have just  created a database servlet using wizard and deployed
on JWS 2.0
Although I get the servlet running but whenever I press execute query it
gives me

[ Not Found (404)

The file that you requested could not be found on this server. If you
provided the URL, please check to ensure that it is correct. If you followed
a hypermedia link,
please notify the administrator of that server of this error.
]
   what could be the problem. If my servlet is running then what it is
searching which I can't find
Need help  guys ,

thanks ,




-Original Message-
From: Matt Zagni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 17 February 2000 21:02
To: [EMAIL PROTECTED]
Subject: Re: Error 406 with new MIME-type


Hi Jean-Louis,

Sorry I cant offer any help on this but I have the same problem,
on Nokia-WAP-Toolkit/1.3beta If you or anyone finds out what the
problem is and has a fix please mail the reply to me too.

Regards

Matt


 Date: Wed, 16 Feb 2000 00:28:20 -0800
 From: Jean-Louis Rosset [EMAIL PROTECTED]
 Subject: Error 406 with new MIME-type
 To: [EMAIL PROTECTED]

 Hi,

 Here is what I do:

 I use WAP Gateway which perform access from a WAP Phone to internet, via
Java Web Server
2.0.

 To do this, I have added this MIME-types to JWS:
 .wml   text/vnd.wap.wml
 .wbmp  image/vnd.wap.wbmp
 .wmlc  application/vnd.wap.wmlc
 .wmls  text/vnd.wap.wmlscript
 .wmlsc application/vnd.wap.wmlscriptc

 I have also added a servlet which is dedicated to send wml contents.

 But, my problem is that:
 When WAP Gateway is connecting to JWS, and try to send a request to my
servlet, JWS send
506.html in response.
 And, of course, my servlet is never loaded.

 Request of WAP Gateway:
 ===
 Request target = http://localhost:8080/servlet/myServlet
 HEADER_LIST
 Accept-Charset: UTF-8, ISO-8859-1, ISO-10646-UCS-2
 Accept: application/vnd.wap.wmlc, application/vnd.wap.wmlscriptc,
image/vnd.wap.wbmp,
image/gif,text/vnd.wap.wmlscript,text/html,text/plain,text/vnd.wap.wml
 User-Agent: Nokia-WAP-Toolkit/1.3beta
 Via: Nokia WAP Server 1.0 (build 1472)
 X-Network-Info: UDP,127.0.0.1,security=0
 Accept-Encoding:

 Response of JWS 2.0:
 
 Server: JavaWebServer/2.0
 Content-Type: text/html
 Content-Length: 
 Connection: close
 Date: Tue, 15 Feb 2000 14:29:00 GMT
 CONTENT=506.html file

 Can anybody explain how avoid this error?

 Thank you
 Jean-Louis


===
 To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
 of the message "signoff JSERV-INTEREST".  For general help, send email to
 [EMAIL PROTECTED] and include in the body of the message "help".
 For more information about JWS visit
http://www.sun.com/software/jwebserver/

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSERV-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
For more information about JWS visit http://www.sun.com/software/jwebserver/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



weblogic license

2000-02-18 Thread Joshua Rudin

We have weblogic 4.0.3 running on 2 production servers and all the
developers PCs.  Is there a way to extend the development license to 20 or
30 (or more) instead of the default 3?

And we can't afford a license for every developer

Thanks,

Josh
__
Get Your Private, Free Email at http://www.hotmail.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: Run JSP on MS Personal Web Server?

2000-02-18 Thread Scott Stirling

See the FAQ at the bottom of this email.  Lots of servlet engines run on PWS
and Win NT.

Scott Stirling
West Newton, MA

- Original Message -
From: "Joey Fisher" [EMAIL PROTECTED]

 I am running MS Personal Web Server on Windows NT 4.0. What do I need to
 serve JSP files?

 Thanks,

 Joey Fisher


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
 FAQs on JSP can be found at:
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: Tomcat-as-a-reference implementation?

2000-02-18 Thread Ted Neward

Well, ideally (IMHO) the reference implementation would come from the group
doing the standard, but given Sun's position as both standards body *and*
vendor in this, I guess that's impossible.

Ted Neward
Java Instructor, DevelopMentor ( http://www.develop.com )
http://www.javageeks.com/~tneward
-Original Message-
From: Ronald van Kuijk [EMAIL PROTECTED]
To: Scott Ferguson [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED] [EMAIL PROTECTED]; Ted Neward
[EMAIL PROTECTED]
Date: Tuesday, February 15, 2000 7:44 AM
Subject: Re: Tomcat-as-a-reference implementation?


But what about the watchdog part
(http://jakarta.apache.org/watchdog/index.html) of
Tomcat then? I think it is better to develop a reference platform
independently of
one vendor. Sun, IBM and others are involved in Tomcat/Watchdog.

Ronald

Scott Ferguson wrote:

 Ted Neward wrote:

   Does anybody else have a problem with a "production-quality" servlet
  engine also serving as the reference implementation for servlets
  and/or JSP? I have always operated under the belief that a "reference
  implementation" was supposed to be plain-vanilla, no optimizations,
  stick-to-the-letter-of-the-spec,
  if-it-ain't-in-the-spec-it-ain't-in-here kind of implementation. JSWDK
  was precisely this--it demonstrated servlets simply, cleanly (IMHO),
  without a lot of bells-n-whistles to get in the way. My concern is
  that Sun's stated intent (by calling it a reference implementation) is
  at cross-purposes with Apache's stated intent (to make it a
  production-quality engine). These are, for the most part,
  mutually-exclusive goals.

 vendor-bias
 Tomcat isn't really a reference implementation.  It's the Apache group's
 servlet implementation.  Sun has chosen, for its own reasons, to select
 the Apache group as its preferred servlet vendor.  Calling Tomcat a
 "reference implementation" is just marketing fluff.

 Orion is a better reference implementation than Tomcat in the sense of
 "if my implementation doesn't do the same thing, then it's probably
 wrong."  Orion implements the specs more faithfully than Tomcat does.

 Unfortunately, this diminishes Sun's credibility as an impartial
 standards arbiter, but that's Sun's choice.  Microsoft doesn't even
 pretend to be impartial with its ASP standard, and it's rather
 successful, so maybe it's not a bad decision.
 /vendor-bias

 Scott Ferguson
 Caucho Technology


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
 FAQs on JSP can be found at:
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



OFFTOPIC: how to connect to internet by Dialup in java

2000-02-18 Thread Manisha Kalinkar

Hi All,

First of all sorry for asking offtopic question.
I am working on a java application in that my application go to a particular
website and fetch some information in background, My application keep on
fetching the information every hour.
If any user is connected through internet by dailup and he/she get
disconnected then my application should be able to connect through internet
by automatically dailing the modem.
Please tell me where can i get help for this or if i can get code releated
with this.
Any help is appretiated.
Thanks in Advance.
Manisha

__
Get Your Private, Free Email at http://www.hotmail.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Help!!!

2000-02-18 Thread OG Project(Chennai)

Hi All,

How do I display (say) 100 records from the database in the same JSP page
while restricting the nos. of displayed datas  to 20 at a time on the page.
Something like a search page where you get hundreds of matches and displays
20 at a time and with links for the rest.

Regards
Subendu

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: Tomcat-as-a-reference implementation?

2000-02-18 Thread Ronald van Kuijk

But what about the watchdog part (http://jakarta.apache.org/watchdog/index.html) of
Tomcat then? I think it is better to develop a reference platform independently of
one vendor. Sun, IBM and others are involved in Tomcat/Watchdog.

Ronald

Scott Ferguson wrote:

 Ted Neward wrote:

   Does anybody else have a problem with a "production-quality" servlet
  engine also serving as the reference implementation for servlets
  and/or JSP? I have always operated under the belief that a "reference
  implementation" was supposed to be plain-vanilla, no optimizations,
  stick-to-the-letter-of-the-spec,
  if-it-ain't-in-the-spec-it-ain't-in-here kind of implementation. JSWDK
  was precisely this--it demonstrated servlets simply, cleanly (IMHO),
  without a lot of bells-n-whistles to get in the way. My concern is
  that Sun's stated intent (by calling it a reference implementation) is
  at cross-purposes with Apache's stated intent (to make it a
  production-quality engine). These are, for the most part,
  mutually-exclusive goals.

 vendor-bias
 Tomcat isn't really a reference implementation.  It's the Apache group's
 servlet implementation.  Sun has chosen, for its own reasons, to select
 the Apache group as its preferred servlet vendor.  Calling Tomcat a
 "reference implementation" is just marketing fluff.

 Orion is a better reference implementation than Tomcat in the sense of
 "if my implementation doesn't do the same thing, then it's probably
 wrong."  Orion implements the specs more faithfully than Tomcat does.

 Unfortunately, this diminishes Sun's credibility as an impartial
 standards arbiter, but that's Sun's choice.  Microsoft doesn't even
 pretend to be impartial with its ASP standard, and it's rather
 successful, so maybe it's not a bad decision.
 /vendor-bias

 Scott Ferguson
 Caucho Technology

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
 FAQs on JSP can be found at:
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Servlets scope

2000-02-18 Thread Veronique Dupierris

Hello,

Just a little question to be sure.I have a servlet which is call by
few jsp file, (a sort of controller). Some variables (say A) are
initializes in the init proc and other (say B) in the doPost. Does this
mean, that the A variable have an application scope, if session 1 set A
to a value, session 2 will see this value ? (that's what i have) and of
course variables B are initialized on each request, so no special
surprise !
The problem, is that I want to keep a trace on what the user is
doing (ask resource, modify, free...) maybe could I save all variables
in session and reload them on each request to 'follow' the user !

Thanks for your help.
Veronique

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



ISP's that support JSP

2000-02-18 Thread Jeff Gronberg

Does anyone know of any ISP's/ASP's that support JSP/Servlets on a hosted
solution?  And if so, what databases (if any) are available/t at the
facility.  I'm looking to avoid colocation for the time being.  Thanks.

Jeff Gronberg

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Converting Existing Servlet Code to JSP/Bean

2000-02-18 Thread Ram Anantha

Hi,

I have a bunch of servlets which essentially do the following (usually in
the doPost method)
- parse the input parameters
- based on the values of the parameters, get appropriate data from the
database
- output the html along with the database data back to the browser

I would like to use JSP to do the above.

What's the best way to do it? If I have to convert this into a bean, how can
I do it?

Thanks for the help.

Ram

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



about Allaire Homesite4.5

2000-02-18 Thread Chad Pitt

Dear All,

Is anyone using Allaire HomeSite 4.5a for authoring
jsp?  i have a slight problem. When 2 documents are
open, i 'd like to know how to split them into 2
windows so that i can have a look at 2 at the same
timei couldn't figure out how to do this at all.
not sure if Allaire provides this simple function.

thanx
Chad

Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



POST method from servlets/jsp

2000-02-18 Thread Gacesa, Petar

Hi,

I am using Apache+Tomcat.  How do I need to configure Apache to accept the
POST method throught the site from all the servlets and JSPs?  The post is
running fine from the Java webserver+Tomcat on port 8080.

Thanks in advance,

Petar

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: ip address

2000-02-18 Thread John Parrish

%= request.getRemoteAddr() %

Regards

- John

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Netscape won't execute javascript contained in JSP

2000-02-18 Thread Albert Wong

Hi

I'm trying to display a jsp file in Netscape.  The JSP generates an html
file with embedded javascript.  I'm finding that Netscape (4.51) ignores
javascript for web pages with any extension except htm and html.

Are there ways around this problem?

Thanks
Albert

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Good servlet/JSP engine for NT/IIS

2000-02-18 Thread John Holland

-BEGIN PGP SIGNED MESSAGE-

I develop apps on a NT box (UNIX not likely for this anytime soon) and
have been adding servlets to the mix of technologies. I've been using
JRun. We are installing a new machine to take the place of the old one and
I thought this might be a good time to consider what is the right servlet
engine to use.

I have been using the no-license JRun so there is no investment in that.

is Java 1.2 functionality stable for servlets?

What about Jikes and kaffe etc?

Any info would be appreciated.


John Holland
- ---

Email:   [EMAIL PROTECTED]
Web: http://jbhsoft.linuxbox.com
Public key : http://jbhsoft.linuxbox.com/pubkey.html


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQEVAwUBOKsJf//E/y+wEOb5AQFMuwgAwGzP7+cWFtV1hp/uAl/GFy3QkS8H6jlV
3zMxac87cMo91bZ8zjTgd8hvQAl4PIoGvHeDbyK+NlVRtEM09z3fHksHpGsj/ouh
boWGqT/Rm3hz2vbCfQ71A342fxk171JzkvCYRGqAS5lLKpd/49+2iEuKv3WnB0eK
PF+SFOjlXElHdJFZCUV7orb78JJVDd4Cptk7miuci5f5hWqGqt0HzA3UrEYR2R1l
tYrtTTzT/9xu2kJazmidb1pvQGswXCjogrFDsSM7gTwuNHcmMQGoVTIZRQ5yteNw
PXR6WZJ1Wj40w2FGlqBZwujrnPMu7DtCDrBvB96NYfTHFMp143Ig8A==
=WF78
-END PGP SIGNATURE-

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



JSP 1.0 and forwarding to a servlet

2000-02-18 Thread Fred Tucci

Hi Gang...

I'm sorry if this ends up being posted to the list twice. I sent this
out to the list this morning but for some reason it did not make it out
so I'm posting it again..

Anyhow I am trying to convert the following .091 JSP to a 1.0 JSP:

HTML
SERVLET CODE="com.zat.sales.servlet.InitializationServlet"
PARAM NAME="Page" VALUE="FirstPage"

/SERVLET
/HTML

I've played with the forward tags and they work but I just don't know
how to pass a PARM to the servlet via the forward tags. Is there another
solution for converting the above JSP to a 1.0 JSP?

Thanks!

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: JRUN idiosyncrasies!

2000-02-18 Thread Scott Stirling

First of all, no one here probably cares.  Allaire does, though.  Why don't
you submit the bug to them?

Second, the "comment" below is not valid JSP code (assuming Java is the
scripting language).  Perhaps it's not showing up correctly in my email
client.  What I see is a scriptlet, not a comment:

%

Hello how are you"

%

If you wanted a hidden JSP comment, you would type:

%--

Hello how are you"

--%

Scott Stirling
West Newton, MA

- Original Message -
From: "Khurram Mahmood (OutlookLotus Notes)" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 14, 2000 2:16 AM
Subject: JRUN idiosyncrasies!


 Hello,

 For some very odd reason, JRUN fails to display a jsp page if you have a
 double quote after a comment within your java code. For example:

 %

 file://Hello how are you"

 %

 the above line will confuse JRUN so much that you will get a message
saying
 that the page can not be displayed. There is nothing wrong with the above
 line. It's another really annoying bug in JRUN. It took me several hours
to
 find it. Who would think that a proper comment can screw up JRUN.

 Thanks,

 KM
 Software Engineer-- CRM
 PeopleSoft Corp.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: SQL Server driver

2000-02-18 Thread Simon Lee

There is a new PooledConnection interfaced added in JDBC 2.0 API.  However,
one must use a DataSource object rather than the DriverManager class to get
a connection.  Furthermore, any DataSource object(which might supports
connection pooling) should register with a JNDI service provider.

- Original Message -
From: Fernando Ribeiro [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 16, 2000 6:39 AM
Subject: Re: SQL Server driver


 I am quite sure connection pooling has been already implemented as part
 of the JDBC API. That a look at the documentation or a reference book,
 just like Java Enterprise in a Nutshell, from OReilly.

 fribeiro

 alex amies wrote:
 
  Try the Free tds type 4 driver:
 
  http://www.freetds.org/
 
  Alex Amies
 
  -Original Message-
  From:   Felip Miralles [SMTP:[EMAIL PROTECTED]]
  Sent:   Tuesday, February 15, 2000 9:20 AM
  To: [EMAIL PROTECTED]
  Subject:Re: SQL Server driver
 
  Well, not wanting to use the jdbc-odbc bridge, I'm also interested on
that.
  Moreover, anybody knows what's the status of JDBC 2, which was supposed
to
  implement connection pooling?
 
  Daniel Ronnqvist wrote:
 
   Hello,
   I am in desperate need of a JDBC driver for SQL server 6.5
  
Please help me!
Daniel Ronnqvist
  
  
===
   To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
   FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
 
 
===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
  FAQs on JSP can be found at:
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html
 
 
===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
  FAQs on JSP can be found at:
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
 FAQs on JSP can be found at:
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



ip address

2000-02-18 Thread Simon Jakesch

hi,

i wondered if there is a way to get the ip address of a remote sending an
request to the jsp? shouldn't be a big deal? just need a quick tip no examples
or something

thanks guys,
bye,
simon

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: JSP Architectural Question

2000-02-18 Thread Eric M. Andersen

Craig,
What would you do if the page in question could be viewed by anybody,
logged in or not, but certain parts of the display need to be hidden for
those who are not logged in (full functionality not available to guest
users, only to registered users). Would you wrap this if-else statement
around every single piece of the conditionally displaying code?

-Eric

murali vivekanandan wrote:

 Great inputs by Mr. McClanahan and other in this thread.

 In our application we have one servlet for each form and in addition to
the
 action class with validated parameters, it validates the session. For ex.
to
 access his account, the user should have logged in first(which is stored
in
 the session). This is different for each form.

 Where and how do think we can do, if we follow your model for one
controller
 servlet?


What I do is build in a check in the doGet/doPost methods of the controller
servlet, and check for the existence of a particular object in the user's
session that is only put there by a successful login.  This object is
removed
when the user executes your logout function, and is essentially removed by
a
session timeout (since it won't be there the next time the user makes a
request
-- they'll have just started a new sessiion)  Then, the pseudo-code of
processing a request would be something like this:

Check for existence of the login-succeeded object
if (login object is there) {
Call the action class being requested
} else {
Display the login page
}

You'd need a special check that allowed the "process login" action to be
processed even if the user wasn't logged on.

In the "process login" action, after you are satisfied the user has been
authenticated, you add the appropriate login object to the user's session).
When they execute your logout function, just remove this object and
invalidate
the session.


 I am a newbie to architecture, so hope you dont mind if this is a up to
the
 par question.

 Thanks,
 Murali Vivekanandan.


Craig McClanahan


Eric M. Andersen
I/T Specialist
IBM Global Services
Tel: (781) 895-2637,   Fax : (781) 895-2843, t/line : 362-2637
Internet ID:  [EMAIL PROTECTED]
Lotus Notes ID: Eric M Andersen/Waltham/IBM

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: Sessions and IE 4.01

2000-02-18 Thread Eric M. Andersen

Is this true of all browsers?  I've observed within Netscape that the
session remains until either session.invalidate() is called or the
session expires.

Comments?

Chris

As has been discussed before, new windows in all versions of Netscape keep
the same session. IE is a different story - both IE 4 and 5 have a browser
setting (in Preferences or Internet Options) along the lines of "launch new
window in a separate process". The default setting for these browsers
should be OFF. If it happens to be set to ON, however, the new window will
not keep the old session.

I would advise against spawning new browser windows in general, for the
following reasons:

1. They are confusing for the user, at best. Most users I've seen don't
understand the concept of a "new browser window", and hence can't find a
way back to where they started. They become completely lost, and this is
known as a major Web site no-no.
2. Even for users who do understand the concept, the session issue that we
are discussing is still grounds for a user's confusion. In other words, if
a new browser window opens, does that mean that I'm "logged in" in the new
window but not the old, or vice versa, or both? Just because keeping the
same session across browser windows makes sense for us developers doesn't
necessarily means that it makes sense to users.
3. They are annoying. The real problem is that users may not know to hit
the little "x" in the upper right to close it. Once you open a new window
on the user's desktop, it will stay there forever...

There are cases where they MIGHT be useful. These are up for debate, as far
as I am concerned:

1. External links - a lot of sites do this to prevent users from leaving
their site.
2. A page that is much better for printing. For instance, a page with
printable maps and directions, or Web-based reports that the users need to
print.

Eric M. Andersen
I/T Specialist
IBM Global Services
Tel: (781) 895-2637,   Fax : (781) 895-2843, t/line : 362-2637
Internet ID:  [EMAIL PROTECTED]
Lotus Notes ID: Eric M Andersen/Waltham/IBM



-Original Message-
From: mattkrevs
Sent: Tuesday, February 15, 2000 8:56 PM
To: mattkrevs; JSP-INTEREST
Subject: Re: Sessions and IE 4.01


Yes. The session is sharead and remains until all browser windows for
an
application close.

-Original Message-
From: A mailing list about Java Server Pages specification and
reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Heske Chris
Sent: Wednesday, 16 February 2000 6:33
To: [EMAIL PROTECTED]
Subject: Sessions and IE 4.01


If you do a window.open() in javascript within IE, does the newly
opened window share the identical session of the window from which it
was opened?

Chris

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



UltraEdit JSP syntax library

2000-02-18 Thread Simon Jakesch

hi,

i'm currently using UltraEdit as a jsp tool it's very nice and flexible, i
created myown libraries (syntaxhighlight and taglib). if anyone uses it as
well and created some libs could he please send them to me, i want to have
alook on them as well to see if i can improve anything.

bye,
simon

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Servlet/JSP problems with WL 4.51

2000-02-18 Thread Shiv Kumar

Hi all

I have a set of Servlets and JSPs running on NewAtlanta's ServletExec
servlet engine. I am currently porting them to WebLogic. I am facing a
few problems. I do not want to change any of my HTML/JSP/Java files
immediately. I want the same files to work in WL as it is. Pl help.


  1. The servlets in ServletExec used to be invoked as
 http://host/servlet/servletName. But in weblogic they are  invoked
 as http://host/servletName. I tried registering the servlet names
 in weblogic.properties as

  weblogic.httpd.register.servlet/XServlet=com.foo.XServlet
  weblogic.httpd.initArgs.servlet/XServlet=param=value

 Now I can call this servlet as http://host/servlet/XServlet and so
 I dont have to change any html/JSP files. Will this cause any
 problems in the future?

  2. Since we used to run ServletExec on IIS, we created a virtual
 directory called /jsp in IIS under which we had all the html and
 JSP files. Our servlets will get the http requests, get data from
 database, put the results in session/request variables and dispatch
 it to appropriate JSP page. So, all our servlet code looks like
 this:

  RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher("/jsp/test.jsp");
  dispatcher.forward(request, response);

 How do I make this code work with WebLogic? Is there any way to
 create virtual directory and make it work like in IIS?

Thanks for any help.
--
shiv
[EMAIL PROTECTED]

__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Application Variables

2000-02-18 Thread Carl Olivier




OK,
dumb question I guess, actually two, but where does one set application like
variables in JSP (in ASP it is done in the global.asa - for IIS)
??

Also,
can one make an instance of a bean a session object?

Thanks
in advance

Carl Olivier
E-Developer
eye2eye
[EMAIL PROTECTED]




RI vs spec (was tomcat-as-a-reference implementation

2000-02-18 Thread Eduardo Pelegri-Llopart

Hi Craig, VInce, and everybody else:

The specification is the ultimate arbitrer.  The spec can be used by
vendors (platform and tools), documentation authors (books, etc), and
end-users.

Watchdog are compatibility tests.  They can be used by anybody,
including implementors.

If the RI (tomcat) violates the spec, it is a bug and it should be
fixed.  It is harder with features that are outside of the spec.
Neither the Servlet 2.2 nor JSP 1.1 are without holes and any RI,
regardless of how it is implemented or distributed, has to make some
decisions.  Maybe we should document them somewhere to address this
problem.  Let's talk.

Both Danny and I are working on an errata for Servlet 2.2 and JSP 1.1.
And we hope to close more holes and complete key functionality as part
of Servlet.next and JSP.next; I hope you will help us with that.

Hope this helps some,

- eduard/o

 Date:Wed, 16 Feb 2000 11:05:29 -0500
 From:"Stark, Scott (Exchange)" [EMAIL PROTECTED]
 Subject: Re: Tomcat-as-a-reference implementation?

 I agree with this logic from a vendors perspective. Conformance should be
 based on a well defined compatability test suite and any servlet engine
 vendor can measure themselves against. Does such a test suite exist?

 -Original Message-
 From: Vince Bonfanti [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 16, 2000 9:26 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat-as-a-reference implementation?


 Yes, I'm concerned about this from the perspective of the vendor of a
 servlet/JSP engine that strives to faithfully implement the specs. My
 concern is that people will apply the following logic to non-spec features:

 1. Tomcat is the Reference Implementation of servlets/JSP.
 2. Tomcat implements Feature X.
 3. Vendor Y's servlet engine doesn't implement Feature X, or implements
 it differently than Tomcat.
 4. Therefore, Vendor Y's servlet engine isn't spec-compliant.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: Tomcat-as-a-reference implementation?

2000-02-18 Thread Geoff Soutter

"Scott Ferguson" [EMAIL PROTECTED] wrote:
 Ted Neward wrote:
   Does anybody else have a problem with a "production-quality" servlet
  engine also serving as the reference implementation for servlets
  and/or JSP? I have always operated under the belief that a "reference
  implementation" was supposed to be plain-vanilla, no optimizations,
  stick-to-the-letter-of-the-spec,
  if-it-ain't-in-the-spec-it-ain't-in-here kind of implementation. JSWDK
  was precisely this--it demonstrated servlets simply, cleanly (IMHO),
  without a lot of bells-n-whistles to get in the way. My concern is
  that Sun's stated intent (by calling it a reference implementation) is
  at cross-purposes with Apache's stated intent (to make it a
  production-quality engine). These are, for the most part,
  mutually-exclusive goals.

 vendor-bias
 Tomcat isn't really a reference implementation.  It's the Apache group's
 servlet implementation.  Sun has chosen, for its own reasons, to select
 the Apache group as its preferred servlet vendor.  Calling Tomcat a
 "reference implementation" is just marketing fluff.

 Orion is a better reference implementation than Tomcat in the sense of
 "if my implementation doesn't do the same thing, then it's probably
 wrong."  Orion implements the specs more faithfully than Tomcat does.

 Unfortunately, this diminishes Sun's credibility as an impartial
 standards arbiter, but that's Sun's choice.  Microsoft doesn't even
 pretend to be impartial with its ASP standard, and it's rather
 successful, so maybe it's not a bad decision.
 /vendor-bias

I think it's important to distinguish between the political and technical
here

I don't think theres any doubt that endorsing tomcat as a reference
implemention was at least a partially politically motivated decision - hence
the "marketing fluff"

However, from a techinical perpective, I believe that tomcat can/will
function as a good reference implementation. The reasons for this are:

1) tomcat comes with watchdog, the compatibility tests :-)
2) sun originally donated tomcat to apache, and many sun people are still
working on it
3) tomcat is/will be very configurable and thus most if not all of the bells
and whistles which ted found so disturbing are optional, unlike other
vendors implementations where (presumably) the bells and whistles are
mandatory. Thus, a minimal configuration of tomcat would have exactly the
feature set you'd want for a RI.

Of course, the current tomcat isn't there yet, but tomcat.next will
hopefully fit the bill.

Cheers

Geoff

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html