Re: offtopic : to truncate a double

2001-08-28 Thread Rajinder Sandhu
Thank you All for your help!! but i have noticed that if you pass double value 45.999 it rounds off the fractional part and returns 46.00 Is it a bug or NumberFormat class behaves like this only ? below is the code to do it. import java.text.*; public class Truncate { public static String tri

Re: does anythone know where have free area to place jsp?

2001-08-28 Thread Andrew Bruno
try www.mycgiserver.com :ab -Original Message- From: Jason Au [mailto:[EMAIL PROTECTED]] Sent: Sunday, 29 April 2001 12:10 PM To: [EMAIL PROTECTED] Subject: does anythone know where have free area to place jsp? Hi all, where can I find a free area that can let me place jsp into

Re: sesstion.setAttribute()

2001-08-28 Thread Dinesh Somasundram
Thank you -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Rajinder Sandhu Sent: Tuesday, August 28, 2001 6:20 PM To: [EMAIL PROTECTED] Subject: Re: sesstion.setAttribute() public void putValue(java.lang.S

Re: sesstion.setAttribute()

2001-08-28 Thread Dinesh Somasundram
Thank you. But I do believe that the "putValue" is deprecated. Dinesh, S. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Harish Visvanath Sent: Tuesday, August 28, 2001 8:13 PM To: [EMAIL PROTECTED] Subje

Excel File Format

2001-08-28 Thread mley
Can someone tell me how to create an Excel file format from a JSP page? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST"

Re: how to display tree view in jsp

2001-08-28 Thread Huynh Tin
Hi chenghong ! You can reference to some address on internet for this problem Some address as following : http://www.coolservlets.com http://www.ivanpeters.com/   I also make 1 dynamic tree view already ... it's run ok now ! Best regards ! Huynh Tin - Original Message - From:

Re: sesstion.setAttribute()

2001-08-28 Thread Dinesh Somasundram
Thanx, Dinesh, S. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Roslawski Sent: Tuesday, August 28, 2001 5:10 PM To: [EMAIL PROTECTED] Subject: Re: sesstion.setAttribute() Hi Dinesh, > I have

Re: sesstion.setAttribute()

2001-08-28 Thread Dinesh Somasundram
Thanx, Dinesh, S. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Rajinder Sandhu Sent: Tuesday, August 28, 2001 4:58 PM To: [EMAIL PROTECTED] Subject: Re: sesstion.setAttribute() if pUser is long you c

is there response.addDateHeader("ExpiresAbsolute",...)

2001-08-28 Thread yangqiao75
Hi all: now i am work with convert asp to jsp. in asp Response.Expires=0 ,we can convert it to response.setDateHeader("Expires",0) ok? but in asp: Response.ExpiresAbsolute = Now() - 1 can i convert it to : java.util.Calendar caleHeader = java.util.Calendar.getInstance(); caleHeader.set(caleHe

does anythone know where have free area to place jsp?

2001-08-28 Thread Jason Au
Hi all, where can I find a free area that can let me place jsp into? if any, please tell me cause I am poor in set up server to run jsp ... but I still want to try how to write jsp ^^ thank a lots. Jason - Original Message - From: Andrew Bruno <[EMAIL PROTECTED]> To: <[EMAIL PR

how to have a dynamic tree view

2001-08-28 Thread chenghong
i would like to write a system which can adminstering unix user in web. and i would like to display all user in one page. so when i click on user .. it should display all users at same page.and if i click user again .. all user will not be shown.   for example       user         user1    

how to display tree view in jsp

2001-08-28 Thread chenghong
how do i display tree view of my webpage ?   for example ..     under user categories there are users .. and the number of user is not static .. and can be added and deleted anytime. user     user1         age     status user2     user3   thanks.   

Detect Session Expired, redirect to page

2001-08-28 Thread Andrew Bruno
Hello All, I was wondering if anyone could pass on some insight on how to detect that a session has expired, so that I may redirect to a specific page informing the user of this? Thanks, :ab ==To unsubscribe: mailto [EM

Re: Error: JSP Page threw a non-Exception Throwable????

2001-08-28 Thread Andrew Bruno
Hi Celeste, I wanted to test out the runtime feature, so I set out to test it on Tomcat 4b6, win 2000 server. I created a bat file called hello.bat that simply echoed hello into a hello.txt file. I dont have the printer LWPPrint, and I dont know how to print from dos command prompt. The code i

Re: how to insert a row in table?

2001-08-28 Thread lf2
Needn't jsp!   Here is a example of JTable,who please help me to modify it,and finish these job: one:when i press 'insert' in key,the table will insert a row; two:when the focus at last row,I press 'down' key,the table will append a new row at the last.   best regards,thanks  

Re: offtopic : to truncate a double

2001-08-28 Thread Ashish Shrestha
Hi for working with numbers and date check out the java.text package. In your case, try the java.text.DecimalFormat. You could also round a number to two decimal places by multiplying it by tens multiple, taking the integral part and dividing by tens multiple. Ex x = x * 100; x = integral part

Re: 404 errorpage customization

2001-08-28 Thread Ashish Shrestha
Hi, I put it in the web.xml in the conf directory of tomcat. Ashish Shrestha === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST

Re: Help

2001-08-28 Thread Ashish Shrestha
Dinesh Somasundram wrote: > > String myParam = "NAME"; > String myParam; <-- the myParam here is supposed to be the > value "NAME" > Sorry it will be either null or you will be not allowed to declare it depending on your exact code. If you declare a variable and initialis

Re: page Context

2001-08-28 Thread Richard Yee
Ajay, You need to change this line: public ArrayList testList; to public ArrayList testList = new ArrayList(); Your message is a little confusing, I see a bean class but no tag class. -Richard At 05:20 PM 8/28/01 -0700, you wrote: >I am a newbie and trying to find out how to have a c

page Context

2001-08-28 Thread Ajay Ejantkar
I am a newbie and trying to find out how to have a custom tag create an arraylist to send to my jsp page. Currently I have a tag class that will access my database and create a resultset. I then try to insert that resultset into an ArrayList, and return the arrayList. Here is my code in my bean

Error: JSP Page threw a non-Exception Throwable????

2001-08-28 Thread Haseltine, Celeste
Has anyone every experienced the following exception from a JSP: Exception javax.servlet.ServletException: JSP Page threw a non-Exception Throwable. I am trying to access a method in a Java class bean called Print from within my JSP. The Print method resides in a Java class bean (non-visual) th

**ANNOUNCE: CORE J2EE[tm] PATTERNS Now Available!**

2001-08-28 Thread Michael Alread
**ANNOUNCE: CORE J2EE[tm] PATTERNS Now Available!** Currently the number two best-selling computer book at Fatbrain.com and a bestseller at Amazon.com, CORE J2EE[tm] PATTERNS is now available! For those of you who have already ordered a copy, thank you for helping make this title a bestseller!

Re: mailing in java

2001-08-28 Thread Richard Yee
Khan, Use the Jakarta Mailer Tag Lib. http://jakarta.apache.org/taglibs/doc/mailer-doc/intro.html Also check the archives as this has been covered within the last two weeks by this list. -Richard At 02:12 PM 8/28/01 -0700, you wrote: >Hi all >If any one have any idea how to send emails through

mailing in java

2001-08-28 Thread Shafquat Ullah Khan
Hi all If any one have any idea how to send emails through the JSP pages pls let me know. As I am new in this I need help from you guys. Khan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Fo

Re: offtopic : to truncate a double

2001-08-28 Thread Chris Pratt
Take a look at the java.text.DecimalFormat() (*Chris*) - Original Message - From: "Richard Yee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 28, 2001 1:09 PM Subject: Re: [JSP-INTEREST] offtopic : to truncate a double > Raj, > There is not a method that truncate

Re: How to show a directory structure on my JSP

2001-08-28 Thread Rick Reumann
To get the list of all files in a directory import java.io.* and then in a try/catch: File directory = new File( "directoryPath" ); String[] listOfFilesInDirectory = directory.list(); Now you have a String array of all the files and directories within the directory passed into the new File() con

How to show a directory structure on my JSP

2001-08-28 Thread sanjib B
Hi All , Please help !! I wanna do the following. Suppose on my directory/file structure I have the following dirA \filea \fileb \filec dirB \filed \filee On my JSP pahe I wanna show two links first. One of dirA and another of dirB. If the user clicks on A/B I wanna branch o

Re: offtopic : to truncate a double

2001-08-28 Thread Richard Yee
Raj, There is not a method that truncates a double to a certain precision. Check out this link for an explanation on Performing Exact Calculations With Floating-Point Numbers http://developer.java.sun.com/developer/JDCTechTips/2001/tt0807.html Basically, can either use the BigDecimal class that

Re: Error 500 ??? (Sealing Violation)

2001-08-28 Thread Richard Yee
Sufi, Did you look up what a sealing violation is? How did you declare xmldoc? -Richard At 06:27 PM 8/28/01 +, you wrote: >Hi, I have added the declaration for the xmldoc varaible, but now I have >this error : > >Error: 500 >Location: /xmlsundar/XslViews.jsp >Internal Servlet Error: > >jav

Re: Eroor 500 ???

2001-08-28 Thread sufi malak
After debugging the jsp code : <%@page import="javax.xml.transform.stream.*,javax.xml.transform.dom.*,javax.xml.transform.*, java.io.*, jspbeans.*" %> XSL Transformations <% String view=request.getParameter("view"); XMLDocBean xmldoc = new XMLDocBean(); org.w3c.dom.Document doc=xmldoc.

Re: Eroor 500 ???

2001-08-28 Thread sufi malak
Hi, I have added the declaration for the xmldoc varaible, but now I have this error : Error: 500 Location: /xmlsundar/XslViews.jsp Internal Servlet Error: javax.servlet.ServletException: sealing violation at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.ja

Re: Eroor 500 ???

2001-08-28 Thread Richard Yee
Sufi, From reading the error message, it seems to me that you are not declaring the xmldoc variable anywhere in you JSP page. -Richard At 05:14 PM 8/28/01 +, you wrote: >Hi, I have a jsp file XslViews.jsp that begins with these lines : > ><%@page >import="javax.xml.transform.stream.*,javax

Re: Difference - Taglibs and Beans

2001-08-28 Thread Burdick Robert
To make a long story short, the major difference is that with taglibs, all of the Java code is "hidden" from the JSP developer inside the tag handler code. With Java Beans, on the other hand, the basic interface is to use XML syntax to set and get properties, but the JSP developer can still (a

Eroor 500 ???

2001-08-28 Thread sufi malak
Hi, I have a jsp file XslViews.jsp that begins with these lines : <%@page import="javax.xml.transform.stream.*,javax.xml.transform.dom.*,javax.xml.transform.*, java.io.*" %> XSL Transformations <% String view=request.getParameter("view"); org.w3c.dom.Document doc=xmldoc.getXmldoc(); I a

Difference - Taglibs and Beans

2001-08-28 Thread Campano, Troy
What is the difference between a BEAN and a custom TAGLIB? I know in your JSP code, you call them differently, but you pass them both parameters and they do a bunch of the code in the background. So what's the difference? Which is better? thank you for your time! [ t r o y ] Newbie (former AS

Re: how to insert a row in table?

2001-08-28 Thread Jann VanOver
Where's the JSP? -Original Message-From: lf q [mailto:[EMAIL PROTECTED]]Sent: Monday, August 27, 2001 5:56 PMTo: [EMAIL PROTECTED]Subject: how to insert a row in table? hi,this is Jtable example.someone help me to modify it,and finish these job, one:when i press 'inse

Re: getting the options in a dropdown from the database

2001-08-28 Thread Usha Rani Kommu
Hi Senthil, Thanks, it helped.This is what I wanted. usha === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some rel

Re: Deploy applications

2001-08-28 Thread Freddy Ramiro Tello Delgad
Thanks for your help.   I just do it, but i can't browse the application from apache but i can browse the Tomcat's examples applications.   regards    - Original Message - From: SriHari To: [EMAIL PROTECTED] Sent: Tuesday, August 28, 2001 8:14 AM Subject: Re: Deploy ap

Re: Deploy applications

2001-08-28 Thread SriHari
Just Place your application.war file in the < tomcat>/ folder and restart  tomcat   All the Best SriHari -Original Message-From: Freddy Ramiro Tello Delgad [mailto:[EMAIL PROTECTED]]Sent: Tuesday, August 28, 2001 6:44 PMTo: [EMAIL PROTECTED]Subject: Deploy applications I h

Deploy applications

2001-08-28 Thread Freddy Ramiro Tello Delgad
I have developed a web application and i have the WAR file but i don't know how deploy it. My webserver is apache and my application server is tomcat.   Thanks for your help. Regards   frtello

Tomcat as NT service problem

2001-08-28 Thread SriHari
Hi When i am running my tomcat as a nt service My jsp's are unable to detect class files But when i am running the same from consolo they are running fine Do i have to set any other paramenter in wrapper.properties file for classes Pl Help SriHari

Re: Copying files in java

2001-08-28 Thread Craig Newlander
For those wishing to certify their code with JavaPureCheck just a warning to be careful when using Runtime.exec as this call will almost definetly cause your code to fails certification. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[E

Re: response.sendRedirect() problem to Irawan

2001-08-28 Thread Damodaran, Rajakumar (CORP, Consultant)
HI Please refer the following page Microsoft http://support.microsoft.com/support/kb/articles/Q222/0/64.ASP Netscape http://home.netscape.com/security/notes/nocache.html -Original Message- From: Irawan [mailto:[EMAIL PROTECTED]] Sent: Monday, August 27, 2001 5:23 PM To: [EMAIL

Re: Creating a temporary file?

2001-08-28 Thread Christian Roslawski
Hi David, > > I would like to generate a custom text file for my users to download. > Currently, I pop up a window with the text, and tell them to copy it and paste > it into a text file. But I would like instead to have a link that they can > click to download a file. > > Is it possible to create

Re: sesstion.setAttribute()

2001-08-28 Thread Rajinder Sandhu
public void putValue(java.lang.String , java.lang.Object ) has been Deprecated. use setAttribute(java.lang.String , java.lang.Object ) -Original Message- From: Harish Visvanath [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 6:43 PM To: [EMAIL PROTECTED] Subject: Re: sesstion

RE: 404 Errorpage Customization

2001-08-28 Thread SriHari
Hi i tried placing the tag in web.xml TAG. how should i give the location of the file 404.jsp where should i place the folder error/404.jsp i tried in placing webapps and Root -Original Message- From: Claudio Parnenzini [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 2:25 PM T

Re: sesstion.setAttribute()

2001-08-28 Thread Harish Visvanath
Hi, I beleive u can also use session.putValue("UserID",pUser); session.putValue("UserId", UserName); as FYI public void putValue(java.lang.String name, java.lang.Object value) Binds an object to this session, using the name specified. If an object of the same name is already bound to the sessio

inserting data into 2 tables

2001-08-28 Thread Senthil Raja V
Hi. i need to insert data into 2 tables in database after one by one. the first table has a primary key auto increment after inserting data into first table, with the help of first table primary key id i am inserting data into second table. this should not be overlapped if more than one users acce

Re: sesstion.setAttribute()

2001-08-28 Thread Christian Roslawski
Hi Dinesh, > I have an int var called pUser and another String UserName. How do I put > them into the session? I understand that the parameters for the > session.setAttribute is a string and an object. > > session.setAttribute(java.lang.String, java.lang.Object) > > session.setAttribute("

Creating a temporary file?

2001-08-28 Thread David Castro
I would like to generate a custom text file for my users to download. Currently, I pop up a window with the text, and tell them to copy it and paste it into a text file. But I would like instead to have a link that they can click to download a file. Is it possible to create a file from Java to do

Re: sesstion.setAttribute()

2001-08-28 Thread Rajinder Sandhu
if pUser is long you can use something like session.setAttribute("UserID", String.valueOf(pUser)); or session.setAttribute("UserID", pUser + ""); or session.setAttribute("UserID", new Long(pUser) ); hope atleast one will help. Cheers!! raj -Original Message- From: Dinesh Somasun

sesstion.setAttribute()

2001-08-28 Thread Dinesh Somasundram
Hi All, I have an int var called pUser and another String UserName. How do I put them into the session? I understand that the parameters for the session.setAttribute is a string and an object. session.setAttribute(java.lang.String, java.lang.Object) session.setAttribute("UserID", pUser)

[ANN] HyperQbs framework 2.1 beta 1 released

2001-08-28 Thread Peter K. Ulrich
A new beta version of the HyperQbs framework 2.1 is available for free download at http://www.hyperqbs.org HyperQbs is an open servlet framework for rapid application development of enterprise-scale Web applications based on visual components for the Java 2 platform. HyperQbs encourages applicati

Re: 404 Errorpage Customization

2001-08-28 Thread Claudio Parnenzini
It's in your web.xml file under the TAG. Claudio -Original Message- From: Young-Gun, Cho Sent: Tue 8/28/2001 10:33 AM To: [EMAIL PROTECTED] Cc: Subject: Re: 404 Errorpage Customization that is

Re: 404 Errorpage Customization

2001-08-28 Thread Young-Gun, Cho
that is related Apache configuration, i guess.. see the apache book or reference. good luck! SriHari wrote: > Hi > Where should i place the below xml information to redirect the 404/500 and > other general errors to a custom page > I am using Tomcat 3.2.3 i have tried it in server.xml config