Re: Security

2002-12-09 Thread Alireza Nahavandi
[mailto:[EMAIL PROTECTED]]On Behalf Of Alireza Nahavandi Sent: Thursday, December 05, 2002 2:47 PM To: [EMAIL PROTECTED] Subject: Re: Secure server Hi guys, Thank you for your responses. I tested URL rewriting. It did not work. Any other solution? Thank you again. -Original Message

Re: Secure server

2002-12-05 Thread Alireza Nahavandi
session earlier - like as soon as the user starts filling the shopping cart - it' not that expensive, or explicity post everything to the first page in the https seesion. -Original Message- From: Alireza Nahavandi [SMTP:[EMAIL PROTECTED]] Sent: 04 December 2002 06:02

Secure server

2002-12-04 Thread Alireza Nahavandi
Hi everybody, I think there was a discussion about this problem before I need some help with secure server. I have a session object for a shopping cart : jsp:usebean id=cart scope=session class=shop.Cart / For checking out I need to call programs from a path like :

session object and secure server

2002-11-14 Thread Alireza Nahavandi
Hi everybody, First of all thank you all for responding to my previous questions. I have a problem for using SSL. There is a session object passing to a jsp page in secure server. When coming back from secure server I'll lose the content of the object. Does anybody know how to keep the object's

Removing session object

2002-11-08 Thread Alireza Nahavandi
Hi every body, I have a couple of jsp pages using a session object : jsp:usebean id=chk scope=session class=Check / At one point after doing some process I need to remove this object. How can I do this ? Thank you in advance

Dynamic parameter to error page

2002-08-29 Thread Alireza Nahavandi
Hi All, I need to pass a dynamic parameter to an error page : %@ page errorPage=error.jsp?fn=b.jspid= % Is there any way to make dynamic ? Thank you. === To unsubscribe: mailto [EMAIL PROTECTED] with body:

Re: Dynamic parameter to error page

2002-08-29 Thread Alireza Nahavandi
is much more appropriate for this kind of thing. Hans -Original Message- From: Hans Bergsten [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 12:20 PM To: [EMAIL PROTECTED] Subject: Re: Dynamic parameter to error page Alireza Nahavandi wrote: Hi All, I need to pass

Date calculation

2002-06-05 Thread Alireza Nahavandi
Hi all, I want to get the date of 5 days later. According to Sun Java document, the following code should work. But still the result is today. Am I missing anything? Calendar myCal = Calendar.getInstance(); myCal.add(myCal.DATE, 5); System.out.println ( myCal.DATE ); Thank you.

Re: Date calculation

2002-06-05 Thread Alireza Nahavandi
(myCal.get(myCal.DAY_OF_MONTH)); myCal.add(myCal.DATE, 5); System.out.println(myCal.get(myCal.DAY_OF_MONTH)); See Ya. -- Jay H. Lang Chief Technologist Distributed Computing Professionals Inc. IBM Certified Specialist - MQSeries 303 277-1873 - Office 303 807-9700 - Cell Alireza Nahavandi wrote

Regenerating source from class file

2002-05-23 Thread Alireza Nahavandi
Hi all, Is there any way to regenerate source file from a class file? Thank you. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set

Re: Files upload without form

2002-05-07 Thread Alireza Nahavandi
Thank you everybody for replying to my request. I am researching about this and once I get a good result, I'll post it on this forum for public use -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Smita

Files upload without form

2002-05-04 Thread Alireza Nahavandi
Hi All, Is there any way to upload a bunch of files at one shot. This is not like uploading a single file which we use multipart/form-data for that. That's a group of files sitting on a NT server and should be uploaded to a Sun server without any form submission Thank you, Alireza.

Email attachment

2002-04-01 Thread Alireza Nahavandi
Hi All, Does anybody have the experience of attaching a file to an email in Java ? Thank you. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body:

Memory available

2002-03-04 Thread Alireza Nahavandi
Hi All, Is there anyway to find out how much memory available for creating more objects. Thank you, Alireza. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL

session variables implementation

2002-01-14 Thread Alireza Nahavandi
Hi all, Does any body know how session variables work internally? if we have a busy traffic website which is using too many session variables, can we run out of memory? any comment would be appreciated. Thank you, === To

Include problem

2001-12-05 Thread Alireza Nahavandi
Hi All, I have some include tags inside a jsp file. Sometimes I get this error : javax.servlet.ServletException: Unable to reload page: /title.jsp because not at top level. Please resend request. title.jsp is one of the jsp files which I am including. Does anybody know what's the reason?

Simple java question

2001-11-21 Thread Alireza Nahavandi
Hi All, How can I round up a float number in java like 1.715 to 1.72 Thank you. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST

JSP compiling

2001-11-14 Thread Alireza Nahavandi
Does anybody know hoe to compile JSP programs ? Thank you. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant

Rounding in Java

2001-10-23 Thread Alireza Nahavandi
In Java, how can I round a double value with specific precision. Example : value 1.715 need to be round up to 1.72 and 1.714 need to be round down to 1.71. Thank you. === To unsubscribe: mailto [EMAIL PROTECTED] with body:

JDBC, MS-SQL server and mySql

2001-09-04 Thread Alireza Nahavandi
Hi All, Is there any free JDBC out there for SQL-server? if not what is a good one to buy? did you find MySql a reliable database? Thank you. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.

Re: jsp error page in email

2001-08-30 Thread Alireza Nahavandi
Hi Richard, I have couple of jsp pages with page directive %@ page errorPage=error.jsp % so erro.jsp is my error page. I do all exception handling in this page. I make the required email body in this page and pass it to an email java method with the exception object. --- A.jsp program --- .. %@

Re: jsp error page in email

2001-08-30 Thread Alireza Nahavandi
Hi Richard, Your idea about using session variable leaded me to another solution. On top of each page I add %@ page errorPage=error.jsp?jspfile=a.jsp % (b.jsp, c.jsp, ... ) then in error.jsp I read jspfile parameter and pass it to my email. Thank you. -Original Message- From: A mailing

jsp error page in email

2001-08-29 Thread Alireza Nahavandi
Hi All, In my jsp error page I am sending en email to administrator mentioning the error. Is there any way to send the trace stack to this email?. exception.printStackTrace(...) show the stack on the screen with void return value . Is there any other way to get this stack. Thank you,

Copying files in java

2001-08-27 Thread Alireza Nahavandi
Hi All, Does anybody know how to copy a file to another folder using Java? Thank you, === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set

URL reading

2001-08-16 Thread Alireza Nahavandi
Hi All, How can read the URL of a page. Some methods like getRequestURI(), getRequestURL(...), ... return the full path of the calling program. Thank you. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff

Read from keyboard

2001-07-24 Thread Alireza Nahavandi
Hi All, Is there any way to read the keyboard using java. I need a process to be stopped once user press a key. Thank you, === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto

CGI Perl calling

2001-07-20 Thread Alireza Nahavandi
Hi All, Do you know any way to call a CGI or Perl modulr from Java? Thank you. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST

Operating System

2001-07-16 Thread Alireza Nahavandi
Hi All, How can I get the underlying OS name where the JVM is running on it ? Thank you, === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set

Image properties on UNIX

2001-06-26 Thread Alireza Nahavandi
Hi all, I have a program which tries to get the width and height of an image. I use java Frame as observer component. Program works fine on NT servers but on Unix server it doesn't. There is no error message and program just halts. It seems there are some server setting on Unix when using java

Image dimensions

2001-06-06 Thread Alireza Nahavandi
Hi All, What is the simplest way to grab an image dimensions in java. Thank you, _ === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set

ASCII to char

2001-05-07 Thread Alireza Nahavandi
Hi all, How can I get a java char from an ascii code? thank you. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some

line number Exception

2001-04-25 Thread Alireza Nahavandi
Hi all, Is there any way to get the line number in which the exception has happened, we don't want to print it, the goal is to get the line number and pass it to an email. Thank you, === To unsubscribe: mailto [EMAIL

Month of year

2001-04-09 Thread Alireza Nahavandi
Hi all, How can I convert a string like this to Date : 2001/04/09 Thank you, === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST

include file

2001-03-19 Thread Alireza Nahavandi
Hi All, I guess we had this discussion a while ago. For passing parameter to include files somebody suggested this way : ---JSP 1 %! String msg ="Hello"; % jsp:include page="second.jsp" flush="true"/ --- second.jsp %= msg % - It still complaining that variable

Re: forward question?

2001-03-15 Thread Alireza Nahavandi
Hi, This works for "forward" but what about "include", I tried the same technique I did not work. any solution? Thank you. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Nishit Trivedi Sent: Wednesday,

Re: forward question?

2001-03-15 Thread Alireza Nahavandi
SHEKHAR AGARWAL (B.TECH) TATA CONSULTANCY SERVICES Email : [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Tel: 268-548-2592 (work) 262-798-1052 (home) -----Original Message- From: Alireza Nahavandi [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 10:32 AM To: [EMAIL PROTECTED] Subje

Upload a file using JSP

2000-10-24 Thread Alireza Nahavandi
Hi everybody, How can I upload a file to server using JSP ? Thank you, Alireza. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: