Geertjan's Blog

  • November 15, 2005

Pop Quiz for NetBeans and Struts Users

Geertjan Wielenga
Product Manager
I learnt two small but interesting things today about Struts, Tomcat, and NetBeans IDE 5.0. Both things are really quite small, but both are also really quite significant and interesting—at least to me. So, here are the two problems I had—I will not give you the solutions. Instead, if you know one or more of the solutions, please leave a message at the end of this blog entry (or write me an e-mail). In a few days, I'll leave the answers at the end of this blog entry, if nobody out there has managed to work them out...
  • Problem 1: Struts. At the end of part 3 of my Struts tutorial, I had a Struts datasource for accessing data from a PointBase database:

    However, whenever I refreshed the page, a new call was made to the database, which resulted in the data being displayed again:

    Question: What did I do to solve this problem?

  • Problem 2: NetBeans IDE. Even though I successfully deployed the application to the bundled Tomcat Web Server, a new node did not appear in the Runtime window:

    As a result, I wasn't able to undeploy my application from inside the IDE. I also couldn't start/stop the application or open it in the browser from inside the IDE. All of these actions are present in an application node's pop-up menu, but since I didn't have an application node there, I couldn't use the pop-up menu. When I deployed other applications, there was no problem and the node appeared correctly.

    Question: What did I do to solve this problem?

Both these issues are quite small and trivial if you know how to deal with them, but pretty frustrating if you don't. Any guesses out there what the solutions are?

Join the discussion

Comments ( 2 )
  • Geertjan Wednesday, December 7, 2005
    Is there really nobody who knows the answers to these questions..?
  • Andrew Tuesday, May 30, 2006
    You must clear the customerList variable, every time, before fillin' it with data in getCustomers() method.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.