Re: Can I declare array in jsp:useBean tag?

2002-01-11 Thread Rajinder Sandhu
this is compile time, not run time. so this is not possible. -Original Message- From: Louis Voo [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 4:40 PM To: [EMAIL PROTECTED] Subject: Can I declare array in jsp:useBean tag? Hi, I want to declare an array object in

Re: Urgent !!!!!!!! Please help me

2001-12-17 Thread Rajinder Sandhu
second one -Original Message- From: Ravindra [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 11:54 AM To: [EMAIL PROTECTED] Subject: Re: Urgent Please help me Hi All, String string_Name = new String(Tendulkar); String string_Name = Tendulkar; In Above two

Re: browswer check

2001-12-17 Thread Rajinder Sandhu
%@ import="java.io.*,java.util.*,java.lang.Object,java.text.Format" %%// using Java, determine if the browser is Netscape or MSIEboolean isNetscape = false;String userAgent = request.getHeader("User-Agent");if ( userAgent.toLowerCase().indexOf("msie") ==-1

Re: browswer check

2001-12-17 Thread Rajinder Sandhu
String userAgent = request.getHeader("User-Agent"); if ( userAgent.toLowerCase().indexOf("win") = 0 )// Windows userif ( userAgent.toLowerCase().indexOf("mac") = 0 ) // Apple/Mac userif ( userAgent.toLowerCase().indexOf("msie") ==-1

Re: Offtopic: Urgent Please

2001-12-10 Thread Rajinder Sandhu
in your SMTP server relaying is denied that means u can't send a mail to email id having account in other domain name ie.. if ur smtp server ids are like [EMAIL PROTECTED] than u cant send mail to any other id like [EMAIL PROTECTED], [EMAIL PROTECTED] etc. u can send mails to id ending with

offtopic : LDAP

2001-11-25 Thread Rajinder Sandhu
hi all, i am try to add an LDAP entry . dn = uid=pop,ou=People,o=sunquest.com it is throwing an exception (see below). can anybody guide to how to set this 'add privilage' ?? cheers!! raj javax.naming.NoPermissionException: [LDAP: error code 50 - Insufficient 'add' privilege to add the entry

Re: How can I trim the string in Java ???

2001-09-24 Thread Rajinder Sandhu
why dont u download java API. it will save u a lot of time. You can always refer that for such problems. anyway, String str = Dick ; str = str.trim(); //this will remove the blank spaces before and after Dick Cheers!! Raj -Original Message- From: Dick Wong

Re: CC field in Java Mail

2001-09-13 Thread Rajinder Sandhu
here is the code u can just make some changes in that .. import java.io.*; import java.util.*; import javax.mail.*; import javax.mail.internet.*; public class Sendmail { public Sendmail() { } public void postMail( String recipients[ ], String subject, String message ,

Re: delete multiple table

2001-09-13 Thread Rajinder Sandhu
your question is not clear. if u want to delete records from different table in RDBMS for example if they are connected through reference keys. you can use "on cascade" in Oracle. It will delete all the child records. check --- java.sql.DatabaseMetaData it has methods for getting

Re: does anyone how to list all files in the specific directory ?

2001-09-03 Thread Rajinder Sandhu
import java.io.*;import java.util.*; public class DirList { public static void main(String[] args) { File path = new File("."); String[] list = path.list(); for(int i = 0; i list.length; i++) System.out.println(list[i]); }} pass the directory name in the constructor whose files u want to

offtopic

2001-08-30 Thread Rajinder Sandhu
though it is a scilly to ask this over here but there is an argument going over here. any body can tell me what does i stands for in oracle 8i ? === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.

Re: jsp Requested Page

2001-08-29 Thread Rajinder Sandhu
one way is define a hidden variable in Page A and assign the name of the Jsp. Retrieve it in Page B. -Original Message- From: SriHari [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 9:45 AM To: [EMAIL PROTECTED] Subject: jsp Requested Page Hi There I want to know from

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 Somasundram

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:

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

offtopic : to truncate a double

2001-08-27 Thread Rajinder Sandhu
Hi all, i have variable double x = 34.8976 ; i want only 2 digits after decimal. Is there any method returning double and gives value x = 34.89 ??? Cheers!! Raj === To unsubscribe: mailto [EMAIL PROTECTED] with body:

Is it Possible to add dynamic string in ????

2001-08-21 Thread Rajinder Sandhu
Hi all, if i get a srint and assign it to a String variable like this : %! String cname % % cname = request.getParameter(cname); % now can i add this dynamically to the usebean tag like this : jsp:useBean id=ClassName class=%= cname % scope=session/ right now i am getting this error. If

Re: MVC in detail, advantages

2001-08-06 Thread Rajinder Sandhu
Hi, i think u write a request handler class. controller servlet should paas on the request to this class where u will check for the null values. in this request handler class you can call a method of a data access class for DB updation. I think it will work just fine. Cheers !! raj

Re: MVC Issue

2001-08-02 Thread Rajinder Sandhu
There is no need for synchronizing the process method in the request handlers in the MVC model. As the controller servlet is a singleton class (implements single thread model) i.e. two threads cant call the service method concorrently. so no two clients can call the same process method of the

Re: MVC Issue

2001-08-02 Thread Rajinder Sandhu
: Rajinder Sandhu To: [EMAIL PROTECTED] Sent: Thursday, August 02, 2001 12:35 PM Subject: Re: MVC Issue There is no need for synchronizing the process method in the request handlers in the MVC model. As the controller servlet is a singleton class (implements single

Re: MVC Issue

2001-08-02 Thread Rajinder Sandhu
ThreadModel interface in my opinion. Looking forward to your (Mr. Sandhu)as well as otherscomments. Have a nice day.With regards,Sachin S. Khannahttp://www.emailanorder.com ----- Original Message - From: Rajinder Sandhu To: [EMAIL P

Re: OCI Driver !!

2001-08-02 Thread Rajinder Sandhu
Hi All, When i call a servlet from a jsp page i get this error. any help will be appreciated. Cheers!! raj Error: 500 Location: /Sun/modifyusertemplate.jsp Internal Servlet Error: javax.servlet.ServletException: Response has already been committed at

using super in Jsp

2001-07-31 Thread Rajinder Sandhu
Hi all, In my JSP file i am initiating a transaction (any of the action in between can throw an exception), and including/calling other jsp's as well. So for catching exception and to track where the exception exactly has occured. I want define a Basic exception class and have other exception

Re: using super in Jsp

2001-07-31 Thread Rajinder Sandhu
, Sachin S. Khanna http://www.emailanorder.com - Original Message - From: Rajinder Sandhu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 3:46 PM Subject: using super in Jsp Hi all, In my JSP file i am initiating a transaction (any of the action in between can throw

Re: I don't see my JSPs - Urgent

2001-07-23 Thread Rajinder Sandhu
if you are working in NT environment simply give the ip address of the your machine in the URL or you machine name for eg. - http://john:8080/examples/test.jsp or if ip address of your machine (john) is 164.23.34.55 than http://164.23.34.55:8080/examples/test.jsp it will work. Cheers!! raj

Re: regarding java mail

2001-07-23 Thread Rajinder Sandhu
: CC:Recipient List However, giving the BCC command instead of CC does not produce the desired result. cheers!! Raj -Original Message- From: John Ninan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 10:46 AM To: Rajinder Sandhu Subject: Re: regarding java mail for a portal i am

Re: configuring tomcat

2001-07-17 Thread Rajinder Sandhu
a package statement. Have a nice day. With regards, Sachin S. Khanna http://www.emailanorder.com - Original Message - From: Rajinder Sandhu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 17, 2001 11:41 AM Subject: configuring tomcat Hi All , I have installed Tomcat (apache

Re: configuring tomcat

2001-07-17 Thread Rajinder Sandhu
code for the jsp and bean to this list. Have a nice day. With regards, Sachin S. Khanna http://www.emailanorder.com - Original Message - From: Rajinder Sandhu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 17, 2001 12:33 PM Subject: Re: configuring tomcat I am working in windows

configuring tomcat

2001-07-16 Thread Rajinder Sandhu
Hi All , I have installed Tomcat (apache tomcat/4.0-b5) on my machine. It is processing JSPs. But there is a problem when i use Use:Bean Tag it throws exception :- org.apache.jasper.JasperException: Unable to compile class for JSPE:\tomcat\bin\..\work\localhost\examples\SaveName1_jsp.java:57: