ce Tuning
>
> I know making them execute faster is called performance tuning...But,
> How...
>
> Rgds,
> Ram.
> CWLGLOBAL...
>
> - Original Message -
> From: "Adrian Janssen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: W
Make them execute faster.
> -Original Message-
> From: Ram [SMTP:[EMAIL PROTECTED]
> Sent: 18 June 2003 12:48
> To: [EMAIL PROTECTED]
> Subject: Performance Tuning
>
> Hi,
>
> Can anybody tell me how to tune the performance (i.e., Processing
> speed, connecting speed) of EJB
I got it from Mark Galbreath, who regrettably seems no longer to have the
time to chastise those who don't try hard enough ;-). He is much better at
it than I am.
> -Original Message-
> From: Adrian Janssen
> Sent: 18 June 2003 11:19
> To: [EMAIL PROTECTED]
> Subjec
I think it will be quite hard for anyone to help you if you provide so
little information:
http://www.catb.org/~esr/faqs/smart-questions.html
> -Original Message-
> From: Mr.W. Dwogi [SMTP:[EMAIL PROTECTED]
> Sent: 18 June 2003 11:00
> To: [EMAIL PROTECTED]
> Subject: zip file cl
Hi Erik,
Your option 1 seems reasonable to me, but perhaps instead of sending in the
object to the tag as a parameter, make your initialization object a
"singleton" type of object that you either setup when the web-server
starts-up or on first use (lasy initialization). Then in your tag code you
c
Sounds to me like DAOFactory does not have a publicly accesible
getAssignmentDAO() method, at least the version that your JSP server is
finding does not have it.
Check the class path that your JSP server is using. It is likely to be
different from the class path you are using when compiling.
Also
what is in: GET_VALIDATEMESSAGE_STATEMENT
> -Original Message-
> From: Sajag Patel [SMTP:[EMAIL PROTECTED]
> Sent: 03 June 2003 03:16
> To: [EMAIL PROTECTED]
> Subject: Retrieving A cursor from an Oracle Stored Procedure
>
> I am trying to retrieve a cursor to return a resultset fro
not all db's have the ability to select via rownum. For such a db the query
below can be modified as follows:
SELECT *
FROM tablename t1
WHERE (select count(*) from tablename t2 where t2.salary > t1.salary) < 5
ORDER BY t1.salary
> -Original Message-
> From: Vishal Chaddha [SMTP:[E
--
> From: Bryan LaPlante [SMTP:[EMAIL PROTECTED]
> Sent: 27 February 2003 11:28
> To: Adrian Janssen
> Subject: Re: preparedStatement
>
> I am not sure what you mean, the row23 is throwing me off a bit. Do you
> mean
> that your key would be the column names and the v
You need to explictly close every ResultSet and Statement. This has been
dealt with recently on this forum look for emails with the title:
Re: Closing a ResultSet, was "Re: odd oracle error"
Search the archives at: http://archives.java.sun.com/jsp-interest.html
> -Original Message-
> Fr
Thats what they say about VB too!. ROTFL, no in fact ROTFLMFTO!
har HA Ha,HA ha hA ..
> -Original Message-
> From: fabrice Bouteiller [SMTP:[EMAIL PROTECTED]]
> Sent: 19 February 2003 11:39
> To: [EMAIL PROTECTED]
> Subject: Re: Replacing JSP with PHP?
>
> Excuse me, but PH
I thought the browser generated them, but perhaps you are correct and the
server generates them on first request. If so, then you will need to send
the session id back to your client app on first request and then each
subsequent request the client app sends it back to the server.
Sorry don't reall
al wrote:
> > can i make use of the sessionid created during 'getSession(true)'? thus
> > this sessionid be included in the response of the servlet to the
> > HttpClient? how do i get this sessionid?
> >
> > thanks a lot in advance.
> >
> > Adria
27;getSession(true)'? thus
> this sessionid be included in the response of the servlet to the
> HttpClient? how do i get this sessionid?
>
> thanks a lot in advance.
>
> Adrian Janssen wrote:
> > I don't know in practise how to do this but in principle what you need
>
I don't know in practise how to do this but in principle what you need to do
is send a cookie with the same session id with evey request, this means you
need to set a header variable using the following method of URLConnection:
public void setRequestProperty(String key, String value)
I am not qui
The problem here is "assuming that Oracle and other have implemented
the interface
correctly" and we all know what assumption is the mother of
> -Original Message-
> From: Alan Meyer [SMTP:[EMAIL PROTECTED]]
> Sent: 31 January 2003 04:47
> To: [EMAIL PROTECTED]
> Subject
I like option 2, but instead of posting to the server, store the info in a
cookie (as per Mattias' prior email). First communicate with the applet
using the LiveConnect part of JavaScript and store the info in a cookie via
"document.cookie".
Download the following two PDF's from the old netscape s
My 2c...
If you are only going to *ever* have a few jsp pages, say 5 or less, then it
seems fine to me. However beyond that I think it will quickly become
unweildy.
I don't know if you are interested in following the MVC architecture, and
certainly for only a few pages it is not worth it, but if
Christian's suggestion below is the *best* way to do this. However very
occasionally it won't work, due perhaps to an evil proxy server. In this
case a hack is possible, when setting location.href append a bogus and
random parameter on the end of the url to defeat the proxies page
recognition, forc
missing
> -Original Message-
> From: arun s [SMTP:[EMAIL PROTECTED]]
> Sent: 06 January 2003 04:30
> To: [EMAIL PROTECTED]
> Subject: hi pblm in JSP form
>
> hi all,
> I hav a pblm in HTML + JSP form. I want to generate a pulldown menu
> based
> on a Database values dyanmically.
java.net.URLEncoder.encode ("some querystring value");
> -Original Message-
> From: ROLDAN, Gabriel raul [SMTP:[EMAIL PROTECTED]]
> Sent: 20 December 2002 11:40
> To: [EMAIL PROTECTED]
> Subject: url encoding
>
> is there any standard way to encode an URL?
> I am sending to servle
I don't think the last 3 lines of your JavaScript fucntion will ever run,
i.e. those lines after the "document.icareForm.submit();" as this causes a
new page to be requested from the server, hence the browser immediately
stops processing the JavaScript on the current page.
Secondly even if those l
D]
> Subject: Re: Secure server
>
> Using URL rewriting when posting from the http session to the https
> session
> should also work ... right?
>
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> &g
Sessions are not shared accross http / https boundries. This is an artifact
of the browser. It will deliberately not recognise http and https pages as
being in the same "context" and will generate a new session id cookie as
soon as the transition from http to https is made. This is for security
rea
use a TreeMap if you want the entries to come out sorted.
> -Original Message-
> From: Lakshmeenarayana G G [SMTP:[EMAIL PROTECTED]]
> Sent: 23 November 2002 07:27
> To: [EMAIL PROTECTED]
> Subject: Re: Hashtable / HashMap Problem.
>
> Well guys...
> I got so confused with all these
The HashMap class does not do any sorting, since it implements the Map
interface not the SortedMap interface. However (from the Javadocs):
"This class makes no guarantees as to the order of the map; in particular,
it does not guarantee that the order will remain constant over time."
Consider usin
Use JBoss for EJB, Tomcat for Servlet and JSP.
> -Original Message-
> From: Emmanuel Eze [SMTP:[EMAIL PROTECTED]]
> Sent: 15 November 2002 12:49
> To: [EMAIL PROTECTED]
> Subject: Re: Can anyone help...??
>
> Does Apache Tomcat has support EJB? Can anyone please tell an applica
syncronise all and any code that accesses the array, and make sure that your
blocks are "wide" enough.
E.G. this WON'T work because the "syncronized" bock should be out-side of
the loop.
public void populateBigArray ( long[] bigArray )
{
for (i = 0 ; i< VERY_BIG_NUMBER ; i++)
{
Syncronize the code/method that populates the array as well as the
code/methods that access it. This can either be done using the syncronise
method modifier, or using syncronised blocks, which is better.
This is however more of an elementary Java issue though, search the web for
the PDF version of
Sorry Rajesh, I was addressing my mail more towards the original poster
David.
I was concerned that he did not realise that the compliation is an automatic
process. There have been a few posts from newbie's along these lines before
- no offence meant ot you David (perhaps you are in the same situa
Why do you want to do this though, there is not, for instance, any speed
improvement, as this is what the container does anyway?
In fact, instead of going through this whole excersize you could try to find
the compiled class that the container generates anyway.
For Tomcat seach under the appropri
A very very determined user can also find a way to intercept the stream
going to the applet in the browser and make a copy of it, so the stream
would need to be encrypted, however since the applet needs to decode it, it
will need to have the key, which imples that a very^3 user could decompile
the
what if they move your account to a different server causing your urls to
change to for e.g. www19.addr.com/~mgarde/somepage.html
Now aint that gonna suck?
> -Original Message-
> From: Monte Gardner [SMTP:[EMAIL PROTECTED]]
> Sent: 31 October 2002 03:57
> To: [EMAIL PROTECTED]
> Subject
In javascript do not pre-size the array, let it grow as it needs to by
adding on to the end as needed (javascript can do this). This way you will
not get all those additional trailing comma's.
In your servelt if you decide you do want to parse the string use the
StringTokenizer class.
> -Orig
So exactly where in your JSP are you using this JTextArea?
> -Original Message-
> From: Martin Simon [SMTP:[EMAIL PROTECTED]]
> Sent: 23 October 2002 11:52
> To: [EMAIL PROTECTED]
> Subject: JTextArea
>
> I have a swing.JTextArea. How can i show scrollbars?
>
> =
PreparedStatements are a better solution, they will work regardless of the
DB being used, and may turn out to be faster.
> -Original Message-
> From: Nicholson, Dale [SMTP:[EMAIL PROTECTED]]
> Sent: 22 October 2002 05:50
> To: [EMAIL PROTECTED]
> Subject: Re: Storing HTML in databas
I think you need a Java to COM bridge - COM or COM+ being the server-side
version of ActiveX.
Look at:
the J-Integra Java-COM bridge
http://www.linar.com/
jacob (java to com bridge) and it's free.
http://danadler.com/jacob/
> -Original Message-
> From: Himar Carmona Delgado [SMTP:[EM
no. don't do it.
> -Original Message-
> From: Joel Carklin [SMTP:[EMAIL PROTECTED]]
> Sent: 11 October 2002 12:31
> To: [EMAIL PROTECTED]
> Subject: Re: Methods in JSPs
>
> Just a guess here (haven't tried it) but howabout something like
>
> <%! String text_for_page = "";
> priv
I notice that in your sample code form there is no "project_ID"
field, yet you are able to retrieve this as a parameter in your JSP
processing page?
Do you perhaps have two forms on your page, one with the file and
one with other fileds? If so, then this is your problem as only one
of the form
Probably he wants to say primitive types (int, char, ...) for 'variables'.
>
> Ionel Condor.
>
> - Original Message -
> From: "Adrian Janssen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 25, 2002 11:00
I don't think Tomcat 4.X is ready for J2SE1.4.X . . . .
> -Original Message-
> From: Brendan Spinks [SMTP:[EMAIL PROTECTED]]
> Sent: 25 September 2002 07:05
> To: [EMAIL PROTECTED]
> Subject: Tomcat installation issues
>
> Hi all
>
> We are having issues installing Tomcat 4.0.4, j2
What exactly, in your opinion is the difference between an OBJECT and a
VARIABLE ?
The jsp:useBean tag ONLY works for OBJECTS.
> -Original Message-
> From: Martin Simon [SMTP:[EMAIL PROTECTED]]
> Sent: 24 September 2002 04:13
> To: [EMAIL PROTECTED]
> Subject: Re: share objects
>
This is how HTML Forms work, only the value is returned. (the same is true
for checkboxes anbd radio-buttons)
If you want the text as well, you can contrive something in HTML and
Javascript to do that. Make a hidden form field and either onchange of the
or onsubmit of the fill this hidden field
use PreparedStatement, and let it handle the apostrophes
> -Original Message-
> From: Benoit Jodoin [SMTP:[EMAIL PROTECTED]]
> Sent: 05 September 2002 03:10
> To: [EMAIL PROTECTED]
> Subject: Re: JSP Apostrophe in JDBC
>
> It's a solution i've found...what would you suggest?..h
imports are r4esolved at compile time... so while it may compile (because
the class path is correct at compile time) it may not run (because the class
path is NOT correct at run time), so it sounds like Hugo (below) is on the
right track...
> -Original Message-
> From: Hugo Pragt [SMTP:[E
Are you buffering the page? Perhaps try to set autoflush on explicitly -
even though it *supposed* to be on by default.
<%@ page autoflush="true" %>
> -Original Message-
> From: Narayanan, Prashanth (MED, TCS)
> [SMTP:[EMAIL PROTECTED]]
> Sent: 26 August 2002 09:57
> To: [EMAIL PROTE
this works...
<%@page contentType="text/html; charset=iso-8859-1" language="java" %>
<%@page
import="java.sql.*,javax.sql.*,oracle.jdbc.pool.*,javax.naming.*,java.io.*"
%>
<%@page errorPage="/app/tate_error.jsp" %>
<%= AuthenticateUser(request, response, out) %>
<%!
public String Authenticat
how did it not work? compilation error / runtime error?
> -Original Message-
> From: Campano, Troy [SMTP:[EMAIL PROTECTED]]
> Sent: 19 August 2002 03:26
> To: [EMAIL PROTECTED]
> Subject: Re: Declaration blocks and JSP
>
> how would I do that?
>
> I tried public String Authenticate
yes, pass them in.
> -Original Message-
> From: Campano, Troy [SMTP:[EMAIL PROTECTED]]
> Sent: 19 August 2002 03:19
> To: [EMAIL PROTECTED]
> Subject: Declaration blocks and JSP
>
> When I use a declaration block to write a method like this:
>
>
> <%!
> public String AuthenticateUs
de in JSP pages?
>
> so whatz ypur advice when I need to pass and modify arrays and objects?
>
> -Original Message-
> From: Adrian Janssen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 10:59 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Basic question: repeat
that I do not need to synchronize my methods so long as I'm
> not
> using instance variables? What then happens when I call such methods
> concurrently?
>
> -Original Message-
> From: Adrian Janssen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 10:40
If you are using instance variables, you would need to syncronize. However
rather try not to use instance variables. As you have pointed out, Java can
only return a single value, but that could be an array or an object
containing many values, see if that can be used to solve your problem.
Try to
Earth to Steven
Anyway, to answer Joshy's question in the absence of Stevens lucidity. I
believe it is possible. What you would need to do though, is serialize the
object first to a byte stream and then write this to a BLOB-type field in
your DB.
I have not done personally done this in JSP (
Have you tried using the
tag? This runs when your servelt runs, and it will include the *results* of
the named URL.
> -Original Message-
> From: Ola Theander [SMTP:[EMAIL PROTECTED]]
> Sent: 01 August 2002 01:55
> To: [EMAIL PROTECTED]
> Subject: Problm: Nested includes in JSP a
are you for real bob_jones99? because my bogus-poster-M$-bullshit detector
is clickin away like a mad thing.
> -Original Message-
> From: Bob Jones [SMTP:[EMAIL PROTECTED]]
> Sent: 28 July 2002 06:36
> To: [EMAIL PROTECTED]
> Subject: Web Matrix Development Tool
>
> Have people
there is also this good available in PDF format for download
http://pdf.coreservlets.com/
> -Original Message-
> From: Alexander V. Yug [SMTP:[EMAIL PROTECTED]]
> Sent: 25 July 2002 07:50
> To: [EMAIL PROTECTED]
> Subject: help me
>
> hi all!
> i want to begin with JSP. what have
Ok this might be way off . . . .in fact I have not tried it in java.
Howevwer on my PC if thier is an open browser window, then if I open a
command prompt window (dos prompt) and type "start http://www.google.com";
then it loads in the excisting browser window - so try that for the second
button
what url are you using to load index.jsp (what does it read in the addrtess
bar) ?
> -Original Message-
> From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
> Sent: 20 July 2002 07:36
> To: [EMAIL PROTECTED]
> Subject: Re: context problem
>
> It should work as menu.jsp and body.jsp ar
cification
> and reference
>
>
>
>
>
>
> But...if the user closes the browser ...using browser's close button...
> how to handle...
>
> - Original Message -
> From: "Adrian Janssen" <[EMAIL PROTECTED]>
> To: <[EMAIL
maintian the list in a bean with application scope
> -Original Message-
> From: subbu [SMTP:[EMAIL PROTECTED]]
> Sent: 19 January 2001 10:19
> To: [EMAIL PROTECTED]
> Subject: List of users logged in
>
> Hi,
> i want to list the users logged in our application
>
> ie:
> 1.List of
I'd hate to say no absolutely not, but I cannot see a way. Under Tomcat for
instance the JSP interpreter automatically puts the code in the _jspService
of a class that extends HttpJspBase. Since this is all generated code the
only thing that I can see that maybe you could do is change HttpJspBase
This is normal as the query part of the url (the bits after the '?') is
considered part of the url when uniquely identifying cached pages. In fact
if you fetch the "index.jsp?param=some" twice (with the same param=some),
the second fetch will be pulled out of the cache. To avoid caching, you need
res = window.confirm ( "your text here..." );
opens up a modal dialog box with the specified text on it and OK and Cancel
buttons on it. It returns true if OK button is pressed, false if the Cancel
button is pressed.
> -Original Message-
> From: Vaishali S. Pandya [SMTP:[EMAIL PROTECTED]
Very off-topic.
They are not errors they are warning messages, you can safely ignore them in
your case.
> -Original Message-
> From: Sandeep Kumar Agrawal, Noida [SMTP:[EMAIL PROTECTED]]
> Sent: 28 June 2002 09:11
> To: [EMAIL PROTECTED]
> Subject: slightly offtopic
>
> Hi All,
>
Here's an old mail (see below) on the topic of writning out binary content,
with a good reference.
BTW are gif's, tiff's etc in general transmitted in HTTP as binary? Or are
they MIME encoded somehow to 7-bit ascii or whatever, I assume the HTTP
headers are always text, so it seems to me to be a
nope, no binary.
> -Original Message-
> From: Rodrigo Gevaerd [SMTP:[EMAIL PROTECTED]]
> Sent: 25 June 2002 04:40
> To: [EMAIL PROTECTED]
> Subject: Re: A very new game
>
> Of course you can. You can generate from JSP anything you can generate
> from a servlet.
>
> []'s,
>
>
ore efficient in
> terms of performance or overhead.
>
> Regards,
> Vikram.
>
>
> -Original Message-
> From: Adrian Janssen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 25, 2002 2:24 AM
> To: [EMAIL PROTECTED]
> Subject: Re: which method is good for gettin
get a connection every time the user requests the servlet (i.e. in the
doPost() ). Note thaty this will not generally create a connection as
normally one will be available in the pool and will be returned.
If you try to hold onto to a connection in your servlet by for instance
getting it in the i
sigh
if ( (name != null) && (name.length() != 0) )
{
}
> -Original Message-
> From: It, Cockpit (CAP, Contractor) [SMTP:[EMAIL PROTECTED]]
> Sent: 07 June 2002 10:53
> To: [EMAIL PROTECTED]
> Subject: Re: Check This
>
> This code will surely throw up an error if name variabl
Hi,
I ran a largish (40 odd people) web development company for a while, and our
approach was to get the graphic designers to just deleiver us photoshop
files - These would then be cut and coded up into JSP by the programmers
themselves - even HTML when pushed is beyond a designer when you go int
do you have form fields named like txtdesc[1] ?
In other words like:
This is what the code seems to be implying, if so, then reather use form
field like "txtdesc1", i.e. withou the "[" and "]" as these might casuer
problems.
then in your Servlet you can use:
String d = reque
you have to pass the bean along to the function. it is not global.
> -Original Message-
> From: Jan Arenö [SMTP:[EMAIL PROTECTED]]
> Sent: 24 May 2002 03:58
> To: [EMAIL PROTECTED]
> Subject: Use of Bean in function
>
> Hi, I have a function problem
>
> I have a JSP page that uses
http://www.object-refinery.com/jfreechart/index.html
> -Original Message-
> From: Kesav, Ramesh [SMTP:[EMAIL PROTECTED]]
> Sent: 22 May 2002 08:56
> To: [EMAIL PROTECTED]
> Subject: pie-chart and bar-charts in java
>
> Hi all,
>
> can anybody let me have source code for drawing pi
The problem would seem to be that the IE6 users are not sending the session
ID through with every request, check by dumping out the seesion id. It
should stay the same for every page for the 5.5 users and differ for every
page for the 6 users (and even accross different requests of the same page).
you need to connect to the postgresql port 5432 NOT 8080 (the tomcat
port).
> -Original Message-
> From: Sagine E.Ferrus [SMTP:[EMAIL PROTECTED]]
> Sent: 20 May 2002 04:16
> To: [EMAIL PROTECTED]
> Subject: newbie
>
> I'm trying to have my jsp page connect to a postgresql
Also, does anyone know if this is possible within the context of servlets /
JSP?
As pointed out sendRedirect actually just sets a header in the response - as
I then understand things this is then sent to the browser (the response with
just the redirect header and nothing else) and the browser the
Or if all 3 forms should be submitted to the same page (and all other
answers in this thread seam to be assuming so...) then only have one form
that looks like 3 forms with 3 submit buttons!
> -Original Message-
> From: Be Fair [SMTP:[EMAIL PROTECTED]]
> Sent: 16 May 2002 09:19
Marty Hall's book is one of the better books on JSP and servlets, go to
www.coreservlets.com to download in pdf format.
It is very accessible and gives you the juicy bits quickly.
> -Original Message-
> From: Christopher Martin [SMTP:[EMAIL PROTECTED]]
> Sent: 16 May 2002 01:21
> To:
encing all the web-inf\lib directories automatically. I'd heard that
> it's not recomended to be adding every single reference into the system
> classpath.. apart from the fact that it would grow huge there's the
> portability issue. Have you any thoughts in this area?
if your problems are at compile time then I suspect that it has very little
to do with TOMCAT, are you sure that the
TOMCAT_HOME\webapps\ourTest\WEB-INF\classes\com\ue\ueUtils directory is in
your classpath? try something like:
javac -classpath
%classpath%;TOMCAT_HOME\webapps\ourTest\WEB-INF\clas
my 2c:
I always put the properties file in the same directory as the class file
that will read it and this has always worked for me.
If you need to read it off disk from two different classes in different
packages, then I dont know as I don't ever do this.
Cheers
> -Original Message-
>
my 2c:
I always put the properties file in the same directory as the class file
that will read it and this has always worked for me.
If you need to read it off disk from two different classes in different
packages, then I dont know as I don't ever do this.
Cheers
> -Original Message-
>
til.Date and not long.
>
> By the Emmanuel Eze have you found the solution for your problem yet or
> not?
>
> -Original Message-
> From: Adrian Janssen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 07, 2002 3:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: sql Date
>
&g
cbirthday.getTime() returns a long - which cannot be cast to any type of
Date. Change your code to:
birthday = new java.sql.Date ( cbirthday.getTime() );
> -Original Message-
> From: Emmanuel Eze [SMTP:[EMAIL PROTECTED]]
> Sent: 07 May 2002 10:50
> To: [EMAIL PROTECTED]
> Subj
Hi,
That' pretty dangerous, what if the DB is expecting day then month (UK
standard) instead of month then day (US Standard) ? From my experience that
is a common issue with dates and DB's.
It may be poossible to use SQL functions to build the date up.
Cheers
Adrian
> -Original Message
hey Gary,
Are you sure it is the proxy? I have encountered the exact same problem but
the cause was IE6 automatically disabling cokies becuase the web sitye did
not have a Privacy Policy set-up, this occurred with INTRANET sites! It only
happened to the IE6 users who had auto-updated thier browse
86 matches
Mail list logo