Marcellus Tryk

Ranch Hand
+ Follow
since May 31, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Marcellus Tryk

Hi -

We're looking for two developers to join our team and help us build world-class education support software. The position is for Visual FoxPro programmer, but skilled Java programmers will be considered. The candidate MUST have strong OOD/OOP skills.
These positions are only funded for 1 year, but one or both positions could be extended depending on future developments (but there are no guarantees). To see the job description, go to:

http://hr.lblesd.k12.or.us/descriptions/programmer3vfpb.html

Drop me a line if you have any questions ([email protected])

Thanks!

Marcellus
20 years ago
I discovered the problem - namely I'm a dork! The error message is pointing right to the problem but I just couldn't see it - I had 'classname' instead of 'className'. I think I didn't see it because I copied and pasted from an example on a website and therefore expected it to be correct.
- Marcellus
22 years ago
I'm trying to get the Validator working in my Struts application. The following is the last element in my struts-config.xml:

When I start Tomcat I get the following error:SEVERE: Parse Error at line 81 column 70: Attribute "className" is required and must be specified for element type "plug-in".
org.xml.sax.SAXParseException: Attribute "className" is required and must be specified for element type "plug-in".
Can anyone give me hint about what I'm doing wrong?
Thanks!
Marcellus Tryk
[ January 26, 2003: Message edited by: Marcellus Tryk ]
22 years ago
I understand that the RUP is like a 'salad-bar' methodology. But I would like to know if anyone out there has experience applying any or all of the process to non-OOP development.
Thanks,
Mars
I work in a AS/400 shop where development is done in RPG. In case you aren't familiar with RPG, it is a distinctly non-Object-Oriented language. We are interested in adopting or developing a disciplined development process and there's some interest in the RUP. My impression of the process is that it is strongly rooted in UML and OOAD. I can see elements (e.g. use cases) that could be very beneficial to us and others that might be difficult to map to our development technology (e.g. class diagrams). I realize that the RUP also includes large pieces that must be universally appropriate (e.g. test planning). I would really be interested to hear comments from folks who have experience with the RUP on how difficult it might be to apply to a non-OOP development environment.
Thanks!
Marcellus Tryk
[ January 10, 2003: Message edited by: Marcellus Tryk ]
Howdy Jolly Ranchers:
Here's my problem:
I have a page with a list of items. You can select an item for various operations (view, edit delete). When the user selects an item and then presses a button (invoking the desired operation) the Action object stores an object corresponding to the selected item as a request attribute. On a delete I display a confirmation jsp. This jsp retrieves the request attribute and displays identifying info for the item. If the user confirms the deletion I want the next Action to perform the deletion. But since this is a new request the request attribute is no longer available - so how can I inform the Action which item to delete. I can think of 2 ways to accomplish this:
1) Use a session attribute instead of a request attribute. This doesn't seem right to me because I only want the job selection to exist for the current operaton.
2) Use a hidden field to store the item id. This seems hoky to me.
I would appreciate any feedback on this - is my understanding of the mechanics faulty? Any opinions on best practices for this kind of thing?
Thanks!
Mars
22 years ago
Thanks for the insights - I'm going to pursue that.
Mars
22 years ago
Oops - I didn't read far enough. 'Mastering Jakarta Struts' goes on to say:
In the normal definition of the Connection class, this method would close the connection to the database and thus render it useless for later processes, but because this Connection object is an instance of a wrapper object, the Connection is returned to the pool for later use, instead of actually being closed.
That certainly answers my question.
Thanks Mr. Goodwill!
22 years ago
I've frequently seen it stated that Struts provide database connection pooling. 'Mastering Jakarta Struts' says "As of 1.1, the DataSource implementation used by the Struts project models the Pooled implementation". However in all the examples I see (including in MJS) the connection is retrieved via the DataSource, used and then explicitly closed. It seems to me that if there's a pooling mechanism the connection should be freed (returned to the pool) and not closed. I think I must really be missing something and I haven't been able to find any good information on this topic.
Thanks,
Mars
22 years ago
Thanks Adam, I'll give it a try.
Mars
22 years ago
Hi all -
I have a list of items in a JSP. An item can be selected by clicking its radio button. The value of each radion button is the id of its associated item. How can I have the first item pre-selected on initial display of the JSP?
An example in Mastering Jakarta Struts suggests that I need to set the property in the associated ActionForm. Is the ActionForm available at this point? How do I get it? Is this the best way to do this? In general how do you (dynamically) set defaults for html controls in Struts?
Thanks in advance,
Mars
22 years ago
Hi all -
When I attempted to restart Tomcat to pick up a new web application, Tomcat fails with the following error:

The only things I've done since the last time it was restarted was add a war file to the webapps directory and a jar file to the common/lib directory. I've undone these but still no go. Any hints?
Thanks,
Mars
22 years ago
Shawn -
That sounds like what I'm looking for. I guess I need to start using JSTL.
Thanks!
Mars
22 years ago
JSP
Thanks Bear,
I'm using a html encoding method, but that prevents me from using jsp:getProperty. This seems like it should be a pretty common problem. How can one be confident that a property returned by getProperty is HTML-safe?
Mars
22 years ago
JSP
I have beans with text properties that might contain characters that need to be escaped before being presented in html content.
How can I do this elegantly while preserving the separation of presentation and business logic? I.e. I don't want to a lot of java code in the jsp but I also don't want the beans to be responsible for html encoding. Any suggestions?
Thanks,
Mars
22 years ago
JSP