Hexadecimal to String

2001-06-20 Thread Sushil Singh
Hi, Is it possible to convert hexadecimal value into String in java, is there any class/funcion is available? For ex: 546F6F6C73206F6620746865205472616465 is equivalent to "Tools of the Trade" Thanks in advance. Sushil ==

Basic Object Reference Question

2001-06-12 Thread Sushil Singh
Hi, I am having a basic object reference question. Consider the following code snippet: while (rootRs.next()) { categories.addElement(getCategory(rootRs.getString("cat_id"))); } Another code snippet: String catID = ""; while (rootRs.next()) { catID

Re: WAS 3.0.2 - GC Bottleneck

2001-06-08 Thread Sushil Singh
sThread.run(Compiled Code) java.lang.Thread.run(Compiled Code) Awaiting your feedback. Thanks in advance. Sushil Sushil Singh wrote: > Hi, > > We developed e-commerce site using WebSphere 3.0.2 AE running under AIX > 4.3 with IHS 1.3.6 and the JDK 1.1.8. We are seeing som

WAS 3.0.2 - GC Bottleneck

2001-06-08 Thread Sushil Singh
Hi, We developed e-commerce site using WebSphere 3.0.2 AE running under AIX 4.3 with IHS 1.3.6 and the JDK 1.1.8. We are seeing some extensive garbage collection. Here is the heap size: 300 - 768 Mb On an average 45-50% of time spent on GC. For each GC, sometime it is taking 70sec, sometime e

Re: AutoCompilation of JSP's at AppServer startup

2001-03-22 Thread Sushil Singh
dified" flag is throw > > or there is a > > timestamp/datestamp change. > > > > I'm amazed no one has developed a utility for doing this yet ! > > > > > -Original Message- > > > From: A mailing list about Java Server Pages specification > > a

Multiple AppServer: Session Problem

2001-03-22 Thread Sushil Singh
ide how we can solve this problem without modifying the code. I was looking for documentation, here is the list of solutions: - IP Affinity - Session Affinity - Persistance Session Any suggestion/ideas will be highly appreciated. Thanks. Su

AutoCompilation of JSP's at AppServer startup

2001-03-22 Thread Sushil Singh
Hi, Is there any way to compile all the JSP's whenever we restart the AppServer. For Servlet we can specify "Load at startup as TRUE". Thanks. Sushil === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-IN

Relation between HTTPServer & AppServer

2001-03-20 Thread Sushil Singh
Hi, I am having some basic question between how the request is being handled by the HTTP Server and AppServer. Let's say in order to access MyServlet, I am using URL: http://servername/servlet/MyServlet Now my question is that, initially request will go to the HTTPServer, then how HTTP Server i

setAttribute Problem

2001-01-29 Thread Sushil Singh
Hi, I am facing problem while accessing bean using useBean tag. From my servlet I am doing following TestBean tbean1 = new TestBean(); TestBean tbean2 = new TestBean(); tBean1.setName("Fisrt Bean"); tBean2.setName("Secound Bean"); request.setAttribute("tBean1", tBean1); request.setAttribute("tBea

Issues with Service() method

2001-01-05 Thread Sushil Singh
Hi, In my current application all the servlets are using only Service() methods. I was not convinced with this. I was going through the archives and found that - "Service will allow access to all variations and can permit the sending of data in an unexpected way" Can anybody throw some light on

Service Method

2001-01-04 Thread Sushil Singh
Hi, I was going through the archives and found that "Service will allow access to all variations and can permit the sending of data in an unexpected way". Can anybody help me in understanding this. In short what are the disadvantages, security issues etc. Thanks. Sushil =

A recursive error was detected

2001-01-03 Thread Sushil Singh
Hi, Can anybody help in understanding why I am getting recursive error: A recursive error was detected. The server cannot use specified error page. Please check the application error-path. Original Error: Error Message: [JSP 1.0 Processor] reported an error Error Code: 404 Target Servlet: JSP

OffTopic: Apache HTTP Rewriting

2001-01-03 Thread Sushil Singh
Hi, Sorry to post an offtopic question, but I am strugling since last three days to solve the problem, I will appreciate if anybody can provide me any help. Here is my question: I am having IBM HTTP Server (Powered by Apche) running on RS/6000. I would like to perform URL redirection. If the URL

OffTopic: Apache HTTP Redirection

2000-12-29 Thread Sushil Singh
Hi, Sorry to post an offtopic question, but I am strugling since last three days to solve the problem, I will appreciate if anybody can provide me any help. Here is my question: I am having IBM HTTP Server (Powered by Apche) running on RS/6000. I would like to perform URL redirection. If the URL

ResourceBundle Caching Problem

2000-12-02 Thread Sushil Singh
Hi, I am using a property file which contains some parameters, my JSP is reading everytime whenever its called (GET). For the first time its loading perfectly, now if I change the values in property file, still my JSP is having old value, its uanble to refresh the values from Property file. I h

Re: sendRedirect: Catching unknown host/timeout etc

2000-11-28 Thread Sushil Singh
st and http.proxyPort > > Set these before you open the URLConnection: > System.setProperty("http.proxyHost", "yourhostname"); > System.setProperty("http.proxyPort", "8080"); // or whatever >Mark > > On Mon, 27 Nov 2000, Sushil Singh wrote:

Re: sendRedirect: Catching unknown host/timeout etc

2000-11-27 Thread Sushil Singh
sponseCode() + ""); hConn.disconnect(); "Craig R. McClanahan" wrote: > Sushil Singh wrote: > > > Is there any simple way to check before performing the redirection? > > > > How about creating a URLConnection from within your servlet, and downloading > (say)

Re: sendRedirect: Catching unknown host/timeout etc

2000-11-27 Thread Sushil Singh
was possible. > > Andy > > -Original Message----- > From: Sushil Singh [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 27, 2000 5:06 PM > To: [EMAIL PROTECTED] > Subject: sendRedirect: Catching unknown host/timeout etc > > Hi, > > Since my application is

sendRedirect: Catching unknown host/timeout etc

2000-11-27 Thread Sushil Singh
Hi, Since my application is redirecting to a third party site, I would like to display a user-friendly page if there is any problem in that site, like site is down, connection timeout or even unknown host etc. But I am unable to catch these types of error, I am using following code: try { re

Re: StringBuffer

2000-11-22 Thread Sushil Singh
gards, > Sachin S. Khanna. > www.emailanorder.com > > - Original Message - > From: Sushil Singh <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, November 22, 2000 5:21 AM > Subject: StringBuffer > > > Hi, > > > > I have a

StringBuffer

2000-11-21 Thread Sushil Singh
Hi, I have a question regarding String and StringBuffer class. Recently I read that we should not use "+" concatenation since it will create temporary objects, instead we should use StringBuffer. My JSP is producing series of System.out.println, like: ... some process System.out.println

Caching an Object

2000-11-01 Thread Sushil Singh
Hi, Can anybody help in understanding how to cache an object, lets say I would like to cache a resultset, how can I do? Thanks in advance. Sushil === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTERES

Frequent Page Expiry

2000-10-30 Thread Sushil Singh
Hi, I am again posting this question as I did not get any reply. I am facing page expiry problem even though I am not setting any . Once the output is displayed and if user presses back button, browser displays that "Page has expired" but this is not happening always. Is there any specific time

Re: Bean Scope - application

2000-10-30 Thread Sushil Singh
Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Sushil Singh > Sent: Monday, October 30, 2000 2:33 PM > To: [EMAIL PROTECTED] > Subject: Bean Scope - application > > Hi, > > Can anybody explain me what does this mean: > applicationthe bea

Re: WebSphere - Connection Pooling

2000-10-30 Thread Sushil Singh
o real-time, there is a pane in the WebSphere Admin > Console that will show you all connection pool info, as long as you're using > WebSphere's pooling and not writing your own. > > -----Original Message- > From: Sushil Singh [mailto:[EMAIL PROTECTED]] > Sent: Mond

Bean Scope - application

2000-10-30 Thread Sushil Singh
Hi, Can anybody explain me what does this mean: applicationthe bean is unloaded only when the application is terminated, bean instance is available to all Servlet/JSP servlet instances belonging to this application. I could not understand the statement "the bean is unloaded only when the applica

JSP: Page Expiry

2000-10-30 Thread Sushil Singh
Hi, I am facing page expiry problem even though I am not setting any . Once the output is displayed and if user presses back button, browser displays that "Page has expired" but this is not happening always. Is there any specific time interval. The JSP is using a database object by creating inst

WebSphere - Connection Pooling

2000-10-24 Thread Sushil Singh
Hi, Can anybody help me, how to check how many connections are there in pool, how many are in use, held etc. I am using WebSphere Application Server 3.0 (Advance Edition) on AIX with DB2. After sometime my servlets/jsp are unable to get connection even though i am relasing the connection. Thanks

Bean - Unable to setProperty

2000-10-24 Thread Sushil Singh
Hi, I am unable to setProperty for a bean, its giving error: com.sun.jsp.JspException: "setProperty(shiptoBean): Cant Find the method for setting {1}" Following is the code snippet: Bean code is something like this: private String dbUser = ""; private String shopper_refno = ""; public void

Re: Bean: Unable to do setProperty

2000-10-23 Thread Sushil Singh
he same rule is > used. > > this will go over all > the > > property passed in the request and, if a setter method exist in the Bean > for the > > property it will call that method ...The property name should start with a > lower > > case and the set Prope

Bean: Unable to do setProperty

2000-10-20 Thread Sushil Singh
Hi, I am unable to setProperty for a bean, its giving error: com.sun.jsp.JspException: "setProperty(shiptoBean): Cant Find the method for setting {1}" Following is the code snippet: Bean code is something like this: private String dbUser = ""; private String shopper_refno = ""; public void

Re: List Manager View

2000-10-13 Thread Sushil Singh
ent it the way u like. > > hope it helps. > I can even look for some pre-written codes with me, if you feel it'll help! > > Sushil Singh wrote: > > > Hi: > > > > I would like to display datebase result page by page, i.e. if the > > resultset (jdbc) contains 1

List Manager View

2000-10-13 Thread Sushil Singh
Hi: I would like to display datebase result page by page, i.e. if the resultset (jdbc) contains 100 records then I would like to display 10 records at a time and if user selects next/prev page, it should display the corresponding page records. If anybody can provide me information regarding how

Init Parameters for JSP

2000-10-05 Thread Sushil Singh
Hi, I was wonderting how to specify Initialization Parameters for a JSP. Since config object is accessible from JSP, so there should be way to specify the init() parameters. I am having JSP1.0 with WebSphere AS 3.0. For Servlets, we are just simply registering using admin console and specifying

Re: How to know the JSP Version

2000-09-28 Thread Sushil Singh
ion implicit object has methods for this: > > example of this is as follows: > > <% >int li_major = application.getMajorVersion() ; >int li_minor = application.getMinorVersion() ; > %> > > Casey Kochmer > [EMAIL PROTECTED] > www.jspinsider.com > > >Fr

How to know the JSP Version

2000-09-28 Thread Sushil Singh
Hi, Can anybody tell me how to know the JSP version, is there any method available just like to know the JVM version: System.out.println(System.getProperty("java.version")); Thanks. Sushil === To unsubscribe: mailto [EMAIL P

JSP: Examples

2000-09-18 Thread Sushil Singh
Hi, I have never used any beans in JSP, if anybody can provide me a simple JSP which uses a BEAN (Database bean etc), in order to understand the concept/advantages. it will be highly appreciated. Thanks. Sushil === To unsubs

ServletRequest.getRequestDispatcher()

2000-09-18 Thread Sushil Singh
Hi, I am unable to compile my servlet which is using ServletRequest.getRequestDispatcher(), its giving error that no such method. I am having JVM 1.1.7 If I use ServletContext.getRequestDispatcher(), its compiling and executing but I can not use this methid as I have to specify the full url in for

Re: RequestDispatcher

2000-09-13 Thread Sushil Singh
ot;Servlet 1" is on one website and "Servlet 2" on another website. Also if anyone can provide difference between forward and include. Thanks in advance. Sushil Sushil Singh wrote: > Hi, > > Can anyone

Re: sendRirect: Can we change/add parameters

2000-09-13 Thread Sushil Singh
Thanks for your reply. Is it compulsory to retrive the parameter by getAttribute only (in redirected page). Can we use the normal way getParameter() in the redirected page? Liu wrote: > Try request.setAttribute("name","value"); in your sending page, > Then try request.getAttribute("name"); in

RequestDispatcher

2000-09-13 Thread Sushil Singh
Hi, Can anyone help me in understanding the function of RequestDispather. === First Servlet: RdTest1 === import java.io.*; import javax.servlet.*; import javax

sendRirect: Can we change/add parameters

2000-09-13 Thread Sushil Singh
Hi, I am having a typical requirement- one JSP recieves form data, before passing control to another servlet, I just want to add new parameter to the request. reponse.sendRedirect(request, response); Is it possible to change the parameters or add new parameters before redirecting to anot

Re: Invoking Popup Window in Virtual Site

2000-09-08 Thread Sushil Singh
' > > )"); > > -Original Message----- > From: A mailing list about Java Server Pages specification and reference > [<A HREF="mailto:[EMAIL PROTECTED]]On">mailto:[EMAIL PROTECTED]]On</A> Behalf Of Sushil Singh > Sent: Friday, September 08,

Re: Invoking Popup Window in Virtual Site

2000-09-08 Thread Sushil Singh
- > From: A mailing list about Java Server Pages specification and reference > [<A HREF="mailto:[EMAIL PROTECTED]]On">mailto:[EMAIL PROTECTED]]On</A> Behalf Of Sushil Singh > Sent: Friday, September 08, 2000 10:56 PM > To: [EMAIL PROTECTED] > Subject: Re: Invoking

Re: Invoking Popup Window in Virtual Site

2000-09-08 Thread Sushil Singh
l Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Sushil Singh > Sent: Friday, September 08, 2000 9:10 PM > To: [EMAIL PROTECTED] > Subject: Invoking Popup Window in Virtual Site > > Hi: > > I am

Invoking Popup Window in Virtual Site

2000-09-08 Thread Sushil Singh
Hi: I am working on a project which requires B2B integration of two site. This integration is done by third party. We have to handle the "Add to Shopping Bag" module. 1.User will come to site1 and then he requests for a product which is avaialble in site2. Since these two sites are having B2

Servlet - JSP Functionality

2000-09-08 Thread Sushil Singh
Hi, I have one question related to Servlet and JSP functionality. In case of servlet, for the first time when we call a servlet, server will load the servlet into memory and then serve the request. All other calls to the same servlet will be handled directly i.e. without reloading the servlet ag

Re: Unable to use Session variable

2000-08-30 Thread Sushil Singh
> HttpSession session = request.getSession(); > then call any methods you want on your session variable > > Santosh > > Sushil Singh <[EMAIL PROTECTED]> on 08/30/2000 12:52:01 PM > > Please respond to A mailing list about Java Server Pages specification and >

Re: Blank lines on JSP

2000-08-30 Thread Sushil Singh
blank lines will increase the size of your document (hence download time:->), so ideally you should always try to remove all these white characters. Jorge Barrera wrote: > Why do the blank lines bother you? > > -Original Message- > From: A mailing list about Java Server Pages specificati

Unable to use Session variable

2000-08-30 Thread Sushil Singh
Hi, I am having HTTP and WebSphere running under Win NT, I am unable to use the session variables, its giving error: Undefined variable or class name: session out.println(ServletUtil.toString( session.getId() )); The code is: <%@ import="java.util.*" %> <%@ session="true" %> Test Jsp <% for (i