Struts 2 UI Tags and OGNL self reference

2009-05-07 Thread stanlick
Sorry about that subject line, but I couldn't think of anything simpler. Besides, this should cover about all the searches! I am looking to pass a this reference into an OGNL expressions as follows: s:textfield key=name readonly=applyRule(this)/ Apparently this is not quite the right

Re: How to do matematical operation in jsp.

2009-04-21 Thread stanlick
Nice reference Wes! BTW, I noticed you are not using the new cover letter for the TPS reports, so I'm going to have to go ahead and ask you to read that memo one more time. Peace, the Bob's On Tue, Apr 21, 2009 at 11:11 AM, Wes Wannemacher w...@wantii.com wrote: [snip] OTOH, siphoning the

Re: How share information in a struts application

2009-04-18 Thread stanlick
Hey bro -- Have you read anything about Struts 2 or are you just trying stuff? The form bean is gone and the action is now the action-model. If you have accessible setters on your action-model, OGNL will graph those data onto your action-model. I would recommend a quick Google search for

2.1.6 ActionContext change?

2009-04-16 Thread stanlick
I just received notice that the ActionContext now throws NoSuchMethodError from this interceptor. I am advising to use HttpServletRequest request = ServletActionContext.getRequest (); however, I am surprised to learn about this break. private void dropCrumb(ActionInvocation invocation) {

Re: Creating a grid component in Struts 2

2009-04-03 Thread stanlick
Take a look at the DisplayTag http://displaytag.sourceforge.net/1.2/control. It kicks bootie. Peace, Scott On Fri, Apr 3, 2009 at 2:58 AM, Manoj Dhore manoj.dh...@sword-soft.comwrote: Hi, Is there anyway to create a grid control in Struts 2 or any default implementation of grid layout.

v2.1.6 -- s:url and s:param

2009-03-30 Thread stanlick
Can someone throw me a clue as to why s:param name=chd value=chd/ is converting the String returned from getChd() from this === t:60,40 to this === t%3A60%2C40 I have funked around with encode on the enclosing s:url .../ and cannot get the literal data inserted into the URL! P.S. I'm freak'n

Re: Jetty 6.x vs Tomcat 6.x

2009-03-20 Thread stanlick
Yeah, as it turns out, this was the culprit. Jetty 6.x had issues with the conditionality where TC 6.x did not. s:if test=%{#blog.content != 'NoPost' } ul li a s:action var=blog name=blog-menu1/ s:property

Jetty 6.x vs Tomcat 6.x

2009-03-18 Thread stanlick
Guys -- I have a loaded (Hibernate, Spring, Tiles) S2.1.6 application running on TC 6 and I want to speed up the development cycle. I have exhausted the trials to get TC 6.x to dynamically reload modified class changes and have reached the point where I have installed Jetty 6.x. My

Re: Required field only works with text fields?

2009-03-13 Thread stanlick
The required attribute only paints the asterisk -- it has nothing to do with actually requiring input. Nice huh? Peace, Scott On Fri, Mar 13, 2009 at 4:14 PM, Griffith, Michael * michael.griff...@fda.hhs.gov wrote: Hi all, I just noticed that the only required field validations that seem

Re: [OT] POM, licenses and dependency trees

2009-03-05 Thread stanlick
the comprehensive tree? Peace, Scott Wes Wannemacher wrote: On Tue, Mar 3, 2009 at 11:20 PM, stanlick stanl...@gmail.com wrote: Java != C? I realize the strength and duration of dependencies varies, and I understand the issues concerning use vs. redistribution. This notwithstanding, I am looking

[OT] POM, licenses and dependency trees

2009-03-03 Thread stanlick
How does a company go about fleshing out the aspects of FOSS without wasting so many people's time? As FOSS gains in popularity, we are sinking in a quagmire of manual research, analysis and legal license inspections. It seems the FOSSology product will unpack compressed files and sniff around

Re: [OT] POM, licenses and dependency trees

2009-03-03 Thread stanlick
Well, since necessity is the mother of all invention and I have been asked for a magic bullet that poops out a stack of licenses, I am becoming more creative. Consider the following simple dependency: project ... dependencies dependency groupIdorg.apache.struts/groupId

Re: [OT] POM, licenses and dependency trees

2009-03-03 Thread stanlick
dependency:resolve. Musachy Barroso wrote: well, for core, that should be it. On Tue, Mar 3, 2009 at 2:57 PM, stanlick stanl...@gmail.com wrote: Well, since necessity is the mother of all invention and I have been asked for a magic bullet that poops out a stack of licenses, I am becoming

Re: [OT] POM, licenses and dependency trees

2009-03-03 Thread stanlick
will give the script the three key Maven elements and it will cache out a tree. Peace, Scott Wes Wannemacher wrote: On Tuesday 03 March 2009 15:40:43 stanlick wrote: If you look at the POM for Struts 2.1.6 there are many more dependencies than what show up running dependency:resolve. I

Re: Struts2: change method to invoke on the fly??

2009-02-13 Thread stanlick
I'm not real sure what you have in mind here, but this works very nicely: action name=blah-* method={1} class=acme.action.BlahAction ... /action request for www.//blah-fred fires the fred() method and request for www.//blah-barney fires the barney method Peace, Scott

Re: Struts2.1.6 Tiles 2.1

2009-02-11 Thread stanlick
Thanks Antonio -- I'll give it a spin. Peace, Scott On Wed, Feb 11, 2009 at 2:42 AM, Antonio Petrelli antonio.petre...@gmail.com wrote: 2009/2/10 Jaarthy aarthyj...@yahoo.com: listener-class org.apache.struts2.tiles.StrutsTilesListener /listener-class Currently

2.1.6 mystery

2009-02-10 Thread stanlick
I just upgraded a website from 2.1.2 to 2.1.6. and something must have changed with respect to this style of action invocation because my site is broken! div class=main-content h1 class=pagetitleAbout/h1 div class=column1-unit p s:action var=cms name=cms-topstories/ s:property

Re: 2.1.6 mystery

2009-02-10 Thread stanlick
Does anyone have a clue why s:action var=cms name=cms-topstories/ is working differently between 2.1.2 and 2.1.6? I have looked many places and cannot see the usage pointed out anywhere. Is thishttp://struts.apache.org/2.1.6/docs/version-notes-216.htmlthe only hot sheet for differences? I'd

Re: 2.1.6 mystery

2009-02-10 Thread stanlick
Hey brother -- Actually, I believe the problem is with the action call itself s:action var=cms name=cms-topstories/ When this action is invoked, my CmsAction identifies the appropriate action name using getContext().getActionInvocation().getInvocationContext().getName(); which is now ALWAYS

Re: 2.1.6 mystery

2009-02-10 Thread stanlick
Thanks Musachy -- I really appreciate you pointing this out. I will review the changes to see if it would be cheaper to roll back to 2.1.2. This sort of change that breaks an application is troubling. Peace, Scott On Tue, Feb 10, 2009 at 1:54 PM, Musachy Barroso musa...@gmail.com wrote: I

Re: Maven and Struts 2 Stack

2009-01-31 Thread stanlick
version2.0.6/version /dependency while the latest you can pull out from sonatype's repo :) cheers, Edwin On Sat, Jan 31, 2009 at 1:05 AM, stanlick stanl...@gmail.com wrote: Greetings -- I am SO DONE with mucking around in dependencies that I am about

Re: Maven and Struts 2 Stack

2009-01-31 Thread stanlick
Thanks Dave -- I am looking for a seed POM like the one you describe. Does it contain gray poupon by chance? Scott On Fri, Jan 30, 2009 at 11:53 AM, Dave Newton newton.d...@yahoo.com wrote: stanlick wrote: I am SO DONE with mucking around in dependencies that I am about to scream! Until

Maven and Struts 2 Stack

2009-01-30 Thread stanlick
Greetings -- I am SO DONE with mucking around in dependencies that I am about to scream! Until recently, I thought real developers were in control of jars and the classpath, but as another year passes me by, I'm starting to rethink this whole deal. I installed the Maven 2 plug-in for Eclipse

Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread stanlick
Wes is right Dave... if the guy wants to buy a book, who are we to discourage it? Your demand will not be affected in the least! Also, I would like to give a shout out to the upcoming Struts 2 in Practice book. I have been reviewing it, and it absolutely rocks! Of course my boy Wes learned

Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread stanlick
Can I ask a personal question Dave? Does this have anything to do with your illiteracy? :) P.S. And why are you not finishing your leather bound volume? I already said I would pay in advance! On Sat, Jan 24, 2009 at 3:28 PM, Dave Newton newton.d...@yahoo.com wrote: The guy specifically said

Re: [S2] s:action in value stack?

2009-01-20 Thread stanlick
I would be careful about placing action execution logic in your view. This is really not the place to be making navigation decisions. On Mon, Jan 19, 2009 at 9:05 PM, dusty dustin_pea...@yahoo.com wrote: I have not researched this butthe way I understand it the action is executed and

Re: Struts 2 session problem

2009-01-19 Thread stanlick
I think you can get the unique handle to either a tab or new window created with Ctrl-N via the DOM. I remember trying this back when tabs came onto the scene. With that key you could use a Map in session to correlate the conversations. Peace, Scott On Sun, Jan 18, 2009 at 11:32 PM, dusty

Re: Stuts2 field validation problems

2009-01-16 Thread stanlick
Beware that if you remove the conversionError from your stack, whatever value was typed (that could not be converted) will *not* be represented when the screen is redisplayed. Dave's right about the message, but I have overridden the default message with the one below and it is a little more

Re: Upgrading Struts from 1 to 2.0.14

2009-01-15 Thread stanlick
Wes Obama -- You will make a fine Struts Czar once your publication is released. Please consider me for a cabinet position -- Newton can be my driver. Peace, Scott Struts 1 is well-supported, and saw a new release just about a month ago. So, it is supported and maintained. Struts 2 is a

expression type validator and getText()

2009-01-09 Thread stanlick
I need to fetch a locale specific string for an evaluation and cannot get the syntax worked out: field name=title field-validator type=expression param name=expression !title.toUpperCase().equals( getText(titleMatch) ) /param

Re: Performance issue

2009-01-06 Thread stanlick
This test sounds about as straightforward as parallel parking a freight train on a one lane road.

Using OGNL to set validator parameters

2008-12-17 Thread stanlick
Is there a way to avoid hard coding limits into a validator? Take for instance the IntRangeFieldValidator. It has a min and max property that are populated from the XML as per: field name=ageLimit field-validator type=int 0

expression validator NPE

2008-12-16 Thread stanlick
I have encountered a validation that seems to disrupt the S2 request life cycle. If I have the following validation and foo is not found on the stack, I do not get a result! validators field name=name field-validator type=expression

How to secure which HTTP parameters should be graphed onto model

2008-12-11 Thread stanlick
I am aware that OGNL will convert incoming parameters and apply them to the business model in my action. However, I would like to leverage role based permissions so that only authorized parameters are processed. What is the prescribed solution for this? Scott -- View this message in context:

Re: smart URLs

2008-12-10 Thread stanlick
Have you looked at Slinghttp://incubator.apache.org/sling/site/discover-sling-in-15-minutes.html? On Wed, Dec 10, 2008 at 2:04 AM, AndersLandberg [EMAIL PROTECTED]wrote: For a CMS project I require the following functionality: Translate/map a URL like

Re: [S2] Set textfield readonly property from action class

2008-11-30 Thread stanlick
I have used this technique and it works fine. Perhaps you should simply display the property on the web page to see what it actually contains. On Sun, Nov 30, 2008 at 7:21 AM, Milan Milanovic [EMAIL PROTECTED]wrote: Dear Khawaja, Thanks. I tried with Boolean too for action class edittinMode

Re: [S2] Set textfield readonly property from action class

2008-11-30 Thread stanlick
I had my workspace nearby and here is the relevant content MyAction private boolean readOnly = false; get/set MyPage s:textfield key=userName readonly=%{readOnly} size=40 required=true/ Peace, Scott On Sun, Nov 30, 2008 at 5:10 AM, Milan Milanovic [EMAIL PROTECTED]wrote: No one knows how to

Re: [S2] Set textfield readonly property from action class

2008-11-30 Thread stanlick
s:textfield id=id label=Id name=id readonly=%{edittingMode)/ As I was pressing send, I noticed you have a closing parenthesis instead of brace! That is not going to be good for anyone. On Sun, Nov 30, 2008 at 5:10 AM, Milan Milanovic [EMAIL PROTECTED]wrote: No one knows how to do this

Re: Manage Sessions in Struts

2008-11-30 Thread stanlick
What? Are there solutions that are not web-based? :) On Sun, Nov 30, 2008 at 6:11 AM, Paweł Wielgus [EMAIL PROTECTED] wrote: Hi Dani, the only solution i can imagine in this case is to invalidate session from first browser when the same user logs in with the second browser - it would

Re: Tiles and Validate

2008-11-28 Thread stanlick
Tiles and validations work fine together. Can you post some code? On Wed, Nov 26, 2008 at 5:39 AM, mthalis [EMAIL PROTECTED] wrote: It is possible to use tiles and validation(validation forms data) in same project. if it is possible please give me reference or sample project. please help

Struts 2 in Action

2008-11-25 Thread stanlick
Hey all -- Not sure who is in the area, but I will be presenting Struts 2 at the St. Louis Gateway JUG next Tuesday evening (Dec 2). You can get directions to the meeting here: http://www.gatewayjug.org/ Peace, Scott -- View this message in context:

Re: Struts2 OGNL Problem

2008-11-14 Thread stanlick
Have you tried using s:iterator/ Also, this works as well: c:forEach items=${employees} var=currRow varStatus=loopStatus tr td ${currRow.id} /td... Peace, Scott On Fri, Nov 14, 2008

Re: [s2] OGNL expression for referring to one key-value Map pair

2008-11-14 Thread stanlick
s:form theme=simple s:submit action=employeeAction_saveAndRedisplay / s:iterator value=employees tr td !-- key was 7932F and leaving the single ticks off

Struts 2 Tiles plug-in

2008-11-12 Thread stanlick
I am reviewing Tiles 2.1 for an upcoming project. This recent version of tiles supports wildcard definitions, EL, and a few other features that nearly eliminate the XML-HELL that is tiles-defs.xml. It looks like the struts2-tiles-plugin-2.1.2.jar is not compatible with Tiles v 2.1.0 and I would

Struts 2 and Tiles 2.1.0

2008-11-09 Thread stanlick
I would like to use EL in tiles definitions. Is it supported by Struts 2.x and is there a recipe for this? I downloaded Tiles 2.1.0 and reviewed the changes, but the web.xml has undergone radical change and I thought I'd do a little fact finding before performing open heart surgery on my

Re: What are Pros and Cons for Struts 2?

2008-11-07 Thread stanlick
I would add access to folks here on the mailing list is akin to having access to the developers in many cases. Unlike customer support for some commercial software, your questions here are actually understood! Peace, Scott On Thu, Nov 6, 2008 at 10:48 PM, ryan webb [EMAIL PROTECTED] wrote:

Re: How traumatic is to migrate from struts version 1.2 to struts version 2.0 ???

2008-11-07 Thread stanlick
While it it possible to migrate a Struts 1.x site to Struts 2, it would be better use of your time to write any new applications using S2 and let existing S1 sites churn along. It is possible for the two to coexist. On Fri, Nov 7, 2008 at 11:31 AM, Ariel [EMAIL PROTECTED] wrote: Hie everybody:

Re: ModelDriven interceptor after execute

2008-10-28 Thread stanlick
call the setModel at the end of your action? On Tue, Oct 28, 2008 at 4:33 AM, Alexander Baetz [EMAIL PROTECTED]wrote: Hi, inside the execute method of an action i'm retrieving an Object. I want the ModelDriven-Interceptor, to put it on the Stack when execute is done. One solution would be

Re: disable a button if not selected any value

2008-10-25 Thread stanlick
Keep in mind that when you program these requirements using javascript that an end user can turn your requirements off. I see this all the time when a form is asking me for too much data. Click Tools - Options - Enable Java Script and most of the time the next page you see is Thanks for signing

Re: Unit Testing Action Classes that are Aware

2008-10-24 Thread stanlick
Unless you really *need* to bind your actions to Http* types, you should use RequestAware. This allows the same end goal indirectly through a Map. Scott On Fri, Oct 24, 2008 at 7:10 AM, Nick Maunder | Oathouse [EMAIL PROTECTED]wrote: Hi I'm fairly new to Struts 2 I'm looking for a way

Re: Unit Testing Action Classes that are Aware

2008-10-24 Thread stanlick
Then perhaps you are reading the wrong book yo! If it's the session you wish, then implement SessionAware. These POJOish interfaces make testing a cake walk. On Fri, Oct 24, 2008 at 7:25 AM, Nick Maunder | Oathouse [EMAIL PROTECTED]wrote: Ah ... my book doesn't mention RequestAware at all...

RE: Re: The Struts dispatcher cannot be found

2008-10-24 Thread stanlick
logging to 11 on s2, xwork, tiles, and ognl. Not sure why the exception page would be hit w/ *no* exception but I could imagine that there could be an exception after the page/response has been written to... Is the 'right' page rendered *completely*? Dave stanlick wrote: When I dig deeper

Re: The Struts dispatcher cannot be found

2008-10-23 Thread stanlick
When I dig deeper into this, I see the problem is with a oops.jsp I have configured in my struts.xml as global-results result name=exceptionLogger type=dispatcher/oops.jsp/result /global-results Now here is the strange part -- my request

Re: Re: The Struts dispatcher cannot be found

2008-10-23 Thread stanlick
could imagine that there could be an exception after the page/response has been written to... Is the 'right' page rendered *completely*? Dave stanlick wrote: When I dig deeper into this, I see the problem is with a oops.jsp I have configured in my struts.xml as global-results

Re: Struts 2: Can not set Action's property which is an array of Strings

2008-10-23 Thread stanlick
Maybe you should consider buying an off-the-shelf web application or slowing down a little to read the documentation. Popping in and asking for snippets of code for this and a sample file to do that only shows that you are looking for someone else to do your work. Have you searched *this*

The Struts dispatcher cannot be found

2008-10-22 Thread stanlick
I started a new Struts 2 project today with Tiles and Spring. My default result type is tiles and everything works alright as long as you don't look at the console! For some strange reason there are numerous messages like the following: The Struts dispatcher cannot be found. This is usually

Re: Remove [EMAIL PROTECTED]

2008-10-22 Thread stanlick
PLEASE BAG THIS USER!!! On Tue, Oct 21, 2008 at 12:24 PM, Nils-Helge Garli Hegvik [EMAIL PROTECTED]wrote: I agree. On Mon, Oct 13, 2008 at 10:49 AM, Lukasz Lenart [EMAIL PROTECTED] wrote: Hi, Could someone remove this email from list? It's very annoying ;-( Regards --

Re: [S2] best way to share data between actions

2008-10-16 Thread stanlick
This is the million dollar question! Always strive to hold onto the least amount of data possible. This usually means for as long as it takes to build the web page.Use the request scope unless you *must* access the *same* data later. At which point you should save only *keys* to the actual

Re: Struts 2 CRUD Question

2008-10-10 Thread stanlick
No. Hibernate will not affect Struts's action creation. You don't by chance have your action is Spring do you? If so, make sure the scope is prototype or you will see the same action instance over and over. Scott On Fri, Oct 10, 2008 at 6:49 AM, Gawain Hammond [EMAIL PROTECTED]wrote:

Re: Global-exception handler

2008-10-10 Thread stanlick
How about this instead -- Is the ActionContext exposed to a JSP other than using the static getContext() method? stanlick wrote: I have a global exception handler registered, which is itself an action mapping. I am trying to ascertain what happened by accessing ActionContext.getContext

S2 2.1 OGNL Diffs?

2008-10-09 Thread stanlick
Does anyone know why this does not work in 2.1? It used to return the action name. name: s:property value=@[EMAIL PROTECTED]().actionInvocation.proxy.actionName/ -- View this message in context: http://www.nabble.com/S2-2.1-OGNL-Diffs--tp19900205p19900205.html Sent from the Struts - User

Re: S2 2.1 OGNL Diffs?

2008-10-09 Thread stanlick
Well no I don't sir! Was this property changed/added in 2.1? Is there a reason the default is false? Peace, Scott Musachy Barroso wrote: Do you have static method invocation enabled? On Thu, Oct 9, 2008 at 10:32 AM, stanlick [EMAIL PROTECTED] wrote: Does anyone know why this does

Global-exceptiion handler

2008-10-09 Thread stanlick
I have a global exception handler registered, which is itself an action mapping. I am trying to ascertain what happened by accessing ActionContext.getContext().getActionInvocation().getProxy() inside this action class, but the invocation has now moved on to that of the exception action! Is

Re: tag for formatting date or time using type and style, not pattern

2008-10-08 Thread stanlick
Any idea how to get language specific validations? e.g. SomeAction-validation_fr.xml Scott On Mon, Oct 6, 2008 at 11:24 AM, Chris Pratt [EMAIL PROTECTED]wrote: One way is to use the s:text tag. If you define an entry in your application properties file similar to:

Global-exception-mapping glitch

2008-10-08 Thread stanlick
I have an exception configuration as follows: global-exception-mappings exception-mapping exception=java.lang.Throwable result=exceptionLogger/ /global-exception-mappings If an action throws an exception my logger works fine. However, if the Struts DefaultActionProxy is unable to

Re: Global-exception-mapping glitch

2008-10-08 Thread stanlick
. http://struts.apache.org/2.x/docs/exception-configuration.html -Wes PS - http://manning.com/wannemacher/ (whip out that AMEX and get on it!) On Wed, Oct 8, 2008 at 12:27 PM, stanlick [EMAIL PROTECTED] wrote: I have an exception configuration as follows: global-exception-mappings

Re: Global-exception-mapping glitch

2008-10-08 Thread stanlick
: On Wed, Oct 8, 2008 at 12:45 PM, stanlick [EMAIL PROTECTED] wrote: I decided to pass up lunch and crack the code open. The DefaultActionProxy tries to find the namespace/action and if it cannot, searches for the UnknownHandler rather than throw a 404. I have discovered that adding

Re: Global-exception-mapping glitch

2008-10-08 Thread stanlick
, stanlick [EMAIL PROTECTED] wrote: You read my mind bro! CodebehindUnknownHandler was the only class implementing UnknownHandler! You know, this http://struts.apache.org/2.x/docs/plugins.html Extension Points table really needs updating. Would it be safe to search the code base for @Inject

Re: Custom Tag Libs

2008-10-08 Thread stanlick
David -- I would strongly discourage you from writing your own custom tags until you discover there is not already one in the box! Besides Struts 2, you still have all the JSTL tags available as well. If by old school you mean you haven't looked around the available tags today, your best bet

Re: custom tags and struts

2008-09-27 Thread stanlick
I think many developers slept through the Java Beans specification! Either this, or they confused it with EJB! On Sat, Sep 27, 2008 at 9:58 AM, Wes Wannemacher [EMAIL PROTECTED] wrote: I could be wrong, but I don't think EL can access static fields or methods. The easiest thing would be to

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
#constants 2008/9/22 stanlick [EMAIL PROTECTED]: I encountered a very strange situation today. I had the following in a web page: s:iterator value=employees s:textfield name=employees[%{key}].id .../ where the get method in my action was: public MapString

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
and you need to quote it accordingly. [1] http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/basicExpressions.html#constants 2008/9/22 stanlick [EMAIL PROTECTED]: I encountered a very strange situation today. I had the following in a web page: s:iterator

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
: type erasure. There is no way to 'glean the generic type' of a collection at runtime. L. Gabriel Belingueres wrote: I agree too. 2008/9/23 stanlick [EMAIL PROTECTED]: I agree totally! If the TypeDeterminer had called getEmployees() which it clearly did for iterator *and* had bothered

Custom tag and map-backed action

2008-09-22 Thread stanlick
I encountered a very strange situation today. I had the following in a web page: s:iterator value=employees s:textfield name=employees[%{key}].id .../ where the get method in my action was: public MapString,Employee getEmployees() The employee id 7932F was being interpreted as 7932!

Re: ExecuteAndWaitInterceptor problem

2008-09-18 Thread stanlick
I included an example of this in our Struts 2 in Action book using JSP. On Wed, Sep 17, 2008 at 12:28 AM, ravindra [EMAIL PROTECTED] wrote: Thanks for the replay. I got this working if I use a freemaker template as my result. The content of the file is below. html head meta

Re: question: indexed textfields and maps

2008-09-17 Thread stanlick
Your get/set method signatures provide a *huge* hint to the conversion magic logic. If you are curious to see how this actually works, take a look at Ognl, OgnlUtil amd OgnlRuntime. If you can make it through the reflection code, it is quite amazing. Scott tREXX - wrote: Hi Dave,

Validation messages

2008-09-16 Thread stanlick
Does anyone know of a way to refer to a key from a value within a property file? Consider this: s:textfield key=employee.department/ employee.department=Employee Department requiredstring=${getText(fieldName)} is required This results in the message employee.department is required. What I

Re: Variable input target

2008-09-16 Thread stanlick
}.jsp/result Does the framework retain the request that failed anywhere? stanlick wrote: Is there a way to determine the request that failed validation such that *it* could be the target of the input result mapping? I have a couple pages being validated within a single wildcard mapping

Re: Validation messages

2008-09-16 Thread stanlick
You so right! I had the key/values in the WRONG resource file. Thanks bro. P.S. Now can you solve the variable result input problem? newton.dave wrote: --- On Tue, 9/16/08, stanlick wrote: s:textfield key=employee.department/ employee.department=Employee Department requiredstring

Re: [S2] Struts.xml and Package tag

2008-09-11 Thread stanlick
What package/class contains your String name = invocation.getProxy().getConfig().getPackageName(); On Thu, Sep 11, 2008 at 5:46 AM, Roger [EMAIL PROTECTED] wrote: I have a struts.xml with two package tags. The first package is named package name=default extends=struts-default and contains

How to overwrite default setting in Struts2

2008-09-08 Thread stanlick
Has struts.configuration.files been removed from 2.1.1? Laurie Harper wrote: Shuai Zheng wrote: Dear All, I try to use my own setting to overwrite the default settings. Following line is added into my struts.properties:

Re: REST plug-in Tiles

2008-09-07 Thread stanlick
Thanks bro. We have a big S2 app where every package uses tiles as the default result type. Tiles definitions are the name of the game. I too think dependencies between plug-ins should be mitigated. Peace, Scott On Sat, Sep 6, 2008 at 7:34 PM, Jeromy Evans [EMAIL PROTECTED] wrote: [EMAIL

Configuration precedence

2008-09-07 Thread stanlick
Does this table imply file precedence and setting overrides? http://struts.apache.org/2.x/docs/configuration-files.html

Re: REST plug-in Tiles

2008-09-06 Thread stanlick
I don't understand how the codebehind or convention plug-in could provide the inheritance and layout functionality of tiles. Moreover, we use conventions to tag CSS to tile definitions. Can you elaborate please? On Fri, Sep 5, 2008 at 8:41 PM, Jeromy Evans [EMAIL PROTECTED] wrote: stanlick

Re: Default includeParams value, was: Re: [S2] s:select and Integer lists

2008-09-06 Thread stanlick
I must add that the documentation is seemingly a mash-up of varying struts 2 versions (2.1 vs =2.1) and somewhat obtuse. I think with marked differences in implementation, the docs should be more clearly delineated. RTFM is fine when it exists, is complete and is accurate. Imagine the evolution

REST plug-in Tiles

2008-09-05 Thread stanlick
Does the plug-in support tiles definition names in its search? -- View this message in context: http://www.nabble.com/REST-plug-in---Tiles-tp19339428p19339428.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: [S2] s:select and Integer lists

2008-09-05 Thread stanlick
If getting one of these tags to work requires either leaving an attribute off or intValue() or %{intValue()} Should it be referred to as intelligent? I seriously think these crazy S2 tags are causing new Struts 2 users more pain than they are worth. Lyallex wrote: 2008/9/5

Re: S2 tags - dynamic attributes

2008-09-04 Thread stanlick
More like... Ah... hrm. Tell 'em look at the TLD, then tell 'em to check the freemarker template, then tell 'em they might have to escape the attribute. I love Java. On Wed, Sep 3, 2008 at 8:05 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Wed, 9/3/08, Wes Wannemacher wrote: If the TLD

Re: on the chrome bandwagon

2008-09-04 Thread stanlick
My Synaptics touch pad will scroll down BUT NOT up! On Wed, Sep 3, 2008 at 9:40 PM, Jeromy Evans [EMAIL PROTECTED] wrote: dynamicd wrote: Well i Just caught something. For some reason my listentopics or action from the form is not working It shows loading.. in the Chrome browser. but never

Re: REST Showcase 2.1.2

2008-09-01 Thread stanlick
around that baby! I'm getting the feeling that REST is not ready for prime time. I too wondered why it was excluding edit, editNew. I'm sure there was a reason. Peace, Scott On Mon, Sep 1, 2008 at 8:09 AM, Jeromy Evans [EMAIL PROTECTED] wrote: stanlick wrote: Also, what is the naming

Re: REST Showcase 2.1.2

2008-09-01 Thread stanlick
the feeling that REST is not ready for prime time. I too wondered why it was excluding edit, editNew. I'm sure there was a reason. Peace, Scott On Mon, Sep 1, 2008 at 8:09 AM, Jeromy Evans [EMAIL PROTECTED] wrote: stanlick wrote: Also, what is the naming convention for validation xml files

Re: REST Showcase 2.1.2

2008-09-01 Thread stanlick
. Peace, Scott On Mon, Sep 1, 2008 at 8:09 AM, Jeromy Evans [EMAIL PROTECTED] wrote: stanlick wrote: Also, what is the naming convention for validation xml files using the Code Behind/REST plug-in? I've tried several combinations of naming, but none seem

Re: REST Showcase 2.1.2

2008-08-30 Thread stanlick
, Scott Jeromy Evans - Blue Sky Minds wrote: stanlick wrote: So any ideas why the model is being created inside the action and not injected by the framework? private Order model = new Order(); I think Don was just being lazy in the quick example ;-) I load or create the model

Re: REST Showcase 2.1.2

2008-08-29 Thread stanlick
the struts style: many ways of doing the same thing) musachy On Fri, Aug 29, 2008 at 7:05 PM, stanlick [EMAIL PROTECTED] wrote: Is there a reason the lifecycle will not create the model object Order on action instantiation? I notice it is being constructed during the Action initialization

Re: REST Showcase 2.1.2

2008-08-29 Thread stanlick
So any ideas why the model is being created inside the action and not injected by the framework? private Order model = new Order(); newton.dave wrote: --- On Fri, 8/29/08, stanlick [EMAIL PROTECTED] wrote: Also, what's with the ModelDriven refreshModelBeforeResult? I haven't seen

Re: REST Showcase 2.1.2

2008-08-29 Thread stanlick
Also, what is the naming convention for validation xml files using the Code Behind/REST plug-in? I've tried several combinations of naming, but none seem to work. -- View this message in context: http://www.nabble.com/REST-Showcase-2.1.2-tp19228759p19229925.html Sent from the Struts - User

REST 2.1.2

2008-08-28 Thread stanlick
Has anyone experienced a problem with a trailing front slash being added to the generated URL?

Re: REST 2.1.2

2008-08-28 Thread stanlick
Thanks Jeromy :jumping: Have you considered the transparency of the REST URL as it relates to security and tampering? Would something like Acegi provide a solution? Also, have you considered the likliehood of a user discovering parms that can be passed and mapped onto your action? I am

Re: Struts 2.1.2 REST plug-in

2008-08-27 Thread stanlick
] wrote: On Tue, Aug 26, 2008 at 5:43 PM, stanlick [EMAIL PROTECTED] wrote: I have decided to dive into the beta blue water! I sort of have things working, but... How does the plug-in work when using namespaces? The struts2-rest-showcase-2.1.2 uses the default and I am running

Re: Struts 2.1.2 REST plug-in

2008-08-27 Thread stanlick
advantage of namespaces if you are not configuring your actions in XML? This would seem to have simply moved configuration into the actions. :( Peace, Scott On Tue, Aug 26, 2008 at 5:10 PM, Musachy Barroso [EMAIL PROTECTED] wrote: On Tue, Aug 26, 2008 at 5:43 PM, stanlick [EMAIL PROTECTED

<    1   2   3   4   5   6   >