RE: Header for errors (no HTML in the .properties file)

2004-03-06 Thread Karr, David
I think that would be requestScope, not request. Someday someone's going to write a TLV for development that throws an exception if any symbol referenced in an EL expression doesn't exist (I'm not even sure that algorithm would have caught your error, though). -Original Message- From:

RE: Problem with tags and overloaded methods

2004-02-26 Thread Karr, David
Just so it's clear, I'm assuming that you have the get method overloaded, with the same method name being used for two different properties (even if you consider them the same conceptual property). I would guess that's always a bad idea. I'm somewhat surprised that it works on one platform with

RE: Problem with tags and overloaded methods

2004-02-26 Thread Karr, David
I reiterate, I believe it's a bad idea to use the same method name for two different property mappings. If you can find some documentation that recommends you do that, I'd like to see it. WLS = WebLogic Server. -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]

RE: EL - can't get access to my constants

2004-02-25 Thread Karr, David
You haven't shown the EL syntax that you're trying to use. If you're just trying to reference normal properties, note that property accessors cannot be static methods, they have to be normal instance methods. If you're trying to reference constants, you might be better off putting the constant

RE: Suppresing the generation of blank lines while using logic tags - Ver 1.0.2

2004-02-25 Thread Karr, David
It's the newline between % and % that is causing you problems (not to mention the design of your page, but that's a different matter). If you do things like: ... %ns:tagname stuff=value %%ns:nothertag morestuff=morevalue %%... Then you will reduce the newlines in your output. This gets

RE: Accessing static field using EL

2004-02-20 Thread Karr, David
This is a very FAQ. You should read the JSTL specification. The EL can only reference standard JavaBean properties, collections, and maps. If you only have a couple of constants to reference, I would put them into session or application properties in your application init logic. If you have

RE: html:checkbox and struts-EL

2004-02-05 Thread Karr, David
.: 010 2712603 _ -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: mercoledì 4 febbraio 2004 20.46 To: Struts Users Mailing List Subject: RE: html:checkbox and struts-EL I have no clue why you think you needed to write a customized

RE: html:checkbox and struts-EL

2004-02-04 Thread Karr, David
I have no clue why you think you needed to write a customized checkbox class. It's not clear to me from your description. Having your form in session scope has little to do with it. The reset() method in the ActionForm is used to clear out checkbox values (and others) BEFORE the form is

RE: out tag inside html:text tag

2004-02-04 Thread Karr, David
As other posters pointed out, just use Struts-EL, and you'll end up with: html:text name=Customer property =Name maxlength=256 size=256 style=${styleVar} / Note that I recommend using the same prefix with Struts-EL as you do with the base library, although my earlier documentation

RE: iteration and EL help needed

2004-02-04 Thread Karr, David
When you say that you got an exception with the indexed attribute, I'm assuming you mean that you tried to add an indexed attribute to the c:forEach tag. The indexed attribute goes on the tags being iterated over, not the iterate/forEach tag. The tags which are iterated over should be able to

RE: Detect messages with Jstl

2004-02-01 Thread Karr, David
Why are you trying to avoid the logic taglib? If there's not much left from it that you use, then so be it. You use what you need and leave the rest. If you use the Struts-EL version, there's not much left in it in the first place. You'll find that directly referencing most (all?) of the

RE: [REPOST] Struts throws exception during load testing

2004-01-16 Thread Karr, David
Actually, the NPE is being thrown from a class/method internal to WebLogic. You need to address this with BEA support, not struts-user. -Original Message- From: Abhishek Srivastava [mailto:[EMAIL PROTECTED] Hello All, I had posted this yesterday, but didn't receive any response so

RE: JSP Protection

2004-01-15 Thread Karr, David
Put all JSP pages that can't be accessed directly into a security constraint, only accessible by the role nobody, which you will never add a user to. All accesses of JSPs will be through forwards from actions, which will not be blocked by that security constraint (unless you either have a

RE: Struts Tag Lib and Performance

2004-01-11 Thread Karr, David
The JSTL is not part of Struts, but it can easily be used along with it. There is also a variation of the Struts tag libraries that evaluates attribute values using the same expression evaluation engine that the JSTL uses (the Apache implementation, at least). This is called Struts-EL, and it's

RE: Indexed Property in JSP

2004-01-02 Thread Karr, David
Besides the other problem with the order of parameters to the setter, you also have two setters for the same property. You'll need to change the other setter (and the resulting property name) in order for this to work. Also, I believe you can remove the 'indexed=true' attribute, as you're doing

RE: JAAS and roles attribute of logic:present

2003-12-31 Thread Karr, David
to an unsecure area, there is no principal or subject (both null). If I go to the unsecured area without an existing session, there is also no principal or subject (both null) as expected. Daniel Karr, David wrote: I'm not sure what problem you're having. Are you saying that after you

RE: JAAS and roles attribute of logic:present

2003-12-30 Thread Karr, David
I'm not sure what problem you're having. Are you saying that after you specify your login when accessing a secured area, you then immediately (before session timeout) access an unsecured area that checks role=admin and thinks you don't have that role (I would be surprised if it did that)? Or is

RE: Error using tiles-el

2003-12-19 Thread Karr, David
Yup, you're correct. Could you please file a bug in Bugzilla for this? I may get to this this weekend. -Original Message- From: Narayanan, Sunitha [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 11:45 AM To: [EMAIL PROTECTED] Subject: Error using tiles-el Hello, I am

RE: Struts EL status

2003-12-16 Thread Karr, David
To summarize a couple of points already stated here: The base Struts library doesn't use the EL because the JSTL requires JSP 1.2, and Struts is still supported on containers which only provide JSP 1.1. If you write your JSP code to use the same prefixes as before (html, bean, etc.), but

RE: JSTL

2003-11-30 Thread Karr, David
That's right. It's important to realize that most non-trivial applications will often use more than one tag library. There is no good reason to try to restrict yourself to a single tag library. In the case of Struts, it's very beneficial to use the Struts tag library along with the JSTL. In

RE: Error while accessing the application

2003-11-30 Thread Karr, David
Just for clarification to others, your last line abbreviates the fact that in a Servlet 2.3 container, it's not necessary to include the TLDs, either in the /WEB-INF directory, or referenced in the web.xml, if you reference the canonical URI in the taglib directives in the JSP pages. The

RE: This code works in Tomcat Sun One 7 Appsvr but not WLS 8.1

2003-11-10 Thread Karr, David
This is likely going to be CR112789. Call BEA Support and describe your problem, and mention that this patch might be related. -Original Message- From: Joshua White [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 1:51 PM To: Struts Users Mailing List Subject: Re: This code

RE: Which version of Commons Digester released with Struts 1.1

2003-11-06 Thread Karr, David
Well, you should be able to open up the commons-digester.jar file and inspect the manifest.mf file. It has a version number, which appears to be 1.5 in Struts 1.1. -Original Message- From: Philip Mark Donaghy [mailto:[EMAIL PROTECTED] I would like to debug a problem that I have

RE: Form variables not reset

2003-11-06 Thread Karr, David
It's a little hard to understand exactly what's happening here, but did you try setting a breakpoint in one or more of the setter methods on actionform B? If I'm understanding what you're saying, I think I would expect the setter methods of B to be called with similar values as you had in form A

RE: why jstl does not work rightly

2003-11-04 Thread Karr, David
Ok, let's see. Are you sure you have a valid taglib directive in your JSP page (not in the web.xml)? Do a view source on the generated page to make sure you don't have c:out ... in the generated page. Have you tried the same application in the latest Tomcat 4.1.x version? -Original

RE: Re[2]: EL Expression in html:hidden tag

2003-11-03 Thread Karr, David
-Original Message- From: Arne Brutschy [mailto:[EMAIL PROTECTED] Thursday, October 30, 2003, 3:53:39 PM, you wrote: RB Is ${pageContext.request.servletPath} returning anything? Yes, it is returning the right path. RB Try something like RB html:hidden

RE: Struts1.1 Oracle 9iAS

2003-11-03 Thread Karr, David
-Original Message- From: Tim Clotworthy [mailto:[EMAIL PROTECTED] I am saddled with having to re-implement a struts-based architecture designed to run on a Tomcat web container, to an Oracle 9iAS Release2 (Tomcat is out, end-of-discussion). Unfortunately, 9iAS support Struts1.0

RE: Re[2]: EL Expression in html:hidden tag

2003-11-03 Thread Karr, David
web.xml, right? ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 ... /web-app Quoting Karr

RE: Runtime Evaluation Order of struts tags and jsp expressions

2003-11-03 Thread Karr, David
-Original Message- From: Swaminathan Gurumoorthy [mailto:[EMAIL PROTECTED] I have a problem with the way I thought struts tags and jsp expressions are evaluated. I have a sample code like this: % int tabIndexCtr = 1; % html:text property=customerNumber tabindex=%=

RE: Two basic questions regarding logic:equal

2003-11-02 Thread Karr, David
If you can use a Servlet 2.3 web container, you could instead use the JSTL and Struts-EL. Then, you could use the more powerful expression language in the JSTL. You can easily do boolean (multi-element) comparisons in the EL. -Original Message- From: Jitesh Sinha [mailto:[EMAIL

RE: query on html:img tag

2003-10-29 Thread Karr, David
If I'm understanding you correctly, OrgChartImageAction.do is the action that on submission will GENERATE the coordinates that you need in the REFERENCE to OrgChartImageAction.do. It seems like this won't work. You need to have your setup action for this page generate the coordinates for the

RE: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilation errors

2003-10-27 Thread Karr, David
I doubt the JDK version upgrade is relevant here. Are you using WLS 8.1 or 8.1 SP1? Check with BEA support to get any relevant patches. It's possible that patch CR112789 will resolve this. -Original Message- From: Ruta Thakkar [mailto:[EMAIL PROTECTED] Dear All, I have been

RE: input type=hidden works with struts tags?

2003-10-25 Thread Karr, David
The issue you're referring to is that you can't nest custom tags inside custom tags. The HTML input tag is not a custom tag, it's not processed by the server in any way. Also note that if you just use the html:hidden tag from Struts-EL, you can do the same thing in less code by using an EL

RE: html-el:form action=${param.type}

2003-10-23 Thread Karr, David
What web container are you using? Whenever I see fishy behavior from the EL, I wonder if you're using Resin. -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 12:48 PM To: Struts Users Mailing List Subject: Re: html-el:form

RE: html-el:form action=${param.type}

2003-10-23 Thread Karr, David
Tomcat 4 or 5? -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 1:06 PM To: Struts Users Mailing List Subject: Re: html-el:form action=${param.type} Tomcat Barry - Original Message - From: Karr, David [EMAIL PROTECTED

RE: html-el:form action=${param.type}

2003-10-23 Thread Karr, David
Do you only have one form tag on the page? Have you walked through the ELFormTag execution in your debugger? -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 12:48 PM To: Struts Users Mailing List Subject: Re: html-el:form

RE: Good list for JSTL questions?

2003-10-23 Thread Karr, David
taglibs-user -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 3:34 PM To: Struts Users Mailing List Subject: Good list for JSTL questions? What's a good list to address JSTL questions to? Thanks. -- Brice D. Ruth Sr. IT Analyst Fiskars

RE: Weird form! No data to action but all seems ok. Others work!

2003-10-23 Thread Karr, David
It might be your property names. They appear to begin with multiple uppercase letters. Try changing them to begin with at least two lowercase letters, and make your setters/getters uppercase the first character of the property name part. -Original Message- From: Jim Bruno Goldberg

RE: Calling a javascript function with the logic:iterate tag

2003-10-16 Thread Karr, David
This is a very good reason to start using Struts-EL, the contrib tag library that integrates the expression language of the JSTL with Struts tags. Your bean:write call in the attribute of the html:link tag doesn't work because you can't embed custom tags in the attributes of custom tags. If you

RE: Indexed Properties examples?

2003-10-14 Thread Karr, David
Try changing the property value reference in your JSP to reference awardIndexed instead of AwardIndexed. That might help, but I'm not certain. -Original Message- From: Michael Blair [mailto:[EMAIL PROTECTED] I am still trying to get this to work. I simply want to display records

RE: Using logic:iterate with twin Collections

2003-10-06 Thread Karr, David
, PrimaryKey value) { primaryKeys[index] = value; } } Thanks, Justin -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 2:43 PM To: Struts Users Mailing List Subject: RE: Using logic:iterate with twin Collections Try

RE: can not get bean property, help!!

2003-10-02 Thread Karr, David
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Hi, I have an attribute called actionName in my actionformbean and I set it properly in my action class before forward to my jsp in the jsp I try to retrieve it like this: form action=nested:write

RE: can not get bean property, help!!

2003-10-02 Thread Karr, David
That's a different error. You always have to quote attribute values. Start with that, and focus on the other problem. Try restating your problem, showing exactly what you have and what error you're getting. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] thank

RE: Handling Exceptions in ActionForm

2003-10-02 Thread Karr, David
-Original Message- From: Shane Mingins [mailto:[EMAIL PROTECTED] Using Struts, if I have an ActionForm implement the view interface, how would it create an ActionError or ActionMessage? It seems that from an ActionForm the validate() method can do it, and an Action can do it

RE: Using logic:iterate with twin Collections

2003-10-01 Thread Karr, David
You'll have to use the indexId attribute to allow you to reference the index value, and then directly reference the entry of the other collection using that value. -Original Message- From: Justin Mahoney [mailto:[EMAIL PROTECTED] Hi, I have two Collections (ArrayLists) with an

RE: Using logic:iterate with twin Collections

2003-10-01 Thread Karr, David
property 'keyFields[index]' -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] You'll have to use the indexId attribute to allow you to reference the index value, and then directly reference the entry of the other collection using that value. -Original Message

RE: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread Karr, David
I would want to see your web.xml, and any information that shows up in the Tomcat console (not log file). -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] I am experimenting a basic application - logon. I got the first two screens working without problem. However,

RE: Retrieving value of java script variable in a Scriplet

2003-09-30 Thread Karr, David
I'm afraid you've misunderstood the lifecycle of scriplet code vs. JavaScript code. Scriptlets are executed on the server side, and generate output which is processed on the client side, which includes the JavaScript that you've generated. The JavaScript is then executed on the client side.

RE: Problems executing an action twice ...

2003-09-30 Thread Karr, David
-Original Message- From: Michel Bertrand [mailto:[EMAIL PROTECTED] I'm facing something I call strange struts behavior. I have the following situation : 1) I have a list iterator on a form. Each list member has a link calling a href=./someAction.do?parameter=value. 2)

RE: How-to hide JSPs in WEB-INF (OT?)

2003-09-29 Thread Karr, David
-Original Message- From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] Is there a how-to on hiding JSPs in WEB-INF? I keep getting 404 errors after moving them there. I google'd the problem, but didn't really find a how-to, but did find a couple posts that say this might be

RE: How-to hide JSPs in WEB-INF (OT?)

2003-09-29 Thread Karr, David
? -Tim -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] -Original Message- From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] Is there a how-to on hiding JSPs in WEB-INF? I keep getting 404 errors after moving them there. I google'd the problem

RE: Urgent: No Getter Method found

2003-09-26 Thread Karr, David
-Original Message- From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]: javax.servlet.jsp.JspException: No getter method for property txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN i have following code in

RE: Disabling Buttons on View

2003-09-25 Thread Karr, David
-Original Message- From: Shane Mingins [mailto:[EMAIL PROTECTED] I have not used any of the JSTL tags which I am assuming c:set ... is?? So I downloaded the JSTL library and included the core library EL: %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % in my JSP

RE: how to replace bean:message key... in a JSTL tag attribute ?

2003-09-23 Thread Karr, David
You can use fmt:message and specify a var attribute to put the result into a scoped variable. Note that part of the setup for the fmt tag library is setting the javax.servlet.jsp.jstl.fmt.localizationContext context parameter to the class name of your properties file (normally just the base

RE: Servlet Path Path Info on Weblogic 8.1 vs. Struts

2003-09-23 Thread Karr, David
(If I were you, I wouldn't CC people on notes to this list (and many other lists).) -Original Message- From: Jing Zhou [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:20 PM To: Struts Users Mailing List Cc: Craig R. McClanahan Subject: Re: Servlet Path Path Info on

Mapped properties call setter method twice?

2003-09-11 Thread Karr, David
Gee, it's been a while since I've gotten to write some code actually USING Struts instead of inside of it (the EL part, at least). I'm using Struts 1.1, with WebLogic 8.1. I have a multibox that is using a mapped property. The setter in the bean properly gets called with the key and value. The

RE: [OT] JSTL question

2003-09-11 Thread Karr, David
Actually, in this case, loop.index is probably more appropriate. They are similar, but different. -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 1:54 PM To: 'Struts Users Mailing List' Subject: RE: [OT] JSTL question You need

RE: form is always null in action

2003-09-11 Thread Karr, David
It may seem odd, but the name attribute of the action element is associated with the form bean. If you change the value from shoppingCart to ShoppingCartForm (or vice versa), then they will match up. -Original Message- From: Stephane Grenier [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: Combining struts and JSTL tags...

2003-09-09 Thread Karr, David
Well, I don't know exactly what your parse exception is, but you probably want to use Struts-EL instead of plain Struts, if you're using JSTL. It integrates better with the JSTL than plain Struts. Also, you appear to be using the TLD from Struts 1.0.2, not Struts 1.1. -Original

RE: Problem converting from Struts tags to JSTL

2003-08-27 Thread Karr, David
-Original Message- From: Kevin A. Palfreyman [mailto:[EMAIL PROTECTED] Thanks for the pointer to the user guide, but unfortunately it doesn't help. I tried: c:out value=${instanceForm.dynamic.map.%=fieldName%} / And c:out

RE: JSTL and Struts

2003-07-31 Thread Karr, David
I think it would help if you spelled out for yourself exactly what this functionality really means. -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 7:44 AM To: 'Struts Users Mailing List' Subject: RE: JSTL and Struts I did it that way

RE: JSTL in html-el:option

2003-07-31 Thread Karr, David
This may have nothing to do with your problem, but the value attribute of html-el:option should be ${status.count} and not c:out That's the whole point of the library :) . What web container are you using? -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] I get the

RE: Struts Action in Welcome File List

2003-07-30 Thread Karr, David
Well, I haven't tried this, but I did notice someone a while ago saying that this DOES work, as long as you use a small trick. The welcome-file does have to specify a file that exists, but that doesn't mean the web container will actually SERVE that file. The person who mentioned this said that

RE: How to use JSTL taglib with struts html taglib

2003-07-28 Thread Karr, David
In the contrib directory of the Struts distribution, you'll find the Struts-EL distribution, which is a port of the Struts tag library that uses the JSTL EL engine to evaluate attribute values. Search the archives for Struts-EL. There is a README in the Struts-EL distribution, and there's a few

RE: ServletMapping and possible bug in getActionMappingURL()

2003-07-28 Thread Karr, David
Change /*.do to *.do and you should be ok. -Original Message- From: Canning, Chuck [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 3:56 PM To: 'Struts Users Mailing List' Subject: ServletMapping and possible bug in getActionMappingURL() Is this a valid servlet mapping?

RE: Struts and JSTL - Basic Questions

2003-07-17 Thread Karr, David
You can use the Struts tag library with the JSTL, although you'd get better integration with the Struts-EL tag library, which is part of the Struts distribution. This is an integration of the Struts tag library with the EL engine in the JSTL. The pre-JSP2.0 version of the JSTL can be used with

RE: Upgrading to Struts 1.1

2003-07-01 Thread Karr, David
Why does it say apche? You didn't type this in manually, did you? -Original Message- From: Hajratwala, Nayan (N.) [mailto:[EMAIL PROTECTED] If you look near the bottom of your error messages, it says: Caused by: java.lang.ClassNotFoundException:

RE: Struts 1.1 bean:write problem

2003-06-30 Thread Karr, David
Have we seen your web.xml and struts-config.xml file yet? -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 4:01 PM To: Struts Users Mailing List Subject: RE: Struts 1.1 bean:write problem Could you post the code that's causing the

RE: Struts-EL w/Resin

2003-06-26 Thread Karr, David
Struts-EL depends on the Apache Taglibs implementation of the JSTL. -Original Message- From: Martin Naskovski [mailto:[EMAIL PROTECTED] I noticed that Struts comes with an implementation of JSTL as well in the contrib directory. Do I need to install this JSTL library w/Resin and

RE: html:reset and DynaValidatorForm / LookupDispatchAction

2003-06-16 Thread Karr, David
Uh, no, they really do have nothing to do with each other. The reset tag is used entirely on the client side. The reset method is used on the server side, just before populating the ActionForm from request parameters. Clicking the reset button does not call the reset method. -Original

RE: Nested taglib and JSTL

2003-06-12 Thread Karr, David
-Original Message- From: Ludovic Maitre [mailto:[EMAIL PROTECTED] Hello, Could somebody answer to 2 little questions : 1- why there is no nested-el taglib ? When I built Struts-EL, I just concentrated on the three core libraries. After the 1.1 release, I'm going to try to build

RE: what setters do i implement in an indexedtag--NewBiequestion

2003-06-12 Thread Karr, David
-Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] I had a question on how to do the prep action. [This assumes the prep action that entered the jsp figured out the size of the list and set it into a hidden in the jsp in a field named personListLength.] I tried

RE: JSTL or Struts taglib: on a large project

2003-06-11 Thread Karr, David
-Original Message- From: Hohlen, John C [mailto:[EMAIL PROTECTED] We always try to use the JSTL tags when an equivalent Struts tag exists. We've looked at using the Struts-EL tag library. Unfortunately, that subproject has never been released with corresponding versions for Struts

RE: Problem with ExpressionEvaluatorManager in a custom jstl tag

2003-06-10 Thread Karr, David
First of all, you'll get better luck asking this on the taglibs-user list. I'm assuming you have the call to EEM in a try/catch, and you're not seeing an exception there, which would indicate that EEM is throwing a RuntimeException subclass. You might temporarily add a catch for that so you

RE: formtag error

2003-06-10 Thread Karr, David
Try adding the load-on-startup element to your 22ban servlet (this is normally called action, by convention). -Original Message- From: Richard Raquepo [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 11:05 PM To: Struts Users Mailing List Subject: Re: formtag error sorry

RE: What are indexed struts-html tags and how to use them?

2003-06-10 Thread Karr, David
I wrote a long FAQ description in the documentation about this, and I'm still not sure I can adequately answer this question, as it can be somewhat confusing. You could read that at http://jakarta.apache.org/struts/faqs/index.html. Select the indexed properties link. Basically, you use indexed

RE: Checkbox problem?

2003-06-10 Thread Karr, David
Generally, a good strategy is to have a prepare action and a process action. Your prepare action is where you would set your boolean form properties. You then forward to the JSP, which renders the checkboxes. The process action (from submitting the form) will determine whether the checkboxes

RE: struts-el question

2003-06-06 Thread Karr, David
Look at the description of the c:forEach tag in the JSTL specification (or one of the books). You'll see the varStatus attribute. -Original Message- From: Matthew Van Horn [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 6:50 PM To: Struts Users Mailing List Subject: Re:

RE: Struts Logic iterate vs JSTL Code forEach

2003-06-06 Thread Karr, David
It will stay in the contrib directory, or move out to a separate release. It will never go into the base Struts distribution, for good reason. Once JSP 2.0 is commonly available, the EL notation will be natively supported, and Struts-EL won't be needed. -Original Message- From: Derek

RE: calling actions directly

2003-06-06 Thread Karr, David
Unfortunately, not all web containers will support this. There was apparent disagreement on the interpretation of the specification in this area. In particular, WebLogic does not support this. I believe, however, that in version 8.1 it's possible to do this, although I believe you have to set

RE: Struts Logic iterate vs JSTL Code forEach

2003-06-05 Thread Karr, David
The iterate tag was originally ported because the indexed tag functionality wouldn't work with c:forEach. This has since been rectified, but I didn't think it would be a good idea to remove it from the library after I released it (even though it's never been in a released version of Struts).

RE: struts (and JSTL) expression language questions

2003-06-05 Thread Karr, David
Read the JSTL specification. It should clarify some of these issues. If you write pages that avoid using scriptlets (perhaps by concentrating on the MVC paradigm), you won't have these issues (except for the constants issue). If you have specific questions about the JSTL, it would be better to

RE: [JSTL] Hashtable

2003-05-31 Thread Karr, David
Ask questions about the JSTL on the taglibs-user list. You can also read the JSTL specification for clear answers to these questions. -Original Message- From: Denis Avdic [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 8:02 AM To: Struts Users Mailing List Subject: [JSTL]

Somehow change PropertyMessageResources to enhance testability?

2003-05-29 Thread Karr, David
It's easy to see that in normal operation, it's a good idea for PropertyMessageResources to be a read-only repository. There's no good reason to change message properties at runtime. However, it would be really nice to be able to write Cactus tests that are self-contained, so I can manually

RE: Netscape and struts-html.tld-Eventhandler

2003-04-04 Thread Karr, David
The onclick in html:text is not a handler, it is a custom tag attribute. The Tag Library Descriptor describes those attributes, including their exact spelling. If the TLD specifies a particular spelling, then you have to use that spelling. If you want to write JavaScript functions that follow

RE: Tiles Insert tag using EL expression

2003-04-04 Thread Karr, David
The problem is that we haven't built a tiles-el library. That's one of the things I'd like to accomplish in the 1.2 (1.1.1?) time frame. It's not that difficult, but I don't want to implement any more major changes for 1.1. Until then, I guess that attribute has to take a scriptlet expression,

RE: [OT] intermittent build and deploy Struts application to WLS problem

2003-04-04 Thread Karr, David
Another alternative would be to use WebLogic Express, which is WebLogic without the EJB container. It should be much cheaper than WebLogic platform, and will satisfy the suits. -Original Message- From: Miriam Aguirre [mailto:[EMAIL PROTECTED] we're currently struggling with this as

RE: 'org.apache.strutsel.taglib.html.ELImgTag' has no setter methodcorresponding to TLD declared attribute 'onkeypress'

2003-04-03 Thread Karr, David
Let me guess, you're using Struts 1.1RC1? This was fixed after RC1 was tagged. If you use the nightly build, this should be fixed. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] hello, what I'm missing? I'm trying to run strutsel-exercise-taglib example

RE: A bean:define question

2003-04-01 Thread Karr, David
This might work: bean:define id=varName bean:message key='%= request.getParameter(httpParameter) + .name %'/ /bean:define -Original Message- From: Binaghi Mauro [mailto:[EMAIL PROTECTED] Hi I have the user.name property in my

RE: Setting up JSTL---How?

2003-03-31 Thread Karr, David
One step you need to take care of, if you haven't yet, is reading the JSTL specification. If you had, you would have noticed that $param.userName should be ${param.userName}. I'm not certain whether this the cause of your exception, however. -Original Message- From: joni santoso

RE: [OT] JavaScript Debugger For Client-Side Validation

2003-03-31 Thread Karr, David
If you can use Mozilla, it comes with a nice integrated javascript debugger. If you've built a non-standard application that only works in IE, then that won't help you very much. -Original Message- From: Hohlen, John C [mailto:[EMAIL PROTECTED] Can anyone recommend a good (and free)

RE: html:link - help

2003-03-27 Thread Karr, David
You were close to one solution, if you used c:url. You just didn't fully read the usage information for this tag. If you supply a var attribute, you can specify the name of the page-scoped attribute to set with the resulting URL string. You can then reference this in the href attribute of the

RE: Imbeding a struts tag in another ?

2003-03-27 Thread Karr, David
The Struts-EL library is in the contrib directory of the distribution. It first appeared in the 1.1beta3 release, although until the next RC or final 1.1 release comes out, I recommend using the nightly build, to avoid a couple of bugs that have been fixed since that release. The Struts-EL

RE: Question on bean:define

2003-03-25 Thread Karr, David
In your case, I think the message isn't quite accurate. The message should say something like ... needs to contain EXACTLY one of You aren't using any of name, value, or body content. This has nothing to do with your JDK upgrade. -Original Message- From: Binaghi Mauro

RE: html:errors/ not showing anything!

2003-03-25 Thread Karr, David
And in your deployed WAR file, a file named application.properties is in the directory WEB-INF/classes/resources? In times like this, if I can't figure out why something isn't finding a file I think it should find, I like to set up a file I/O monitor, that basically tracks all system calls, and

RE: html:errors/ not showing anything!

2003-03-25 Thread Karr, David
- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 9:50 AM To: Struts Users Mailing List Subject: RE: html:errors/ not showing anything! And in your deployed WAR file, a file named application.properties is in the directory WEB-INF/classes/resources? In times

RE: Why have logic-el:present?

2003-03-25 Thread Karr, David
It's not much, but I believe the roles attribute isn't strictly available with the JSTL. For most uses, the EL works fine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] The README.txt file in the contrib/struts-el folder explains what JSTL tags to use in

RE: [OT] JSP custom tags

2003-03-25 Thread Karr, David
Are you bringing down the server? Can you look at the servlet code generated from the JSP to see whether it is using the new code (you'd only notice this if your change changed the tag interface in certain ways). -Original Message- From: Becky Norum [mailto:[EMAIL PROTECTED] I've

RE: [OT] jsptag question

2003-03-24 Thread Karr, David
No, you cannot directly extend a TLD. However, you can write a second TLD that is a copy of the original one, which uses all the same tags and classes, but adds an additional tag and class. In your JSP page, you could use the same prefix, but change the URI on your taglib tag to point to the

RE: Indexed Properties with DynaActionForm Problems

2003-03-18 Thread Karr, David
Are you using Struts-EL? You can't reference EL expressions in Struts tags, just Struts-EL. -Original Message- From: Josh Rayls [mailto:[EMAIL PROTECTED] I have been struggling with this for a couple of days now. I've scoured the archives from top to bottom, and I've found some

  1   2   3   4   >