Any way to inject Spring bean properties into Struts plugin properties?

2009-08-31 Thread KARR, DAVID (ATTCINW)
It's been quite a while since I've been in here, and I have some questions about things just about that old. :) I've been asked to look at an app using Struts 1.2.7, to see whether I can change it from using build-time environment properties to run-time, using Spring. I've read about

RE: Any way to inject Spring bean properties into Struts plugin properties?

2009-08-31 Thread KARR, DAVID (ATTCINW)
-Original Message- From: KARR, DAVID (ATTCINW) Sent: Monday, August 31, 2009 1:25 PM To: user@struts.apache.org Subject: Any way to inject Spring bean properties into Struts plugin properties? It's been quite a while since I've been in here, and I have some questions about things

RE: Any way to inject Spring bean properties into Struts plugin properties?

2009-08-31 Thread KARR, DAVID (ATTCINW)
-Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Monday, August 31, 2009 1:35 PM To: Struts Users Mailing List Subject: Re: Any way to inject Spring bean properties into Struts plugin properties? On Mon, Aug 31, 2009 at 4:30 PM, KARR, DAVID (ATTCINW)dk0

RE: Loading and Calling Java Script in Struts

2008-11-21 Thread Karr, David
You might be better off with something like this: script language=JavaScript src=${pageContext.request.contextPath}/js/jquery.js/ script language=JavaScript src=${pageContext.request.contextPath}/js/jquery-ui-1.6rc2.js/ script language=JavaScript

RE: ExecAndWait (navigating back to the progress page)

2008-07-17 Thread Karr, David
I'm guessing the operation you're waiting for can take quite a while to complete. Otherwise modifying the architecture of this probably wouldn't be worth it. You might consider the flow of the original action to simply report a simple submitted and processing result, and then implement an

Thoughts of using explicit regexps instead of wilcards for action mappings?

2008-07-12 Thread Karr, David
One thing that's always bothered me a bit about using wildcards for action mappings is that it's somewhat less self-documenting than I'd like. Although I like being more concise, I'd really rather have an alternative form that is still concise but still specifies what possible wildcard values to

RE: [OT] What slows you down?

2008-06-20 Thread Karr, David
-Original Message- From: Sarr, Nathan [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 10:29 AM To: Struts Users Mailing List Subject: RE: [OT] What slows you down? 2. Validation - since I'm using Yahoo User Interface Libraries (YUI) and my actions are returning JSON or

RE: [OT] What slows you down?

2008-06-20 Thread Karr, David
Users Mailing List Subject: RE: [OT] What slows you down? Hi David, That sounds great - thanks for tip. I'm going to grab the Beta release ASAP. -Nate -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 1:47 PM To: Struts Users

RE: struts2 and JSON integration problem (plugin)

2008-06-17 Thread Karr, David
Saying something doesn't work doesn't work :) . That tells us nothing. What are you doing? What happens? I tried setting up simple examples based on the documentation in the Wiki, and it worked fine. In addition, there are some additional JSON changes in 2.1.2 beta which I've also been able

RE: struts2 and JSON integration problem (plugin)

2008-06-17 Thread Karr, David
-Original Message- From: xianwinwin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 11:38 AM To: user@struts.apache.org Subject: RE: struts2 and JSON integration problem (plugin) 1. How did you add the reference in eclipse? Make sure it is listed in the J2EE Module

RE: Some confusion trying to do ajax form submit

2008-06-16 Thread Karr, David
I think I know what the problem is here. I think I'm mis-sending the extra validation parameters on the POST. I haven't fixed it yet, but I know it's not a problem with Struts. -Original Message- From: Karr, David Sent: Sunday, June 15, 2008 9:29 PM To: Struts Users Mailing List

RE: Some confusion trying to do ajax form submit

2008-06-16 Thread Karr, David
On Sun, Jun 15, 2008 at 8:02 PM, Karr, David [EMAIL PROTECTED] wrote: I have a simple page with validation that I got working with a conventional submit and action. I'm now trying to explore doing an Ajax form submit, and getting a JSON response. I'm using YUI on the client side

RE: Some confusion trying to do ajax form submit

2008-06-16 Thread Karr, David
a excludeParams property that takes a list of regular expressions: interceptor-ref name=params param name=excludeParamsdojo\..*/param /interceptor-ref will ignore any parameter that has dojo. in it. musachy On Mon, Jun 16, 2008 at 11:31 AM, Karr, David [EMAIL PROTECTED] wrote: So far I

Some confusion trying to do ajax form submit

2008-06-15 Thread Karr, David
I have a simple page with validation that I got working with a conventional submit and action. I'm now trying to explore doing an Ajax form submit, and getting a JSON response. I'm using YUI on the client side. I'd like to see if I can get similar data in the JSON response that I would in a

RE: Some confusion trying to do ajax form submit

2008-06-15 Thread Karr, David
, June 15, 2008 5:09 PM To: Struts Users Mailing List Subject: Re: Some confusion trying to do ajax form submit Take a look at this (2.1 only): http://struts.apache.org/2.0.11.1/docs/ajax-validation.html musachy On Sun, Jun 15, 2008 at 8:02 PM, Karr, David [EMAIL PROTECTED] wrote: I

RE: Some confusion trying to do ajax form submit

2008-06-15 Thread Karr, David
. -Original Message- From: Karr, David Sent: Sunday, June 15, 2008 8:14 PM To: Struts Users Mailing List Subject: RE: Some confusion trying to do ajax form submit --- ognl.ExpressionSyntaxException: Malformed OGNL expression: [object Object] [ognl.ParseException

Looking for some more troubleshooting resources

2008-06-13 Thread Karr, David
I'm starting to do some simple experiments with Struts2 (those who know me would wonder what took me so long :) ). I have one blocking problem, but I would more appreciate hints on how to diagnose particular kinds of problems, as opposed to just giving me the answer. In this case I'm getting the

RE: any struts 2 unit testers out there?

2008-04-04 Thread Karr, David
And did you investigate using either of the common Java frameworks for Mock objects, jMock and EasyMock? -Original Message- From: paulbrickell [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2008 3:04 AM To: user@struts.apache.org Subject: RE: any struts 2 unit testers out there?

Annotations for additional properties for type converters?

2008-03-29 Thread Karr, David
I don't necessarily need this, but is it possible to add annotations to TypeConversion to configure properties of the type converter? It's nice to be able to define type converters in annotations, but you could achieve some more reuse of type converters if they were more configurable from the

Possible to unit test actions through type converters?

2008-03-29 Thread Karr, David
This might be a violation of pure unit test guidelines, but is it practical to test an action such that the type converters for properties are automatically executed, just like they would normally? It's nice that actions are plain POJOs, but I wonder if it's practical to test the processing of

RE: Any issues using latest Dojo with Struts2?

2008-03-22 Thread Karr, David
tried it. Dave --- Karr, David [EMAIL PROTECTED] wrote: The following link into the Dojo Book has an example. There are others throughout the book. The ${...} is substituted on the CLIENT side. http://dojotoolkit.org/node/3161 -Original Message- From: Dave

Any issues using latest Dojo with Struts2?

2008-03-20 Thread Karr, David
Isn't it the case that Struts2 integrates Dojo, but a version older than the latest Dojo version? Should I expect any difficulties if I try to use the latest Dojo in a Struts2 application? I imagine this might preclude trying to use the Struts2 tags that use Dojo widgets (or just need some

RE: Any issues using latest Dojo with Struts2?

2008-03-20 Thread Karr, David
To: Struts Users Mailing List Subject: Re: Any issues using latest Dojo with Struts2? --- Karr, David [EMAIL PROTECTED] wrote: Isn't it the case that Struts2 integrates Dojo, but a version older than the latest Dojo version? Yes. Should I expect any difficulties if I try to use the latest

Opinions of Struts 2 Design and Programming: A Tutorial (2nd edition)?

2008-03-18 Thread Karr, David
I'm looking for the best and up-to-date Struts2 books. I see that Struts 2 in Action is coming out a little later this year, but I also noticed Struts 2 Design and Programming: A Tutorial, which came out with a second edition in January. Has anyone here looked at this, outside of reading the

RE: How to Populate jsp with values in the database ?

2008-03-12 Thread Karr, David
The basic idea is to have Java code in Action classes interface to your data sources and populate beans that are put into the contexts available to your JSP code. You then forward to JSP pages that can use Struts or JSTL tags to reference the beans placed into the context. Your JSP should not

RE: Simple helloworld test fails with Could not find action orresult

2008-03-06 Thread Karr, David
So is the package attribute supposed to match the Java package of the Action classes? Martin Gainty had earlier said I should use actionPackages. Before I added that, it wasn't even getting into my Action classes at all. If I now remove actionPackages, change the package attribute to match my

RE: Simple helloworld test fails with Could not find action orresult

2008-03-06 Thread Karr, David
-Original Message- From: Karr, David Sent: Thursday, March 06, 2008 6:30 AM To: Struts Users Mailing List Subject: RE: Simple helloworld test fails with Could not find action orresult So is the package attribute supposed to match the Java package of the Action classes? Martin

RE: Not Able to call Action

2008-03-06 Thread Karr, David
I'm technically a newbie on this, so don't take my word on it, but I would suggest: * Don't use actionPackages or the annotations. * Remove the namespace attribute on the action element. * Change the package attribute on the action element to have a value != your Java package. -Original

RE: Re: Index.jsp hit 20 times and fails with The page isn't redirecting properly

2008-03-05 Thread Karr, David
is it, with the same redirect directive...? ;-) L. Karr, David wrote: Note that the index.jsp at the root of the webapp looks like this: % response.sendRedirect(index.action); % The action that this refers to is: action name=index class=com.fdar.apress.s2.IndexAction result/jsp

Simple helloworld test fails with Could not find action or result

2008-03-05 Thread Karr, David
I'm sure I have a simple error here, but I don't see it. I'm trying to construct a simple hello, world app with v2.0.11. I have an index.jsp that redirects to main.action. I started out with the main action just having a result (name=success) going to /main.jsp. That appears to work. I then

RE: Simple helloworld test fails with Could not find action or result

2008-03-05 Thread Karr, David
. It is configured correctly. Karr, David wrote: I'm sure I have a simple error here, but I don't see it. I'm trying to construct a simple hello, world app with v2.0.11. I have an index.jsp that redirects to main.action. I started out with the main action just having a result (name

RE: Simple helloworld test fails with Could not find action or result

2008-03-05 Thread Karr, David
no Action class, but main does, and main fails for no obvious reason. can you post more of your code? What else would you want to see? There's really nothing else. On Wed, Mar 5, 2008 at 6:04 PM, Karr, David [EMAIL PROTECTED] wrote: -Original Message- From: Jeromy Evans

RE: Simple helloworld test fails with Could not find action or result

2008-03-05 Thread Karr, David
, being the web.xml and struts.xml. I don't have any of those other files. - Original Message - From: Karr, David [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, March 05, 2008 7:37 PM Subject: RE: Simple helloworld test fails with Could

RE: Simple helloworld test fails with Could not find action or result

2008-03-05 Thread Karr, David
) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595) Karr, David wrote: -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 3:11 PM To: Struts Users Mailing

RE: Simple helloworld test fails with Could not find action or result

2008-03-05 Thread Karr, David
validation.xml web.xml struts-tags.xml validation.xml struts-tags.xml struts-actionchaining.xml struts-integration.xml struts-jsf.xml These configuration files will give us of the layout/design you're using Martin - Original Message - From: Karr, David [EMAIL PROTECTED] To: Struts

RE: Simple helloworld test fails with Could not find action orresult

2008-03-05 Thread Karr, David
forward now. Thanks for the help. -Wes On Wed, 2008-03-05 at 18:53 -0800, Karr, David wrote: Oh, and if it helps, this is the output on my browser when executing with debug=xml: debug parameters/ context struts.actionMapping classclass org.apache.struts2

Tabpanel narrow in Firefox, ok in IE

2008-03-05 Thread Karr, David
Struts 2.0.11, Tomcat 6.0.14, JDK 1.5.0_06. This is probably due to my inexperience with HTML, but I'm experimenting with the tabbedpanel component. I noticed statements that some of the Ajax components don't work in IE. Ironically, when I tested my simple tabpanel page, I found that it has a

RE: Simple helloworld test fails with Could not find action orresult

2008-03-05 Thread Karr, David
change the name of the package to default. Thanks, Dave --- Karr, David [EMAIL PROTECTED] wrote: -Original Message- From: Wes Wannemacher [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 7:11 PM To: Struts Users Mailing List Subject: RE: Simple helloworld

RE: Simple helloworld test fails with Could not find action orresult

2008-03-05 Thread Karr, David
of the package to default. Thanks, Dave --- Karr, David [EMAIL PROTECTED] wrote: -Original Message- From: Wes Wannemacher [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 7:11 PM To: Struts Users Mailing List Subject: RE: Simple helloworld test fails with Could

RE: Simple helloworld test fails with Could not find action orresult

2008-03-05 Thread Karr, David
what the config-browser reports? I'm also curious what happens if you change the name of the package to default. Thanks, Dave --- Karr, David [EMAIL PROTECTED] wrote: -Original Message- From: Wes Wannemacher [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 7:11

RE: Simple helloworld test fails with Could not find action orresult

2008-03-05 Thread Karr, David
action orresult And when you visit that location it's giving you the error about not having a result for success? Dave --- Karr, David [EMAIL PROTECTED] wrote: Without the namespace attribute, config-browser reports this: Action name:main Namespace: Action class

RE: Simple helloworld test fails with Could not find action orresult

2008-03-05 Thread Karr, David
not find action orresult And the config browser isn't recognizing the success result configuration? Normally it will list the configured results under the information you said it listed. Man, I sure haven't been able to dupe this yet. --- Karr, David [EMAIL PROTECTED] wrote: No result

Index.jsp hit 20 times and fails with The page isn't redirecting properly

2008-03-04 Thread Karr, David
I'm trying to piece together the app described in chapter 2 from the Practical Apache Struts book (just from the soure code zip). I have Struts2.0.11 and Tomcat 6.0.14. After I got to the point where it appeared to deploy without errors, when I execute the URL, the browser returns The page isn't

RE: Index.jsp hit 20 times and fails with The page isn't redirecting properly

2008-03-04 Thread Karr, David
tried enabling devMode in the struts.properties file and sending ?debug=console to my URL, but that didn't appear to give me any additional info anywhere. -Original Message- From: Karr, David Sent: Tuesday, March 04, 2008 12:37 PM To: Struts Users Mailing List Subject: Index.jsp hit 20

Qs about Ajax abilities in Struts 2

2008-03-02 Thread Karr, David
I've been out of the Struts loop for a long time now (some of you old timers should remember me). I've been reading the docs in firehose mode the last few days, but I have some questions about Ajax-related capabilities in the latest release. I'd like to see if certain combinations of features

RE: Struts-EL and JSP 2.0

2008-02-14 Thread Karr, David
Just so it's clear, you not only don't need it, but it's presence would probably cause subtle (well, maybe not so subtle) problems. Don't use it in a JSP 2.x+ container. -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Thursday, February 14, 2008 8:50 AM

RE: EL expressions and string concatenation

2007-11-05 Thread Karr, David
Would this work? href=${pc:url('/category/edit.html?category.id=')}${category.id} -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Sunday, November 04, 2007 8:07 AM To: Struts Users Mailing List Subject: EL expressions and string concatenation This is slightly

RE: struts 1.3.8 / el tag install/configure?

2007-09-17 Thread Karr, David
-Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 12:00 AM To: Struts Users Mailing List Subject: Re: struts 1.3.8 / el tag install/configure? 2007/9/14, john lee [EMAIL PROTECTED]: if i want to use el tag for struts 1.3.8, need

RE: [S1] EL vs. non-EL taglibs?

2007-07-27 Thread Karr, David
I find it hard to believe you're looking at a significant performance difference. That being said, I suggest you measure it if you're really concerned (measure in the container, not on the browser). Frankly, I would say that the maintenance headache created by using tags from both taglibs at the

RE: [S2] Weblogic struts.multipart.parser

2007-06-16 Thread Karr, David
The usual workaround for avoiding conflicts between WebLogic's jar files and the application jar files is to use prefer-web-inf-classes in the weblogic.xml file. This would work for simple UI components like Struts and Beehive, but it might not work for lower-level components like the XML parser.

RE: Re: error on struts 1.1

2007-05-07 Thread Karr, David
You don't need to store tld files anywhere. They are already stored inside the taglib jar file (like struts.jar). You also don't need the taglib elements in your web.xml. The uri element in the taglib directive in your JSP should reference the standard URI associated with each taglib (which you

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Karr, David
You can search through all your documentation, but there's a more direct (some might say indirect, but whatever) way. Open up the jar file that the taglib refers to, using winzip, the Eclipse Zip Editor, or whatever. Select the TLD file. Open it into a plain text editor. Find the uri element.

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Karr, David
As Dave Newton said, these are URIs, not URLs. A URI is just an identifier, nothing more. In any case, all it does is match that URI to the URI in a TLD in one of the jar files in the classpath. It doesn't need to go to the internet for any of this. -Original Message- From: Crawford,

RE: Iterate and write indexed properties in place using logic:iterate

2007-03-26 Thread Karr, David
What container are you using? If you're using Tomcat 5, or any container that supports JSP 2.0, and you're using the Servlet 2.4 schema in your web.xml, then EL expressions in your JSP will be natively supported, without any additional jar files. Also, if you're using a JSP 2.0 container, you

RE: Book recommendations for performance tuning

2007-03-21 Thread Karr, David
One I like is Pro Java EE 5 Performance Management and Optimization, by Steven Haines. Note that Steven Haines is associated with Quest Software and Jprobe (and related products). Although the book uses some pictures from those products, it is not in any way a veiled ad for those products. In

RE: Re: EL expression in html:form action

2007-03-16 Thread Karr, David
Don't recommend using the struts-el taglib if you don't know what environment the user is in. The struts-el taglib can't be used in a JSP 2.0 environment. -Original Message- From: Strachan, Paul [mailto:[EMAIL PROTECTED] Sent: Thursday, March 15, 2007 5:50 PM To: Struts Users

RE: Error while running struts blank on Weblogic 8.1

2007-02-07 Thread Karr, David
Did you specify prefer-web-inf-classes in the weblogic.xml file? If you don't do this, the app will use the Struts jars that are installed with WebLogic, which would be an earlier version. -Original Message- From: Sridhar Srigiriraju [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: Error while running struts blank on Weblogic 8.1

2007-02-07 Thread Karr, David
JCP process and also with the conventional wisdom that weblogic versions cannot catch up with the pace at which struts are developed? TIA Sridhar On 2/7/07, Karr, David [EMAIL PROTECTED] wrote: Did you specify prefer-web-inf-classes in the weblogic.xml file? If you don't do

RE: which one is better : jstl core tag V/s struts tags (logic)

2007-01-21 Thread Karr, David
To add to that, if you're using a JSP 1.2 container (I would hope this is less likely by now), you should probably use the Struts-EL tag library instead of the base Struts tag library (although you still need both strutsel.jar and struts.jar). This will allow you to use the EL in Struts tags. On

RE: problem with moving jsp pages under web-inf/ folder

2006-11-09 Thread Karr, David
One strategy that might be worth pursuing is to forget the idea of moving your JSP pages out of the webroot, but just ensuring that they can't be accessed from the browser. This could be done by adding a security constraint to your web.xml for the user nobody for *.jsp. If the browser only ever

RE: Re: Problem while deploying on Weblogic

2006-09-11 Thread Karr, David
I would do a couple of things here. First, there is a version of Struts in the WebLogic core. In order to ensure that your app uses the version of Struts you need to, you'll need to specify prefer-web-inf-classes in your weblogic.xml (set to true). Second, there is never any need to

RE: What's the difference between struts-base and struts-el?

2006-08-17 Thread Karr, David
One comment inline. -Original Message- From: Scott Van Wart [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 5:53 PM To: Struts Users Mailing List Subject: Re: What's the difference between struts-base and struts-el? Michael Cheung wrote: Hi, all; What's the

RE: Re: taglib nested-el

2006-07-13 Thread Karr, David
When I implemented Struts-EL (4 years ago, I think), I made a judgement call on what taglibs had best value for implementing as EL taglibs. In retrospect, it probably would have been worthwhile to implement both nested and tiles, even if they wouldn't be used much. Thinking about it at this point

RE: Urgent! Clipboard capability in Struts

2006-07-02 Thread Karr, David
-Original Message- From: Victor.T. Ying [mailto:[EMAIL PROTECTED] Hi, I need your suggestions on Struts(v1.2.7) Clipboard capabilities i.e I have TextArea in the webpage and I need to paste file content from the server to the text area when userclick the download button.

RE: Mixing Use of Struts Tags and JSTL Tags

2006-06-24 Thread Karr, David
If you're asking if there are JSTL tags that can be used instead of the Struts tags you refer to, then no. The JSTL does not implement any HTML component features. It's perfectly natural to use more than one tag library in JSP pages, don't try to jam your application into using a single tag

RE: Mistake of syntax in html:button

2006-06-23 Thread Karr, David
The problem is your use of a scriptlet. The scriptlet has to be the entire attribute value, not just a portion of it. You'll have to do something like this: onclick='%= Enviar( + property + ) %' -Original Message- From: José María Tristán [mailto:[EMAIL PROTECTED] Sent: Friday,

RE: [Struts + Tiles] JSTL problem on WebSphere Application Server 6

2006-06-05 Thread Karr, David
Curiously, I thought to do a Google to verify whether Websphere 6 was a Servlet 2.4 container, which is relevant to your situation, and in addition to verifying that, I also found someone who had the exact same problem as you, at http://www.jroller.com/page/agrebnev/20050831. As this blog entry

RE: [Struts + Tiles] JSTL problem on WebSphere Application Server 6

2006-06-04 Thread Karr, David
-Original Message- From: Rafael [mailto:[EMAIL PROTECTED] actually WAS6 comes with JSTL libraries, so the jars with TLDs are located inside WAS6 lib directory. If I include the taglib directive (%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %) all jstl tags in the

RE: el tags and regular struts tags

2006-01-24 Thread Karr, David
I think that the EL tags will take rt expressions, and you could use EL and non-EL tags all at the same time. Just make sure you keep the namespace prefixes straight. -Original Message- From: Garner, Shawn [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 12:32 PM To:

RE: [Struts EL JSTL]

2006-01-23 Thread Karr, David
To answer this a little differently than Laurie did, the Struts-EL tag library is a collection of tags that all inherit the behavior of the Struts tags they replace, except the tag attribute values are passed through the JSTL expression evaluation engine implemented by the Jakarta standard taglib

RE: [OT] Eclipse and JSTL

2006-01-10 Thread Karr, David
Yes, the URI for the JSTL changed between version 1.0.x and 1.1.x. Note that 1.0.x is used in JSP 1.2 containers, and 1.1.x in JSP 2.0 containers. They're not interchangeable. -Original Message- From: Garner, Shawn [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 8:55 AM

RE: struts 1.2.7 and JSTL

2005-12-02 Thread Karr, David
If you use the struts-el distribution, in the contrib directory, you'll find the JSTL jars. It's recommended that you use struts-el if you're going to use Struts with the JSTL. That is, assuming you're not using a Servlet 2.4 container. If you're using a Servlet 2.4 container, you shouldn't use

RE: [Somewhat OT] JSTL problem in Websphere

2005-12-01 Thread Karr, David
I believe that Websphere 5 is not a JSP 2.0 container (Websphere 6 is). Assuming that's true, you have to use the 1.0.x versions of the JSTL. Version 1.1.x is used in JSP 2.0 containers. You'll also have to make sure the taglib uri matches the one in the TLD file in the taglib jar (it's different

RE: Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread Karr, David
-Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] On 11/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Aha, I see what you mean now. I had this: %@ taglib uri=/WEB-INF/struts-html-el.tld prefix=html-el % Changed it to this: %@ taglib

RE: Problems with Iterator tag Please Help

2005-10-20 Thread Karr, David
Re-read the API description of this tag and the collection attribute: A runtime expression that evaluates to a collection (conforming to the requirements listed above) to be iterated over. You've given it a string, rows, and not a collection. This is a situation where using Struts-EL is

RE: embed jstl or other struts tag or scriplets within html:text

2005-10-01 Thread Karr, David
Ok. Several things here. 1. If you use runtime expressions for attributes in JSP, the runtime expression has to be the entire attribute value, not just a portion, so you would have (approximately): onblur='%= this + ... + reCalcFields( + executionState + ); %' However, assuming your

RE: nested c:forEach and html-el:link

2005-09-08 Thread Karr, David
If you're using Tomcat 5, a JSP 2.0 container, you shouldn't use Struts-EL. Just use the plain Struts jar, and make sure your web.xml uses the Servlet 2.4 schema. -Original Message- From: Lombart Vincent (DBB) [mailto:[EMAIL PROTECTED] Does anybody know why the following JSP code

RE: STruts-EL

2005-07-26 Thread Karr, David
Another good suggestion would be to NOT use a different taglib prefix for the struts-el tag libraries. In the initial examples, you might have seen examples like html and html-el. I don't recommend that (anymore). If you use the same prefix, then that will be less to change when you port your

RE: EL expression not getting evaluated

2005-06-29 Thread Karr, David
I don't know whether WSAD 5.1.2 is a JSP 2.0 container. If it is not, then you'll need to use the Struts-EL taglib. If it is a JSP 2.0 container, then you'll need to make sure that your web.xml is using the Servlet 2.4 schema. From: Phani [mailto:[EMAIL

RE: EL expression not getting evaluated

2005-06-29 Thread Karr, David
.. why is my expression not getting evaluated... ${partItem.intproperty} --- Rahul Akolkar [EMAIL PROTECTED] wrote: On 6/29/05, Karr, David [EMAIL PROTECTED] wrote: I don't know whether WSAD 5.1.2 is a JSP 2.0 container. If it is not, then you'll need to use the Struts-EL taglib

RE: NoClassDefFoundError: org/apache/struts/action/ActionForm

2005-06-28 Thread Karr, David
It's hard to say for certain, but this could be a classloader problem. It might help if you set the prefer-web-inf-classes element in your weblogic.xml file (to true, of course). If that isn't there, it will use the struts.jar that is used inside WebLogic, instead of the struts.jar in your

RE: jsp vs jstl in Math

2005-06-23 Thread Karr, David
Use the Struts-EL taglib, provided in the contrib/struts-el subdir of the Struts distribution. It's a port of most of the Struts tags (except the ones that provide functionality that the JSTL provides directly), but it uses the JSTL expression evaluator for attributes. Search the archives for

RE: jsp vs jstl in Math

2005-06-23 Thread Karr, David
me if I'm wrong here. -Mark Karr, David wrote: Use the Struts-EL taglib, provided in the contrib/struts-el subdir of the Struts distribution. It's a port of most of the Struts tags (except the ones that provide functionality that the JSTL provides directly), but it uses the JSTL

RE: Developing Struts application using Weblogic Workshop 8.1

2005-06-22 Thread Karr, David
Building a pure Struts application in Workshop 8.1 isn't practical. If you're building a pageflows app, however, which uses Struts internally, then Workshop is the way to go. -Original Message- From: Ibha Gandhi [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 22, 2005 7:47 AM To:

RE: [OT] Precompiling JSP Pages with Struts Tags in Weblogic 7.02

2005-06-16 Thread Karr, David
The only information I can give you is that this still fails in WebLogic 8.1. I noticed it quite a while ago. -Original Message- From: Alexander Krumeich [mailto:[EMAIL PROTECTED] Dear List, slightly off-topic post, but I thought that maybe someone here can give me a hint to

RE: JSTL and Struts together

2005-05-20 Thread Karr, David
If you look in the contrib folder of the Struts distribution, you'll find the struts-el distribution. This provides a taglib that just wraps the Struts tag library so that all tag attributes are passed through the JSTL EL engine, so you could do the following: %@ taglib

RE: question about jstl tag c:if

2005-04-26 Thread Karr, David
From a JavaBeans point of view, the dyna attributes are not attributes of the DynaValidatorForm, they are entries in a map that is an attribute of the DynaValidatorForm. So, the following should work: c:if test=${loginForm.map.singlesignon == '0'} /c:if -Original Message- From:

RE: Reg. JSTL expression.

2005-04-21 Thread Karr, David
What do you get when you add the following right before the c:if (including the square brackets): [c:out value=${param.MODE}/] -Original Message- From: Iyanu, Rajasekaran [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 2:29 AM To: Struts Users Mailing List Subject: Reg.

RE: Slightly Off topic: JSTL vs Bean tags w/ message resources

2005-04-19 Thread Karr, David
I'd say there's two approaches to dealing with this. In the scope of just this issue, I think bean:write is just a little more convenient, but there may be other considerations. One way would be to read in your properties file in an action and put them into application scope. That's probably

RE: html-el:submit 'value' attribute behavior change 1.2.0 to 1.2.6

2005-04-06 Thread Karr, David
Ah. It's good to trim element values, but probably not attribute values. Does this happen anywhere else? -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 3:50 PM To: Struts Users Mailing List Subject: Re: html-el:submit 'value'

RE: JSTL vs Logic

2005-04-01 Thread Karr, David
-Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] I am switching from using struts-logic tags to jstl and have a really basic question. An object stored in Application Scope has a method called getKeyValues() that returns an array list of beans, each having a

RE: Problems using JSTL with struts

2005-03-18 Thread Karr, David
I'm not sure what you mean by JSTL 2.0. Did you mean JSP 2.0? If you're really trying to use Struts in a JSP 2.0 container, then don't use Struts-EL. In that environment, the Struts tags will use the EL natively, and you'd use the JSTL version compatible with JSP 2.0 (not the one compatible

RE: nested loops with jstl

2005-03-06 Thread Karr, David
We can see the problem by reading the error message. You're iterating through a HashMap, which gives you Entry objects for each iteration. The only objects directly available to an Entry object are the key and value. So, change ${currentQuestion.answerOptions} to ${currentQuestion.value}, and I

RE: Newbie Page flow question

2005-02-17 Thread Karr, David
You'll have a form with at least two submit buttons. One to submit the form, and another to lookup some other data. You'll probably use a LookupDispatchAction (or something similar) to map each submit button to different methods in your Action class. The lookup method will lookup the data,

RE: [HELP] Using scriptlet to to generate a property

2005-02-16 Thread Karr, David
You probably have to remove the initial double-quote: html:link href='%= / + name + /index.jsp %' -Original Message- From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 8:46 PM To: Struts Users Mailing List Subject: [HELP] Using scriptlet to to generate

RE: html-el oddities

2005-02-16 Thread Karr, David
I suggest you set this up so you can step through this in your debugger. My theory is that somehow the association with the BeanInfo class is not happening. That would cause the symptom you're seeing, but I don't know how it could get into that state. -Original Message- From: Trevor

RE: Upgraded to WebLogic 9.0beta - and my html-el:option stopped working

2005-02-02 Thread Karr, David
Odd. It almost seems like html-el is mapped to the plain Struts TLD, and not the Struts-EL TLD. You didn't give the impression that you changed the app at all when you ported, so I don't expect that is likely. I would definitely trace this in a debugger. I wonder if WL 9 isn't correctly

RE: html taglib usage

2005-01-26 Thread Karr, David
I don't think it's practical to do that. You would probably be better off just using the raw HTML elements, but using the JSTL to reference your bean values (and even the EL directly, if you have a JSP 2.0 container). -Original Message- From: Thorhauer, John (Contractor) Hi, Is

RE: Where to send !isTokenValid(request)

2005-01-21 Thread Karr, David
I haven't had a lot of opportunity to validate this strategy, but I believe you have the right idea. Conceptually, the result from a double submit should just look as if it was a single submit. So, the second submit would bypass the processing logic and just forward to view the results that were

RE: problem submiting List-Backed Indexed ActionForm

2005-01-16 Thread Karr, David
If you don't understand how the code works, there's no better solution than running the application in your debugger and stepping through the Struts and Commons source code. When you get to the line that throws the NPE, you'll have the first clue about what's going wrong. You'll need to make

  1   2   >