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
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
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
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
, 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
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
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
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
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
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
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
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.
==
> 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
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
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
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
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"
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
'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
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]
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
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
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
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]
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
"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
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
==
"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
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
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
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.
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
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
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 ?
>
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
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:
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
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
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
==
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
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
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
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
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/
===
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
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
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:
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
48 matches
Mail list logo