Re: Bean-Managed Persistance - Initializing db connection pool

1999-12-03 Thread Suneet Shah

Evan,

What you are doing does not seem necessary depending on the server that you
are using.
Keep in mind that ejbs are of a transactional nature and do not really need
to use them to initialize a pool.  I am using the Weblogic server and it
comes with a pooling feature and I believe most servers do.

Some where in your servers configuration properties should be a setting to
create a pool. This is will be initialized upons startup.  Do create your
own solutions.  You can then use something like :

  Properties props = sessionContext.getEnvironment();
  String url = props.getProperty("url");
  return DriverManager.getConnection(url);

to get a connection.

Hope this helps.
Suneet Shah
Architect - Diamelle Technologies
http://www.diamelletechnologies.com
visit us at Pod 1019

-Original Message-
From: Evan Vaala [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Thursday, December 02, 1999 10:51 PM
Subject: Bean-Managed Persistance - Initializing db connection pool


Does this scenario sound ok?

I want to create an ejb that will provide the initialization and admin
routines
on a static db connection pool.

This ejb will have an initialization routine that will create the db
connection
pool and place it into the InitialContext.

Following startup of the ejb server, an admin routine would be run that
would
create/initialize this ejb that would then create the db connection pool
making
it available for other beans to access.

Does this sound ok?

If there is a standard to adhere to for initializing db connections, I
would be
interested in a URL that describes it.  I am aware of the jdbc objects for
"pooling" but what I want to know is the best way to initialize these in an
ejb
server.

Thanks!

Evan Vaala

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



No Subject

1999-12-03 Thread Makarand Pande
Title: 





Can any body tell me how to un-subscribe





Re: AW: Redirection to another page

1999-12-03 Thread Khurram Mahmood

I think both of us are right because servlet API2.1 does not support
relative URLs in redirect request but Servlet API 2.2 does and also
unequivocally. There is no mention, however, that this function was modified
in API2.2.

http://java.sun.com/products/servlet/2.2/javadoc/index.html

Thanks,

KM


-Original Message-
From: Govind Seshadri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 02, 1999 11:03 PM
To: Khurram Mahmood
Cc: [EMAIL PROTECTED]
Subject: Re: AW: Redirection to another page


The Servlet 2.1 API unequivocally states that relative URLs are not
permitted with response.sendRedirect(). See the following API link:
http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpServletR
esponse.html#sendRedirect(javax.servlet.http.String)

But you know what? You are right! It seems you can indeed use relative
URLs with sendRedirect(). I am now not sure whether this is a bug or an
unintended 'feature'...  :-

I have appropriately modified the FAQ entry. Thanks for pointing it out.

Govind

Khurram Mahmood wrote:

 I think jguru is wrong about this one. I have been using sendRedirect()
with
 relative URL's and it works fine.

 KM

 -Original Message-
 From: Govind Seshadri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 02, 1999 12:06 PM
 To: [EMAIL PROTECTED]
 Subject: Re: AW: Redirection to another page

 The response.sendRedirect() accepts only a fully qualified URL.
 For handling relative URLs see the following jGuru JSP FAQ entry:

 http://www.jguru.com/jguru/faq/view.jsp?EID=376

 hth,
 Govind

 "Bernard, Frank" wrote:
 
   Is it possible to write JSP code to redirect the browser to open a new
   page,
   say, page B from JSP code in page A?
  
  use:response.sendRedirect ( target_URL );
 
  Frank Bernard
  Healy Hudson AG
  CDT - Core Development Team
  67691 Hochspeyer, Nelkenstr. 43
  Tel.: 06305 / 92 11-804, Fax: 06305 / 92 11-60
 
 

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

 --
 Govind Seshadri [EMAIL PROTECTED]
 Enterprise Java Guru
 jGuru.com - The Java Portal
 http://www.jguru.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

--
Govind Seshadri [EMAIL PROTECTED]
Enterprise Java Guru
jGuru.com - The Java Portal
http://www.jguru.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: AW: Redirection to another page

1999-12-03 Thread Govind Seshadri

The Servlet 2.1 API unequivocally states that relative URLs are not
permitted with response.sendRedirect(). See the following API link:
http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpServletResponse.html#sendRedirect(javax.servlet.http.String)

But you know what? You are right! It seems you can indeed use relative
URLs with sendRedirect(). I am now not sure whether this is a bug or an
unintended 'feature'...  :-

I have appropriately modified the FAQ entry. Thanks for pointing it out.

Govind

Khurram Mahmood wrote:

 I think jguru is wrong about this one. I have been using sendRedirect() with
 relative URL's and it works fine.

 KM

 -Original Message-
 From: Govind Seshadri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 02, 1999 12:06 PM
 To: [EMAIL PROTECTED]
 Subject: Re: AW: Redirection to another page

 The response.sendRedirect() accepts only a fully qualified URL.
 For handling relative URLs see the following jGuru JSP FAQ entry:

 http://www.jguru.com/jguru/faq/view.jsp?EID=376

 hth,
 Govind

 "Bernard, Frank" wrote:
 
   Is it possible to write JSP code to redirect the browser to open a new
   page,
   say, page B from JSP code in page A?
  
  use:response.sendRedirect ( target_URL );
 
  Frank Bernard
  Healy Hudson AG
  CDT - Core Development Team
  67691 Hochspeyer, Nelkenstr. 43
  Tel.: 06305 / 92 11-804, Fax: 06305 / 92 11-60
 
 
 ===
  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

 --
 Govind Seshadri [EMAIL PROTECTED]
 Enterprise Java Guru
 jGuru.com - The Java Portal
 http://www.jguru.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

--
Govind Seshadri [EMAIL PROTECTED]
Enterprise Java Guru
jGuru.com - The Java Portal
http://www.jguru.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



AW: AW: Redirection to another page

1999-12-03 Thread Bernard, Frank

Craig McClanahan wrote:

 "Bernard, Frank" wrote:

   Is it possible to write JSP code to redirect the browser to open a new
   page,
   say, page B from JSP code in page A?
  
  use:response.sendRedirect ( target_URL );
 

 You can also do this on the server side (without a second round trip back
 to the
 client) with

 jsp:forward page="/targetpage.jsp" /

%  response.sendRedirect ( target_URL ); %  is server side, isn't
it.

Frank Bernard
Healy Hudson AG
CDT - Core Development Team
67691 Hochspeyer, Nelkenstr. 43
Tel.: 06305 / 92 11-804, Fax: 06305 / 92 11-60

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

1999-12-03 Thread Govind Seshadri

Hi Mario,

Try using:
param name="MYNAME" value='%=var%'

hth,
Govind

"Pizzonia, Mario Carmelo" wrote:

 Hi everyone,
 I'm working with JSP1.0 and I have a trouble with the tag
 jsp:pluginparam name="MYNAME" value="ANTONIO"
 The strings myname and antonio must be quoted otherwise it falls in
 compilation error.
 But I have the need to evaluate a variable with %=var% so :
 param name="MYNAME" value="%=var%" but in this case it doesn't
 evaluate the expression but send out the value %=var%.
 If I don't put the " " it falls in compilation error.
 How can I do to set a value the must be the evaluation of an expression ??
 (my particular expression is %=session.getValue("parameter")%)
 Thanks a lot for an answer.

--
Govind Seshadri [EMAIL PROTECTED]
jGuru.com - The Java Portal
Check out our JSP FAQ:
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.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: AW: Redirection to another page

1999-12-03 Thread Khurram Mahmood

I think jguru is wrong about this one. I have been using sendRedirect() with
relative URL's and it works fine.

KM


-Original Message-
From: Govind Seshadri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 02, 1999 12:06 PM
To: [EMAIL PROTECTED]
Subject: Re: AW: Redirection to another page


The response.sendRedirect() accepts only a fully qualified URL.
For handling relative URLs see the following jGuru JSP FAQ entry:

http://www.jguru.com/jguru/faq/view.jsp?EID=376

hth,
Govind

"Bernard, Frank" wrote:

  Is it possible to write JSP code to redirect the browser to open a new
  page,
  say, page B from JSP code in page A?
 
 use:response.sendRedirect ( target_URL );

 Frank Bernard
 Healy Hudson AG
 CDT - Core Development Team
 67691 Hochspeyer, Nelkenstr. 43
 Tel.: 06305 / 92 11-804, Fax: 06305 / 92 11-60


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

--
Govind Seshadri [EMAIL PROTECTED]
Enterprise Java Guru
jGuru.com - The Java Portal
http://www.jguru.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

===
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: AW: Redirection to another page

1999-12-03 Thread Khurram Mahmood

For some reason jsp forward tag never works. Instead of compiling the target
jsp page into servlet and then executing it, it just shows the jsp code on
the html page as text.

KM


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 02, 1999 12:19 PM
To: [EMAIL PROTECTED]
Subject: Re: AW: Redirection to another page


"Bernard, Frank" wrote:

  Is it possible to write JSP code to redirect the browser to open a new
  page,
  say, page B from JSP code in page A?
 
 use:response.sendRedirect ( target_URL );


You can also do this on the server side (without a second round trip back to
the
client) with

jsp:forward page="/targetpage.jsp" /

Craig McClanahan

===
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: AW: Redirection to another page

1999-12-03 Thread Craig R. McClanahan

Khurram Mahmood wrote:

 For some reason jsp forward tag never works. Instead of compiling the target
 jsp page into servlet and then executing it, it just shows the jsp code on
 the html page as text.

 KM


What version of JSP does your environment support?  jsp:forward was added in
version 1.0 -- if you are on a version 0.91 or 0.92 system, you won't be able
to use this.

Craig



 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 02, 1999 12:19 PM
 To: [EMAIL PROTECTED]
 Subject: Re: AW: Redirection to another page

 "Bernard, Frank" wrote:

   Is it possible to write JSP code to redirect the browser to open a new
   page,
   say, page B from JSP code in page A?
  
  use:response.sendRedirect ( target_URL );
 

 You can also do this on the server side (without a second round trip back to
 the
 client) with

 jsp:forward page="/targetpage.jsp" /

 Craig McClanahan

 ===
 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: AW: Redirection to another page

1999-12-03 Thread Khurram Mahmood

But I am using jsp1.0. I am using tags like
jsp:useBean ...
%@ include
and
!  for server scripts.

Now all of the above tags are only valid in jsp1.0 and they perform fine in
the environment I am using. jsp:forward tag is the only tag I am having
problems with.

Thanks,

KM


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 02, 1999 9:22 PM
To: Khurram Mahmood; [EMAIL PROTECTED]
Subject: Re: AW: Redirection to another page


Khurram Mahmood wrote:

 I am using jsp1.0 and JRUN2.3. There was no jsp:forward in 0.92 and if I
was
 using 0.92, I would've gotten a compilation error, not this strange
 behavior.


That was my first thought as well, until I remembered how stupid compilers
really are.

The JSP engine looks through your page for tags it recognizes.  Anything
else
is considered to be template text, and is passed through unchecked.  For
0.92
engines, it recognizes things like usebean (without the jsp prefix).  It
saw
jsp:forward, concluded "this must be some new HTML tag I do not
understand",
and sent it on to the output file where it showed up in your browser's text.

One of the reasons that the "jsp:" prefix was added in 1.0 was to allow the
compiler to be smarter than this.  It can look at a tag jsp:x and
complain if it does not know what x is.  But, if you omit the prefix and
just incorrectly use forward, I bet it would make the same mistake.


 Thanks,

 KM


Craig McClanahan



 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 02, 1999 9:06 PM
 To: Khurram Mahmood
 Cc: [EMAIL PROTECTED]
 Subject: Re: AW: Redirection to another page

 Khurram Mahmood wrote:

  For some reason jsp forward tag never works. Instead of compiling the
 target
  jsp page into servlet and then executing it, it just shows the jsp code
on
  the html page as text.
 
  KM
 

 What version of JSP does your environment support?  jsp:forward was
added
 in
 version 1.0 -- if you are on a version 0.91 or 0.92 system, you won't be
 able
 to use this.

 Craig

 
 
  -Original Message-
  From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 02, 1999 12:19 PM
  To: [EMAIL PROTECTED]
  Subject: Re: AW: Redirection to another page
 
  "Bernard, Frank" wrote:
 
Is it possible to write JSP code to redirect the browser to open a
new
page,
say, page B from JSP code in page A?
   
   use:response.sendRedirect ( target_URL );
  
 
  You can also do this on the server side (without a second round trip
back
 to
  the
  client) with
 
  jsp:forward page="/targetpage.jsp" /
 
  Craig McClanahan
 
 

===
  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: AW: Redirection to another page

1999-12-03 Thread Craig R. McClanahan

Khurram Mahmood wrote:

 I am using jsp1.0 and JRUN2.3. There was no jsp:forward in 0.92 and if I was
 using 0.92, I would've gotten a compilation error, not this strange
 behavior.


That was my first thought as well, until I remembered how stupid compilers
really are.

The JSP engine looks through your page for tags it recognizes.  Anything else
is considered to be template text, and is passed through unchecked.  For 0.92
engines, it recognizes things like usebean (without the jsp prefix).  It saw
jsp:forward, concluded "this must be some new HTML tag I do not understand",
and sent it on to the output file where it showed up in your browser's text.

One of the reasons that the "jsp:" prefix was added in 1.0 was to allow the
compiler to be smarter than this.  It can look at a tag jsp:x and
complain if it does not know what x is.  But, if you omit the prefix and
just incorrectly use forward, I bet it would make the same mistake.


 Thanks,

 KM


Craig McClanahan



 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 02, 1999 9:06 PM
 To: Khurram Mahmood
 Cc: [EMAIL PROTECTED]
 Subject: Re: AW: Redirection to another page

 Khurram Mahmood wrote:

  For some reason jsp forward tag never works. Instead of compiling the
 target
  jsp page into servlet and then executing it, it just shows the jsp code on
  the html page as text.
 
  KM
 

 What version of JSP does your environment support?  jsp:forward was added
 in
 version 1.0 -- if you are on a version 0.91 or 0.92 system, you won't be
 able
 to use this.

 Craig

 
 
  -Original Message-
  From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 02, 1999 12:19 PM
  To: [EMAIL PROTECTED]
  Subject: Re: AW: Redirection to another page
 
  "Bernard, Frank" wrote:
 
Is it possible to write JSP code to redirect the browser to open a new
page,
say, page B from JSP code in page A?
   
   use:response.sendRedirect ( target_URL );
  
 
  You can also do this on the server side (without a second round trip back
 to
  the
  client) with
 
  jsp:forward page="/targetpage.jsp" /
 
  Craig McClanahan
 
 
 ===
  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 1.0 on Apache/NT/4

1999-12-03 Thread Cédric Pulrulczyk

When I call the example date.asp, it doesn't work and the file error.log

says:

[Wed Dec 01 18:57:24 1999] [warn] [client 155.132.241.31] handler
"jsp-handler" not found for: c:/javaprojects/examples/date.jsp
[Wed Dec 01 18:57:24 1999] [error] [client 155.132.241.31] File does not

exist: c:/javaprojects/alph/gnujsp/Examples/date.jsp

ant html files said :

Not Found

The requested URL /alph/gnujsp/Examples/date.jsp was not found on this
server.


Apache/1.3.6 Server at bcees0f.eu.cit.alcatel.fr Port 80

My config is :

All examples in c:\JavaProjects\Examples
The root of WEB is c:\JavaProjects\

and my Config files are like the instructions given..


Thanks for you help.

Cédric.

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



HI gurus...

1999-12-03 Thread Siva Surya Kumar V



Hi

 I have 
some problem in JSP's.
 Actually 
i have list box and some text fields in display.jsp file.
 When i 
select one particular value in list box the coreesponding 
details
 should be 
queried and displayed in the textfields.

 All 
components are in the same page !
 Some 
fields are non-editable and static fields and they have to retain their values 
(like date suppose).
 I wrote 
the bean but how should i handle events inside a JSP file.
 Can 
anyone help me in this regard.
 Thanks in 
Advace.

Surya.



Encoding URL for links

1999-12-03 Thread Veronique Dupierris

Hi,

As I said in a previous mail, I have many jsp files that call each
other using links.  To avoid 'disable cookies' problem, I'd like to
encode the URL. I tried both :
A HREF=%=response.encodeURL("mypage.jsp")
%?TheDb=%=allInstances.getTheDbName()% 
and
String instanceURL = response.encodeUrl("instance.jsp");
A HREF=%=instanceURL%?TheDb=%=allInstances.getTheDbName()% 

Instance.jsp, I display the session ID (session.getId()), and it
changes each time i call the instance jsp page. Did i forget something ?

   I also wanted to be able to keep same session while my errorPage is
called, is there a way to encode the errorPage URL ?

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



Re: weblogic html and jhtml

1999-12-03 Thread Daniel Tillin

The weblogic properties files will allow you to set working directories for
JSP  JHTML classes etc, but there is only one entry for the document root
(where the HTML  JSP files that you serve live). So you can separate your
class files into different directory, but all your serveable files need to
be below the document root. Of course this is how html etc works, using
relative references.

The weblogic properties file is in the weblogic root directory (i.e.
c:\weblogic). This is all in the documentation for WebLogic.

Does this help?


Cheers,

Dan


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Joshua Rudin
Sent: Friday, December 03, 1999 1:41 AM
To: [EMAIL PROTECTED]
Subject: weblogic html and jhtml


Is there a way in weblogic to have the HTML and JHTML (or JSP) pages each
have a different default directory?

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

===
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: HI gurus...

1999-12-03 Thread Bernander, Marcus

Regenerate the file when you change some values in some box. Use the
onChange event and JavaScript to reload the page with more specific
parameters.

/Marcus


-Original Message-
From: Siva Surya Kumar V [mailto:[EMAIL PROTECTED]]
Sent: den 3 december 1999 10:39
To: [EMAIL PROTECTED]
Subject: HI gurus...


Hi

I have some problem in JSP's.
Actually i have list box and some text fields in display.jsp file.
When i select one particular value in list box the coreesponding details
should be queried and displayed in the textfields.

All components are in the same page !
Some fields are non-editable and static fields and they have to retain
their values (like date suppose).
I wrote the bean but how should i handle events inside a JSP file.
Can anyone help me in this regard.
Thanks in Advace.

Surya.

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



Connection Pool

1999-12-03 Thread Cory L Hubert

Ok.  I am on a roll now.   I am trying to setup a Connection Pool.   I have
a few samples.   But I don't know where to put it in my project.  Should I
put it in the Beans?  Or should I just make one connectionpool jsp file and
include it in all the pages?

What is the best way?  I know this is an opened end question but, I'd like
to hear a few suggestions.

===
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/HTML Field Validation

1999-12-03 Thread Heske Chris

What is the generally accepted way of performing HTML field validation
using JSPs.  Is it better done in JavaScript because it's performed
client side?

Thanks in advance.

Cheers,
Chris

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.

===
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: How to get the text after the jsp file?

1999-12-03 Thread Joseph B. Ottinger

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 3 Dec 1999, Bernander, Marcus wrote:

I know about a and c, in the standard GET query. That's no
problem. ("Nothing" was a bad choice of words.) But what would the name of
the parameter of value "a" be for "http://host/file.jsp/a"?

 Parameters.

 Don't be affraid to try!

   /Marcus


 -Original Message-
 From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]]
 Sent: den 3 december 1999 15:56
 To: [EMAIL PROTECTED]
 Subject: How to get the text after the jsp file?


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Sorry, I forgot the term for it.

 Getting the query parameters is easy; file.jsp?a=bc=d, the a and c
 parameters are nothing to extract.

 However, what if the URL is of the form file.jsp/a? Is the "a" accessible
 at all?



 -BEGIN PGP SIGNATURE-
 Version: PGP 6.5.1i

 iQA/AwUBOEfaAAhcVZKknQwGEQJ66ACgvBaahp3UQOSGWUKzQauN1wtsxXUAni5U
 gbmegO+Lk2r6X2ZrzCPcYMTP
 =dkXM
 -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


-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1i

iQA/AwUBOEfk6AhcVZKknQwGEQIfZACfboxwbbU2IvrgAktp3NHlIicnL9wAn3BR
081Bcz/TnKS93Ci6A9sZ9/jg
=HYcr
-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



Re: How to get the text after the jsp file?

1999-12-03 Thread Bernander, Marcus

Parameters.

Don't be affraid to try!

/Marcus


-Original Message-
From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]]
Sent: den 3 december 1999 15:56
To: [EMAIL PROTECTED]
Subject: How to get the text after the jsp file?


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sorry, I forgot the term for it.

Getting the query parameters is easy; file.jsp?a=bc=d, the a and c
parameters are nothing to extract.

However, what if the URL is of the form file.jsp/a? Is the "a" accessible
at all?



-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1i

iQA/AwUBOEfaAAhcVZKknQwGEQJ66ACgvBaahp3UQOSGWUKzQauN1wtsxXUAni5U
gbmegO+Lk2r6X2ZrzCPcYMTP
=dkXM
-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

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

1999-12-03 Thread Maciejowski

Does it exist any tool for developping and debuging jsp files ?

===
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: Connection Pool

1999-12-03 Thread Geert Van Damme

I use a Singelton class ConnectionHandler to manage my connection pools.
This ConnectionHandler has static methods to get and close a connection.
When you get a connection you really get a wrapper for a connection (but it
implements sql.connection itself as well.) the close method of the wrapper
doesn't close the underlying connection but releases it in the pool.

Geert 'Darling' Van Damme

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Cory L Hubert
 Sent: vrijdag 3 december 1999 16:55
 To: [EMAIL PROTECTED]
 Subject: Connection Pool


 Ok.  I am on a roll now.   I am trying to setup a
 Connection Pool.   I have
 a few samples.   But I don't know where to put it in my project.  Should I
 put it in the Beans?  Or should I just make one connectionpool
 jsp file and
 include it in all the pages?

 What is the best way?  I know this is an opened end
 question but, I'd like
 to hear a few suggestions.

 ==
 =
 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: JSP/HTML Field Validation

1999-12-03 Thread Robert Anglos

My comments relate to the Server vs Client side validation

My background includes several years of Forte, which is a three tier client/server
environment and language (similar to Java). As such we have had to deal with the
issue outlined in your question and I am giving you the take that we use with
Forte.

Some of the considerations that we take into account when deciding where to place
the processing, in this case the validation, is
- how complex is the validation, if simple let the client side handle it.
- where is the processing power (if it is anticipated that the client machine may
be heavily utilized put it on the server.
- Likewise if the server is heavily utilized you may what to move it, or a portion,
to the client.
- The amount of data required to do the validation (i.e. if you have to pass lots
of data to the client do not do it)
relates to network traffic and speed to load the page.
- What is the being validated (i.e. do not validate the user id/password at the
client side)
- To add some context to using this information Forte has a client side event
handler. Thus there is no issues with having anything other than the native Forte
on the client.
- One thing that can be done in Forte, that I will try in the Java/JSP, is... Forte
widgets have an object, that is similar to a vector, such that when the user
selects a value (i.e. from a drop list) an associated value is used. (i.e. if the
user was selecting 'U.S.A.' from a countries drop list the value that would be
transferred to a 'record' would be 1). This could probably be accomplished using
beans.

I have done something similar, to the above, using servlets, though not in the same
event driven manor, but not on the client side. Perhaps someone could comment more
on that side.

Robert

Heske Chris wrote:

 What is the generally accepted way of performing HTML field validation
 using JSPs.  Is it better done in JavaScript because it's performed
 client side?

 Thanks in advance.

 Cheers,
 Chris

 This message contains confidential information and is intended only
 for the individual named.  If you are not the named addressee you
 should not disseminate, distribute or copy this e-mail.  Please
 notify the sender immediately by e-mail if you have received this
 e-mail by mistake and delete this e-mail from your system.

 E-mail transmission cannot be guaranteed to be secure or error-free
 as information could be intercepted, corrupted, lost, destroyed,
 arrive late or incomplete, or contain viruses.  The sender therefore
 does not accept liability for any errors or omissions in the contents
 of this message which arise as a result of e-mail transmission.  If
 verification is required please request a hard-copy version.  This
 message is provided for informational purposes and should not be
 construed as a solicitation or offer to buy or sell any securities or
 related financial instruments.

 ===
 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: AW: AW: Redirection to another page

1999-12-03 Thread Craig R. McClanahan

"Bernard, Frank" wrote:

 Craig McClanahan wrote:

  "Bernard, Frank" wrote:
 
Is it possible to write JSP code to redirect the browser to open a new
page,
say, page B from JSP code in page A?
   
   use:response.sendRedirect ( target_URL );
  
 
  You can also do this on the server side (without a second round trip back
  to the
  client) with
 
  jsp:forward page="/targetpage.jsp" /
 
 %  response.sendRedirect ( target_URL ); %  is server side, isn't
 it.


It is initiated at the server side, but requires an extra round trip HTTP
transaction with the client.  The overall flow goes like this:
* Client makes the original request
* Server reads the request, decides which
  servlet or JSP page should create this
  response, and sends back a "redirect"
  response telling the client to call that
  servlet or page directly
* Client automatically follows the "redirect"
* Server sends back the actual response

Request forwarding is more like a "go to" on the server side:
* Client makes the original request
* Server reads the request, decides which
  servlet or JSP page should create this
  response, and then calls it to create
  the actual response

If the client is at the far end of a slow modem, the time difference between these
approaches can be substantial.


 Frank Bernard

Craig McClanahan

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



mailing lists options...

1999-12-03 Thread Eduardo Pelegri-Llopart

It is great to see all the interest in JSP  Servlets, and all the
good messages at the lists.  The JSP and Servlet mailing lists are the
two interest lists with highest subscriptions (check at
http://archives.java.sun.com) which is quite impressive, specially
considering that we have not been on the front cover of java.sun.com
for a while.

With the interest comes additional mail traffic.  I want to remind
people that there are several options to keeping in touch with the JSP
 Servlet technologies:


- register to the jsp-interest and servlet-interest mailing list with
usual per-mail delivery.

This is best to follow email conversations and to get up-to-the-minute
messages.


- register to the jsp-interest and servlet-interest mailing lists with
digest mode.  This way you get a single message a day.  There are
different digest formats available.

I subscribe this way with the standard digest mode so I can do textual
searches within the digest (subject lines are usually not very helpful).


- register to the jspservlet-announce mailing list.  This is a mailing
list for announcements from the JSP/Servlet team at Sun, and will post
all important milestones and events to this mailing list.

An announcement list is not a replacement to an interest list but when
we used it for JavaBeans we have found it provides a very useful
service.


You can register to the mailing lists by email or using your browsers.

* Point your browser to http://archives.java.sun.com, and follow the
links to your favorite list.

* Send mail to:
[EMAIL PROTECTED]

  With a message of:
subscribe jspservlet-announce [Your Full Name]

  or whatever is your favorite list


Now back to your regular broadcasting...

- eduardo

===
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 displaying in browser

1999-12-03 Thread Hu, Jeffery X (Jeff)
Title: how to displaying  in browser





Hi friends,


I am using lt and quot' to display  and double quote () respectively. Everything is fine in IE4 but not in netscape. Can anyone give me some tips. Plus, how can my server side servlet/jsp detect what browser the clients are using?

Any helps are highly appreciated


J.H





Re: AW: Redirection to another page

1999-12-03 Thread Craig R. McClanahan

Govind Seshadri wrote:

 The Servlet 2.1 API unequivocally states that relative URLs are not
 permitted with response.sendRedirect(). See the following API link:
 
http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpServletResponse.html#sendRedirect(javax.servlet.http.String)

 But you know what? You are right! It seems you can indeed use relative
 URLs with sendRedirect(). I am now not sure whether this is a bug or an
 unintended 'feature'...  :-


In spite of what the specs say, some servlet engines converted relative-absolute for 
you, and some browsers even know how to do a
relative sendRedirect in spite of what the HTTP protocol specs say (absolute), so it 
sometimes worked even when the servlet engine
did not do anything.

The version 2.2 API recognizes this reality and will say that relative URLs are 
allowed, but it requires the servlet engine to
produce an absolute one to send back to the browser, in conformance with HTTP.


 I have appropriately modified the FAQ entry. Thanks for pointing it out.

 Govind


Craig McClanahan



 Khurram Mahmood wrote:
 
  I think jguru is wrong about this one. I have been using sendRedirect() with
  relative URL's and it works fine.
 
  KM
 
  -Original Message-
  From: Govind Seshadri [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 02, 1999 12:06 PM
  To: [EMAIL PROTECTED]
  Subject: Re: AW: Redirection to another page
 
  The response.sendRedirect() accepts only a fully qualified URL.
  For handling relative URLs see the following jGuru JSP FAQ entry:
 
  http://www.jguru.com/jguru/faq/view.jsp?EID=376
 
  hth,
  Govind
 
  "Bernard, Frank" wrote:
  
Is it possible to write JSP code to redirect the browser to open a new
page,
say, page B from JSP code in page A?
   
   use:response.sendRedirect ( target_URL );
  
   Frank Bernard
   Healy Hudson AG
   CDT - Core Development Team
   67691 Hochspeyer, Nelkenstr. 43
   Tel.: 06305 / 92 11-804, Fax: 06305 / 92 11-60
  
  
  ===
   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
 
  --
  Govind Seshadri [EMAIL PROTECTED]
  Enterprise Java Guru
  jGuru.com - The Java Portal
  http://www.jguru.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

 --
 Govind Seshadri [EMAIL PROTECTED]
 Enterprise Java Guru
 jGuru.com - The Java Portal
 http://www.jguru.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

===
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/HTML Field Validation

1999-12-03 Thread Hans Bergsten

An additional concern for browser based clients is that there's usually no
way to ensure that the client code will be executed at all; no guarantees
that JavaScript and/or Java applets are enabled. In an Intranet you may have
some control over this, but never on the Internet.

So even if you do validation on the client (for a more user-friendly interface),
you have to do it on the server as well.

Robert Anglos wrote:

 My comments relate to the Server vs Client side validation

 My background includes several years of Forte, which is a three tier client/server
 environment and language (similar to Java). As such we have had to deal with the
 issue outlined in your question and I am giving you the take that we use with
 Forte.

 Some of the considerations that we take into account when deciding where to place
 the processing, in this case the validation, is
 - how complex is the validation, if simple let the client side handle it.
 - where is the processing power (if it is anticipated that the client machine may
 be heavily utilized put it on the server.
 - Likewise if the server is heavily utilized you may what to move it, or a portion,
 to the client.
 - The amount of data required to do the validation (i.e. if you have to pass lots
 of data to the client do not do it)
 relates to network traffic and speed to load the page.
 - What is the being validated (i.e. do not validate the user id/password at the
 client side)
 - To add some context to using this information Forte has a client side event
 handler. Thus there is no issues with having anything other than the native Forte
 on the client.
 - One thing that can be done in Forte, that I will try in the Java/JSP, is... Forte
 widgets have an object, that is similar to a vector, such that when the user
 selects a value (i.e. from a drop list) an associated value is used. (i.e. if the
 user was selecting 'U.S.A.' from a countries drop list the value that would be
 transferred to a 'record' would be 1). This could probably be accomplished using
 beans.

 I have done something similar, to the above, using servlets, though not in the same
 event driven manor, but not on the client side. Perhaps someone could comment more
 on that side.

 Robert

 Heske Chris wrote:

  What is the generally accepted way of performing HTML field validation
  using JSPs.  Is it better done in JavaScript because it's performed
  client side?
 
  Thanks in advance.
 
  Cheers,
  Chris

--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.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: how to displaying in browser

1999-12-03 Thread Kirkdorffer, Daniel

You're missing the ; (semi-colon).  Use "lt;" or "quot;".  You can ask for
browser information by looking at the request header information on the
servlet call.  Check out HttpServletRequest for your options.

Dan

 --
 From: Hu, Jeffery X (Jeff)[SMTP:[EMAIL PROTECTED]]
 Reply To: Hu, Jeffery X (Jeff)
 Sent: Friday, December 03, 1999 9:42 AM
 To:   [EMAIL PROTECTED]
 Subject:  how to displaying "" in browser

 Hi friends,

 I am using "lt" and "quot' to display "" and double quote (")
 respectively. Everything is fine in IE4 but not in netscape.  Can anyone
 give me some tips.  Plus, how can my server side servlet/jsp detect what
 browser the clients are using?

 Any helps are highly appreciated

 J.H



===
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 get the text after the jsp file?

1999-12-03 Thread Joseph B. Ottinger

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sorry, I forgot the term for it.

Getting the query parameters is easy; file.jsp?a=bc=d, the a and c
parameters are nothing to extract.

However, what if the URL is of the form file.jsp/a? Is the "a" accessible
at all?



-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1i

iQA/AwUBOEfaAAhcVZKknQwGEQJ66ACgvBaahp3UQOSGWUKzQauN1wtsxXUAni5U
gbmegO+Lk2r6X2ZrzCPcYMTP
=dkXM
-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



Re: How to get the text after the jsp file?

1999-12-03 Thread Craig R. McClanahan

"Joseph B. Ottinger" wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Sorry, I forgot the term for it.

 Getting the query parameters is easy; file.jsp?a=bc=d, the a and c
 parameters are nothing to extract.

 However, what if the URL is of the form file.jsp/a? Is the "a" accessible
 at all?


Because JSPs are mapped by filename extension, I would bet that this URL
("file.jsp/a") doesn't even get the page correctly, because the extension is
supposed to be at the end of your URL.  A couple of things to think about:

* If you can use "file.jsp?a" instead, then the "a" is available in
  request.getQueryString().

* If you are talking about servlets instead of JSPs, and you map
  a servlet to a specific URL, you can get the stuff after the path
  of the servlet with request.getPathInfo().  For example, if you have
  your servlet mapped to "/myservlet" and you submitted the URL
  "/myservlet/a", your servlet would be called, and getPathInfo()
  would return "/a".

Craig McClanahan



 -BEGIN PGP SIGNATURE-
 Version: PGP 6.5.1i

 iQA/AwUBOEfaAAhcVZKknQwGEQJ66ACgvBaahp3UQOSGWUKzQauN1wtsxXUAni5U
 gbmegO+Lk2r6X2ZrzCPcYMTP
 =dkXM
 -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

===
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: how to displaying in browser

1999-12-03 Thread Taylor Gautier



lt; and quot; HTML entities are supposed to be 
terminated with a ';'.

-t

  - Original Message - 
  From: 
  Hu, Jeffery X 
  (Jeff) 
  To: [EMAIL PROTECTED] 
  Sent: Friday, December 03, 1999 9:42 
  AM
  Subject: how to displaying "" in 
  browser
  
  Hi friends, 
  I am using "lt" and "quot' to display "" and 
  double quote (") respectively. Everything is fine in IE4 but not in 
  netscape. Can anyone give me some tips. Plus, how can my server 
  side servlet/jsp detect what browser the clients are using?
  Any helps are highly appreciated 
  J.H 


Re: how to displaying in browser

1999-12-03 Thread Dennis van Zwieten




Hi,

See the following links for addressing special characters with Netscape or 
IE:
http://developer.netscape.com/docs/manuals/htmlguid/tags22.htm
or
http://msdn.microsoft.com/workshop/author/dhtml/reference/charsets/charset2.asp#charsets2

You might wanna try the numeric version of the HTML entities.


Dennis.


  - Original Message - 
  From: 
  Hu, Jeffery X 
  (Jeff) 
  To: [EMAIL PROTECTED] 
  Sent: Friday, December 03, 1999 
  18:42
  Subject: how to displaying "" in 
  browser
  
  Hi friends, 
  I am using "lt" and "quot' to display "" and 
  double quote (") respectively. Everything is fine in IE4 but not in 
  netscape. Can anyone give me some tips. Plus, how can my server 
  side servlet/jsp detect what browser the clients are using?
  Any helps are highly appreciated 
  J.H 


Re: How to get the text after the jsp file?

1999-12-03 Thread Stephen Summerfield

 -Original Message-
 From: A mailing list about Java Server Pages specification
 and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph B. Ottinger
 Sent: 03 December 1999 14:56
 To: [EMAIL PROTECTED]
 Subject: How to get the text after the jsp file?


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Sorry, I forgot the term for it.

 Getting the query parameters is easy; file.jsp?a=bc=d, the a and c
 parameters are nothing to extract.

 However, what if the URL is of the form file.jsp/a? Is the
 "a" accessible
 at all?

Try
HttpServletRequest.getPathInfo()

HTH,

Steve

===
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 compress JSP pages using Content Encoding

1999-12-03 Thread Kayser William

Anyone have any ideas how to compress jsp pages using the content-encoding
http1.1 header?



It turns out that gzip compression works well by default in both browsers.  For
low bandwidth connections, such as mobile computing, it's a good technique to
reduce your traffic by 50-70%.  It's easy to do with servlets because you just
filter the output through a gzip output stream before sending it back to the
servlet output stream, setting the content-encoding header (you can determine
when to do this by looking at the accepts-encoding request header).

But it's problematic to this with JSP's because you don't have access to the jsp
writer this way.  The only thing I can think of is using servlet chaining but we
can't get that to work in JRun, particularly with redirects.



Bill Kayser

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

1999-12-03 Thread Vladyslav Kosulin

Maciejowski wrote:

 Does it exist any tool for developping and debuging jsp files ?

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

Try to look at IBM VisualAge for Java 3.0 Professional (Windows, OS/2,
AIX). They have Linux version, too, but I'm not sure it does support JSP
development.
--
Sincerely yours,
Vladyslav Kosulin, Kharkiv, Ukraine
([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



Re: Connection Pool

1999-12-03 Thread D. J. Hagberg

Cory L Hubert wrote:

 Ok.  I am on a roll now.   I am trying to setup a Connection Pool.   I have
 a few samples.   But I don't know where to put it in my project.  Should I
 put it in the Beans?  Or should I just make one connectionpool jsp file and
 include it in all the pages?

 What is the best way?  I know this is an opened end question but, I'd like
 to hear a few suggestions.

We have also written a simple singleton ConnectionGenerator class that
has static poolCheckout(...) and poolCheckin(Connection) methods.  These
methods are used
inside our *bean* code whenever a db connection in needed.  This is done
because
you want to be sure to check the Connection back into a pool regardless
of whether
an exception occurred in your code or not, so you need a try/finally
combo.
We also use this combo to implement transaction rollback when
multi-statement
transactions are used.

For example:

boolean autoCommit = false;
boolean committed = false;
Connection c = ConnectionGenerator.poolCheckout();
Statement s = null;
try {
// do some stuff that could possibly throw an exception.
s = c.createStatement();
s.executeUpdate("UPDATE x SET q=5");
s.commit();
s.close();
committed = true;
s = null;
}
finally {
if( s != null ) try {s.close();} catch(SQLException ignore1) { }
if(!committed ) try {c.rollback();} catch(SQLException ignore2)
{ }
ConnectionGenerator.poolCheckin(c);
}

I really don't think you'd want to implement this sort of code in a
.jsp...

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



signoff JSP-INTEREST

1999-12-03 Thread Mohan K Reddy

-Original Message-
From: Robert Anglos [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 03, 1999 10:19 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP/HTML Field Validation


My comments relate to the Server vs Client side validation

My background includes several years of Forte, which is a three tier
client/server
environment and language (similar to Java). As such we have had to deal with
the
issue outlined in your question and I am giving you the take that we use
with
Forte.

Some of the considerations that we take into account when deciding where to
place
the processing, in this case the validation, is
- how complex is the validation, if simple let the client side handle it.
- where is the processing power (if it is anticipated that the client
machine may
be heavily utilized put it on the server.
- Likewise if the server is heavily utilized you may what to move it, or a
portion,
to the client.
- The amount of data required to do the validation (i.e. if you have to pass
lots
of data to the client do not do it)
relates to network traffic and speed to load the page.
- What is the being validated (i.e. do not validate the user id/password at
the
client side)
- To add some context to using this information Forte has a client side
event
handler. Thus there is no issues with having anything other than the native
Forte
on the client.
- One thing that can be done in Forte, that I will try in the Java/JSP,
is... Forte
widgets have an object, that is similar to a vector, such that when the user
selects a value (i.e. from a drop list) an associated value is used. (i.e.
if the
user was selecting 'U.S.A.' from a countries drop list the value that would
be
transferred to a 'record' would be 1). This could probably be accomplished
using
beans.

I have done something similar, to the above, using servlets, though not in
the same
event driven manor, but not on the client side. Perhaps someone could
comment more
on that side.

Robert

Heske Chris wrote:

 What is the generally accepted way of performing HTML field validation
 using JSPs.  Is it better done in JavaScript because it's performed
 client side?

signoff JSP-INTEREST

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



Evaluating dynamically generated HTML form elements

1999-12-03 Thread Ade Olumide

Hello.

I'm in a fix and would appreciate any input that you
guys can give me. My JSP engine is Weblogic 4.5.1,
running the 1.0 JSP spec. My pages make calls based on
user selections on any given JSP to EJB methods (via
WrappersBeans) which return relevant data to the next
JSP in the application page flow.

A certain JSP displays previously entered demographic
user data in a legacy database, and dynamically
displays this data in a number of form element types.
(radiobutton, listbox, or textfield objects - Exist as


subclasses[DemographicsComboBox,DemographicsRadioButton,and
DemographicsTextField] of the DemographicsField class.


I wish to validate the user input in these dynamic
form elements. JSP scriplet expressions do not
evaluate within my Javascript functions.

How can I use Javascript to validate these form
elements, or am I missing something here? Can I
execute my JS function on the server by
'out.print'ling the jscrpt?

I'll  appreciate any help I can get. Thank you.

P.S.

Iapologise if this has been discussed previously.

-Ade Olumide-
__
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.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



Re: Evaluating dynamically generated HTML form elements

1999-12-03 Thread Craig R. McClanahan

Ade Olumide wrote:

 [snip]
 I wish to validate the user input in these dynamic
 form elements. JSP scriplet expressions do not
 evaluate within my Javascript functions.

 How can I use Javascript to validate these form
 elements, or am I missing something here? Can I
 execute my JS function on the server by
 'out.print'ling the jscrpt?

 I'll  appreciate any help I can get. Thank you.


First thing to remember -- JSP scriptlets execute as the page is being
created, while JavaScript functions execute as the user is filling out
the form.  The only thing you can do in your JSP page (scriptlets or not
does not matter) is generate the correct source code for the validation
function, based on the values you retrieve from the database.

Whenever I've needed to generate a customized JavaScript function like
this with JSP 1.0, I've used a scriptlet that called  out.println() to
write the JavaScript source code.  When JSP 1.1 based engines become
available, I would be more inclined to write a custom tag that generated
the correct JavaScript, but 1.1 support is not generally available yet.


 P.S.

 Iapologise if this has been discussed previously.

You can find out if it has been discussed by checking the mailing list
archives (http://archives.java.sun.com).


 -Ade Olumide-

Craig McClanahan

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

1999-12-03 Thread Phil Swenson

This isn't a strictly JSP question:  if you have multiple web servers for
scalability, where are you storing your JSPs and Servlets (or for that
matter your HTML data)?  Are you duplicating the files across all your
servers?  Do you store your files on a network drive that all the web
servers have access to?  Thanks for any input...

===
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: How to compress JSP pages using Content Encoding

1999-12-03 Thread Jason Hunter

Kayser William wrote:

 Anyone have any ideas how to compress jsp pages using the
 content-encoding http1.1 header?

It's my belief that you can't, because JSP is meant for writing text,
and GZip output is binary.

 It turns out that gzip compression works well by default in both
 browsers.

I've seen problems using IE4 on Win95.  Have you always had success
there?

-jh-

--
Jason Hunter
[EMAIL PROTECTED]
Book:http://www.servlets.com/book
2.0 to 2.1: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html
2.1 to 2.2: http://www.javaworld.com/jw-10-1999/jw-10-servletapi.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



JSWDK Server not seponding ?

1999-12-03 Thread Suresh Kumar Nittala

Hi,

I am unable to run the JSWDK 1.0.1 server. Earlier it was working fine.
I have changed the ClassPath but however I have retained the original
Classpath. It is giving me an error "Problem creating admin registry".

Can any body help me how to adjust the value in the registry so that the
server starts. Unless the server starts I cannot run my JSP pages.

Kindly help me.

Regards,
Suresh Kumar

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