Bart Allen

Greenhorn
+ Follow
since Dec 19, 2003
Merit badge: grant badges
For More
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 Bart Allen

I have been working with prototype for well over a year now, and I'm still not sure why many things are the way they are. functions called $ and now $$? I get what they do, but when you're talking about a library that is poorly documented in the first place (for good reason), having wonderfully descriptive function names like $ is awesome!! Is the idea to make everyone read all of the code in the library -- uderstand what it does, and memorize the function names just in case they may run across a situation where it may be needed? The other thing that gets me is the extending of things like Number, so the new functions toColorPart, succ and times come up on Number as if they were always there (the java part of my brain is hurting thinking about that). It seems to me that in a world where we are trying to trim down on the amount of bits flying across the wire, this library does a bit too much and should be broken down into several parts (Someone may just need the functions and objects relative to working with a XMLHttpRequest). I know that this is something that I could do, but that doesn't make it too clean for maintenance if I want to upgrade to the "Latest" version later on. Sorry about my blathering.
[ March 27, 2007: Message edited by: Bear Bibeault ]
With EJB 2.x there were a few situations where you would use EJB, and some where you clearly would not.
You would use for MDB/JMS, distributed components, remote access over RMI/IIOP, multiple client types-- and possibly CMT, simplication of multi-threaded code, and declarative security.
Has this list become more expansive with EJB3?
What new situations does it make more sense to use EJB3 than POJOS or alternative technology?
I have been able to successfully submit a form using ajax to the server side when it is not a multipart form. When I need to do file uploads, this does not work. The workaround that I have found (and recommended) is to create an IFrame, and then submit the form using the IFrame as the target. This works perfectly, but it also requires that I create an AJAX watcher of sorts to check back on the server side to know when I am done processing so that I may display resultant behavior.
I would consider it to be rather beneficial to allow AJAX to actually do the multipart form submit, but I also understand that there are some issues around this -- the fact that I don't really have clean access to the value submitted for the uploaded file probably being paramount.
Is there any way around this?
Today I have a Custom Tag on a JSP that dynamically created from 0 to n html inputs: <input> or <select> or <textarea> that I create from an ArrayList of HTMLInput objects that are loaded from a database. Upon post, I pull all of the parameters from the request object and, using the ID's of the Objects from the same ArrayList of HTMLInput objects, reassign what it's current value is based upon any modifications made. This is also where I perform any type of validation and a possible forward to the original entry form if there were errors.
I am currently in the process of trying to migrate my application to Struts, and have been able to figure out how to replace the static forms and their input, but have not figured out how to handle the dynamic aspects of my above defined issue ->
19 years ago
I need to be able to dynamically generate form inputs (0-*) from DB. These input types can be any of the standard HTML Input types - which then need to be dynamically parsed and validated (with validation rules coming from DB). Is there an apparatus in Struts which I have not found as of yet that can perform all of these requirements dynamically?
19 years ago
Are there certain words or word combinations that will always result in a hyperlink? If so, you could create a secondary file of these values and then write a generator that produced an xml file out of you base text property file and your app would look at the gen'd xml file instead of the properties file. Modifications to the base text files would require re-running of the generator.
19 years ago
JSP
You could call a javascript function upon submit that dynamically creates a multi select form input type and then loads it with values and selected attribute with values for each item in the array, and then when passed to the Servlet you can call request.getParameterValues("nameYouCalledDynamicSelect") to return a String[].
19 years ago
JSP
Also...
In order to use standard actions, the property needs to be either a String or a primitive. If it is not, you will need to use scripting.
19 years ago
JSP
For a Class to be a valid JavaBean, it must have a public no arg constructor and appropriate getter and setter methods.
HashMap does have a no arg constructor, but does not have the appropriate getter and setters.
Why not create a new Class that is your JavaBean, and make it so that it has a HashMap along with the appropriate getter and setter methods?
19 years ago
JSP
I have two apps which basically use the exact same code and have a generic error page to catch exceptions of type Throwable.
It works in one, but not the other. The only difference is the one that isn't working is using frames. In both cases I have a custom tag on the error page (that is defined in web.xml) which captures the exception information and emails it to the development team. The tag on the error page which is in the app which uses frames is indicating that pageContext.getException() is returning null. I have <%@ page isErrorPage="true" %> on both of my error pages. Just in case It ignored the isErrorPage since it is a framed page, I also put isErrorPage on the parent as well, but to no avail.
Has anyone seen this before, or does anyone have any ideas?

Thanks for any help....
19 years ago
JSP
I scored an 80% on the HFS final Mock. I would say that the difficulty level of the HFS questions were very similar to that of the actual exam. The major difference was that the actual exam always tells you how many answers are correct in the instance of multiple correct answers. The HFS final exam does not. This actually helped when studying, because it forced me to learn what things are, not what they aren't.
19 years ago
I started reading HFS about 10 days ago.
I took the test today and passed!! YAHOOOO!! I probably could have done quite a bit better with more time, but with other requirements going on at work, had to shove a great deal in my head during my "vacation"...

Many thanks to Kathy Bert and Bryan... without this book, I'm sure it couldn't have been done in such a short period of time.
19 years ago
On page 494 it states that "All tag attributes have TAG scope."

The answer for question 18 indicates that F, which reads:

F. For each attribute declared and specified in a Tag File, the container creates a page-scoped attribute with the same name.

is a correct answer.

Do these two statements contradict each other, or is the "answer" provided in addition to the tag attribute, for which I must have must have missed reading somehow?
I took it as ---> when you subclass the wrapper, you override any methods you want to... but don't have to.... i.e. their example on pg 688.
So therefore, you don't have to override any methods, but it would be pretty much pointless to not do so.
I copied your exact code out of your post and it works perfectly. Your code is finding your TLD, given the error you're getting would be different had it not. The only thing I can think of is maybe you didn't copy your .class file from your dev env to your deployed environment.