Joe Guzzardo

Ranch Hand
+ Follow
since Mar 14, 2000
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 Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Joe Guzzardo

From SourceForge.net: "ZK is an event-driven, XUL-based, Ajax-embedded, all Java framework to enable Web apps the rich user experiences. With ZK, you represent and manipulate RIA with XUL/HTML components all running at server, as simple as you did for years in desktop apps."

ZK is one of the top Java downloads at SourceForge yet I can find no mention of it here at this site. Seems very odd to me.

Anybody had any experience with it? How does it compare to other frameworks for ease of use and features offered?

Thanks in advance
Hi everybody, I haven't posted anything to this site in a looooong time. But now i gotta problema. I've just installed Eclipse ver 2.1 on my redhat 9 system. I can bring up Eclipse okay but when I do I see absolutely nothing there to create java projects, edit, compile, or debug java code. Nothing about java in any of the menu, toolbars, preferences. I set JAVA_HOME to the location of my java sdk. I use Eclipse quite heavily at work on a Windows XP machine so Im certainly familiar with Eclipse. Most likely the problem is that I've misconfigured something but it beats me what I've missed. Any help would be appreciated.
TIA, Joe
I have no love for Microsoft but Internet Explorer has the majority share of the web browser market, and this is killing me.
18 years ago
JSP
I've got a collection of JSP pages with dynamic content. My problem is the browser (Internet Explorer) hangs unless I set the Internet Options to check for newer versions of stored pages on every visit to the page. I have set the http header options to indicate the page is expired when sent by setting: response.addHeader("Expires", "Thu.01.Dec.1994.16:00:00.gmt"). When I look at the contents of the temporary internet files I see that the pages expired an hour prior to the time they were downloaded, which should be okay. Any ideas?
18 years ago
JSP
and my lucky number is....
20 years ago
I finally found a reasonable solution. I deployed the application with a context root but kept the index.html in the public-html directory. Then I just modified the link to my servlet to prepend the path with the context root. Simple really.
20 years ago
I'm using the J2EE Reference Implementation version 1.2.1 to deploy an application. I want to make my application the default webapp such that when a user enters the URL www.mysite.com they will be taken to my application home page index.html. The index.html will take the user to a servlet when they click a link on the page. When I do this I get an error: Given path servlet/ControllerServlet is not absolute to the base of this context. When I deploy this application with a context root it works okay but then I have to specify the webapp in the URL (www.mysite.com/mywebapp/index.html) Any help would be greatly appreciated.
20 years ago
I quote this from the j2ee guide:
page= "{ relativeURL | <%= expression %> }"
The relative URL that locates the file you want to include, or an expression that evaluates to a String that is equivalent to the relative URL.
The relative URL looks like a pathname-it cannot contain a protocol name, port number, or domain name. The URL can be absolute or relative to the current JSP file. If it is absolute (beginning with a /), the pathname is resolved by your Web or application server.
So I don't think your suggestion will work, but thanks anyway.
20 years ago
I have a JSP with an include tag as follows: <jsp:include page="servlet/ConnectionServlet" flush="true" />
When I use JRUN it works fine. I created an ear file and ported
the application to the J2EE reference implementation. When running the app under the J2EE reference implementation the ConnectionServlet is never called. I figured it must a deployment issue. I tried adding the ConnectionServlet.class file to the WEB-INF\classes file as servlet\ConnectionServlet.class but the JSP still can't find the servlet. Any ideas where I've gone wrong? TIA, Joe
20 years ago
Hi Bill. Thanks for the advice. What you suggested is what I was planning on implementing initially but we wanted to keep the connection "alive" as long as the user was logged on to the application. We developed what I think is a rather elegant solution based upon the connection pooling example in the Core Servlets book by Marty Hall. We changed the "busy" vector to a HashMap using the session id as the key and the connection value and a timestamp as the data value. Then we just need to do a lookup on the session id to find the associated connection which we keep track of with a get/setAttribute. We also have a thread running to kill connections that have been idle for too long. I knew about the HttpSessionBindingListener
and plan on implementing that interface as well but for some reason my server is not expiring sessions.
I was really pleased that this was relatively easy to do within a servlet. Our application had been using JSP and beans exclusively. Maybe I could still do this with a bean but it seemed so much easier with a servlet. Sometimes I would feel that I just couldn't get my hands around a problem using JSPs and beans. But with a servlet I can really wrestle the beast to the ground. Bill, I really respect your opinions and appreciate your insights. Maybe you could open up a new thread to discuss the relative merits and strengths and weaknesses of JSPs and beans versus servlets. Personally, I think they all have their merits but judging when best to use one over the other is a real mark of professionalism. Thanks for your help. Regards, Joe
20 years ago
I'm using JSP for a web application. I want to use connection pooling. I need some way for the JSP/Servlet to tell me when the user has left my application or closed the browser so that I can free the connection. I created a servlet that is included with a JSP include directive. In the servlet I have destroy, init and doDelete methods defined. I'm using JRUN. When I close the browser I don't see any of these methods being called. Any ideas what I can do to get a notification when the session has been closed? TIA, Joe
20 years ago
My HTML page will have 2 select boxes and 1 form for detail information. The idea is lets say the first select box displays a list of states. When the user selects a given state (say Alaska) the second select box will be populated with a list of cities that are in Alaska. When the user selects a given city, the form will be populated with details about that city. When refreshing the HTML page, I must go back to the server every time to repopulate the list boxes which is redundant since the boxes have already been populated in a prior request to the server. I was wondering if there is any way with JavaScript or any other facility to preserve the contents of the lists boxes on the client side. I hope this makes my dilemma a little clearer. TIA, Joe
I have a select box that is populated with data from the server when the page is loaded (e.g. a categories list). If the user selects an element from this box, another box is loaded with data from the server (e.g. a products list). Upon making a selection from the second box a group of text boxes are populated (e.g data specific to the given product). These text boxes may be modified and submitted to the server to update a database. Upon completion of this sequence the select boxes are reloaded from the server to preserve their contents. (I am trying to do this without using frames.) I would like to work around this reload if possible since the data was already sent to the client. Is there any way to do this in Javascript or with any other facility?
Gee Paul, I sure hope you're wrong about this. I'm staking my career on this right now. I'd like to refer you to the following url as just one piece of evidence (granted its not from an unbiased source): http://www.sun.com/software/cover/2001-0117/?frontpage-sunbox
Also, I've heard so much about the success of Weblogic in the marketplace. Or is it something that companies are toying with but haven't really used with much success in a commercial environment?
As Matt pointed out, and as we are all aware, this is still fairly new technology and it may take a few iterations for vendors to properly address performance issues. (In the meantime just run it in a Cray box)
Please keep us posted here with any additional information you come across.
Thanks.
I have a simple database schema that can be implemented with CMP entity beans except for 1 thing. I would like to implement findBy methods to return a collection of keys. Can I do this with a CMP entity bean?