Vlad Patryshev

Ranch Hand
+ Follow
since Jun 30, 2001
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 Vlad Patryshev

Remote deployment on JBoss... I could not find any prefab solution, so I had to concoct my own: http://www.myjavatools.com/projects/systemJsp/readme.html
17 years ago
I am not sure I understood you correctly, but if your boss does it through a browser, you could use an http connection as well. Won't the following be enough?
Hm. Jasper, in Tomcat 4.1, does not hesitate, in JspRuntimeContext, to start as many silent JSP compiler threads as there are JSP directories found. We mortals are supposed not to be aware of this, but what the.
17 years ago
Wow. I was using clicknetsolutions, until they were swallowed by dot5hosting; it cost me some $7/mo.
But, basically, I have a strong suspicion that hosting jsp is not what a sane admin would allow. On which port do they run Tomcat, on 80? One can hack anything through one's jsp via port 80, right?
17 years ago
Not sure about the level of stupidity of the question, but so far I found no way to exclude my test stuff from document generation. The problem is, they are in the same package, so...
17 years ago
I think it is not kosher to order attributes. It is like asking a DBMS or a hashtable to keep records in a specific order.
18 years ago
Well, the only viable solution I see is using javax.swing.text.html.HTMLDocument - it is supposed to understand the structure.
18 years ago

Originally posted by Jerome Lumpkin:
What happens when someone requests certification in everything. Are you prepared to pay and constantly test to be certified in every version of Java, HTML, JavaScript, CSS, Servlets, JSP, JNDI, EJB, DB2, Oracle, Sql Server, Visual Age For Java, JBuilder, XML, and so on?


While I share your attitude towards certifications, I wonder why one would need all this? I had never been certified in anything, and I do not think there are many "certified" guys in our JBuilder team (by the way, there is no JBuilder certification, you are free to use it to your convenience).
18 years ago
JSP
How about clicknetsolutions.com?
19 years ago
I am having trouble trying to do the following:
From one servlet I want to get the contents returned by another servlet (that is, using its url, get connection and retrieve the content) - and all on the same server. It seems like it does not work. I used Tomcat 3.3 and 4.0. Any ideas? Any hints?
19 years ago
Since your Java code is executed on the server side, your dialog would open on the server - and the admins would be probably able to press the button - not what you intend, right?
In your case, you will probably want to have a message on the client side - for this you can use javascript's alert(). Just pour some javascript into your html.
19 years ago
JSP
To avoid this kind of bugs forever, I am using this cheap and dirty solution:

/**
* checks whether a string is empty
* @param s
* @return true if empty
*/
public static final boolean isEmpty(String s) {
return (s == null) || (s.length() == 0) || "null".equals(s);
}
19 years ago
JSP
I am sure I am horribly late, but the answer is: setFileSystemView(); you have to write your own FileSystemView, getRoots() of which returns the drives you want to return.
19 years ago
First of all, you can list the drives and floppies using fileChooser.getFileSystemView().getRoots() method of jfilechooser.FileSystemView class.
But actually, I have a different question. JFileChooser is a rather dull and awkward class. Does anybody know a better class that would be available for public use? See, I just tried to do one simple thing, replace FileView in JFileChooser, to display the sizes and the timestamps of the files - oops! multiple file selection stopped working; and the strange editing feature (it seems like you can rename file in file chooser) has gone wild.
19 years ago
Both ways sound not quite right to me. Why not place all the logic in the beans? My opinion is that servlets are for redirection, jsps are for presentation, and all the rest is done inside beans, is not this correct?
19 years ago