Re: help me

2001-11-02 Thread Ashish Shrestha
what about pushlets. I don't remember the url right now, why not do a search in google. but i guess the basic idea was to use the http 1.1 keep alive and use dynamic html to refresh the section on the page. ashish shr

Re: JSP editor

2001-11-02 Thread Ashish Shrestha
g? mine takes 128MB (min). ashish shrestha ps: just kidding! === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGE

Re: Iterator.next to String

2001-10-27 Thread Ashish Shrestha
overridden the public String toString() method properly. Alternatively you can do, YourObject yourObject = (YourObject) iterator.next(); String title = yourObject.methodThatGivesTheTitle(); Ashish Shrestha === To unsubscribe: mailto

Re: Escaping quotes in SQL string

2001-10-24 Thread Ashish Shrestha
Yes, use PreparedStatement instead of Statement. It does it for you. Ashish Shrestha === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body

Re: Platform choice advice for deploying a website

2001-10-24 Thread Ashish Shrestha
, Apache provides us with a native SSL library with OpenSSL + mod_ssl so that we can avoid that in Tomcat which would use a Java version. May be once we pass the acceptance test and have more time we will actually measure it. If anyone has done it do let us know. Ashish Shrestha

Re: Refreshing parent page

2001-10-24 Thread Ashish Shrestha
The *best* solution would be to use client side JavaScript! Ashish Shrestha === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "s

Re: Services or Daemons in java

2001-10-23 Thread Ashish Shrestha
ve made this a background servlet that loads when Tomcat is started. We develop in Linux and deploy in Solaris. We have made Tomcat a daemon by starting it from the rc.local file. I think it can be made a service in Windows NT/2K too. I believe it is documented in the document explaining installin

Re: How to put getRemoteAddr() into SQL server table?

2001-10-23 Thread Ashish Shrestha
Hi! I don't know if this is the problem but I was just wondering! May be the connection is set as false for autocommit and when you don't commit the driver does a rollback? Ashish Shrestha === To unsubscri

Re: Session timeouts, security, and JSP

2001-10-21 Thread Ashish Shrestha
ou select yes it will automatically send the username and password. my solution was to use response.sendRedirect() instead of this is not usually a problem when we don't use frames. of course, you need to have a session variable and check

Re: cookie trail in JSP's

2001-10-19 Thread Ashish Shrestha
check out the breadcrumb tag library at www.jsptags.com ashish shrestha === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "s

Re: offtopic: running commands on remote unix box

2001-10-04 Thread Ashish Shrestha
Sure! Use SSH to run the script on the Unix box. Then just read the OutputStream to get the output. Check out the java.lang.Runtime and java.lang.Process classes. Ashish Shrestha === To unsubscribe: mailto [EMAIL PROTECTED

Re: Include JSP file to show form

2001-09-25 Thread Ashish Shrestha
If you want to avoid JavaBeans you could store your old information in a hashmap and put it in session. JavaWorld has an article on this. About allowing users to correct errors in forms and displaying error messages and old data. Sorry, I don't remember the exact url. Ashish. ==

Re: Database Connection tuning (Evaluate the two processes explained)

2001-09-24 Thread Ashish Shrestha
> Process-1: > > In each page of pages where i require i am creating the connection bean > instance by > > My Connection bean is executing three basic Functionality > > 1.connect() --returns a boolean object on the status of the connection. > 2.ExecSelect() --returns a resultsetobject of the

Re: Logout problem...

2001-09-19 Thread Ashish Shrestha
mber the information used to get a page and can repost the same information. ---- hope this helps! Ashish Shrestha http://headlines.sourceforge.net === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP

Re: Client Identification in JSP

2001-09-19 Thread Ashish Shrestha
May be you could try hidden fields + client ip address. Ashish === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some r

Re: Currency format

2001-08-29 Thread Ashish Shrestha
You can work with double and use java.text.DecimalFormat to display the currency info in the end. Alternatively you can use BigDecimal. Ashish Shrestha === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signof

Re: offtopic : to truncate a double

2001-08-28 Thread Ashish Shrestha
of x x = x /100; Hope this helps. Ashish Shrestha === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST"

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: "s

Re: Help

2001-08-28 Thread Ashish Shrestha
't you get a basic Java book and learn some Java before working with JSP. Ashish Shrestha === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with b

Re: Printing a JSP Page

2001-08-27 Thread Ashish Shrestha
ed as HTML. >I appriciate any sort of help... Try Javascript on the client side. Ashish Shrestha === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED]

Re: Bulk Printing from JSP's???

2001-08-23 Thread Ashish Shrestha
could try generating pdfs and getting another program to print it? Of course, there is still the option of writing your own print engine in Java using Graphics2D. Ashish Shrestha http://headlines.sourceforge.net === To

Re: sql server insert

2001-08-20 Thread Ashish Shrestha
Use a PreparedStatement! Ashish Shrestha === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some

Re: sql server insert

2001-08-20 Thread Ashish Shrestha
Here is something from the list archive Use java.sql.PreparedStatement for creating and executing your queries. PreparedStatements are simple to use ; they're like template SQL strings with ? symbols marking all your changeable values to include in the SQL statement. After creating the Prepare

Re: DSN less connection for SQLServer/Oracle in java

2001-08-15 Thread Ashish Shrestha
e database you are interested in. You can use FreeTDS (or is it FreeDTS) for MSSQL if you want a free JDBC driver. You don't need to set up DSN or anything for this. Ashish Shrestha === To unsubscribe: mailto [EMAIL PROTECTED]

Re: How to imlement a scrollable Result set without JDBC 2.0

2001-08-15 Thread Ashish Shrestha
Use the normal resultset. Move through it once taking out the stuff you need and filling it in a List - ArrayList, Vector... Then use this List to make a scrollable collection. Ashish Shrestha === To unsubscribe: mailto

Re: Possible to add dynamic string in an include directive?

2001-08-09 Thread Ashish Shrestha
"Duffey, Kevin" wrote: > This is what you want: > > <% > String contextPath = request.getContextPath(); > %> > > <%@ include file="<%= contextPath %>/path/header.inc" %> > > stuff.. > > <%@ include file="<%= contextPath %>/path/footer.inc" %> > This is what you do: <% String contextPath = r

Re: How to create WAR file?

2001-07-26 Thread Ashish Shrestha
Hamid Mukhtar wrote: > > How can we create Web ARchive file? Is it same as creating JAR files but > different extensions or what? What is difference between the two? > Yes they are the same. WAR files usually have the WEB-INF directory with its associated files. Ashish ==

Re: How to create JAR file?

2001-07-26 Thread Ashish Shrestha
"Pantarotto, Sio" wrote: > > How can I create a jar file??? Is there a product like winzip (to create zip > files) that creates jar files??? > JAR files are just zip files with .jar extension and some like the MANIFEST file. You can use the jar command to create a jar file. jar cvfm

Re: AutoRefresh

2001-07-24 Thread Ashish Shrestha
If you mean refreshing the client's page without using the refresh meta-tag, I think a simple solution might be to use an applet. A simple applet with a ServerSocket on particular port. When the database is changed, the server sends a message to the applet which tells the browser to refresh the p

Re: MD5 example

2001-07-19 Thread Ashish Shrestha
First, MD5 and SHA are in the java.security.* package! And about decrypting MD5's -- MD5 is a one way function so you can not decrypt it or reverse it. To compare the password. Encode the password and compare with the prestored digest. What is an one way function? Well, if I take 531 then gener

MD5 example

2001-07-18 Thread Ashish Shrestha
Dear Hardeep, I have included an example of MD5 for you. If you want to use the 16 byte data instead of convert it to hex string just return the md5.digest(). Hope this helps. Ashish http://headlines.sourceforge.net /** Generate a MD5 digest and return as hex.

Re: data encryption

2001-07-16 Thread Ashish Shrestha
We are using md5 for saving passwords in database. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs

Re: restoring the jsp form values.

2001-07-05 Thread Ashish Shrestha
Why do you want to be able to go back? If it is for processing errors/ invalid values in the submission why don't you check out the article on javaworld on form processing in jsp? Let me explain the basic idea mainForm.jsp -> mainBean (request scope) in mainBean process the stuff and generate

Re: dynamic inlcude and page context

2001-06-17 Thread Ashish Shrestha
Bernard Granier wrote: > > Hi, > > Is it possible to do a dynamic include and to keep the page context ? > > I mean : > > If I used these lines in a test.jsp file : > > <% String myUrl = "test2.jsp"; %> > > > In the file test2.jsp I lost the page context of test.jsp. > Is there a work around ? >

Re: JSP Compilation

2001-06-08 Thread Ashish Shrestha
Rice Jim wrote: > > Hi All, > > On bit of a time crunch and hope I can find a quick answer. > > Is there a procedure (without having to manually hit each page) or script for >pre-compiling my JSP's prior opening them up to the public. > > The purpose is to provide better response time to the firs

Re: Jikes and Tomcat for JSP compilation

2001-06-07 Thread Ashish Shrestha
Hi Chris, I tried this and it seems to work! Tomcat+Jikes info is out of date Yair Zadik, Mar 20, 2001 Tomcat 3.2 doesn't read the conf/web.xml file anymore. If you want Jikes to be your java compiler you need to add the lines from conf/web.xml to your webapp's web.xml file. Adding:

Re: Database connection Pool in Tomcat

2001-05-30 Thread Ashish Shrestha
You can also try PoolMan (forgot the URL). You just use jdbc:poolman://yourdatabase instead of the real url. Configure poolman using the poolman.xml code the program as you normally do without a connection pool or cache. when you do someConnection.close() instead of closing it just returns it t

Re: Problems with for loop (!)

2001-05-30 Thread Ashish Shrestha
just replace Integer.valueOf(...) with Integer.parseInt(...) horwat wrote: > > If you look at the JDK API docs: > > http://java.sun.com/j2se/1.3/docs/api/index.html > > You will notice that Integer.valueOf() returns a new Integer object > initialized to the value of the specified String. You're a

Re: jsp ide

2001-05-23 Thread Ashish Shrestha
why don't you try some free ides i. forte 2 community edition (written in java, based on netbeans' ide) ii. jcanvas web edition (available for Win platform, Linux coming out soon) Ashish --- a x h i x h @ y a h o o . c o m Get your Headlines 0.5.2 for free at http://headlines.sourceforge.net ==

Re: Frames using Response.redirect

2001-05-23 Thread Ashish Shrestha
You could try using a JavaScript with the onLoad event of the page to ensure that it is the top most! I believe such scripts are readily available to enable you to have your pages hosted in free servers with frames loaded with out the frames. -- a s h i s h @ j d g n p . o r g Get Headlines 0.5.2

Re: FW: Help, Image processing.

2001-05-23 Thread Ashish Shrestha
Search the Java Tech Tips at developer.java.sun.com. One of the tips had an article on generating thumbnails! -- a s h i s h @ j d g n p . o r g Get Headlines 0.5.2 for free at http://headlines.sourceforge.net/ === To unsubs

Re: PROBLEM-Changes in included pages not updating?

2001-05-06 Thread Ashish Shrestha
Hi! I believe you used the include directive to include a file. <%@ include ... %> includes the file and then compiles it into servlet. So if you want the changes in the included file to be reflected you need to change the date of the main file using utilities like touch or making dummy changes a

Re: how to set the for each on the jsp ?

2001-05-02 Thread Ashish Shrestha
have a look at request.getParameters("item"); and check out iterators and enumeration in java.util package. -- a s h i s h @ j d g n p . o r g Get Headlines 0.5.2 for free at http://headlines.sourceforge.net/ === To unsubsc

Re: 3 classes in same dir can't see each other

2001-05-02 Thread Ashish Shrestha
put the class files in a subdirectory called project. make sure the directory containing the subdirectory project is in the class path! -- a s h i s h @ j d g n p . o r g Get Headlines 0.5.2 for free at http://headlines.sourceforge.net/ ===

Re: JDBC Driver

2001-04-28 Thread Ashish Shrestha
Celeste Haseltine wrote: > I must admit that I had not heard of the FreeTDS driver. I've already > purchased a Type 4 JDBC driver, but just out of curiousity, is FreeTDS a > type 4 driver, or a type 2? For my production internet application, I > needed a Type 4 driver, and one that included the

Re: Urgent !!!! - loading a web browser

2001-04-26 Thread Ashish Shrestha
Hi Sumeet You can load the default web browser on WinXX platform using: Runtime rt = Runtime.getRuntime(); rt.exec("rundll32 url.dll,FileProtocolHandler " + url); The url must have the proper protocol of the url mentioned, for example http://headlines.sourceforge.net For a more complete exampl

Re: JDBC Driver

2001-04-26 Thread Ashish Shrestha
Celeste Haseltine wrote: > If you are looking for a free jdbc driver for MS SQLServer, good luck. Why don't you try FreeTDS? Source: ftp://freetds.internetcds.com/pub/freetds_jdbc Info: http://sunsite.unc.edu/freetds Ashish -- a s h i s h @ j d g n p . o r g Get Headlines 0.5.2 for free at http:

Re: free jsp editor?

2001-04-04 Thread Ashish Shrestha
You can try jEdit. It is open source, you can use the plugins to enhance it. http://jedit.sourceforge.net -- a s h i s h @ j d g n p . o r g Get Headlines 0.5.2 for free at http://headlines.sourceforge.net/ === To unsubscrib