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

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

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 (http://cwik

RE: Loading and Calling Java Script in Struts

2008-11-21 Thread Karr, David
You might be better off with something like this: > -Original Message- > From: Casinova [mailto:[EMAIL PROTECTED] > Sent: Friday, November 21, 2008 1:09 PM > To: user@struts.apache.org > Subject: Re: Loading and Calling Java Script in Struts > > > thanks for suggestion > i have stru

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 Ajax-

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 e

RE: [OT] What slows you down?

2008-06-20 Thread Karr, David
2008 11:16 AM > To: Struts 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:

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

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 Mod

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: Some confusion trying to do ajax form submit

2008-06-16 Thread Karr, David
t of regular expressions: > > > dojo\..* > > > 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 think the client side is getting

RE: Some confusion trying to do ajax form submit

2008-06-16 Thread Karr, David
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 have a simple page with validation that I got working with a > > conve

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 &g

RE: Some confusion trying to do ajax form submit

2008-06-15 Thread Karr, David
, and that causes the exception I'm seeing. > -----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.Express

RE: Some confusion trying to do ajax form submit

2008-06-15 Thread Karr, David
-Original Message- > From: Musachy Barroso [mailto:[EMAIL PROTECTED] > Sent: Sunday, 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

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 norm

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: Looking for example of JSON plugin

2008-04-05 Thread Karr, David
Never mind. I wouldn't mind seeing other examples, but I was able to get the examples from the wiki page to work. > -Original Message- > From: Karr, David > Sent: Saturday, April 05, 2008 8:27 AM > To: Struts Users Mailing List > Subject: Looking for example of JS

Looking for example of JSON plugin

2008-04-05 Thread Karr, David
I was interested in trying the JSON plugin. The Wiki page, although informative, isn't a complete example. Is there a good example somewhere that I can integrate into a test application to experiment with? - To unsubscribe, e-ma

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 th

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 p

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 po

RE: Any issues using latest Dojo with Struts2?

2008-03-22 Thread Karr, David
;d imagine escaping the > $ would work, although I haven't tried it. > > Dave > > --- "Karr, David" <[EMAIL PROTECTED]> wrote: > > > The following link into the "Dojo Book" has an example. There are > > others throughout the book

RE: Any issues using latest Dojo with Struts2?

2008-03-20 Thread Karr, David
rsday, March 20, 2008 1:41 PM > 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 l

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 additi

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 hav

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. > -Origi

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 suppose

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-05 Thread Karr, David
: Simple helloworld test fails with "Could 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

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

2008-03-05 Thread Karr, David
ld test fails with "Could not > find 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: > >

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

2008-03-05 Thread Karr, David
could you remove the namespace bit on > the package and see 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]

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

2008-03-05 Thread Karr, David
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: W

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- > >

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 bu

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

2008-03-05 Thread Karr, David
IRA for issues involving devmode, and all of them appeared to be resolved. In any case, I'm moving 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

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

2008-03-05 Thread Karr, David
F such as > > web.xml > struts-xml > struts-config.xml > 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 layou

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

2008-03-05 Thread Karr, David
84 4) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595) > > Karr, David wrote: > >> -Original M

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

2008-03-05 Thread Karr, David
integration.xml > struts-jsf.xml I've already attached the only configuration files present in the app, being the web.xml and struts.xml. I don't have any of those other files. > - Original Message - > From: "Karr, David" <[EMAIL PROTECTED]> > To: &qu

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

2008-03-05 Thread Karr, David
; has no class. Take that back :) . Yes, I know that. That's the point. "main2" has 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 els

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

2008-03-05 Thread Karr, David
forward for > "success" to /main.jsp > main2 - implemented by ActionSupport, with a forward for > "success" to /main.jsp and you're using the default > interceptors. It is configured correctly. > > Karr, David wrote: > > I'm sure I hav

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

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

2008-03-05 Thread Karr, David
oes the index action look like? What does it return? > And what's in /jsp/index.jsp? It's not just a copt of > /index.jsp is it, with the same redirect directive...? ;-) > > L. > > Karr, David wrote: > > Note that the "index.jsp" at the root of the webapp

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

2008-03-04 Thread Karr, David
ing. I 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: St

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

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 are

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

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

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 (whic

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: [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: 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 sho

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. I

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 Ma

RE: Error while running struts blank on Weblogic 8.1

2007-02-07 Thread Karr, David
uts jars in its distribution if > its not part of standard 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 PR

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, Fe

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 eve

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 independen

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; > > > > Wha

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 poin

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

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 libra

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:

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 . 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

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: 'St

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 i

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

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: > > <%@

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 co

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

RE: nested and

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 cod

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 you

RE: EL expression not getting evaluated

2005-06-29 Thread Karr, David
/29/2005 1:42 PM To: Struts Users Mailing List; Rahul Akolkar Subject: Re: EL expression not getting evaluated If it is so.. why is my expression not getting evaluated... ${partItem.intproperty} --- Rahul Akolkar <[EMAIL PROTECTED]> wrote: > On 6/29/05, Karr, David <[EMAIL PROTECTED]>

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 PROTECT

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 WEB

RE: jsp vs jstl in Math

2005-06-23 Thread Karr, David
y third party > contibs. Others, correct 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 tag

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: 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 hin

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 uri="http://java.sun.

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: > -Original Message- > From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] > > H

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): [] > -Original Message- > From: Iyanu, Rajasekaran [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 21, 2005 2:29 AM > To: Struts Users Mailing List > Subject: Reg. JSTL expression. > >

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 o

RE: '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: 'value' attribute behav

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 >

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 w

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.valu

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, store

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: [HELP] Using scriptlet to to generate a property

2005-02-16 Thread Karr, David
You probably have to remove the initial double-quote: > -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 a property > > > '> > > I don't know

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 utili

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, >

  1   2   >