RE: adding a parameter to html:link with a map

2003-08-20 Thread Kamholz, Keith (corp-staff) USX
I'm not sure exactly what you're trying to do, but you can do both of the following: html:link page/myPage.do?myParam=someValueparam2=anotherValue / or html:link page/myPage.do paramId=myParam paramName=someBean paramProperty=somePropertyOfTheBean / Hope this helps. - Keith -Original

RE: Question for you Internationalization supporters

2003-08-14 Thread Kamholz, Keith (corp-staff) USX
Yeah, if you truly want to support internationalization, then you have to display all of your text with message keys. -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 1:50 PM To: [EMAIL PROTECTED] Subject: Question for you

RE: force precompilation of JSPs

2003-08-10 Thread Kamholz, Keith (corp-staff) USX
Yes. :-) -Original Message- From: Ionel Gardais [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 2:48 AM To: Struts Users Mailing List Subject: force precompilation of JSPs Hi, I am experiencing a slow down when I access a JSP page for the first time after I deploy e web

Custom Validator

2003-08-10 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, I've got some nice custom validations working using the validation framework. However, I'm having a hard time with one seemingly imple issue. In the validation method in my custom validation class, how do I get the value of the field I'm validating? I found one example that did

RE: Howto get ActionForward to calling Page?

2003-08-08 Thread Kamholz, Keith (corp-staff) USX
I personally prefer to use: return mapping.getInputForward(); It's much neater, prettier and intuitive. Shouldn't really matter though. - Keith -Original Message- From: Deepak [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 7:01 AM To: Struts Users Mailing List Subject: Re:

RE: how to use requiredif

2003-08-07 Thread Kamholz, Keith (corp-staff) USX
It looks like you're just trying to make sue that the password field is filled in right? If so, all you need to use is the 'required' validation. Just replace requiredif with required, and get rid of the var section. This will make sure a password was entered. Is this what you want to do? -

RE: Still struggeling: howto get ActionForward to calling page

2003-08-07 Thread Kamholz, Keith (corp-staff) USX
This is definitely what I would do. And just to be more clear, I would copy that action mapping into as many new ones as you need. Just change the name and input page, then you should be all set. Also, if you don't specify the input page correctly, you can't return to that page if there are

RE: validwhen Alternative

2003-08-01 Thread Kamholz, Keith (corp-staff) USX
: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 9:02 PM To: Struts (E-mail) Subject: validwhen Alternative Hey everyone, From what I hear, it seems like the validwhen validation is not supported in the final release of Struts 1.1. Is there an alternative

NoSuchMethodException

2003-08-01 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, I'm working on a custom validator right now, and all the validation method does is return false. That means it fails that validation, right? Anyway, when I submit the form, I get a NoSuchMethod error. What would cause this? All of my regular validations work, just not this custom

RE: NoSuchMethodException

2003-08-01 Thread Kamholz, Keith (corp-staff) USX
Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 12:40 PM To: Struts (E-mail) Subject: NoSuchMethodException Hey everyone, I'm working on a custom validator right now, and all the validation method does is return false. That means it fails

RE: NoSuchMethodException

2003-08-01 Thread Kamholz, Keith (corp-staff) USX
:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 3:06 PM To: 'Struts Users Mailing List' Subject: RE: NoSuchMethodException How about supplying more information like the name of the method that is not being found? Regards, Richard -Original Message- From: Kamholz, Keith (corp-staff) USX

RE: NoSuchMethodException

2003-08-01 Thread Kamholz, Keith (corp-staff) USX
Doh! Thanks to Alex, Richard, and Yansheng, sometimes another set of eyes looking at your code really helps catch the stupid mistakes. I'm sure you can all relate. Hopefully I can get it to work when I fix this! - Keith -Original Message- From: Alex Shneyderman [mailto:[EMAIL

RE: NoSuchMethodException

2003-08-01 Thread Kamholz, Keith (corp-staff) USX
(), ValidatorUtil.getActionError(servletContext, request, va, field)); before the return statement. Try it. I spent a lot of time before on this too. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: August 1, 2003 10:40 AM To: Struts (E-mail) Subject

RE: NoSuchMethodException

2003-08-01 Thread Kamholz, Keith (corp-staff) USX
To: 'Struts Users Mailing List' Subject: RE: NoSuchMethodException Yes, it would be StrutsValidatorUtil now. It's part of struts util package. org.apache.struts.util? Weird, works fine for me just now. I am using struts-1.1-RC1. -Original Message- From: Kamholz, Keith (corp-staff) USX

RE: NoSuchMethodException

2003-08-01 Thread Kamholz, Keith (corp-staff) USX
Changed that and it's working! Thanks for the help. What a load off the shoulders... way too much stress for a Friday, lol. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 3:50 PM To: 'Struts Users Mailing List' Subject

RE: [Friday] TV Commercial 2

2003-08-01 Thread Kamholz, Keith (corp-staff) USX
Hahahaha, that's a good one. -Original Message- From: Jing Zhou [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 4:06 PM To: Struts Users Mailing List Subject: [Friday] TV Commercial 2 [Four years later, Jim is now the Struts team lead in a corporate IT shop. If you haven't heard

RE: Validator: Is validwhen available ?

2003-07-31 Thread Kamholz, Keith (corp-staff) USX
So it's not available in the initial Struts 1.1 final release? Is there an alternative to validwhen that can do the same job? - Keith -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 4:49 AM To: [EMAIL PROTECTED] Subject: Re:

RE: Validator: Is validwhen available ?

2003-07-31 Thread Kamholz, Keith (corp-staff) USX
Hmm. I'm not going to be impatient, but do we have any rough idea how long it will be until the 1.2 release comes out? Just curious. Anyway, thanks for answering my question. - Keith -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003

Validator Syntax

2003-07-28 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, I finally got the validator working! Turned out to be issues with the version of struts I was using or somthing like that. In any case, it's fixed. I'm slightly confused about this one statement in the online documentation. It says that Only two items may be joined with and or or.

RE: Validator Syntax

2003-07-28 Thread Kamholz, Keith (corp-staff) USX
By the way, that field that I gave as an example should only accept any of those 4 values. I think I need to use == rather than !=, but it doesn't work either way. Any ideas? - Keith -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Monday, July

RE: Testing Struts-Config

2003-07-25 Thread Kamholz, Keith (corp-staff) USX
IBM's Websphere Studio Application Developer, version 5, has a good struts UI. It does quite a bit of validation, a lot of what is being mentioned here. My one complaint though is that I get a warning for every time I use a tiles definition though. It doesn't hurt anything, it's just so ugly...

RE: html:checkbox checked

2003-07-24 Thread Kamholz, Keith (corp-staff) USX
I had some issues with the standard method using reset(), so I came up with something else that works very nicely. In the JSP, right after the code for the checkbox, use: jsp:setProperty name=beanName property=checkboxProperty value=false / This allows the form submission to work correctly,

RE: [OT] auto convert resource property files to different langua ge

2003-07-15 Thread Kamholz, Keith (corp-staff) USX
I can't believe people actually ask for this kind of thing. Completely ridiculous. It's hard to believe that someone fluent enough in computers to use struts wouldn't have a grasp of the difficulty of language translation. -Original Message- From: Kearney, Michael [mailto:[EMAIL

RE: Struts, search, and approval...

2003-07-11 Thread Kamholz, Keith (corp-staff) USX
The new version of IBM's Websphere Studio Application Developer, version 5, has full struts integration. The fact that struts is built right into the program gives it a lot of support. Now if only WSAD would stop complaining about tiles definitions! - Keith -Original Message- From:

RE: Using JSTL tags instead of Struts tags

2003-07-10 Thread Kamholz, Keith (corp-staff) USX
I'd be interested in finding out about this too. -Original Message- From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 7:30 AM To: 'Struts Users Mailing List' Subject: Using JSTL tags instead of Struts tags A previous thread had encouraged me to

RE: Using JSTL tags instead of Struts tags

2003-07-10 Thread Kamholz, Keith (corp-staff) USX
replaced with a combination of the c:if and c:forEach tags plus the expression language. The JSPs are remarkably easy to maintain and debug using this strategy because there aren't any scriptlets or complicated business logic in them. David --- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED

RE: Validation of user input depending upon the user locale.

2003-07-09 Thread Kamholz, Keith (corp-staff) USX
I agree. What you wants sounds like it would cause more harm than good. Just my humble opinion though. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 2:41 AM To: Struts Users Mailing List Subject: RE: Validation of user input depending upon

[OT] JSTL

2003-07-09 Thread Kamholz, Keith (corp-staff) USX
I apologize if this is a bit off topic, and if it is a bit of a newbie question. I've never used JSTL before, and I'm not sure exactly what it is. Is it built into standard JSP technology (thus usable without any add-ons), or is it a tag lib that you have to download and put in your project? -

RE: Logic Iterate in Struts

2003-07-09 Thread Kamholz, Keith (corp-staff) USX
That's not overly general or anything ** Note the sarcasm ** What do you want to know? -Original Message- From: Yinti, Deepak [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 2:13 PM To: Struts Users Mailing List Subject: Logic Iterate in Struts Can some body some body

Multiple Dynamic Parameter Alternatives

2003-07-08 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, I need to use multiple dynamic parameters for some of my links, and I have this working nicely using a map. Unfortunately, my boss doesn't like scriptlets in the JSP pages, and wants me to find out about any alternatives. It's alright if there aren't, but I have to at least try to

RE: html:link / - add parameters

2003-07-07 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, I'm trying to add 2 dynamic parameters to a link. Someone posted the following solution a while back. I'm using this, slightly modified, within a logic:iterate tag. However, the param names are showing up in the generated link, but the param values aren't. Should I be able to

RE: html:link / - add parameters

2003-07-07 Thread Kamholz, Keith (corp-staff) USX
Sorry, ignore my last post. I figured it out. The call to ansm.getNumberType() was just returning an empty string. Sorry to waste space in your inbox. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 1:04 PM To: 'Struts

RE: More Validation Problems

2003-07-03 Thread Kamholz, Keith (corp-staff) USX
Does the required option of the validator check to see if the field is null or an empty string? Maybe this is why my validations have been passing when they shouldn't, because I initialize all my properties to . I hope I've finally found my problem! - Keith -Original Message- From:

RE: Validation Problems

2003-07-03 Thread Kamholz, Keith (corp-staff) USX
Websphere 5 has a nice struts-config UI that helps to keep everything organized. I've heard of other UI's out there too. - Keith -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 5:26 PM To: Struts Users Mailing List Subject: Re: Validation

RE: Cause its a virtual friday

2003-07-03 Thread Kamholz, Keith (corp-staff) USX
Hahaha. That's awesome. -Original Message- From: Jamie M. Guillemette [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 1:42 PM To: Struts Users Mailing List Subject: Cause its a virtual friday -go to http://www.google.com -- type: weapons of mass destruction (with the

RE: Difference between ValidatorForm and ValidatorActionForm?

2003-06-26 Thread Kamholz, Keith (corp-staff) USX
So do you have to do anything differently in your validation.xml? Also, where can I find some documentation on this? - Keith -Original Message- From: Butash, Bob [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 12:59 PM To: 'Struts Users Mailing List' Subject: RE: Difference

RE: [OT] Empty Result Set

2003-06-26 Thread Kamholz, Keith (corp-staff) USX
- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 1:35 PM To: Struts Users Mailing List Subject: Re: [OT] Empty Result Set boolean isEmpty = !rs.next(); David --- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote: Hey everyone, This isn't really a struts

RE: html:link forward to tiles definition?

2003-06-26 Thread Kamholz, Keith (corp-staff) USX
Why wouldn't you want to use an ActionForward? It's the struts way. - Keith -Original Message- From: Chip Paul [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 2:28 PM To: Struts User Subject: html:link forward to tiles definition? Is there a way to make a link (not an action

RE: Question reguarding ActionForms

2003-06-26 Thread Kamholz, Keith (corp-staff) USX
I think you mean for check boxes. A set of radio buttons more often than not needs more than 2 possible values. - Keith -Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 3:28 PM To: Struts Users Mailing List Subject: Re: Question reguarding

RE: Tiles question

2003-06-25 Thread Kamholz, Keith (corp-staff) USX
Can you explain what you want to do in english, rather than pseudocode? -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 10:54 AM To: [EMAIL PROTECTED] Subject: Tiles question I am looking to do something like what is listed below,

RE: requiredif question

2003-06-25 Thread Kamholz, Keith (corp-staff) USX
I'm having a similar problem. All I'm trying to do is have a 'required' condition for 2 fields of my form. Mine submits just fine when I leave it blank as well. I posted my code here yesterday, but nobody was able to help me. If you figure this out, I'd appreciate it if you let me know what

[OT] Empty Result Set

2003-06-25 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, This isn't really a struts question, but it's applicable. I'm just wondering how to find out if a ResultSet is empty or not after I execute my query. I've searched online, but I'm having a hard time finding much of anything. Can I just use: if (myResultSet.next() ) { empty

RE: requiredif question

2003-06-25 Thread Kamholz, Keith (corp-staff) USX
--- From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: requiredif question Date: Wed, 25 Jun 2003 13:26:48 -0400 I'm having a similar problem. All I'm trying to do is have

[OT] Scrollable Result Set

2003-06-25 Thread Kamholz, Keith (corp-staff) USX
Hey, I'm trying to use a PreparedStatement to get a ResultSet. I know how to get a customized ResultSet if you're only using a Statement, but how can I get a scrollable ResultSet with my PreparedStatement? Thanks! - Keith - To

Damn Validator...

2003-06-24 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, I posted recently regarding my issues with the Validator plugin. There were a few suggestions, but I had already checked everything that was mentioned. I'm going crazy, I've been trying for a several days to get this thing working, but have gotten nowhere. I'm posting some of my

RE: JSP's taking too long in websphere

2003-06-24 Thread Kamholz, Keith (corp-staff) USX
I'm sure there's an option to turn that off somewhere. What version are you running? Websphere tends to be kinda slow. I've had some issues with that, especially in version 4 and version 5 integration edition. - Keith -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED]

RE: Damn Validator...

2003-06-24 Thread Kamholz, Keith (corp-staff) USX
] Sent: Tuesday, June 24, 2003 11:14 AM To: Struts Users Mailing List Subject: Re: Damn Validator... Can you post the relevant form definition in validation.xml? I'm having a hard time downloading the attachment. David --- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote: Hey everyone

RE: Damn Validator...

2003-06-24 Thread Kamholz, Keith (corp-staff) USX
? I'm having a hard time downloading the attachment. David --- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote: Hey everyone, I posted recently regarding my issues with the Validator plugin. There were a few suggestions, but I had already checked everything that was mentioned. I'm

RE: Damn Validator...

2003-06-24 Thread Kamholz, Keith (corp-staff) USX
the instructions and everything, but no go. - Keith -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 1:47 PM To: Struts Users Mailing List Subject: RE: Damn Validator... Does the validator example app work? David --- Kamholz, Keith (corp-staff) USX

RE: Damn Validator...

2003-06-24 Thread Kamholz, Keith (corp-staff) USX
and server side validations? David --- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote: Sure thing, thanks for checking it out. Here's my validation.xml: ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons

RE: Validator

2003-06-23 Thread Kamholz, Keith (corp-staff) USX
. Client-site validation requires less steps to implement and, ofter, light the mispeling errors. If client-site validation works, you need just a couple more steps to have a server-site validation working. - Original Message - From: Kamholz, Keith (corp-staff) USX [EMAIL

RE: Validator

2003-06-23 Thread Kamholz, Keith (corp-staff) USX
Also, when using the validator, I have to set validate=true for each applicable action in my struts config.xml right? - Keith -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 10:27 AM To: 'Struts Users Mailing List' Subject

Validator

2003-06-20 Thread Kamholz, Keith (corp-staff) USX
Hey, I'm trying to put validation into my application using the validator plugin. However it doesn't seem like it's doing anything at all. I know it's a very general question, but what are some things I should look for? Are there any common mistakes in setting up that I should check for? I'm

RE: Validator

2003-06-20 Thread Kamholz, Keith (corp-staff) USX
- From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] To: Struts (E-mail) [EMAIL PROTECTED] Sent: Friday, June 20, 2003 9:25 AM Subject: Validator Hey, I'm trying to put validation into my application using the validator plugin. However it doesn't seem like it's doing anything at all. I

RE: bean:write with in logic:iterate

2003-06-16 Thread Kamholz, Keith (corp-staff) USX
Use this: logic:iterate id=thisElement name=someList type=java.lang.String bean:write name=thisElement/ /logic:iterate This will go through a list of Strings and print out each one. This also works for lists of non-string objects. Let me know if you need help with that modification.

RE: Wizard forms

2003-06-11 Thread Kamholz, Keith (corp-staff) USX
If all you want to do is forward to another JSP page, make a forward action in your struts-config like this: action path=/ForwardPageTwo forward=tiles.pageTwo name=myBean/ That way, no parameters are necessary. You'll just have to make a whole bunch of forward actions. Now if only I could get

RE: Wizard forms

2003-06-11 Thread Kamholz, Keith (corp-staff) USX
: Wizard forms On Jun 11, 2003, Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote: |If all you want to do is forward to another JSP page, make a forward action |in your struts-config like this: | |action path=/ForwardPageTwo forward=tiles.pageTwo name=myBean/ | |That way, no parameters

RE: Checkbox problem?

2003-06-10 Thread Kamholz, Keith (corp-staff) USX
I had some issues with the methods, so I came up with something else that works very nicely. In the JSP, right after the code for the checkbox, use: jsp:setProperty name=beanName property=checkboxProperty value=false / This allows the form submission to work correctly, without any messy code.

RE: Help- logic:iterate tag

2003-06-09 Thread Kamholz, Keith (corp-staff) USX
Well, I'm not sure exactly what you want to know, but here's an example of how I used it in an application I'm currently working on: table logic:iterate id=ansm name=groups type=com.moog.us.app.ans.data.AnsmItem tr td html:link page=/GetFormatGroup.do?type=group

Session beans

2003-06-09 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, I'm aware of the issues with using beans in the session context. I'm wondering if there's any method I can call to remove all the beans from the session. Does anything like that exist? Are there any adverse effects of removing something from the session if it isn't in there? Do

RE: Help- logic:iterate tag

2003-06-09 Thread Kamholz, Keith (corp-staff) USX
As far as your question about rebuilding the table, I'm not sure exactly what you're asking. These sorts of things are generally done automatically. I can answer your other question though. The 'type' attribute of the logic:iterate tag specifies the name of the class that is stored in your

RE: Session beans

2003-06-09 Thread Kamholz, Keith (corp-staff) USX
What package is HttpSession in? Keith Kamholz Programming and Architecture Moog Inc. Phone: (716) 687-7001 -Original Message- From: Josh McCulloch [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 1:31 PM To: Struts Users Mailing List Subject: Re: Session beans Try something

RE: calling actions directly

2003-06-06 Thread Kamholz, Keith (corp-staff) USX
I've noticed that I can do that too. I'm not expert, but I'm guessing that it's not an issue, and this behavior is fine (as long as it is login protected if necessary). I'm also GUESSING that the rule that actions can only be called from JSP pages is made with the assumption that you're taking

switch statement

2003-06-06 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, This is more of a Java question than a Struts question, I hope you all don't mind. I'm just wondering if there is any way to use a String for a switch statement, or if you are restricted to the true primitive types. I haven't found a way, but it seems like something that lots of

RE: calling actions directly

2003-06-06 Thread Kamholz, Keith (corp-staff) USX
Right, I'm running Websphere and we couldn't get it to work. However, I just upgraded to version 5. Does anyone know if changes in v5 allow the web-inf trick to work? Keith Kamholz Programming and Architecture Moog Inc. Phone: (716) 687-7001 -Original Message- From: Karr, David

RE: switch statement

2003-06-06 Thread Kamholz, Keith (corp-staff) USX
11:38 AM To: Struts Users Mailing List Subject: Re: switch statement Kamholz, Keith (corp-staff) USX wrote: Hey everyone, This is more of a Java question than a Struts question, I hope you all don't mind. Not really, but for future reference I have found this resource to be more helpful

RE: switch statement

2003-06-06 Thread Kamholz, Keith (corp-staff) USX
and Architecture Moog Inc. Phone: (716) 687-7001 -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 11:38 AM To: Struts Users Mailing List Subject: Re: switch statement Kamholz, Keith (corp-staff) USX wrote: Hey everyone

RE: switch statement

2003-06-06 Thread Kamholz, Keith (corp-staff) USX
, but useful in the end. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 11:52 AM To: 'Struts Users Mailing List' Subject: RE: switch statement Because having descriptive values for parameters helps make your code more

html:hidden value

2003-06-06 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, I'm having an issue with setting the value for an hml:hidden .../ tag. That form uses a bean called ansa. I want to set the value of the hidden element to the numberType property of a bean called ansm. I tried putting a bean:write .../ in the body of the html:hidden tag, but that

RE: Excluding values inside a logic:iterate tag or an html:options tag

2003-06-06 Thread Kamholz, Keith (corp-staff) USX
Yes it is. Use the logic:equal and logic:notEqual tags to do this. Let me know if you need more info. Keith Kamholz Programming and Architecture Moog Inc. Phone: (716) 687-7001 www.buffalo.edu/~kkamholz -Original Message- From: Ionel Gardais [mailto:[EMAIL PROTECTED] Sent: Friday,

RE: syntax error

2003-05-31 Thread Kamholz, Keith (corp-staff) USX
Use this: if(request.getSession(true).getAttribute(dispsOfPO_action).equals(123)) int s11 = 1; ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: dream weaver [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 9:02 AM To: [EMAIL PROTECTED] Subject: syntax

Nesting logic tags

2003-05-31 Thread Kamholz, Keith (corp-staff) USX
Hey, I'm using a table to display a form, but there's one row that I want to hide, depending on a previous user selection. Right now, my code is: table tr td b bean:message key=app.label.numberType/:

RE: Nesting logic tags

2003-05-31 Thread Kamholz, Keith (corp-staff) USX
- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 11:09 AM To: 'Struts Users Mailing List' Subject: RE: Nesting logic tags If ansm is a member variable of your ActionForm, use html:hidden property=ansm.entryType -Original Message- From: Kamholz, Keith (corp

RE: Nesting logic tags

2003-05-31 Thread Kamholz, Keith (corp-staff) USX
library. HTH m --- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote: The issue isn't getting entryType into the form. The issue is conditionally displaying a couple rows in the table/form. I already have the entryType in a hidden input earlier in the form. Input anybody? I'd

RE: Checkbox ????

2003-05-30 Thread Kamholz, Keith (corp-staff) USX
I had some issues with this method, so I came up with something else that works very nicely. In the JSP, right after the code for the checkbox, use: jsp:setProperty name=beanName property=checkboxProperty value=false / This works very nicely, regardless of the scope that the bean is in. However,

RE: html:link along with logic:iterate

2003-05-30 Thread Kamholz, Keith (corp-staff) USX
Use something similar to this: logic:iterate name=addressListFormBean property=letterOptions id=choice html:link page=/addressListAction.do paramId=userSelection paramName=choice paramProperty=labelStr bean:write name=choice property=labelStr/ /html:link

RE: A question long not raised....

2003-05-30 Thread Kamholz, Keith (corp-staff) USX
I'm curious, what exactly do you want to do? (How do you want them to be integrated?) - Keith www.buffalo.edu/~kkamholz -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:17 AM To: 'Struts Users Mailing List' Subject: RE: A question long

RE: A question long not raised....

2003-05-30 Thread Kamholz, Keith (corp-staff) USX
viditur. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:18 AM To: 'Struts Users Mailing List' Subject: RE: A question long not raised I'm curious, what exactly do you want to do? (How do you want them

RE: [OT] A question long not raised....

2003-05-30 Thread Kamholz, Keith (corp-staff) USX
Evangelist http://www.open-tools.org - Original Message - From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:35 AM Subject: RE: A question long not raised Hahahaha. I should've figured

RE: [OT] A question long not raised....

2003-05-30 Thread Kamholz, Keith (corp-staff) USX
LOVING flashers. A fetish interest in development, looks like. ;) James Mitchell wrote: So.you admit to being a flasher? -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - Original Message - From: Kamholz, Keith (corp-staff

Conditional Form Action

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, I'm trying to use the same JSP to update two similar but different types of data. The form is the same for both, but I want to use a different action mapping for each. I tried this: logic:equal value=format name=type html:form action=/UpdateFormat.do /logic:equal

Weirdness...

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, I have a logic:equal ... tag commented out in a JSP. However, when I go to that page, it says: [ServletException in:Edit.jsp] No such tag equal in the tag library imported with prefix logic' Shouldn't the tag be ignored? I also don't know why it can't find the equal tag, but

RE: Weirdness...

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
: Weirdness... What kind of comment are you using, !-- HTML -- or %-- JSP --% As far as why logic:equal isn't being found, post your JSP... - Original Message - From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 10:13 AM Subject

RE: Weirdness...

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
the tags but to totally change them by removing spaces when I want to comment one out. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 10:13 AM To: '[EMAIL PROTECTED]' Subject: Weirdness... Hey everyone, I have

Submit Value

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
Quick question... I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things, with the same input data. (You can do that, right?) I have the value attribute for one of them set to 'delete'. What I'm wondering is how to get the value of the submit button that was clicked from

RE: Submit Value

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
doesn't. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: May 28, 2003 1:01 PM To: '[EMAIL PROTECTED]' Subject: Submit Value Quick question... I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things, with the same input data. (You

RE: Submit Value

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: May 28, 2003 1:01 PM To: '[EMAIL PROTECTED]' Subject: Submit Value Quick question... I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things, with the same input data. (You can do

RE: Submit Value

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
doesn't. -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: May 28, 2003 1:01 PM To: '[EMAIL PROTECTED]' Subject: Submit Value Quick question... I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things, with the same input data. (You

Bean input

2003-05-27 Thread Kamholz, Keith (corp-staff) USX
Hi everyone, I'm creating a web app that uses struts and tiles. I have a question about my action mapping When you specify the input attribute for an action mapping, should I use the name of the JSP that forwards to my form page, or the tiles name of that entire page? Thanks in advance. -

RE: html:errors/ not displaying message?

2002-08-20 Thread Kamholz, Keith (corp-staff) USX
For your html:errors/ tag, don't specify the name attribute. Specify the property attribute instead. It would look like: html:errors property=userID / I hope this helps ya out. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Jerry Jalenak [mailto:[EMAIL

RE: html:errors/ not displaying message?

2002-08-20 Thread Kamholz, Keith (corp-staff) USX
? Ideas? Jerry -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 1:44 PM To: 'Struts Users Mailing List' Subject: RE: html:errors/ not displaying message? For your html:errors/ tag, don't specify the name

RE: html:errors/ not displaying message?

2002-08-20 Thread Kamholz, Keith (corp-staff) USX
now (still) getting ???en_US.error.bad.userid??? - kinda worthless, ya know? Jerry -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 2:29 PM To: 'Struts Users Mailing List' Subject: RE: html:errors/ not displaying message

RE: Checkbox in iterate

2002-08-19 Thread Kamholz, Keith (corp-staff) USX
Hey, You kinda confused me about what your problem was. Could you maybe explain it better if I'm wrong about it? It sounds like you just want to know which rows are checked. You need to specify the 'indexId' attribute in the logic:iterate ... tag to create a variable that stores the index of

RE: Checkbox in iterate

2002-08-19 Thread Kamholz, Keith (corp-staff) USX
Sorry, I forgot to mention that the corresponding property would be a String[] that will be filled with all the checked indexes. Is this what you're trying to do? ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED

RE: Checkbox in iterate

2002-08-19 Thread Kamholz, Keith (corp-staff) USX
:[FieldListAction.perform()] Exception :+e.toString()); e.printStackTrace(); } throw new ServletException(e.toString()+:+e.getMessage()); } Does it help? Gilles Vandaele Kamholz, Keith (corp-staff) USXTo:'Struts

RE: how can i set up the value of the html:text and html:textarea?

2002-08-16 Thread Kamholz, Keith (corp-staff) USX
Hey, Is msgBoard the form bean associated with that form? If so and if you're only trying to display the current data when the user hits the form, you don't need to specify the value. Struts will automatically pre-populate the form for you. Is this what you're trying to do? - Keith

RE: Use of Iterator tag

2002-08-14 Thread Kamholz, Keith (corp-staff) USX
Hey, For your first question, I think you should specify the 'type' attribute of the iterate tag. This indicates the type of variable that the collection contains, and is pretty important (i think). For the radio button, use a little scriptlet to set the value. In your case it would be:

RE: Use of Iterator tag

2002-08-14 Thread Kamholz, Keith (corp-staff) USX
. There must be a way to get this to work without having to use a getter method. From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Use of Iterator tag Date: Wed, 14 Aug 2002 12:41

RE: Handling lists

2002-08-14 Thread Kamholz, Keith (corp-staff) USX
Yeah, struts usually expecs a String[] for lists, but i don't see how it is awkward. It shouldn't matter how many items are in the list. Struts will automatically fill the array with all the values sent from the form. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From:

RE: can you have html:link in your ApplicationResources.properties?

2002-08-14 Thread Kamholz, Keith (corp-staff) USX
Well, I haven't tried custom tags in the properties file, but i know it takes any standard html tags. Could you use a href= if html:link .../ doesn't work? I'm curious to find out if the custom tags would work though. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message-

  1   2   3   >