Dan Howard

Ranch Hand
+ Follow
since Feb 22, 2004
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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Dan Howard

Bear Bibeault wrote:Makes perfect sense to me as the parameter is the class name.

So it can be read as "load class for name com.xyz.Whatever".



Yeah but it's saying class.forName so it's more like Class: For Name "com.xyz.Whatever" which sounds weird to me.

Then of course you have ClassLoader.loadClass which makes more sense.... So we could have had Class.loadClass instead...

Anyway, it's always bugged me a bit. ;)
5 years ago
What does "for name" mean? It doesn't even seem like proper English. It should be called "load" or "loadClass" no?
5 years ago
Hi All,

Has anyone been able to generate Groovydoc for a Java project? I can generate normal Javadocs no problem.

I thought groovydocs could document Java as well. I get Ant completed but nothing happens.
7 years ago
Thanks! My web.xml didn't have any proper declarations in it. I changed it according the FAQ and I see it now correctly.

8 years ago
JSP
Hi All,

In my page I have:



And then later in the same page I have:



But in the page I see $title and not Scheduler. What's wrong?

TIA
8 years ago
JSP
Thanks!

I see what it is. In Struts config I named the form scheduleDisplayForm and in the jsp I used the name "schedule". I need to keep the naming from the struts config to get the same objects.

Yes I am a jsp noob - just playing around right now with various tag libs. What are the recommended ones now for tomcat 6.0.20?

8 years ago
How do I specify that "schedule" is the form ID? In the action somewhere?

All I'm doing is this:



struts action mappings?
8 years ago
Hi All,

We have a mature application running struts 1.2 and velocity and I need to covert a page from a vm to a jsp.

So I modified my struts-config to change the forward to a new JSP file and in the JSP I try to display some data assigned to the form bean but all the form properties show empty in the JSP. When I look at the form itself I see that they are different objects. So somehow the form bean I used in my Action is not the same one that the JSP sees.

Any ideas?


in my JSP I'm just trying this:

8 years ago
This is a small open source project of mine. It's LGPL and I'm not asking for money.

I've been using this approach for building web applications for several years and about 6 months ago I decided to hunker down and put it all together for release. It's a 1% inspiration 99% perspiration thing. It took a lot of work to get it out there and I would like it if some developers would kick the tires a bit.

This is a great forum with a lot of users who I think could benefit from this approach. If you that crass advertising then sorry.
See my thread on Jolene. The document objects that Jolene creates when parsing an HTML file can also be used on their own.

example:

Image img = new Image();
img.setAttribute("src", "/img/smile.png");
img.setAttribute("alt", "Smile");
img.setAfterText("Click me!");
button.setContent(img);
button.setValue("Click");

Which would output (using toString):

<button name="MyButton" value="Click"><img alt="Smile" src="/img/smile.png">Click me!</button>


http://jolene.sourceforge.net/
<a href="http://jolene.sourceforge.net/">Jolene</a> is a toolkit which provides a DOM (Document Object Model) of HTML documents to Java. This gives developers a pure view unlike JSP, ASP, Velocity. Use plain HTML documents to generate your website and swap them out without changing server side code. Jolene is now in late beta. Kick the tires and let me know what you think.
9 years ago
Hi All,

Does any one know why commons beanutils has 2 utility classes? They seem to do pretty much the same thing.

Should I always just use PropertyUtils?

TIA
Hi All,

For building apps using internationalization I can use MessageResources in struts but it's likely that parts of my app which may require translation are not really in the web layer. For example console utilities and Swing.

So I'm thinking of not using MessageResources and instead use ResourceBundle since it's a common class in java.util.

Are any major disadvantages in using ResourceBundle over MessageResources?

TIA
9 years ago
Hi everyone.

I'm building an open source alternative view layer library - to be used instead of Velocity or JSP and I'm not sure which license would be best to distribute it under.

Basically I'd like a license that says "You can use this in commercial or non-commercial applications but if you modify the sources to the library itself, I'd like to have those changes sent to me so I could possibly integrate those changes in to future versions."

I think the LGPL is closest to this? Any thoughts?