Changing the validator messages key

2003-03-12 Thread Justin Ashworth
Hi, It looks to me like all validator messages get stuck in the request with the org.apache.struts.action.ERROR key. Is there a way to change this attribute name to, say, ValidationErrors? I have looked through all of the validator documentation I can find and still wasn't able to figure out

Re: Changing the validator messages key

2003-03-12 Thread Justin Ashworth
print out all errors generated by the validator. Where can I specify the ValidationErrors property in the validator config files in order to achieve this? Thanks, Justin Ashworth On Wed, 12 Mar 2003 11:41 , Justin Ashworth [EMAIL PROTECTED] sent: Hi, It looks to me like all validator messages

Re: Is html:message Valid?

2003-02-12 Thread Justin Ashworth
That should actually be bean:message. Looks like the documentation is wrong. - Original Message - From: Art Vandalay [EMAIL PROTECTED] To: Struts Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 12, 2003 1:46 PM Subject: Is html:message Valid? In the Struts user guide located

select multiple=false == select multiple=true

2003-02-11 Thread Justin Ashworth
The documentation for html:select indicates that if the multiple attribute is specified with ANY non-null value, it will be rendered as a multiple select. However, it would be much more intuitive if this accepted a boolean value like, for instance, the disabled attribute of html:option. I

Re: select multiple=false == select multiple=true

2003-02-11 Thread Justin Ashworth
== select multiple=true Your point does make sense but changing the behavior would introduce backwards compatibility problems. I don't know why the decision was made to have null mean false and anything else mean true. David From: Justin Ashworth [EMAIL PROTECTED] Reply-To: Struts Users

Re: select multiple=false == select multiple=true

2003-02-11 Thread Justin Ashworth
will feel about it (even though the issue is quite small). David From: Justin Ashworth [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: select multiple=false == select multiple=true Date: Tue, 11

Re: Tag for non box text area on jsp

2003-02-11 Thread Justin Ashworth
You mean like bean:write? bean:write will output static text if that's what you're looking for. - Original Message - From: Jacky Kimmel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 11, 2003 3:54 PM Subject: Tag for non box text area on jsp What is the correct tag to

Re: Conditional forms

2003-02-11 Thread Justin Ashworth
Justin Ashworth */ public class ConditionalForm extends ELFormTag { protected String test = null; private boolean printTag = false; public int doStartTag() throws JspException { printTag = condition(); if (printTag) { return super.doStartTag

Re: what does RT Expr mean

2003-01-29 Thread Justin Ashworth
In other words, attributes which allow runtime expressions can contain %= ... % whereas non-rtexpr tags cannot. - Original Message - From: Quentin.Cope [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 9:29 AM Subject: RE: what does RT

putList in a tiles definition

2003-01-22 Thread Justin Ashworth
Hi All, Is there any way to make a list available to a certain tile in a definition? In effect, I want to do something like this... definition putList name=thinglist add value=thingone add value=thingtwo /putList put name=content value=/tiles/some_tile.jsp/

Re: Value Object Size

2003-01-20 Thread Justin Ashworth
If you're talking about the size of the object in memory, you will probably need a profiling tool such as OptimizeIt or JProbe. http://www.optimizeit.com http://www.jprobe.com - Original Message - From: Hari Venkatesan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]

RE: Layout of code

2003-01-17 Thread Justin Ashworth
This document is pretty good: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html -Original Message- From: Vinay [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 5:05 PM To: Struts Users Mailing List Subject: Layout of code Hi all, I have

RE: Not spam...I swear--

2003-01-15 Thread Justin Ashworth
At the risk of diverting all the flames of this thread to myself, I have to put in my 2 cents. Before you read any further - no, I am not looking for a job. While a $100 referral fee isn't much at all, it shouldn't be about that. While YOU may be employed, if you have a friend who needs a job

Checking for the existence of errors

2003-01-10 Thread Justin Ashworth
Hi all, Is there an elegant way using Struts / JSTL tags to tell if any errors are stored in the ActionErrors object before calling html:errors/ or even html:errors name=xxx/? If html:errors name=xxx/ is going to display something, then I want to put a special header on it. The default

Re: Checking for the existence of errors

2003-01-10 Thread Justin Ashworth
http://jakarta.apache.org/struts/userGuide/struts-logic.html#messagesPresent Quoting Justin Ashworth [EMAIL PROTECTED]: Hi all, Is there an elegant way using Struts / JSTL tags to tell if any errors are stored in the ActionErrors object before calling html:errors/ or even html:errors name

Re: context relative image reference in a CSS file

2003-01-09 Thread Justin Ashworth
Hi Dan, I just ran into this same issue today, and I hope that somebody has a better idea than what I ended up doing. I changed the .css files to .jsp and put script tags around them and included them as JSPs. This, of course, gave me access to taglibs which would let me prepend the context

Re: Struts-el tags

2003-01-08 Thread Justin Ashworth
Struts 1.1 b3 is packaged with the Struts-el tags in the contrib directory. Try downloading 1.1 b3 from here: http://www.apache.org/dist/jakarta/struts/binaries/ - Original Message - From: william [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January

Accessing static constants with EL

2003-01-06 Thread Justin Ashworth
Hope you're all doing well in the new year. I am just starting to use EL syntax so this question may be very basic. I have an interface which contains many public static final variables that I would like to be able to access with the EL tags. For regular tags that support rtexprvalues, I would

RE: [OT] IntelliJ sale

2003-01-02 Thread Justin Ashworth
IDEA's brilliant use of hotkeys caused me to switch from Eclipse initially, but its overwhelming ease of use has kept me using it for over 6 months now. Also, IDEA allows for a much more flexible project directory structure than Eclipse. It seemed like I was always fighting with Eclipse to get

RE: [OT] HAPPY HOLIDAYS, EVERYONE

2002-12-24 Thread Justin Ashworth
Amen, Craig. Have a Merry Christmas everyone! Justin -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:41 PM To: Struts Users Mailing List Subject: RE: [OT] HAPPY HOLIDAYS, EVERYONE On Mon, 23 Dec 2002, James

RE: Website searching

2002-12-23 Thread Justin Ashworth
You can use Struts as a frontend to a Lucene-powered search engine. Lucene is another Apache Jakarta project. You can find more info here: http://jakarta.apache.org/lucene Justin -Original Message- From: Darrel Riekhof [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 6:40

Re: Struts and session

2002-12-17 Thread Justin Ashworth
Hi Doug, We use a javax.servlet.Filter to check for an expired session. I found this idea on some website or in the Struts-User archives and it makes the most sense to me. All requests go through the filter before they hit the servlet, so this is the perfect place to check for whether or not a

Re: Struts and session

2002-12-17 Thread Justin Ashworth
, December 17, 2002 11:04 AM Subject: Re: Struts and session Justin: Thank you for reply. That's a good idea. One more question, can filter works with struts? Doug Justin Ashworth [EMAIL PROTECTED] wrote:Hi Doug, We use a javax.servlet.Filter to check for an expired session. I found

Re: form-bean and set-property tags

2002-12-17 Thread Justin Ashworth
The beauty of DynaActionForms is that you don't need getters and setters for every property and, in fact, if you do have getters and setters for any property they won't be called...which is what you are seeing. Read the information at the following site and it should all be clear:

Re: nested tag error

2002-12-13 Thread Justin Ashworth
Your nested:select is closing itself off. Remove the / at the end of the tag and it should work. Justin - Original Message - From: Brian Buckley [EMAIL PROTECTED] To: Struts Users [EMAIL PROTECTED] Sent: Friday, December 13, 2002 10:54 AM Subject: nested tag error Here's a snippet of

Re: Map-backed ActionForms with JSTL

2002-12-12 Thread Justin Ashworth
Jarnot Voytek Contr AU HQ/SC [EMAIL PROTECTED]: not a JSTL expert here, but have you tried ${profilePage.property[ID]}? -Original Message- From: Justin Ashworth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 11, 2002 10:34 AM To: Struts Users Mailing List Subject: Map-backed

Re: dropdowns being reset

2002-12-12 Thread Justin Ashworth
Hi David, Here is an example. In this example, homeDepartmentRoles is a String[], representing all of the roles that a particular user has. The roles collection in the html:options tag is a Collection of LabelValueBean objects (see

Re: dropdowns being reset

2002-12-12 Thread Justin Ashworth
know how to separate out the values? are they delimited in any way? Thanks, David Justin Ashworth [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] rg cc

Re: Map-backed ActionForms

2002-12-11 Thread Justin Ashworth
That should work. Are you certain that MyForm is extending ActionForm? - Original Message - From: Mark [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 11, 2002 9:54 AM Subject: Re: Map-backed ActionForms Pat How do i get to my FormBean in

Map-backed ActionForms with JSTL

2002-12-11 Thread Justin Ashworth
Hi, Has anyone been able to successfully access properties in a map-backed ActionForm with JSTL? I haven't been able to come up with the expression language to retrieve properties out of a Map in my ActionForm. If this is possible, what is the syntax? I have tried c:out

Re: Form Bean with Lists client updates

2002-12-10 Thread Justin Ashworth
Hi Pat, With the way you're using the html:text tag, you would need a getter and setter for firstName if you're using a regular ActionForm. You might want to try using a Map-backed (or List-backed) ActionForm to do your sets and gets. Take a look at this - I think the examples make usage pretty

Attribute rtexprvalues

2002-12-10 Thread Justin Ashworth
Hi, This is really more of a JSP question, but I'm sure somebody here has a quick answer. I am using the bean:write tag to write a property from a Map-backed ActionForm. The Map in my Actionform is called profile and I have that set up properly. However, it seems as though the property

RE: No bean found under attribute key - any config problem?

2002-12-09 Thread Justin Ashworth
Hi Satya, From what you've included of your JSP file, it looks like the problem is that the page has no reference to the customrForm bean by the time you go to use it. The html:form.../ tag makes this bean available, but since you are using the logic tags inside your header rather than within an

RE: Multiple Submit Buttons + Internationalisation

2002-12-09 Thread Justin Ashworth
On a related topic...does the HTTP standard specify that for a set of submit buttons with the same name, only the one that's pressed will be sent with the request? I seem to remember in earlier days that this wasn't always guaranteed, and therefore I generally make a rule to avoid it. Is my

RE: Multiple Submit Buttons + Internationalisation

2002-12-09 Thread Justin Ashworth
9. 14:53 dátummal Justin Ashworth ezt írtad: On a related topic...does the HTTP standard specify that for a set of submit buttons with the same name, only the one that's pressed will be sent with the request? It is html not http. Check the successsful controls in html: http

RE: newbie question - tags in JSTL vs Struts

2002-12-09 Thread Justin Ashworth
Here is a link to something Craig McClanahan wrote up about Struts, JSF, and JSTL... http://jakarta.apache.org/struts/proposals/struts-faces.html The portion relevent to this thread would be: The Struts tag libraries have had a tremendous positive impact on the development of the standard Java

RE: Problem with plug-in tag for tiles in struts-config.xml. Wrongversion of struts-config_1_X.dtd ??

2002-12-09 Thread Justin Ashworth
Hi Remy, !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd; Do you have any clue ? Can you see anything wrong ?? Is there an order for specifying the

RE: Best Practices for Logging?

2002-12-07 Thread Justin Ashworth
Hi Mohan, If you are using log4j, you can use a PatternLayout for your appender. The PatternLayout will allow you to display the class name with a %C conversion character in your ConversionPattern. The API documentation notes that using %C can be quite slow, but if you have a separate category

Re: Best Practices for Logging?

2002-12-06 Thread Justin Ashworth
Hi Rene, Whether or not you put an if condition around the log output is mostly a consideration of the performance required by your application, since even one simple String creation takes longer than no String creation. :) In addition, it is nice to be able to call isDebugEnabled() if you want

Re: Best Practices for Logging?

2002-12-06 Thread Justin Ashworth
levels of logging as the performance issue is valid for all of them? thanks rene -Original Message- From: Justin Ashworth [mailto:[EMAIL PROTECTED]] Sent: Freitag, 6. Dezember 2002 22:54 To: Struts Users Mailing List Subject: Re: Best Practices for Logging? Hi Rene