Re: session object [urgent!]

2002-04-03 Thread Murali Mohan

Hi,

Create the Session Object with the false attribute except the first time creation of 
session object. So that
one session object will be maintained with one user from login to logout.

All the best,
Murali



Nancy Crisostomo Martinez wrote:

 Hi everybody!

 I need your help..
 I'm trying to track some attributes I added to the session object, but I
 can't...

 I have an html file (main.htm) which opens a new window browser
 (validate.jsp) when you press a button to access to one service...
 Then when the user is validated in the validate.jsp file, I added two
 attributes to the session object like this:

  ...
  %
  if (validUser(id_Usuario)){
 session.setAttribute(numero,id_Usuario);
 session.setAttribute(edad,num);
  ...

 and finally the window is closed and another new window is opened (
 portal.jsp ).

  %
  script

 
window.open(portal.jsp,,top=0,left=0,width=791,height=520,scrollbars=yes,resizable=yes,status=yes)

  return eval('close()')
  /script
  %
  }
  %

 The portal.jsp file is formed by frames:

   HTML
   FRAMESET rows=75,250* frameborder=0 border=0
 framespacing=0
   FRAME name=FrameArriba scrolling=NO noresize
 marginwidth=0 marginheight=0 SRC=arriba.htm frameborder=0

  FRAMESET cols=128,127*  border=0 framespacing=0
 frameborder=0
  FRAME name=FrameIzquierda scrolling=NO
 marginwidth=0 marginheight=0 noresize SRC=izquierda.jsp
   frameborder=NO
  FRAME name=FrameServicio marginwidth=0
 marginheight=0 noresize SRC=blanco.jsp frameborder=NO 
  /FRAMESET

  NOFRAMES
Su browser no acepta Frames.
  /NOFRAMES
   /FRAMESET
   /HTML

 In the left frame (FrameIzquierda) I have a jsp file (izquierda.jsp)
 that reads the new session's attributes (numero,edad) and they are
 displayed perfectly when the
 portal.jsp file is opened. Moreover, in the right frame I put a jsp file
 (blanco.jsp) that also reads the attributes 'id' and 'ag' and they are
 perfectly displayed too.
 But the problem becomes when I click a link placed in the izquierda.jsp
 file :

  .
  a href=top.jsptest/a
  or
  a href=top.jsp target=FrameServicio test/a
  .

 The top.jsp file also reads the attributes (numero, edad)...
 In both cases the session's attributes are not displayed, they only
 return a null value,  and the session id (session.getId()) is
 differtent because when the link is
 pressed, a new session object is createdso.. I don't know how to fix
 this
 I really need to get the two attributes I stored previously in the
 session object...

 Could you please help me???
 I'm desperate!!

 Thank you in advance..
 Nancy.

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How to draw graphs in JSP

2002-04-03 Thread Dmitry Namiot

see JPEG taglib in Coldtags suite:

http://www.servletsuite.com/jsp.htm
http://www.servletsuite.com/servlets/jpegtag.htm

--
Coldbeans Software - server-side Java (tm) components
http://www.servletsuite.com



__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: upload

2002-04-03 Thread Dmitry Namiot

For JSP you may use Upload taglib from Coldtags suite:

http://www.servletsuite.com/jsp.htm
http://www.servletsuite.com/servlets/uptag.htm

--
Coldbeans Software - server-side Java (tm) components
http://www.servletsuite.com



__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



servlet error when uploading a pdf file

2002-04-03 Thread Shahata, Ashraf

I'm using jsp to load a pdf on IBM Websphere, and I see the following
exception reported in the std.out:

02.04.03 10:18:05:143 GMT+01:00] 16d83e0 ServletInstan X Uncaught service()
exception thrown by servlet {0}: {1}
 JSP 1.1 Processor
 javax.servlet.ServletException
  at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.init(Compiled Code)
at java.lang.Exception.init(Compiled Code)

Any idea what an Uncaught service() exception refer to!?
Thanks

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



File Downloading/Save problem

2002-04-03 Thread ssmtech

Hello All,
I have written a code to download a Text file from Server to Local Disk.But the problem
is that when i click a Button in the JSP page through which the downloading of file is 
done,opens a Dialouge Box with the Save To Disk  option selected.when i go for the 
Save 
option the Text Field shows me a Wrong Filename(downloadFile.htm)which is not 
the 
File i want Download.I want to Download 1003-3.txt
Also when i go for the OPEN option and click on OK the Dialouge Box Opens again 
with the Save To Disk option selected,when i click on OK the Text Field of the 
Dialouge Box Shows the CORRECT Filename(1003-3.txt).when i click OK the File 
gets DOWNLOADED but with NO CONTENTS.

The snippet of code is .


public HttpServletResponse doDownloadFile(HttpServletRequest req,HttpServletResponse 
res)
throws ServletException,IOException {

String fname = 1003-3.txt;
res.setContentType(application/binary);
res.setHeader(Content-Disposition,attachment; filename=\+fname+\;);

ServletOutputStream stream = null;
try {
stream = res.getOutputStream();
BufferedInputStream bif = new BufferedInputStream(new FileInputStream(fname)); 
int data;
while(( data = bif.read()) != -1) {
stream.write(data);
stream.flush(); 
}
bif.close();
stream.close();
return res;
} catch(Exception e) {
}
finally {
if (stream != null)
stream.close();
return res;
}

}




Can Anybody Help me out with the problemPlease it is URGENT!!
Thanks a MILLION in Advance

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



How to change default page from index.jsp to login.jsp in Tomcat

2002-04-03 Thread [Moisey Oysgelt]

I hope that someone has already this experience


Moisey Oysgelt

  [EMAIL PROTECTED]








---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.343 / Virus Database: 190 - Release Date: 3/22/02

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How to change default page from index.jsp to login.jsp in Tomcat

2002-04-03 Thread Jeff Larsen

It may depend on the version of Tomcat, but in 4.0.3 there
is a section in $TOMCAT_HOME/conf/web.xml that looks like this:

welcome-file-list
  welcome-fileindex.html/welcome-file
  welcome-fileindex.jsp/welcome-file
/welcome-file-list




- Original Message -
From: [Moisey Oysgelt] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 03, 2002 8:31 AM
Subject: How to change default page from index.jsp to login.jsp in Tomcat


 I hope that someone has already this experience


 Moisey Oysgelt

   [EMAIL PROTECTED]








 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.343 / Virus Database: 190 - Release Date: 3/22/02

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Getting full URL or Protocol in JSP page?

2002-04-03 Thread Michael Vincent

In ASP it is possible to get the fully qualified URL or protocol of a page with the 
Request.ServerVariables collection.  Is this possible in JSP?  I did not see anything 
that would help in the request object.  It will only give me the relative URL. 

Thanks!

-mike.

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Getting full URL or Protocol in JSP page?

2002-04-03 Thread Shahata, Ashraf

The following code retrieves the request headers that are passed when a
template is requested:

Start---
---
%@ page language=java import=java.util.* %

body bgcolor=white
font color=red

%
out.println(h3 + Header values for this request + /h3);
out.println(table border=0);
Enumeration e = request.getHeaderNames();
while (e.hasMoreElements()) {
String headerName = (String)e.nextElement();
String headerValue = request.getHeader(headerName);
out.println(trtd bgcolor=\#CC\ + headerName);
out.println(/tdtd + headerValue +
/td/tr);
}
out.println(/table);
%
End-



-Original Message-
From: Michael Vincent [mailto:[EMAIL PROTECTED]]
Sent: 03 April 2002 16:27
To: [EMAIL PROTECTED]
Subject: Getting full URL or Protocol in JSP page?


In ASP it is possible to get the fully qualified URL or protocol of a page
with the Request.ServerVariables collection.  Is this possible in JSP?  I
did not see anything that would help in the request object.  It will only
give me the relative URL.

Thanks!

-mike.

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Getting full URL or Protocol in JSP page?

2002-04-03 Thread Michael Vincent

Thanks.  I actually got the URL with HttpUtil.getRequestURL(request).

-Original Message-
From: Shahata, Ashraf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting full URL or Protocol in JSP page?


The following code retrieves the request headers that are passed when a
template is requested:

Start---
---
%@ page language=java import=java.util.* %

body bgcolor=white
font color=red

%
out.println(h3 + Header values for this request + /h3);
out.println(table border=0);
Enumeration e = request.getHeaderNames();
while (e.hasMoreElements()) {
String headerName = (String)e.nextElement();
String headerValue = request.getHeader(headerName);
out.println(trtd bgcolor=\#CC\ + headerName);
out.println(/tdtd + headerValue +
/td/tr);
}
out.println(/table);
%
End-



-Original Message-
From: Michael Vincent [mailto:[EMAIL PROTECTED]]
Sent: 03 April 2002 16:27
To: [EMAIL PROTECTED]
Subject: Getting full URL or Protocol in JSP page?


In ASP it is possible to get the fully qualified URL or protocol of a page
with the Request.ServerVariables collection.  Is this possible in JSP?  I
did not see anything that would help in the request object.  It will only
give me the relative URL.

Thanks!

-mike.

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Getting full URL or Protocol in JSP page?

2002-04-03 Thread Chen, Gin

Thats a deprecated class. (Servlet API 2.3)
Just use request.getRequestURL();
-Tim

-Original Message-
From: Michael Vincent [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting full URL or Protocol in JSP page?


Thanks.  I actually got the URL with HttpUtil.getRequestURL(request).

-Original Message-
From: Shahata, Ashraf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting full URL or Protocol in JSP page?


The following code retrieves the request headers that are passed when a
template is requested:

Start---
---
%@ page language=java import=java.util.* %

body bgcolor=white
font color=red

%
out.println(h3 + Header values for this request + /h3);
out.println(table border=0);
Enumeration e = request.getHeaderNames();
while (e.hasMoreElements()) {
String headerName = (String)e.nextElement();
String headerValue = request.getHeader(headerName);
out.println(trtd bgcolor=\#CC\ + headerName);
out.println(/tdtd + headerValue +
/td/tr);
}
out.println(/table);
%
End-



-Original Message-
From: Michael Vincent [mailto:[EMAIL PROTECTED]]
Sent: 03 April 2002 16:27
To: [EMAIL PROTECTED]
Subject: Getting full URL or Protocol in JSP page?


In ASP it is possible to get the fully qualified URL or protocol of a page
with the Request.ServerVariables collection.  Is this possible in JSP?  I
did not see anything that would help in the request object.  It will only
give me the relative URL.

Thanks!

-mike.

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Crystal reports in JSP

2002-04-03 Thread Santapur, Rao

Hello All,

I am having a weird problem in my webapp with Crystal reports (ver8); I have
a JSP file that displays  records in a grid. Each line has a link to a
crystal report (passing all the required parameters of that  report). When I
click on that link report pops up in a SEPERATE window with the data that I
want to show.
Up till here it works fine, the problem I'm having is I cannot access the
grid JSP or other JSP files when I close that report  window.(it displays
internal server 500 error if I try to access any JSP file). At this point I
have to close all browser sessions and start over again with sign-on screen.
I believe the session is  getting destroyed here, but the interesting thing
note is when I copy that report on to a different server  (say server2), and
have the link point to that server everything works fine, no problem at all
in accessing in any of the JSP pages after running the report.
I tried with both the viewers activx and java, but no success..

I would be grateful if anybody can shed some light what could be wrong
here...

I appreciate your help.

Thanks!

Rao

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Getting full URL or Protocol in JSP page?

2002-04-03 Thread Michael Vincent

That wont work. I get this error message:

Method getRequestURL() not found in interface javax.servlet.http.HttpServletRequest.


-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:59 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting full URL or Protocol in JSP page?


Thats a deprecated class. (Servlet API 2.3)
Just use request.getRequestURL();
-Tim

-Original Message-
From: Michael Vincent [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting full URL or Protocol in JSP page?


Thanks.  I actually got the URL with HttpUtil.getRequestURL(request).

-Original Message-
From: Shahata, Ashraf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting full URL or Protocol in JSP page?


The following code retrieves the request headers that are passed when a
template is requested:

Start---
---
%@ page language=java import=java.util.* %

body bgcolor=white
font color=red

%
out.println(h3 + Header values for this request + /h3);
out.println(table border=0);
Enumeration e = request.getHeaderNames();
while (e.hasMoreElements()) {
String headerName = (String)e.nextElement();
String headerValue = request.getHeader(headerName);
out.println(trtd bgcolor=\#CC\ + headerName);
out.println(/tdtd + headerValue +
/td/tr);
}
out.println(/table);
%
End-



-Original Message-
From: Michael Vincent [mailto:[EMAIL PROTECTED]]
Sent: 03 April 2002 16:27
To: [EMAIL PROTECTED]
Subject: Getting full URL or Protocol in JSP page?


In ASP it is possible to get the fully qualified URL or protocol of a page
with the Request.ServerVariables collection.  Is this possible in JSP?  I
did not see anything that would help in the request object.  It will only
give me the relative URL.

Thanks!

-mike.

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Briish summer Time formating.

2002-04-03 Thread Andy Cobley

I do apologise to everyone for this question, but exactly how do I format a
time for British Summer Time ?  Currently I use:

SimpleDateFormat formatter= new SimpleDateFormat (E hh:mm a (dd/MM));
formatter.setTimeZone(TimeZone.getTimeZone(GMT));
String OutString = formatter.format(DatePosted);

I know I'm missing something but can't quite put my finger on it.
Suggestions please ?

Andy C

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Getting full URL or Protocol in JSP page?

2002-04-03 Thread Chen, Gin

Sorry. It's a Servlet 2.3 method.
Just keep it in mine should you upgrade to the new Servlet API.
-Tim

-Original Message-
From: Michael Vincent [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:01 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting full URL or Protocol in JSP page?


That wont work. I get this error message:

Method getRequestURL() not found in interface
javax.servlet.http.HttpServletRequest.


-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:59 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting full URL or Protocol in JSP page?


Thats a deprecated class. (Servlet API 2.3)
Just use request.getRequestURL();
-Tim

-Original Message-
From: Michael Vincent [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting full URL or Protocol in JSP page?


Thanks.  I actually got the URL with HttpUtil.getRequestURL(request).

-Original Message-
From: Shahata, Ashraf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting full URL or Protocol in JSP page?


The following code retrieves the request headers that are passed when a
template is requested:

Start---
---
%@ page language=java import=java.util.* %

body bgcolor=white
font color=red

%
out.println(h3 + Header values for this request + /h3);
out.println(table border=0);
Enumeration e = request.getHeaderNames();
while (e.hasMoreElements()) {
String headerName = (String)e.nextElement();
String headerValue = request.getHeader(headerName);
out.println(trtd bgcolor=\#CC\ + headerName);
out.println(/tdtd + headerValue +
/td/tr);
}
out.println(/table);
%
End-



-Original Message-
From: Michael Vincent [mailto:[EMAIL PROTECTED]]
Sent: 03 April 2002 16:27
To: [EMAIL PROTECTED]
Subject: Getting full URL or Protocol in JSP page?


In ASP it is possible to get the fully qualified URL or protocol of a page
with the Request.ServerVariables collection.  Is this possible in JSP?  I
did not see anything that would help in the request object.  It will only
give me the relative URL.

Thanks!

-mike.

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some 

List page problem - JSP

2002-04-03 Thread JOSHY MON M C

Hi All
I have a JSP page that displays a list. The list is shown querying against a
database( oracle). It displays data when there few items in the list. If
there are 1000 items or so, the list is not displaying, the page hangs. why
?

What to do if I need to display the list batchwise (pagewise) say 50 items
/page ? How to do that in Db? can anyone help ?

Thanks in advance
joshy

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: List page problem - JSP

2002-04-03 Thread Peter Dolukhanov

Try using the command:

SELECT * FROM TABLE LIMIT 0,50;

Obviously changing the numbers does what you need.

Cheers,
Pete

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of JOSHY MON M C
Sent: 03 April 2002 19:42
To: [EMAIL PROTECTED]
Subject: List page problem - JSP

Hi All
I have a JSP page that displays a list. The list is shown querying
against a
database( oracle). It displays data when there few items in the list. If
there are 1000 items or so, the list is not displaying, the page hangs.
why
?

What to do if I need to display the list batchwise (pagewise) say 50
items
/page ? How to do that in Db? can anyone help ?

Thanks in advance
joshy


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: List page problem - JSP

2002-04-03 Thread Eric Fleming

Does anyone happen to know how to do this same query in SQL.  I am using
Microsoft SQL 2000 and can't find a similar query to accomplish this same
task.  Any help would be appreciated.

Eric

- Original Message -
From: Peter Dolukhanov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 03, 2002 02:33 pm
Subject: Re: List page problem - JSP


 Try using the command:

 SELECT * FROM TABLE LIMIT 0,50;

 Obviously changing the numbers does what you need.

 Cheers,
 Pete

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]] On Behalf Of JOSHY MON M C
 Sent: 03 April 2002 19:42
 To: [EMAIL PROTECTED]
 Subject: List page problem - JSP

 Hi All
 I have a JSP page that displays a list. The list is shown querying
 against a
 database( oracle). It displays data when there few items in the list. If
 there are 1000 items or so, the list is not displaying, the page hangs.
 why
 ?

 What to do if I need to display the list batchwise (pagewise) say 50
 items
 /page ? How to do that in Db? can anyone help ?

 Thanks in advance
 joshy

 
 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: List page problem - JSP

2002-04-03 Thread Kwan, William

Hi Eric,

I had to use taglibs.  Go to http://jsptags.com/tags/navigation/pager/

talk to you later,
Will


-Original Message-
From: Eric Fleming [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:53 AM
To: [EMAIL PROTECTED]
Subject: Re: List page problem - JSP


Does anyone happen to know how to do this same query in SQL.  I am using
Microsoft SQL 2000 and can't find a similar query to accomplish this same
task.  Any help would be appreciated.

Eric

- Original Message -
From: Peter Dolukhanov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 03, 2002 02:33 pm
Subject: Re: List page problem - JSP


 Try using the command:

 SELECT * FROM TABLE LIMIT 0,50;

 Obviously changing the numbers does what you need.

 Cheers,
 Pete

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]] On Behalf Of JOSHY MON M C
 Sent: 03 April 2002 19:42
 To: [EMAIL PROTECTED]
 Subject: List page problem - JSP

 Hi All
 I have a JSP page that displays a list. The list is shown querying
 against a
 database( oracle). It displays data when there few items in the list. If
 there are 1000 items or so, the list is not displaying, the page hangs.
 why
 ?

 What to do if I need to display the list batchwise (pagewise) say 50
 items
 /page ? How to do that in Db? can anyone help ?

 Thanks in advance
 joshy

 
 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



how to store a document file?

2002-04-03 Thread Nancy Crisostomo Martinez

Hi!
Does any of you know how to store a formatted document (text with bolds,
italics, etc) just like a Word document or html file in an Oracle
database?
Do you know what datatype the record must have?
And how does it is stored in programming (Java Code)? you could give me
a trick (Java code) to do it ...

Thanks in advance!!
Nancy.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Setting Location

2002-04-03 Thread Jay H. Lang

Hi List,
Can I set the Location URL (Netscape) or Address URL (I.E.) to a string
that I want instead of showing the user all of the URL encoded data that
was sent to the servlet that calls my JSP?

Thanks.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Setting Location

2002-04-03 Thread Peter Dolukhanov

If you are using POST as a method then the user just sees the address,
GET appends the data onto the URL. So, if you can use POST and the
problem is solved.

Other than that, you can use Session Variables to store you information
if you want it to be kept from the user.

Hope that helps,
Pete

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Jay H. Lang
Sent: 03 April 2002 22:55
To: [EMAIL PROTECTED]
Subject: Setting Location

Hi List,
Can I set the Location URL (Netscape) or Address URL (I.E.) to a string
that I want instead of showing the user all of the URL encoded data that
was sent to the servlet that calls my JSP?

Thanks.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Briish summer Time formating.

2002-04-03 Thread Chris Pratt

I'd bet it has something to do with the fact that you're forcing it to use
the GMT Time Zone, which doesn't track Daylight Savings Time's.  You
probably just have to use the default Time Zone (if you're in the UK).
(*Chris*)

- Original Message -
From: Andy Cobley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 03, 2002 7:53 AM
Subject: [JSP-INTEREST] Briish summer Time formating.


 I do apologise to everyone for this question, but exactly how do I format
a
 time for British Summer Time ?  Currently I use:

 SimpleDateFormat formatter= new SimpleDateFormat (E hh:mm a (dd/MM));
 formatter.setTimeZone(TimeZone.getTimeZone(GMT));
 String OutString = formatter.format(DatePosted);

 I know I'm missing something but can't quite put my finger on it.
 Suggestions please ?

 Andy C


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: how to store a document file?

2002-04-03 Thread Vikramjit Singh

hi,

for storing in oracle database u have to use BLOB datatype. The file has to
be inserted in binary fashion for which APIs are there in java. Initially
data has to be entered and for the blob field  write EMPTY_BLOB() like this

insert into sb_emp
values('1113','','','','','','','','','','','','',EMPTY_BLOB());

. and then update that field like this.

FileInputStream fis = new FileInputStream(file);
PreparedStatement pstmt = dbCon.prepareStatement(update
sb_emp set Eimage=? where empid=?);// (insert into sb_emp
values('','','','','','','','','','','','','',EMPTY_BLOB());//(update
sb_emp set Eimage=? where empid=?);
pstmt.setBinaryStream(1,fis,(int)file.length());
pstmt.setInt(2,1113);
pstmt.executeUpdate();
pstmt.close();
fis.close();


Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


-Original Message-
From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 1:19 PM
To: [EMAIL PROTECTED]
Subject: how to store a document file?


Hi!
Does any of you know how to store a formatted document (text with bolds,
italics, etc) just like a Word document or html file in an Oracle
database?
Do you know what datatype the record must have?
And how does it is stored in programming (Java Code)? you could give me
a trick (Java code) to do it ...

Thanks in advance!!
Nancy.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: taglib

2002-04-03 Thread vtr

Can any one please say how to use
taglibs in Tomcat
Regards

V.T.R.Ravi Kumar,

Engineer, CCX,
BHEL, Hardwar, INDIA
*
Phone  : 0133-485405.
Fax: 0133-423948.
Web: http://vtr.2itb.com
Alternate mails: [EMAIL PROTECTED]
 [EMAIL PROTECTED]
*
- Original Message -
From: Vikramjit Singh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 04, 2002 9:14 AM
Subject: Re: how to store a document file?


 hi,

 for storing in oracle database u have to use BLOB datatype. The file has
to
 be inserted in binary fashion for which APIs are there in java. Initially
 data has to be entered and for the blob field  write EMPTY_BLOB() like
this

 insert into sb_emp
 values('1113','','','','','','','','','','','','',EMPTY_BLOB());

 . and then update that field like this.

 FileInputStream fis = new FileInputStream(file);
 PreparedStatement pstmt = dbCon.prepareStatement(update
 sb_emp set Eimage=? where empid=?);// (insert into sb_emp

values('','','','','','','','','','','','','',EMPTY_BLOB());//(update
 sb_emp set Eimage=? where empid=?);
 pstmt.setBinaryStream(1,fis,(int)file.length());
 pstmt.setInt(2,1113);
 pstmt.executeUpdate();
 pstmt.close();
 fis.close();


 Regards,
 Vikramjit Singh,
 Systems Engineer,
 GTL Ltd.
 Ph. 7612929-1031


 -Original Message-
 From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 03, 2002 1:19 PM
 To: [EMAIL PROTECTED]
 Subject: how to store a document file?


 Hi!
 Does any of you know how to store a formatted document (text with bolds,
 italics, etc) just like a Word document or html file in an Oracle
 database?
 Do you know what datatype the record must have?
 And how does it is stored in programming (Java Code)? you could give me
 a trick (Java code) to do it ...

 Thanks in advance!!
 Nancy.


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Briish summer Time formating.

2002-04-03 Thread It, Cockpit (CAP, Contractor)

Better you can try Using GregorianCalendar which has the facility to take
timezone as an argument and works fine according to the given timezone.
Actually we used it in our project and succeeded.

Thanx
Yogaraj

-Original Message-
From: Chris Pratt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 7:07 AM
To: [EMAIL PROTECTED]
Subject: Re: Briish summer Time formating.


I'd bet it has something to do with the fact that you're forcing it to use
the GMT Time Zone, which doesn't track Daylight Savings Time's.  You
probably just have to use the default Time Zone (if you're in the UK).
(*Chris*)

- Original Message -
From: Andy Cobley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 03, 2002 7:53 AM
Subject: [JSP-INTEREST] Briish summer Time formating.


 I do apologise to everyone for this question, but exactly how do I format
a
 time for British Summer Time ?  Currently I use:

 SimpleDateFormat formatter= new SimpleDateFormat (E hh:mm a (dd/MM));
 formatter.setTimeZone(TimeZone.getTimeZone(GMT));
 String OutString = formatter.format(DatePosted);

 I know I'm missing something but can't quite put my finger on it.
 Suggestions please ?

 Andy C


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Ant 1.4.1 Installation and Running

2002-04-03 Thread Sanjay Jadhav

Hi..
i want to know detailed installation information about ant.
I set ANT_HOME then added it to J2EE_HOME env variables.
But whenever i used ant application on command prompt of win2000 it said system dies 
not recognised the bat file,I tried to get from jakarta web site but installation 
instruction given there i cann't get those, even after setting env variables.
can some one give me detail idea about the Ant Installtion

Please do me a favour for me.
on my computer
ant is on c:\jakarta-ant-1.4.1
jdk1.3.1 on c:\jdk1.3.1
j2sdkee1.3 on c:\j2sdkee1.3
apache tomcat on c:\jakarta-tomcat-4.0
i set following env varibles
J2EE_HOME = c:\j2sdkee1.3
JAVA_HOME = c:\jdk1.3.1
ANT_HOME = c:\jakarta-ant-1.4.1

Now give me the exact path for the setting the all the classpath and path

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Ant 1.4.1 Installation and Running

2002-04-03 Thread Sanjay Jadhav

Hi..
can anyone give the good books to learn jsp,servlet,design pattern,ejb

thank with beast regards,
sanjay jadhav

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Max file size of a jsp Page

2002-04-03 Thread Antony Stace

Hi

Can someone please tell me what the maximun file size can be for a jsp Page.  Is there 
a limit on the
size of

1.  The jsp text file
2.  The java file which is made from the jsp file
3.  The compiled class file.

Does the size of tag libraries have any effect?

Cheers

Tony


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



How to fix height of a jsp screen

2002-04-03 Thread Murali Mohan

Hi,

Any Idea?
How to fix height of a jsp screen?

Thanks inadvance,
Murali

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com