RE: custom tag called with bean properties as attributes

2004-03-25 Thread Hibbs, David
> schaal_nummer=" property="schaalNummer"/>" This is a standard tag nesting error. You can't put tags inside of tag attributes. You CAN put scriptlets, such as your first tag... >property="profielSchalen" /> ...The key is that you have quotes insi

RE: Performace Improvement :: Struts based applications

2004-03-18 Thread Hibbs, David
> But the peformance improvement is not substantial. Can you > please give me some tips to improve the performance ? Observe the following steps for performance tuning. 1) Run the app. Identify that there is a performance issue. 2) Narrow down the problem; is the whole app slow, or just speci

RE: WSAD problems with Struts (was: Should I be able to put a pat h of a Action Class in a global forward?)

2004-03-16 Thread Hibbs, David
Quite correct. I've turned 'em off, too. Usually, though, the action validations are correct. On the opposite side, tiles validation is non-existent but it tries anyway. So any fails validation. I filed PMRs with IBM on these. While they would not fix them for me (it's not stopping the pro

RE: using Two struts-config

2004-03-16 Thread Hibbs, David
> I've just started using Struts on something that will eventually > become a fairly large project. We were looking at using modules > to break things up, but I haven't actually tried it yet. > Can you explain how this config-behind-story approach compares > to using modules? Using mo

RE: [OT] Search string tokenizer

2004-03-16 Thread Hibbs, David
I wrote some code to do this for an open-source project on sf.net an eon or two ago, before the regex packages matured. You can probably enhance what I wrote with regex, but it's at least a starting point... http://cvs.sourceforge.net/viewcvs.py/omd/java/coruscant/omd/util/StringSear cher.java?r

RE: Tile definitions used as forwards and action input

2004-03-03 Thread Hibbs, David
on,type=com.mybdr.actions.LogonAction > > I then get: > > {...RequestProcessor] Unhandled Exception thrown: class > java.lang.NullPointerException > from > LogonAction.execute(Unknown Source) > > Any ideas? > > Regards, > > Aaron > > -O

RE: Tile definitions used as forwards and action input

2004-03-03 Thread Hibbs, David
> Can anyone explain where tile definitions can be used in > action mappings (see below)? I have had trouble when I use > ActionError to return to the input page. Answers below. > Also, I see examples of definitions starting with a '.'. Is > this important/relevant? More of a standard/bes

RE: Validator / Tiles and modules - anybody done it?

2004-02-18 Thread Hibbs, David
the > validator plugin definition in the default module's > struts-config.xml and then all of the other modules > get it by default? > > Thanks, Bill > > > --- "Hibbs, David" <[EMAIL PROTECTED]> wrote: > > > I'm curious if anyone out there

RE: Validator / Tiles and modules - anybody done it?

2004-02-17 Thread Hibbs, David
> I'm curious if anyone out there has gotten Validator > and/or Tiles working with Struts modules? Here are my > questions. If you can answer any of them it would be > a great help. Yep. Got 'em both working. > Do you have to have the validator plugin defined in > each module config fi

RequestUtils / TagUtils deprecations and migration

2004-02-16 Thread Hibbs, David
Per the release notes page, "You are strongly advised to resolve all Struts 1.1 deprecations before moving " to the newest release., and "Alternatives should be available for all decprecated[sic] constructs." However, I am having some problems trying to determine my alternatives for some of

RE: [OT]Eclipse CVS

2004-02-16 Thread Hibbs, David
This is some documentation I put together for a sourceforge project, but it should still give you the information that you need http://www.coruscant.cc/Struts/eclipseCVSsetup.ZIP Note that the docs under the eclipse help are very good, too, though they may be a bit intimidating to someone who

RE: [OT?] WebSphere and commons-logging

2003-12-17 Thread Hibbs, David
t; > Make a file called commons-logging.properties and add this line: > > org.apache.commons.logging.LogFactory=org.apache.commons.loggi > ng.impl.Log4jFacto > ry > > Put the file in your classpath > > > > Ovidiu > > - Original Message - > From

RE: Modules with Tiles Problem

2003-12-17 Thread Hibbs, David
If you have components used everywhere for every module, create some new and separate struts-config.xml and tiles-defs.xml files. You can specify multiples of each type of file for each module, so each module is free to reference a shared config file. To reference more than one struts-config.xm

[OT?] WebSphere and commons-logging

2003-12-17 Thread Hibbs, David
For those who are using commons-logging (i.e all Struts users!) on WebSphere 4.0 or greater, you need to be aware that WebSphere comes with its own implementation of a commons-logging Log. Not only that, but it comes with its own implementation of LogFactory... and a commons-logging.proper

RE: [OT] I didn't know Struts was an "antipattern"

2003-12-15 Thread Hibbs, David
I didn't know it was an antipattern, either. In fact, I found his discussion completely invalid because he has no real discussion about the failures of MVC, which is what he is trying to point out. To whit, I had to post a reply on the page. =) Included below is my reply as a bit of discussion..

RE: [Tiles] tiles controller not processing tiles request

2003-12-15 Thread Hibbs, David
this was recently discussed. see the archives: http://marc.theaimsgroup.com/?l=struts-user&m=107106764606173&w=2 BTW, specifying the controller is redundant if you specify the tiles plugin. --David > -Original Message- > From: Craig Tataryn [mailto:[EMAIL PROTECTED] > Sent: Friday, Dec

RE: Tiles setup question

2003-12-10 Thread Hibbs, David
IMHO, the documentation is somewhat misleading. I struggled with this for some time before I realized what it was really saying. To clarify: You can use a tiles name as a forward in your struts-config.xml file either as a global-forward or a local forward for an action.

RE: Tiles, Definition inheritence

2003-12-08 Thread Hibbs, David
This is (IMHO) a classic issue with tiles. The Tiles meaning of 'inheritance' isn't quite the same as in Java or other OO concepts. Tiles inherit values from their parents, and can override those values. However, adding new values is not supported. The only way [that I've found

DefinitionDispatcherAction in Modules [Bug?]

2003-11-10 Thread Hibbs, David
I'm using modules in my new application [official Struts 1.1release] to segregate pieces of it, and I'm having issues with DefinitionDispatcherAction. Enabling debug messages, I can see that it is successfully retrieving my definition--this is the last log message that I see [11/10/03

RE: Struts on WebSphere 3.5

2003-10-23 Thread Hibbs, David
I haven't tried the latest builds on 3.5 (since we migrated up to 4.0 and hence 5.0), but based on past experience with 3.5 it sounds like you need to double-check the results of step 7: "In the servlets directory, open struts.jar with WinZip. Extract the three DTD's (struts-config_1_0.dtd

RE: Can I get parameter using bean tag?

2003-10-03 Thread Hibbs, David
Yep. See the bean:parameter tag at http://jakarta.apache.org/struts/userGuide/struts-bean.html#parameter David Hibbs Staff Programmer / Analyst American National Insurance Company > -Original Message- > From: Barry Volpe [mailto:[EMAIL PROTECTED] > Sent: Friday, October 03, 2003 1:11 PM

RE: any known issues with WAS 4.0?

2003-10-03 Thread Hibbs, David
> and also to > >"-//Apache Software Foundation//DTD Struts > Configuration 1.1//EN" > "/WEB-INF/struts-config_1_1.dtd"> > > but no luck:[ > > Also, Struts1.1 jar is the same as my struts.jar -- both 313 files and > 1,181kb

RE: any known issues with WAS 4.0?

2003-10-03 Thread Hibbs, David
In that case, the problem is likely that the Action servlet failed to load its struts-config.xml file. Under WAS, this is typically because it can't access the proper DTD (are you behind a firewall?). On WAS 4.0, if you keep a copy of the DTD under WEB-INF and alter the struts-config.xml DOCTYPE

RE: Websphere & Struts -war Deployment problem...

2003-10-01 Thread Hibbs, David
Your trace below is snipped to the relevant pieces... The first line is your hint: WAS only knows about the 1.0 configuration in its registrations. (BTW, for those interested but not familiar with it, this is WAS 5.0.x--and the admin console is struts 1.0 based.) I can tell from the trac

RE: J2EE IDE

2003-08-27 Thread Hibbs, David
a) Boot time : I haven't met a Java-based IDE that didn't have high boot time. That said, the core IDE boots pretty fast on my home machine (1GHz P4) -- much faster than NetBeans. Caveat--I quit using NetBeans because a) it was outclassed by Eclipse and b) I felt that the releases were becoming l

RE: [OT] Determining Class Type of Action

2003-08-15 Thread Hibbs, David
Just a question to start with... what exactly are you passing into the isInstance method? c.isInstance(org.apache.struts.actions.DispatchAction) doesn't work in my compiler. =) Why not just instantiate it and use instanceof? if( Class.newInstance() instanceof org.apache.struts.actions.DispatchActi

RE: [OT] - [BEER] - [VOTE]

2003-08-14 Thread Hibbs, David
-1 While it can be difficult to decide what to read, making me stop to think what an abbreviation means won't speed things up. It also won't help newbies. Feel free to use whatever [PREFIX] system you want, but don't expect people to understand or read because of it. OTOH, +1 to the [BEER], [FR

RE: Location of JSPs for TILES

2003-08-07 Thread Hibbs, David
> Must all files for a given Tiles definition be located in the same > folder? I am extending one layout where the base file is located in > /WEB-INF/jsp and the added file is located in /WEB-INF/jsp/proptype No, this shouldn't be a problem. I do the same thing--the only difference is that you

RE: [OT]Java equivalent to ASP function

2003-07-24 Thread Hibbs, David
Digging out... got behind a few days recently. Important note: Integer may not be big enough for all applications. There are also a Long.toHexString() and Long.valueOf() functions for those cases. David Hibbs Staff Programmer / Analyst American National Insurance Company > -Original Messag

RE: Include response in the JSP page

2003-07-09 Thread Hibbs, David
You probably don't want to set a mime type for *.do, because all your actions might have different types. However, you _can_ use the response methods to set the content type, write to the response, and return a null forward. If you are trying to display a dynamicly generated image

RE: how to access tiles defs in inserted jsp ?

2003-07-08 Thread Hibbs, David
Sneaky little issue on this one. Try the following... in tiles-defs.xml change to and in myBodyImpl.jsp change foo = to foo = David Hibbs Staff Programmer / Analyst Distributed Applications Development and Support American National Insurance Company > -Original Message- > From: Mic

RE: struts plugin for eclipse?

2003-07-08 Thread Hibbs, David
I haven't tried the newest release yet, but Struts Console has a plug-in for eclipse. The last version I tried didn't really integrate into the workbench so much as open in a pop-up window, but it worked pretty well and provided the full-featured gui of Struts Console. Try it out from http://www.

RE: [FRIDAY] Lichtenberg quote...

2003-06-27 Thread Hibbs, David
The one below is my favorite of those you listed, but I have my own favorite as well... "Any program contains at least one bug and can be shortened by at least one instruction. Therefore, by induction, any program may be reduced to one statement which will not work." --Unknown I'm sure at least

RE: Problems with an inherited getter in a derived bean

2003-06-19 Thread Hibbs, David
The answer to your puzzle is found in the JLS, 8.2.1.4 Accessing Members of Inaccessible Classes. For brevity I won't copy and paste everything but leave it "as an exercise for the reader." ;^) http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#4086 2 David Hibbs Staff Progr

Best Practice [WAS: Logging in struts].

2003-06-18 Thread Hibbs, David
Anyone have any comments on using the log( String, int ) method on the ActionServlet? i.e. in an action getServlet().log( "This is for debug only", 2 ); will only log the message if the debug level is 2 or greater... However, now that I'm looking at this in the user Guide (which I've had little

[OT-RANT] IBM ESR Tool

2003-06-13 Thread Hibbs, David
Anyone else out there have access to IBM's problem submission (ESR) tool? Have you actually tried to USE it?!?! Good God! It takes FOREVER for it to move screen to screen, to load my contract numbers, etc. My users and managers wouldn't tolerate it if MY apps worked that way, yet I have

RE: [OT] [JOKE] So if Struts were to be ported to .NET...

2003-06-12 Thread Hibbs, David
my cow-worker's witty reply: "Their web site could be www.gotnuts.com eh?" =) --David > -Original Message- > From: Brandon Goodin [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 11, 2003 8:26 PM > To: Struts User List > Subject: [OT] [JOKE] So if Struts were to be ported to .NET... >

RE: Forwarding to a tile definition

2003-06-12 Thread Hibbs, David
One other option (which I use)... Build an action DefaultAction that simply tries to foward to the given tiles definition. The given tiles definition, then can either be a query parameter or be extracted from the requested URL. 1) Check for a query string def=my.tile.def 2) if def is not presen

RE: [OT] RE: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Hibbs, David
bugzilla report has been filed for > this. At least > that gave me some confidence that it wasn't happening in just my web > application. > > Thanks again. > Susan > > On 06/11/2003 01:04:46 PM "Hibbs, David" wrote: > > > Please define "

RE: [OT] RE: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Hibbs, David
Please define "not resolving correctly" -- if you do a view source, does your link look right? What exactly are you putting in the rewrite tag, etc? Give us some more information so we can answer better! =) I doubt the compliance property you mention has any effect on the rewrite

RE: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Hibbs, David
I've got production apps running on 1.1 RC2 on WAS 4, so I would hope that means it is possible to do so. ;^) BTW, I didn't make any changes to the struts code for WAS 4, so that's not your problem. OTOH, looking at my copy of the RC2 source it would seem you are indeed running a later version

RE: Best practive for presenting a search result to a user

2003-06-10 Thread Hibbs, David
I disagree wholeheartedly with this practice for several reasons. First and foremost, the problem with passing the result set directly to the JSP is that you must make sure to close your connections when done. Your JSP might be able to close your result set, but your statement and

RE: Build Navigation based on action mapping

2003-06-04 Thread Hibbs, David
I'm guessing that what you really want is to be able to do either a) some reverse engineering/documentation or b) a site map type function because navigation in a Struts app is absolutely based on action mapping and tiles config. That said (and without a clearer question), I will give some very

RE: execute() is called twice!

2003-05-30 Thread Hibbs, David
The only time(s) I've seen this are as follows: 1) JavaScript is also submitting the form in an onClick et al. method 2) The submit button is actually an image. Images implicitly submit, so if you have an HREF or JavaScript onClick attached to it, a double submit will happen. (See #1). 3) You ha

RE: Justifying Struts

2003-05-30 Thread Hibbs, David
a) See the thread about "Is it worth it?" on JavaRanch at http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=58&t= 001008 b) See specific comments below... I'll try not to repeat comments already made... > 1) I like > to have my front end developers do form (field) validatio

RE: what the wrong withis?

2003-05-27 Thread Hibbs, David
The problem is because you end up having quotes inside of quotes. Maybe if you look at this it will make sense: value=" p="g"/>" How many quotes are there? I count 6, where a property must have only 2. The solution is to put a bean:define ahead of it, then use the local bean inside the other ta