[OT] Thanks

2005-01-31 Thread bmf5
I'm moving to a new project and won't need to subscribe to this list for the time being. Before moving on though, I wanted to say thank you to everyone. The people here are great. Seven months ago I had heard and read of Struts but never used it. I'm now leaving behind a small web app

Re: Help with logic tags, and commas please.

2005-01-20 Thread bmf5
I need to know if this would be correct as well, where creditApplicationListDto.businessLine is a Boolean: No. Kishore already explained. Note that you can do this in the DTO if you want to and expose the collection through a getter Not sure if it's the best way but this would be the way

Re: Help with logic tags, and commas please.

2005-01-14 Thread bmf5
Not exactly the same, since I have use of a list but here's how I handled it in JSTL... c:forEach items=${sessionScope.auditorList} var=auditor varStatus=status c:if test=${!status.last} c:out value=${auditor.name}/,nbsp /c:if

Re: Off topic : IBM Portlet

2004-12-03 Thread bmf5
I did a little work w/ this about 6 mos ago then the project was cancelled. Depending on your WSAD version you'll probably need a plug-in for portlet development. We also installed the portal server for testing. Here's a link to the portal zone. Somewhere in there are charts that give all

Re: Performance issues

2004-11-19 Thread bmf5
I've tried this but take javascript errors saying that the static function is undefined. Apparently, the staticJavascript.jsp is not being compiled/seen. All my jsp's are in /WEB-INF/jsp/*. I've tried using every combination I can think of on the src= of the script tag but can't get a

Re: Does Javascript Validation work with mapping path as key?

2004-11-11 Thread bmf5
One other thing to check, I think name=myForm has to be type of ValidatorActionForm, not the usual ValidatorForm. Bart Niall Pemberton

Re: Map-backed action forms with JSTL tags

2004-10-20 Thread bmf5
Asleson, Ryan [EMAIL PROTECTED] wrote on 10/20/2004 08:18:48 AM: [This question was posted to taglib-user list also but I received no responses. My apologies for the cross post.] Hello, I have the following JSTL code fragment that is failing: c:if test=${empty

RE: Map-backed action forms with JSTL tags

2004-10-20 Thread bmf5
Ok, I missed this the first time. When I do this I first get the map and pass the string key to the map. Try adding a method to the form that exposes the map then give the key to the map. public Map getMap(){ return whateverYourMapIs; } then c:if test='${empty form.map[13]}'

RE: textbox format date i18n date handling

2004-10-05 Thread bmf5
I don't have time for a long response but have you considered the fmt:formatDate tag of JSTL? David Suarez [EMAIL PROTECTED]

Re: How to handle multiploe unknown form fields

2004-09-30 Thread bmf5
Frank, Will this help? http://www.reumann.net/struts/nested.do You didn't say anything about JSTL. Just today I'm working on populating a checkbox field in an object that's contained in a list. Oops. I just remembered I'm using html-el too. I haven't tried it with with plain html. This

Re: ServletException using html:link tag

2004-09-29 Thread bmf5
Jeroen Breedveld [EMAIL PROTECTED] wrote on 09/29/2004 08:40:56 AM: Hi all, I'm trying to create a link to an action using the Struts' html:link tag like this: html:link action=getSearchResults name=SearchActionForm scope=requesttest2/html:link However when I load the jsp

[solved]Re: Struts tags JSTL

2004-09-28 Thread bmf5
Well I found the problem it's embarrassing. For the sake of others I'll humiliate myself. The jsp I was working on was a cut/paste I had inherited. In adding some functionality I started using the jstl tags but neglected to see if the taglib had been declared in the jsp. Of course, it

Struts tags JSTL

2004-09-27 Thread bmf5
I'm trying to understand the interplay between the struts html- tags JSTL. When using the c:forEach I'm not able to reference the page scope variable in an html:link paramName attribute that's within the loop if the Collection is empty or does not exist. I get a servlet exception -

RE: Forward to a file on hard drive

2004-09-23 Thread bmf5
Thanks for the correction. I want be so kludgy with spelling in the future. Durham David R Jr Contr 805

Re:[solved] Need Best Practices Thoughts on Actions

2004-09-22 Thread bmf5
Thanks to Jim Frank for your help. While you guys were responding I ended up using a variation. If they click save I go ahead and submit the form w/ a hidden field for destination. If they don't want to save I go to a RouterAction with the destination as a request parm. The RouterAction

Forward to a file on hard drive

2004-09-22 Thread bmf5
Is it possible to forward to a file on a hard drive? I set up a global forward like this forward name=lapTop path=C:\project\WorkQueueLaptop.html I've since learned that the path is context relative so this is a no go. What technique do I need to use? Is it possible to handle this

Re: Forward to a file on hard drive

2004-09-22 Thread bmf5
This doesn't work either. I get a 404 for a local resource or an outside url. I don't want to hardcode the document.location but I don't know what other choices there are. Hubert Rabago [EMAIL PROTECTED] wrote on 09/22/2004 12:00:00 PM: If you need to forward to a resource outside the

Re: Forward to a file on hard drive

2004-09-22 Thread bmf5
Frank W. Zammetti (MLists) [EMAIL PROTECTED] wrote on 09/22/2004 01:34:07 PM: Are you actually trying to FORWARD to the file or is your intention to initiate download of the file? FORWARD Your specifying an HTML file though, so I assume you want the user to see that page... So,

Re: Forward to a file on hard drive

2004-09-22 Thread bmf5
I'm sorry to report it doesn't work. As best I can tell It wants to find the file in the application context. I base that on the 404 and the location being the RouterAction with parm... http://localhost:9080/AIM/router.do?destination=handHeld from a forward of forward name=handHeld

RE: Forward to a file on hard drive

2004-09-22 Thread bmf5
the others who helped. Bart Arumbakkam, Praveen \(Contractor\) [EMAIL PROTECTED] wrote on 09/22/2004 03:12:58 PM: Bmf5: Here is what I did to forward to a local file using the logic:redirect tag. 1. Declare a global forward in your struts-config.xml - global-forwards forward name

Re: Validation problem - form still submits after client-side validat ion fails.

2004-09-20 Thread bmf5
If I'm understanding your scenario correctly your onclick needs to call a function that will call the submit() on the form only if the validation passes. Barnett, Brian W. [EMAIL PROTECTED] wrote on 09/20/2004 04:51:55 PM: Both the client-side and the server-side validation are executing

OT - way OT - WSAD 5.0

2004-09-17 Thread bmf5
I use WSAD 5.0 for dev and out of nowhere it started using up all my machine's memory (1G). There's not much in the log which is below. While I'm waiting for support to call I was wondering if anybody has ever seen anything like this? This is happening when all I'm doing is editing a file

Re: Resources not defined for Validator

2004-09-17 Thread bmf5
Do you have the plug-in set in the struts-config.xml? Dave Bender [EMAIL PROTECTED]

Re: I'm going back to just using regular Actions.. a question

2004-09-17 Thread bmf5
We use option one - separate packages for actions, forms, dao, services, util, etc. Rick Reumann [EMAIL PROTECTED]

OT - tags in the archive text

2004-09-16 Thread bmf5
How do I send a question include code so that the tags aren't parsed by the browser in the archives? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Checkbox Initialization

2004-09-16 Thread bmf5
I'm obviously not understanding something. I've got a requirement to initially display a blank form with some checkboxes checked. What I have is a TakeoverAuditAssignmentForm with a setDefaults() method that sets the checkboxes to true. My NewDealerAction calls the setDefault() method then

Re: Checkbox Initialization - Got it

2004-09-16 Thread bmf5
I missed(forgot) the fact that validate defaults to true. Add one line to config file Viola! [EMAIL PROTECTED] wrote on 09/16/2004 09:42:37 AM: I'm obviously not understanding something. I've got a requirement to initially display a blank form with some checkboxes checked. What I

MappingDispatchAction

2004-09-13 Thread bmf5
I just read about this this w/e and it suits my needs perfectly. However, I can't find it in 1.1 struts.jar. Is it a 1.2 feature? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: MappingDispatchAction - thanks

2004-09-13 Thread bmf5
hi bmf5, yeah its struts1.2.2 feature. You can get the beta version of it n then add it in ur code instead of putting struts 1.2.2 jar file. sachin xoriant mumbai -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, September 13

Collections, select options mental block

2004-09-11 Thread bmf5
I'm having a heck of a time figuring out how to use this trio. I'm so used to a for loop in a scriptlet. I've gotten to the point where my jsp sees the collection stored in session scope. The tags even display the right number of options. However it's always the last entry in the collection

Re: Collections, select options mental block

2004-09-11 Thread bmf5
Thanks for the help. I wasn't instantiating a new object before adding it to the list. Just added the same one over over. Duh! mail [EMAIL PROTECTED] wrote on 09/11/2004 03:48:57 PM: Well, the snippet below looks fine and should definitely work. So, if your result doesn't seem to

Re: Validation with 2 masks?

2004-09-10 Thread bmf5
I pulled this old thread off the archives in order to give context to a couple of questions And if you want to do a javascript validation on it as well, don't forget to set the var-jstype attribute to be regexp in the validation.xml. Is this a valid tag? I don't see any reference to

Re: Validation with 2 masks?

2004-09-10 Thread bmf5
Matt Bathje [EMAIL PROTECTED] wrote on 09/10/2004 12:27:10 PM: [EMAIL PROTECTED] wrote: I pulled this old thread off the archives in order to give context to a couple of questions And if you want to do a javascript validation on it as well, don't forget to set the

Best practices for localization of exception messages

2004-09-09 Thread bmf5
I'm learning and building as I go and have run into a situation that I'm not sure if I'm handling right. I've started using chained exceptions per the suggestion in Struts in Action. I'm also trying to localize the messages. What I'm not sure of is the best way to get the locale down to

Re: Best practices for localization of exception messages

2004-09-09 Thread bmf5
Brett Connor [EMAIL PROTECTED] wrote on 09/09/2004 02:03:00 PM: [EMAIL PROTECTED] wrote: Brett Connor [EMAIL PROTECTED] wrote on 09/09/2004 12:22:39 PM: bigger snip Yep. The error code in whatever form it is in (depending on your company standards and convesions) can be used

RE: Best practices for localization of exception messages

2004-09-09 Thread bmf5
Jim Barrows [EMAIL PROTECTED] wrote on 09/09/2004 01:23:12 PM: snip Yep, that's it. I know what went wrong in general, and can drill down to the specifics if I need to for error reporting. In general I always at least include the PK in a message, even for an exception that isn't

RE: Learning the basics

2004-08-31 Thread bmf5
Chris, In our app we're building a model object Assignment from a dao object AssignmentDAO. We then fill the form AssignmentForm from the model object. All this is controlled from the AssignmentAction. I think I've recently read that in general a lower layer should not be aware of a higher

1.2

2004-08-27 Thread bmf5
I'm confused. The Struts acquiring page says 1.2 is the best available but the download page has the 1.1 release. Is there some other page to get the 1.2? Or, am I misunderstanding something? - To unsubscribe, e-mail:

OT - Archive Search

2004-08-27 Thread bmf5
Before I submit questions to the list I try to search the archives. However, I often get no matches were found on a very generic search, eg. date. Is there a problem or am I doing something wrong? - To unsubscribe, e-mail:

RE: OT - Archive Search

2004-08-27 Thread bmf5
Hadn't tried this one. Thanks. Paul McCulloch [EMAIL PROTECTED] xiossystems.com

Date Validation

2004-08-24 Thread bmf5
When I search the archive I get no results for the word date so here goes. I've been using the validation plug-in to validate the date format of MM/dd/. A new requirement is to allow the user to enter a date in one of several formats(mmddyy, mm/dd/, and others). Can the validator do

Re: Date Validation

2004-08-24 Thread bmf5
Thanks for the response. You can specify the action path in the html:javascript tag instead of the form name, and the javascript tag will work fine -- basically, html:javascript looks for the literal value from form name=... in the Validator XML config -- whether it be a form name

RE: HTML:TEXT tag and Internationalization

2004-08-24 Thread bmf5
you could format them yourself, either in the setter (yuck), or in the action. Why not in the setter? Sometimes I'll use the setter to populate some other fields privately that then get used later on in the form. Example: I get a decimal number representing time off the db. The setter

RE: HTML:TEXT tag and Internationalization

2004-08-24 Thread bmf5
Thanks for the tip. mailto: [EMAIL PROTECTED] Jim Barrows [EMAIL PROTECTED] m

Templates to Tiles opinion

2004-08-20 Thread bmf5
I've recently inherited a system in development that was started using templates instead of tiles. My question is - is there much effort to convert from templates to tiles. Secondly, is it recommended? I'm in a time crunch as I'm learning Struts as I go and deadlines have to be met. I'm

Re: Templates to Tiles opinion

2004-08-20 Thread bmf5
Thanks for the advice. I've already been in the code this AM and put dynamic screen titles in the header. We'll make it happen. Michael McGrady

RE: Learning the basics

2004-08-19 Thread bmf5
I've found Struts - The Complete Reference by James Holmes very helpful. It's organized well with good overviews before detail and complete code listings not just snippets. Bart - To unsubscribe, e-mail: [EMAIL PROTECTED]

Validation plug-in Websphere Studio 5.0.1

2004-08-18 Thread bmf5
I'm new to Struts and couldn't find anything about this on the archive so please bear with me if I'm repeating a question. I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the

RE: Validation plug-in Websphere Studio 5.0.1

2004-08-18 Thread bmf5
Below are snippets from my form. I'm working on the first check of several. But have hit a wall with this problem. The problem doesn't occur without the errors.add(Test add, new ActionError(errors.physical.takeover)); line of code. With it the validate() method got called 163 times.

RE: Validation plug-in Websphere Studio 5.0.1

2004-08-18 Thread bmf5
My bad. That was some code I was trying just to see what would happen. This line gets the same results and is the one I started with. Promise. errors.add(ActionErrors.GLOBAL_MESSAGE, new ActionError( errors.physical.takeover));

RE: Validation plug-in Websphere Studio 5.0.1

2004-08-18 Thread bmf5
OH that's it make me think I had the easy solution :) *LOL* I'd try stepping through the add code and see what it's doing. Course, you've probably done that. I was hoping for an easy solution. I figured surely someone has run into this before. I'm stepping through the Struts code right

Re: Validation plug-in Websphere Studio 5.0.1

2004-08-18 Thread bmf5
Kishore, Bingo! Thanks, that's it! I thought I had it set up right. It makes perfect sense now though. Thanks again. Thanks to Jim too for your help. I'm also grateful to Mark for the chuckle we got ( I showed some colleagues who are learning Stuts w/ me) from your first response. I'll