RE: implementaiton advise on custom TextProvider

2012-10-16 Thread stanlick
Spring MVC might be a consideration! (wink) On Oct 16, 2012 1:26 PM, Davis, Chad chad.da...@emc.com wrote: Okay. I'm following this path. I've got the Spring Plugin in place. And it's working. I verified it by autowiring a trivial spring bean into one of my actions. But when I try

Re: AJAX Advice

2012-04-17 Thread stanlick
Take a peek at this http://struts2-jquery.appspot.com/home.action On Tue, Apr 17, 2012 at 2:13 AM, shobbi sho...@dataspectrumllc.com wrote: Hi all, your advice is greatly appreciated. I need to use AJAX in my Struts2 2.1.8 web application. What is the best option? I see DOJO mentioned in

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread stanlick
Dave is right Emi. I have been working with other frameworks recently, and what Struts/2 needs is a simple FlashScope that allows a request to last two life-cycles. However, unless you were doing something OOTO, a request in Struts/2 lasts for one reqest/response trip. Peace, Scott On Tue, Jul

Re: [S 1.3.8] Adding tag lib

2011-05-20 Thread stanlick
each page needs the taglibs. remember each jsp must be complied first, and without the taglib directives, the compile would fail. peace, scott On May 20, 2011 2:04 PM, Anjib Mulepati anji...@hotmail.com wrote: Hi, I have a query regarding adding tag lib in web pages while using tiles. Is it

Re: Recommended number of forms in one action

2011-04-19 Thread stanlick
Great answer Eric! I would also add that using wildcard methods for the express purpose of minimizing the number of actions you have is bad medicine. I'm not suggesting you are, but I have seen this on client projects where they were more interested in check-in/check-out of a single action than

Re: Select collection not found only when validation xml file is used

2011-04-13 Thread stanlick
Though his eyes could see he still was a blind man lol On Wed, Apr 13, 2011 at 10:27 AM, Eric Lentz eric.le...@sherwin.com wrote: I'm now buying what you're selling. I did have a misunderstanding about when the JSP is called relative to validation. I once was blind, but now I see. Thanks for

Re: Select collection not found only when validation xml file is used

2011-04-12 Thread stanlick
Do you by chance need a @SkipValidation on a method(s) in your action? How have you named your validation file? On Apr 12, 2011 2:27 PM, Eric Lentz eric.le...@sherwin.com wrote: since I don't use that XML Validation stuff. What do you use?

Re: Wildcard pattern not calling interceptor?

2011-04-08 Thread stanlick
You should never allow JSP pages to be accessed directly. Place them behind WEB-INF and your problem goes away. On Thu, Apr 7, 2011 at 8:46 PM, Dave Shevett d...@homeport.org wrote: I have an app that uses a generic interceptor on all action calls to verify if the session is active, and if it

Re: [maybe OT] Detecting if a new window or tab was opened (server-side)

2011-03-16 Thread stanlick
Your questions are too difficult! Can you please rephrase? Peace, Scott On Wed, Mar 16, 2011 at 4:25 PM, Wes Wannemacher w...@wantii.com wrote: Does anyone know of a good trick to detect whether a new window or tab was opened by the user... Here is the scenario, a user is looking at a view

Re: Handling wildcard action names with dot.

2011-03-01 Thread stanlick
I haven't looked at this for some time, but open up DefaultActionMapper and have a look. You can always substitute your own implementation if the outta-the-box is not what you are looking for. Peace, Scott On Tue, Mar 1, 2011 at 7:59 AM, GF gan...@gmail.com wrote: I configured struts to

Re: Problem with s:hidden

2011-02-26 Thread stanlick
The eclipse jsp validator is a worthless bag of bolts. On Feb 25, 2011 4:17 PM, Frank Serkland fhserkl...@gmail.com wrote: I have the following form in my JSP. The hidden field in this form, which I have verified with the documentation as having correct syntax as far as Struts 2 goes, is

Re: Changing The Result Page

2011-02-01 Thread stanlick
Have you considered Sitemesh? On Tue, Feb 1, 2011 at 11:50 AM, Richard Sayre richardsa...@gmail.comwrote: I am making a mobile site for my current web application. I have a huge number of actions that return to JSP pages. I have a mobile detection class written. Is there a way that I can

Convention plugin vs. wildcard mapping

2011-01-28 Thread stanlick
When it comes to an existing wildcard action mappings in XML (customer_*) where you have several methods in the Customer action, would this require an annotation on each of the methods in the action if this were to be converted to convention? If so, I get the impression this is a case where the

Notable sites using Struts2

2011-01-27 Thread stanlick
Does anyone know of a reasonably good list of the top 10 or more sites running on Struts2? I have been asked to do a little fact-finding and the tools I am using pretty much stop at Java EE and don't tell much about the details. Job searches compiled yesterday suggest Walt Disney, Netflix and

Re: reloading config i18n

2011-01-25 Thread stanlick
With 2.2.1, shove all this in your struts.xml and if it works, just smile and don't look back: constant name=struts.devMode value=true / constant name=struts.i18n.reload value=true / constant name=struts.custom.i18n.resources value=global-messages / constant name=struts.configuration.xml.reload

Re: reloading config i18n

2011-01-25 Thread stanlick
I'm on 2.2.1 and they are being reloaded when using those config settings. However, I believe it took them all (or some weird combination) before they would load! On Tue, Jan 25, 2011 at 2:20 PM, CRANFORD, CHRIS chris.cranf...@setech.comwrote: Do I have to be on 2.2.1 for all this to work? I

Re: Struts mapping failing when using struts2-convention-plugin

2011-01-24 Thread stanlick
stanlick stanl...@gmail.com: Do you guys know if using the convention plugin is mutually exclusive of having an action mapping xml file? IOW, is the convention plugin an all or nothing proposition? I know it alters the request handling machinery but cannot find anywhere in the docs

Re: Struts mapping failing when using struts2-convention-plugin

2011-01-23 Thread stanlick
Do you guys know if using the convention plugin is mutually exclusive of having an action mapping xml file? IOW, is the convention plugin an all or nothing proposition? I know it alters the request handling machinery but cannot find anywhere in the docs if it is expected to play alongside

Re: using a custom Converter for elements of a Collection

2011-01-12 Thread stanlick
Can we see your related files? On Wed, Jan 12, 2011 at 3:43 PM, Scott Koenig scott.l.koe...@gmail.comwrote: Hello, In my company's internal CMS, we are implementing two new asset types, Videos and Playlists (collections of Videos). In the Video UI, the user designates which Playlists are to

Re: Multiple Submit Buttons problem in Struts2

2011-01-02 Thread stanlick
How about something like this? s:form namespace=/customer s:hidden key=domain.id / s:textfield key=domain.firstName / s:textfield key=domain.lastName / s:textfield key=domain.address1 / s:textfield key=domain.address2 / s:textfield key=domain.city / s:textfield key=domain.state / s:textfield

Re: Precedence

2011-01-02 Thread stanlick
Do you need to write the method called super()? I Couldn't resist S On Thu, Dec 30, 2010 at 4:29 PM, Dave Newton davelnew...@gmail.com wrote: So, what might happen if you called it (super()) in validate()? I mean, I apologize for not just outright telling you, but I really like it when

Re: Authorization/ Authentication

2010-12-28 Thread stanlick
Dave is right in that there are truly a dozen ways to do this. However, Struts does not have an out-of-the-box solution governing user/role level permissions. Does your company have a user user based permissions system in house today where permissions are determined according to the user logged

Re: Struts 2 JSR-303 Bean Validation Support

2010-12-20 Thread stanlick
Not quite sure what that means. JSR303 is an annotations based validation API and you could certainly add your own JSR303Interceptor at the appropriate point in the stack. On Mon, Dec 20, 2010 at 10:41 AM, Alfredo Manuel Osorio Martinez alfredo.oso...@afirme.com wrote: Hello, Does Struts 2

Re: Parameter manipulation

2010-12-17 Thread stanlick
David -- You could override the ParametersInterceptor with your own that validates requester role/parms/url. I have used this approach to throw away not-authorized parms altogether. Scott On Fri, Dec 17, 2010 at 8:54 AM, Altenhof, David Aron dalte...@iupui.eduwrote: The model objects are

Re: Parameter manipulation

2010-12-17 Thread stanlick
Guys -- If the action has no setter and the property is private, S2 will not populate it. Scott On Fri, Dec 17, 2010 at 11:10 AM, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote: David, I get your point. Scott is right, you could overwrite PI or maybe write your custom interceptor

Re: Parameter manipulation

2010-12-17 Thread stanlick
I agree S2 will create the bean (if null) but it can't set a property that is private and has no accessible setter method. P.S. What am I missing here? Scott On Fri, Dec 17, 2010 at 11:45 AM, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote: This happens because bean is null, otherwise

Re: Parameter manipulation

2010-12-17 Thread stanlick
That would certainly eliminate the email being set! :) Sorry about that. What I have done is combine a security system based on user/role/url/valid-parameter list with the ParametersInterceptor and throw away any unauthorized parameters. This was quite an undertaking and my company is not

Re: Convention without REST

2010-12-15 Thread stanlick
Thanks Allen -- I modified the remove() to return SUCCESS and it only resulted in a different error; namely: *Messages*: No result defined for action com.foo.actions.music.InstrumentsAction and result success From all the reading (source code is next) it sure seems like *

Convention without REST

2010-12-14 Thread stanlick
I began writing about the 2.2.1 convention plugin and naturally started writing code. I especially like not having to code XML when my file naming is clean and straightforward. I started off with a package named *com.foo.actions.music* which resolves to the namespace (URL)* /music*. Next I

Re: [S2.2.1] Struts Type Converter for sub-model objects not working?

2010-12-12 Thread stanlick
You need to determine why contact.contactLead.income is being evaluated as $123. This is forcing the search for setIncome(String). Is the user entering this value? If so, you need to strip it of the String so it can be considered a BigDecimal. On Sat, Dec 11, 2010 at 6:51 PM, Burton Rhodes

Re: [S2.2.1] Struts Type Converter for sub-model objects not working?

2010-12-11 Thread stanlick
Look at the bottom of your message and also the top. 'contact.contactLead.income' evaluated to '$123' and you do not have a method com.afs.entity.ContactLead.setIncome([Ljava.lang.String;)] Scott On Fri, Dec 10, 2010 at 2:53 PM, Burton Rhodes burtonrho...@gmail.comwrote: I am having issues

Re: Live Reload - Play framework

2010-12-10 Thread stanlick
Actually, it shouldn't come down to using the *other* because the *one*doesn't support one neat feature. I have always thought the parameters interceptor should reflect on object properties in the case where it could not find a set/get method. These determinations could be cached. Dave, can you

Re: Live Reload - Play framework

2010-12-10 Thread stanlick
No schit! Going to try it now. On Fri, Dec 10, 2010 at 9:04 AM, Dave Newton davelnew...@gmail.com wrote: On Fri, Dec 10, 2010 at 9:59 AM, stanl...@gmail.com wrote: I have always thought the parameters interceptor should reflect on object properties in the case where it could not find a

Re: Live Reload - Play framework

2010-12-10 Thread stanlick
They do, but what the hell. I think we have reached a level of sophistication (pronounced no dumb people on the team) where this should no longer be a problem. I really haven't seen validation code in a setter method anyway. They are usually generated as: public void setFoo(String foo){

execAndWait Interceptor

2010-12-09 Thread stanlick
Does anyone actually use this interceptor? I have a team asking me about it's use in production and how this solution would compare to a jQuery solution. I played around with it lst night and am skeptical about it. For one thing, the documentation says The ExecuteAndWaitInterceptor is great

Token* interceptors

2010-12-09 Thread stanlick
This is being posted separate from my other post for search clarity. The same team that is questioning server vs. client, is asking how these interceptors are better than simply inhibiting input by the client for the duration of the submit. Are these interceptors falling off in popularity? Like

Re: execAndWait Interceptor

2010-12-09 Thread stanlick
I thought about that Dave, but isn't reporting an exception to the rule? Also, should a web framework try to play the role of a reporting solution? I'm trying to get a handle on roles and responsibilities more than anything else. Very few web developers like the Swiss Army Knife approach on

Re: Connection Pooling with Struts

2010-12-07 Thread stanlick
Dude, I can't sit quietly any longer! How you connect to a database has NOTHING WHATSOEVER to do with the Struts/2 Framework. I would advise you to keep the two separated in your mind. Much like you wouldn't look to a Database connection to serve a web page, neither should you look to Struts/2

Re: Incorporating action interceptor configuration parameters into a message

2010-12-01 Thread stanlick
Thanks Li -- I saw what the interceptor was doing and decided that was not going to work. Would you mind posting the simple technique to extract the parameter from the interceptor configuration. I'll admit I'm not a Guice pro and studying the container build sent me straight to the bar last

Re: Incorporating action interceptor configuration parameters into a message

2010-12-01 Thread stanlick
Thanks Li -- This is what I was afraid of, but wanted to make sure I wasn't overlooking something a little more straightforward. Before duplicating the max size someplace else, I'll likely get into the Container build which reads the xml files. Somewhere in the back of my mind, it feels like I

Internationalization with REST/Convention plug-ins

2010-12-01 Thread stanlick
I had a guy ask me why his internationalized properties were not accessible in his Struts app that was using both the REST and Convention plug-ins. My first action was to read the docs which did not suggest anything out of the ordinary, so I through a core app together using this configuration

Re: Internationalization with REST/Convention plug-ins

2010-12-01 Thread stanlick
de-rust? That's awesome. I personally am afraid to see what might be lurking under all my rust. There is a struts.convention.package.locators set to the top-level folder in the class hierarchy. One thing that I found interesting though, I added the struts2-config-browser-plugin hoping to get

Incorporating action interceptor configuration parameters into a message

2010-11-30 Thread stanlick
Before I wrap myself around my own axle, does anyone know a straightforward technique for substituting the maximumSize into a message property text according to the following scenario. action name=singleUpload class=FileUploadAction method=upload interceptor-ref

Re: Spring context for package

2010-11-24 Thread stanlick
Josep -- That sounds a little radical. Do you mind if I ask why? Is the unique namespace per package not enough separation? Hey, if strict separation is what you desire, you could package each S2 package in it's own project and move the package namespace to the web root context and be done

Re: Interceptor Stack config

2010-11-18 Thread stanlick
You certainly have accomplished that with default-interceptor-ref name=paramsPrepareParamsStack/ however, Li is right; you did not need to redefine that stack, as it's in the default xml file in struts-core. Now then, you will only see this stack associated with actions in *this* package or

Re: Jasper Relevancy

2010-11-18 Thread stanlick
So that's why nothing is really happening in my JSP? Can you tell us more about this back-end deal? :) On Thu, Nov 18, 2010 at 6:41 AM, Dave Newton davelnew...@gmail.com wrote: How is using S2 more work than JSP? You can't just use JSP, you still need a back end. And JR does things like

Re: Spring context for package

2010-11-17 Thread stanlick
Josep -- I believe this is what you are looking for. http://blog.springsource.com/2007/06/11/using-a-shared-parent-application-context-in-a-multi-war-spring-application/ Peace, Scott 2010/11/17 Josep María Formentí Serra jmforme...@aia.es Thanks Dave and Chris, Chris, that it's nice, we

Re: Label problem in struts2

2010-11-16 Thread stanlick
Can we see the rest of your JSP? My hunch is, you are also using a textfield that is bringing the label in as well. On Tue, Nov 16, 2010 at 6:32 AM, Prabhubalaji Ragavan prabhubalaji.raga...@gmail.com wrote: Hi I am using the below code to label, which is using a resource bundle. When the

rest, convention and config plug-ins

2010-10-24 Thread stanlick
I fired up a new 2.2.1 project this morning to see what's new and have a quick question. Does the config-browser work out of the box with rest and convention plug-ins? Everything works fine except this url: http://localhost:8080/rest/config-browser/index.action which is producing the glorious

Re: Additional JSP to render via AJAX

2010-05-26 Thread stanlick
This http://struts2inaction.com/SimpleAjax.html should be a much simpler technique for you. Peace, Scott On Tue, May 25, 2010 at 11:34 AM, Oscar oscar.kalde...@gmail.com wrote: Hi to all, have a good day, i have a doubt about Struts 2.1.8 and AJAX with dojo, using dojo struts tags. My doubt

Re: access map's value in object stack

2010-05-12 Thread stanlick
Maps expose an Entry element containing properties key and value. s:iterator value=map varrow s:property/ // that work well s:textfield value=row.value.color/ // this would call getColor() on the value object associated with key s/iterator Peace, Scott On Wed, May 12, 2010 at 3:55

select ui control option iterator

2010-04-14 Thread stanlick
Before I go mucking around with the select.ftl, is there a simpler way to get a unique id generated for each option written? The select tag does not appear to support tagging its options with an identifier. Peace, Scott -- View this message in context:

Re: World¹s Simplest Struts/2 Ajax Pattern

2010-04-07 Thread stanlick
Hey Z -- I hear what your saying brother, but big shops have such tight constraints about what you can download and use that this was a real s t r e t c h for the last shop I was in! We were happy to Struts/2 approved! I like your strategy too. P.S. I'm a drummer and Z reminds me of

World’s Simplest Struts/2 Ajax Pattern

2010-04-06 Thread stanlick
After answering similar questions regarding Struts/2 and Ajax on several forums, I have decided to write an actual paper on the topic. While I figure out where to publish papers I am dropping the link here. http://struts2inaction.com/SimpleAjax.html World’s Simplest Struts/2 Ajax Pattern

Re: retrieve i18n application messages.

2010-03-24 Thread stanlick
S2 doesn't do anything special. It leverages the native Java resource bundles and locale. I would advise you to begin by looking at the Locale class. On Wed, Mar 24, 2010 at 4:01 AM, Stephen Ince stephenpi...@gmail.comwrote: Does anyone know how to programmatically retrieve the i18n messages

Re: Can we some how persist form values in Struts2 the way we do in struts1.x

2010-03-16 Thread stanlick
Hi Sandeep -- One clean way you can do this is by using the ScopedModelDrivenInterceptorhttp://struts.apache.org/2.x/docs/scoped-model-driven-interceptor.html . Peace, Scott On Tue, Mar 16, 2010 at 4:22 PM, sandeep kotha sandeep4u.ko...@gmail.comwrote: Hi All, We are migrating our

Re: Cannot find bean: bookList in any scope

2010-03-08 Thread stanlick
You have bookList and listBook. Change one of them. On Sun, Mar 7, 2010 at 8:25 PM, tesla fatihdu...@hotmail.com wrote: Hi i'm new at struts.I wanna write all the array elements which i defined at java class to the jsp file but i'm getting this error javax.servlet.ServletException:

Re: struts 2 - framework question

2010-03-08 Thread stanlick
If each company will have their own domain name this will solve itself. On Sat, Mar 6, 2010 at 10:18 PM, john lee sh_thorn_b...@yahoo.com wrote: my company is distributor, we plan to provide platform for our customer(different store) to sell their product to indivual customers.

Re: Essential Dependencies Only

2009-12-16 Thread stanlick
in dependencies). If you just want to cut to the chase, the essentials would be - struts2-core 2.1.8.1 xwork-core 2.1.6 freemarker 2.3.15 ognl 2.7.3 -Wes On Mon, Dec 14, 2009 at 10:36 AM, stanlick stanl...@gmail.com wrote: Greetings and Happy Holidays -- I am sitting down

Re: Essential Dependencies Only

2009-12-15 Thread stanlick
, they haven't indexed 2.1.8.1 yet, but there is no differences in dependencies). If you just want to cut to the chase, the essentials would be - struts2-core 2.1.8.1 xwork-core 2.1.6 freemarker 2.3.15 ognl 2.7.3 -Wes On Mon, Dec 14, 2009 at 10:36 AM, stanlick stanl...@gmail.com wrote

Re: Essential Dependencies Only

2009-12-15 Thread stanlick
to the chase, the essentials would be - struts2-core 2.1.8.1 xwork-core 2.1.6 freemarker 2.3.15 ognl 2.7.3 -Wes On Mon, Dec 14, 2009 at 10:36 AM, stanlick stanl...@gmail.com wrote: Greetings and Happy Holidays -- I am sitting down to unwind the Essential Dependencies Only jar

Essential Dependencies Only

2009-12-14 Thread stanlick
Greetings and Happy Holidays -- I am sitting down to unwind the Essential Dependencies Only jar (struts-2.1.8.1-lib.zip) in preparation for the litany of questions the lawyers are going to ask before accepting the Struts 2.1.8.1 upgrade in house. Now either I have a different understanding of

Re: struts2 web app without jsp pages, is it possible?

2009-12-08 Thread stanlick
The same argument could be made by generating your web pages in Java code! The MVC has been around for probably as long as you have been alive. JSP developers as you put it, should be coding presentation and *not* disk access! Code reviews, and/or source code inspections would identify a rogue

Re: Anyone using the Ajaxtags with Struts 2

2009-08-20 Thread stanlick
Thanks guys -- Actually, I needed a QD tree on a JSP page and it worked great. The one issue I am having though is this. I am creating the tree by attaching TreeItem nodes. I am populating these nodes with attributes Goal goal = goals.next();

Re: Anyone using the Ajaxtags with Struts 2

2009-08-20 Thread stanlick
You rock bro! So is there a way to get the TreeItem attributes passed back to the server? If not, I am confused as to why they would be set on the node object. Musachy Barroso wrote: On Thu, Aug 20, 2009 at 8:06 AM, stanlickstanl...@gmail.com wrote: P.S. I was surprised to see that you

Anyone using the Ajaxtags with Struts 2

2009-08-18 Thread stanlick
I am trying to leverage the http://ajaxtags.sourceforge.net/ AjaxTags and would like to see if anyone here might have tips before tearing in. I realize this might not be the best venue for the question, but hey, It's Struts 2 sort of. Peace, Scott -- View this message in context:

Who moved OgnlValueStack?

2009-07-21 Thread stanlick
I am experimenting with struts 2.1.7 and apparently xwork 2.1.4 has moved OgnlValueStack from package com.opensymphony.xwork2.util to com.opensymphony.xwork2.ognl! Was this some cruel joke? Peace, Scott -- View this message in context:

Re: Who moved OgnlValueStack?

2009-07-21 Thread stanlick
Thanks Dale -- Now that might be the better question! It appears we have not been consistent in a few corporate plug-ins between using the VS or OVS, and those places referencing OVS stopped working in 2.1.7 when xwork relocated the OVS. Peace, Scott DNewfield wrote: stanlick wrote: I

Re: Plug-in creation and freemarker page location

2009-07-17 Thread stanlick
I am using the leading / and it still seems to be using the namespace! I renamed the ftl folder pages to be config to match the namespace, and it works fine. Is there another way? I originally tried with and without the leading slash and ultimately had to make this change to get it to work. I

Plug-in creation and freemarker page location

2009-07-16 Thread stanlick
I am working on a plug-in and having trouble getting the runtime to find my freemarker pages. I have a folder named pages in my plugin.jar where my freemarker pages reside. My struts-plugin.xml is referring to the pages as follows: result type=freemarker/pages/config.ftl/result However, I am

Re: MethodFilterInterceptor package

2009-07-14 Thread stanlick
The logic considers the action name without regard to the package the action is contained within. On Mon, Jul 13, 2009 at 5:53 PM, Musachy Barroso musa...@gmail.com wrote: independent of the methods' package name I am not sure what you mean by this. example? musachy -- Hey you! Would you

MethodFilterInterceptor package

2009-07-13 Thread stanlick
Either I have been asleep at the wheel or have simply lucked into a naming scheme. It appears the MethodFilterInterceptor is performing its include/exclude logic independent of the methods' package name. Has anyone been snapped by this? Peace, Scott -- View this message in context:

Struts 2 Plug-in and JSP 404

2009-07-09 Thread stanlick
I am working on a plug-in that needs to display a JSP. I have the plug-in packaged with the following struts-plugin.xml, however, rather than the /pages/config.jsp page appearing, I get a 404! The folder pages is in the root of my config-plugin.jar file and I have changed the result by both

Re: Struts 2 Plug-in and JSP 404

2009-07-09 Thread stanlick
and then copy JSP files here... Peace, Scott DNewfield wrote: stanlick wrote: I am working on a plug-in that needs to display a JSP. The folder pages is in the root of my config-plugin.jar I believe jsp files must be in the file system, not in jars. -Dale

Re: Struts 2 Plug-in and JSP 404

2009-07-09 Thread stanlick
time this evening for that Harley ride up the river road! Peace, Scott DNewfield wrote: stanlick wrote: However, for a plug-in to be a drop-n-go deal, I sort of think the goods should all be in the plug-in jar itself? Make sense? Agreed, but I believe I've been told that can't be done

Re: Struts 2 Plug-in and JSP 404

2009-07-09 Thread stanlick
to compile the jsp to java, then use the java api compile to compile to a class file, load it and then execute it, but yeah FreeMarker would be easier :) musachy On Thu, Jul 9, 2009 at 1:06 PM, Dale Newfieldd...@newfield.org wrote: stanlick wrote: However, for a plug-in to be a drop-n-go

Re: Documenting Applications with Apache Struts 2

2009-06-19 Thread stanlick
Dave-- Does this mean your book is about to be unpakt? If this chapter is representative of the book, this will be a real gem! Peace, Scott On Thu, Jun 18, 2009 at 11:04 PM, juded ju...@packtpub.com wrote: Every developer's favorite task is documenting their application. In this chapter,

BaseStrutsTestCase

2009-06-18 Thread stanlick
For those of you who are using thishttp://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/base class to unit test your Struts 2 apps, have you encountered this requirement? I have a web.xml listener placing an object in application scope using

Re: Mapped back UI and #status.index driven names

2009-06-17 Thread stanlick
I agree, however, there is only a single object (Thing) in the map (Things) and only a single parameter being passed. newton.dave wrote: stanlick wrote: s:textfield name=things[%{#status.index}].name value=%{name} / I'd assume something like getThings().put(index, name). OGNL has to get

Mapped back UI and #status.index driven names

2009-06-16 Thread stanlick
How is that for a subject line? I always wonder what I would search for myself :working: I had a guy tell me that a struts web tag was generating an absurd number of method calls on his action/model. After carefully considering his scenario, I was able to experiment using the files below.

RE: Mapped back UI and #status.index driven names

2009-06-16 Thread stanlick
It's never enough FOR YOU PEOPLE!!! =^D public static Collection? extends Thing getThings() { ArrayListThing things = new ArrayListThing(); things.add(new Thing(1, foo, 1.95f)); return things; } action name=mapBackedUI* method={1} class=acme.action.ListAction

Re: [OT]Moving from Struts2 to grails, your thoughts

2009-06-12 Thread stanlick
Was this a question about moving from Struts 2 to Grails or how to get the output stream? 2009/6/12 Paweł Wielgus poulw...@gmail.com Hi all, i'm active in rails and struts1 and struts2, languages are java and ruby and javascript. As for rails i use jruby instead ruby. What framework will

Re: Whats the best way to do validation messages on the same page?

2009-06-12 Thread stanlick
I would skeptical about excluding execute. As Wes points out, the framework is designed to bypass validating input initially. After all, it's kind of difficult validating a form you have not yet had the chance to ill out! On Thu, Jun 11, 2009 at 8:53 AM, Kishan G. Chellap Paandy

Re: [OT]Moving from Struts2 to grails, your thoughts

2009-06-12 Thread stanlick
Is that actually the Google source? On Fri, Jun 12, 2009 at 6:48 AM, Martin Gainty mgai...@hotmail.com wrote: Scott- i think what Pawel is suggesting is there is a 'demonstrable' need for a Struts Grails plugin I have some grails code here so i might decide to tackle this myself..altho i

StrutsTestCase and Spring 2.5

2009-06-11 Thread stanlick
I am on a project with a new combination of jars and testing Struts interceptors. I have added the struts2-junit-plugin-2.1.2.jar and also spring-test.jar. When I run my subclass test of StrutsTestCase I get the following exception: SEVERE: [20:44.438] ** FATAL ERROR STARTING UP

Re: StrutsTestCase and Spring 2.5

2009-06-11 Thread stanlick
Thanks bro! I think I hated annotations until today. Was the StrutsTestCase moved into a plug-in recently? On Thu, Jun 11, 2009 at 10:41 AM, Wes Wannemacher w...@wantii.com wrote: Scott, it is just complaining because you are trying to do something Spring-ish in your unit test, but Spring is

Re: Training

2009-06-08 Thread stanlick
I suspected this sort of training dialog was just beneath the surface. The sad matter of fact is both Wes and Martin are spot on from each of their perspectives. Wes works his tail off (I know because I have been reviewing his new book) and Martin is a master technologist in business. So who

Training

2009-06-07 Thread stanlick
Hey Wes and all -- I have thinking about the Wes training thread and would like to get your feedback. Do you guys think training can continue to cost what it has historically? The reason I ask is that I too have considered dropping down a gear and doing training for a living. However, I get

Re: [friday] training for Struts 2

2009-06-05 Thread stanlick
Hey Wes -- Travel and paper is so 80's bro. Have you considered an online format? I think a five day session where 2-3 are basics and the remaining 2-3 are advanced topics would be flexible. This way you could price the two separately and allow clients one or both enrollments. As far as

Re: [S2] why is javascript executed before DOM is updated

2009-06-05 Thread stanlick
...a previous employer that *did* have pretty specific degradation requirements. Your employer wanted it to run poorly? [?] On Fri, Jun 5, 2009 at 8:39 AM, Dave Newton newton.d...@yahoo.com wrote: Kawczynski, David wrote: I don't use a jquery plugin, I simply have a SiteMesh decorator that

Re: [OT} Re: Iterating over a List of Lists

2009-06-02 Thread stanlick
someone stole my bike! On Tue, Jun 2, 2009 at 9:39 AM, Dave Newton newton.d...@yahoo.com wrote: Jim Kiley wrote: I had no idea I was in the presence of royalty. There's a lotta things about me you don't know anything about, Jim. Things you wouldn't understand. Things you couldn't

Re: Struts2, Spring Maven

2009-05-28 Thread stanlick
Nice tip Wes... now where is that book of yours? I haven't received new chapters in quite some time. On Thu, May 28, 2009 at 7:28 AM, Wes Wannemacher w...@wantii.com wrote: In addition to what Dave suggested, there are other maven search tools, my new favorite is -

Re: Tiles 2 define many pages using same template

2009-05-28 Thread stanlick
Yes there is! I am using Tiles 2.1.1 which provides support for wildcards and substitutions. This one definition is handling all my pages! Struts action name=displayTile-* class=acme.action.BaseAction result param name=locationdisplayTile-{1}/param

Re: Preload of database data?

2009-05-21 Thread stanlick
You can prepare data by implemeting Preparable in your action On Tue, May 19, 2009 at 4:48 PM, Christian Benjamin Ries christian_benjamin.r...@fh-bielefeld.de wrote: Hi there, I have a small site with some informations which are stored in a database. A method for administrations reason is

Re: passing form parameters to a custom validator

2009-05-21 Thread stanlick
Rather than pass this, that and the other parameter(s) to your validator, why not just retrieve what you need from inside the validator? You have the ActionInvocation passed to your doIntercept(...), which contains the ValueStack containing your objects. Peace, Scott On Tue, May 19, 2009 at

Re: How to get request locale in OGNL?

2009-05-21 Thread stanlick
invocation.getStack().findString(#attr.locale) On Thu, May 21, 2009 at 6:22 AM, Gordian Yuan gordiany...@gmail.com wrote: Hi, I want to know how to get request locale in OGNL? For now I use s:set var=locale

Re: Disabling JSP's

2009-05-17 Thread Scott Stanlick
Put you pages under web-inf On May 15, 2009, at 1:36 PM, Timothy Orme to...@genome.med.harvard.edu wrote: Hello All, I'm in the process of migrating pages from JSP's using snippets to struts actions. I'm wondering how people have disabled access to JSP's so that they cannot be

Re: xml validation

2009-05-15 Thread stanlick
I use this successfully. field name=credential.password field-validator type=expression param name=expression credential.passwordRepeat.toUpperCase().equals(credential.password.toUpperCase()) /param message key=passwordsNotMatching /

Re: Struts 2 UI Tags and OGNL self reference

2009-05-08 Thread stanlick
Actually, what I am trying to accomplish is to pass/receive the Component bean instance representing this tag as an argument to the OGNL expression. I am working with the component stack and would like to have this reference. Scott stanlick wrote: Sorry about that subject line, but I

Re: Struts 2 UI Tags and OGNL self reference

2009-05-08 Thread stanlick
, stanlick stanl...@gmail.com wrote: 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

  1   2   3   4   5   6   >