JulianInactive KennedyInactive

Ranch Hand
+ Follow
since Aug 02, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by JulianInactive KennedyInactive

"Web environment" is such a general term. It involves technologies like HTML, CSS, JavaScript, HTTP, Servlets, JSPs, XML, Web Services and that hardly scratches the surface. I've no idea where to suggest that you start. Maybe if you could be more specific you'd get a better response. If you're interested in Servlets and JSPs then Sun's website has some good tutorials.

Jules
19 years ago
You might be interested in the MultipartRequest and associated classes available in the O'Reilly Servlets package.

Jules
19 years ago
Hi Kimberley,

If you don't mind using JavaScript you could always submit a form with code like the following:


If you want to make your URL parameters inaccessible you need to avoid using HTTP GET.

Jules
19 years ago
I don't think you can do that except by setting a cookie and seeing if it comes back with the next request. If it does then cookies are enabled, if it doesn't then they're probably not.

Jules
19 years ago
Of course in Adeel's example the "dates" would actually be stored as numbers, not strings (varchars) so any comparison wouldn't be character by character...

My only reason for suggesting reverse order (it doesn't make any difference for uniqueness) is that if you put the date in reverse order then you can compare and sort on that field to find earlier or later entries. In other words, the later the date the higher the number. That doesn't work if, for example you were to use DDMMYYYY format, e.g. 31012004 (Jan) is greater than 01022004 (Feb) but is an earlier date. It might be useful and there's no extra cost.

Jules

I'm not sure that's what you mean though. You seem to be asking how you can make the outline of a text input field invisible, i.e. a <input type="text"> element. I don't think you can do that and I'm not sure why you would want to. It wouldn't be very helpful to the user.

Jules
Are you sure that the 7 objects in the list are actually different? I doubt that the iterator is behaving as you suggest. It's not clear to me what you're trying to do. If you're still struggling perhaps you could put together a simple example that I can understand.

Jules
19 years ago
Yes, and my advice would be not to touch them with the proverbial barge-pole (i.e. find another way if you have a choice). It was over 2 years ago and I'm afraid I don't remember enough details to be able to help. By the way, if you think you've added SocketPermission and it's still giving the same error, then clearly you haven't.

Jules
Change it to "/Main.jsp". That will probably work, though I'm not sure it's what you want.

Jules
19 years ago
As I understand it (not very well ) the Base64 malarky is a way of making sure that your String (serialized Object or whatever) doesn't get whacked in transit by character encoding. Not too useful without an accompanying explanation, however.

This thread that ended up in the Java in General (Intermediate) forum may shed some light on it, particularly the posts by Mattias Arthursson and Bill Brogden.

Jules
19 years ago
JSP
HttpSessionListener since Servlets 2.3; HttpSessionBindingListener since Servlets 2.0. HttpSessionBindingListener notifies when attributes are bound or unbound to/from the session, rather than when the session itself is created/destroyed. I guess you could contrive this pre-2.3 to perform the same functionality as the newer HttpSessionListener.

Jules
19 years ago
When writing the response (before writing any content):

When reading a subsequent request:

Note that I'm not sure what guarantees are made (if any) that cookies will be returned in the order they were added. You may need to use Cookie.getName() to validate this. For further info read the API docs.

Jules
19 years ago
All I can tell you is that DBConnection.getDBConnection() returns null. That suggests to me that your configuration is wrong.

Unfortunately I can't help any further as I know nothing about org.dhsinfo.ConnectionPool.DBConnection or how to configure it. I suggest you read the documentation carefully. Try and get a minimal example working first before launching into it.

Jules
I very much doubt that you'd be seeing the behaviour that Bear suggests. The natural thing to do (if anything - I would suggest nothing) would be for the driver software to rollback under those circumstances.

The more likely explanation is that the database you're using (my guess would be the ubiquitous MySQL) doesn't support transactions by default (or in your version). I take it you're sure that the data is committed and that you aren't just looking at uncommitted data somehow (possible either within the same session/connection or using READ_UNCOMMITTED transaction isolation)?

All major RDBMS (Oracle, Sybase, MS SQL Server, DB2, Ingres) support transactions by default in my experience. It's only noddy ones like Access and MySQL that don't.

Hope that helps.

Jules
Four.
  • Get the columns returned by ID, not name (recommended best practice). If you get the columns out of order your code is not guaranteed to work (strange, but true).
  • Try getDouble("A_column")
  • If you don't like that idea, try A.*, B.* instead of plain old *. I don't think that'll achieve much though
  • Check the ResultSetMetaData and get the column name actually being returned. You can probably find this out by running the query directly against your database and seeing what the column headings come out like.


  • Hope that helps.

    Jules