Re: Property Mapping in a iterator

2009-11-12 Thread Musachy Barroso
You need a couple of things: 1. set devMode to true if you want to get a log of the missing property, then 2. set if you want to get an exception (the page will break), then: 2. set musachy On Thu, Nov 12, 2009 at 5:58 AM, carl ballantyne wrote: > Hi Alex, > > I thought it was supposed t

Re: Property Mapping in a iterator

2009-11-12 Thread Musachy Barroso
FAQ added for it: http://cwiki.apache.org/confluence/display/WW/Make+Struts+throw+exceptions+on+missing+properties%2C+or+log+them On Thu, Nov 12, 2009 at 8:49 AM, Musachy Barroso wrote: > You need a couple of things: > > 1. set devMode to true > > if you want to get a log

some love for the documentation

2009-11-13 Thread Musachy Barroso
I created new space to work on the documentation, the guide main page is here: http://cwiki.apache.org/confluence/display/S2NewDocDraft/Guides I think it is very important that we clean up the documentation, document missing parts, remove outdated stuff, the "version boxes", and the snippets as w

Re: some love for the documentation

2009-11-13 Thread Musachy Barroso
wrong link: http://cwiki.apache.org/confluence/display/S2NewDocDraft/User+Guide On Fri, Nov 13, 2009 at 11:30 AM, Musachy Barroso wrote: > I created new space to work on the documentation, the guide main page is here: > > http://cwiki.apache.org/confluence/display/S2NewDocDraft/Gui

Re: Problem with tag

2009-11-14 Thread Musachy Barroso
just ignore him, he is a resident troll. On Sat, Nov 14, 2009 at 6:07 PM, Burton Rhodes wrote: > I habe no idea what Martin just wrote means?! > > On 11/13/09, Martin Gainty wrote: >> >> //Assuming we have this Action >> //A Simple Action Class which demonstrates placing information in a Map >>

Re: Hibernate/Spring

2009-11-14 Thread Musachy Barroso
never mind him, he is a troll, or a bot, or very very stupid, or all of them. On Sat, Nov 14, 2009 at 9:18 PM, Denis Cabasson wrote: > Hi Martin, > > I am building a Struts 2 / Spring / Hibernate application, using the JPA > specification as it seems to be the case here. It is not required to go

Re: How to access the form data directly?

2009-11-14 Thread Musachy Barroso
where is the data that you want to show, in the action? musachy On Sat, Nov 14, 2009 at 6:55 PM, Juanjo C wrote: > Hi, > > I have an action class that implements the interfaces ModelDriven and > Preparable with a bean that has data. And I have too an JSP that shows, > through s:textfield, the da

Re: Hibernate/Spring

2009-11-15 Thread Musachy Barroso
I tried to. I will try again. musachy On Sun, Nov 15, 2009 at 10:08 AM, Alex Siman wrote: > > Can we just remove this "magainty"/"Martin Gainty" from Struts mailing lists? > I do not understand what it/he writes. > > Musachy Barroso wrote: >> >> n

Re: Struts Tag Odd Behavior

2009-11-15 Thread Musachy Barroso
that is odd indeed, can you give us an example that shows this problem? The way to set a variable is by using the "set" tag, like musachy On Sun, Nov 15, 2009 at 12:00 PM, Chris Cranford wrote: > So in my JSP i have defined a s:set tag which populates a variable > with an empty string in some

Re: Interceptor & Action Definition

2009-11-15 Thread Musachy Barroso
public String intercept(ActionInvocation invocation) throws Exception { ActionConfig config = invocation.getProxy().getConfig(); final Map parameters = config.getParams(); ... } On Sun, Nov 15, 2009 at 3:25 PM, Chris Cranford wrote: > If you have action parameters defined in your

Re: Hibernate/Spring

2009-11-17 Thread Musachy Barroso
I tried for a last time, but no, he is here to stay. On Sun, Nov 15, 2009 at 11:15 AM, Musachy Barroso wrote: > I tried to. I will try again. > > musachy > > On Sun, Nov 15, 2009 at 10:08 AM, Alex Siman > wrote: >> >> Can we just remove this "magainty"/&

Re: s2: Validation xml file not being used when validating a method

2009-11-17 Thread Musachy Barroso
It can be done like that as well, but, your first attempt should be better. The "alias" part is the action name, lets say you have an action like this: /survey/survey-results.jsp /survey/survey.jsp you would need to name the validation file "SurveyA

Re: (clearly O/T) use of ThreadLocal vs Synchronized

2009-11-22 Thread Musachy Barroso
Performance wise, it seems like JUEL beats OGNL on nested expressions, but it is a little bit slower at arithmetic, meh. The UEL plugin is working better than I expected, so I will try to get it out of the sandbox for the next release (whenever that is). musachy On Sat, Nov 21, 2009 at 4:53 PM, C

Re: What may cause ognl.InappropriateExpressionException warning ?

2009-11-23 Thread Musachy Barroso
try adding quotes around it 'd-6836677-p' then it will be interpreted as a string, or try to ignore it in the params interceptor. On Mon, Nov 23, 2009 at 8:27 AM, jsubei wrote: > > Dear all, > > I'm using struts 2.1.8 with displaytag 1.2 > and, of course, I have the same problem. > > Have you fou

Re: Is Using Spring With Struts 2 A Good Idea?

2009-11-25 Thread Musachy Barroso
It is all said, but I will just add my two pesos, yeah, it is worth it, go for it, they play very nicely together. musachy On Wed, Nov 25, 2009 at 9:00 AM, Saeed Iqbal wrote: > Oh yes i forgot Spring Security too. Its awesome. > > On Wed, Nov 25, 2009 at 9:56 PM, Wes Wannemacher wrote: > >> > -

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Musachy Barroso
You could write your own value stack that extends the OGNLValueStack and just hacks the property name to make it the right/wrong case, but oh boy does that scream trouble :) musachy On Thu, Nov 26, 2009 at 9:04 AM, Bill Bohnenberger wrote: > What an amusing thread. It seems to me the only proble

Re: S2.1.8.1: Need something similar to struts.el.throwExceptionOnFailure for and

2009-12-01 Thread Musachy Barroso
On Tue, Dec 1, 2009 at 3:41 AM, Robert Graf-Waczenski wrote: > so setting doesnt fail? musachy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Upgrade 2.1.6 to 2.1.8.1

2009-12-02 Thread Musachy Barroso
make sure you dont have 2 versions of xwork. musachy On Wed, Dec 2, 2009 at 8:50 AM, Saeed Iqbal wrote: > This looks like a classpath issue > > On Wednesday, December 2, 2009, Gustavo Andrés Guevara Saavedra > wrote: >> Hi, >> >> I've just migrated my app. from Struts 2.1.6 to 2.1.8.1. The appl

Re: blank app under jetty7

2009-12-02 Thread Musachy Barroso
I tried an app in jetty 7 yesterday and had the same problem, using my amazing laziness skills I switched to jetty 6 and it worked, so I just blamed it on jetty and moved on :) musachy On Wed, Dec 2, 2009 at 10:19 AM, Milos Negovanovic wrote: > Hi, > > I am trying to get blank app to work under

Re: Parameters after the action name, annotation based config not working

2009-12-03 Thread Musachy Barroso
Unfortunately wild card doesn't work really well with convention in 2.1.8. You would have to use trunk. If you use trunk, you could use the advanced wild cards, which are more flexible, and easier to use(they were written for that exact use case): http://struts.apache.org/2.x/docs/wildcard-mapping

Re: Problem with Struts 2 JSON RPC using simple HTTP Post (not using DOJO)

2009-12-03 Thread Musachy Barroso
It seems like one of the fields of TransportAssignmentVO is a list, and what is coming from the JSON objects looks more like a map, can you set a break point on ClassCastException exceptions and tell us what the field is? or post the setter/getters of TransportAssignmentVO. musahcy On Thu, Dec 3

Re: Problem with Struts 2 JSON RPC using simple HTTP Post (not using DOJO)

2009-12-03 Thread Musachy Barroso
I take it back, sorry. The problem is that JSON RPC expects "params" to be a list, and it is coming as a map, I haven't kept up with the "spec", is it a map these days? musachy On Thu, Dec 3, 2009 at 4:28 PM, Musachy Barroso wrote: > It seems like one of the fields o

Re: Problem with Struts 2 JSON RPC using simple HTTP Post (not using DOJO)

2009-12-03 Thread Musachy Barroso
it is a list in the v1 of the spec http://json-rpc.org/wiki/specification "params - An Array of objects to pass as arguments to the method." the name of the parameters is irrelevant, only the order is. musachy On Thu, Dec 3, 2009 at 4:31 PM, Musachy Barroso wrote: > I take it bac

Re: Problem with Struts2 JSON RPC using simple HTTP Post

2009-12-04 Thread Musachy Barroso
see my previous reply. On Thu, Dec 3, 2009 at 4:10 PM, Prasenjit Bhadra wrote: > I have developed a native client interface which calls struts2 JSON RPC > using post method. I have set content type, content length as suggested in > the spec. The request body looks like as follows : {"method": > "

Re: -Tag in -Tag:differences in 2.1.2 and >= 2.1.6

2009-12-07 Thread Musachy Barroso
Unfortunately this is a bug/enhancement dependent on your point of view (what created this problem fixed other bugs). The way to get it to work like you want is to add a "merge" param set to "false" in the "staticParams" interceptor. For reference: https://issues.apache.org/struts/browse/WW-2970 h

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

2009-12-08 Thread Musachy Barroso
> Fire the PM? you beat me to it :) On Tue, Dec 8, 2009 at 6:34 AM, Wes Wannemacher wrote: > On Tue, Dec 8, 2009 at 9:21 AM, Shital Patil wrote: >> Dear All, >> >> Thanks for your valuable suggestions. >> Actually I am failed to convince my PM for using JSP pages in web app. >> He said, there a

Re: [Struts 2.1.8.1] [JSON] How to build a JSON for jsTree (array without variable name)

2009-12-10 Thread Musachy Barroso
The root object should be an array or list that contains a map or object, and so on. On Wed, Dec 9, 2009 at 10:38 PM, Michael Obster wrote: > Hi, > > I'm trying to build a correct JSON for usage with jsTree. Therefor I need > s.th. like that: > [ >  { attributes: { id : "pjson_1" }, >            

Re: Convention Plugin - Action Chaining

2009-12-10 Thread Musachy Barroso
If they are in the same package that should work, all I can advise is to put a breakpoint in ConventionUnknownHandler, line 301 and see what is going on. musachy On Thu, Dec 10, 2009 at 7:10 AM, RogerV wrote: > > I'm trying to get action chaining to work as described in the section > chaining at

Re: Convention Plugin - Action Chaining

2009-12-11 Thread Musachy Barroso
So it is finding a jsp that it think it is the result, that's why it is not doing the forward. On Fri, Dec 11, 2009 at 1:48 AM, RogerV wrote: > > > > Musachy Barroso wrote: >> >> If they are in the same package that should work, all I can advise

Re: "specified DSN contains an architecture mismatch"

2009-12-11 Thread Musachy Barroso
O_o On Fri, Dec 11, 2009 at 3:01 PM, Todd Grigsby wrote: > > Configuration: >  Windows 7 64 bit >  Tomcat 6 >  Struts 2 >  MySQL 5.1.36 for Win64 >  MySQL ODBC 5.1 Driver 5.01.06.00 > > I've created a valid ODBC alias that I can see from other Windows native > applications with no problem.  When

Re: ognl method lookup failure

2009-12-12 Thread Musachy Barroso
I would suggest to put a breakpoint in XWorkMethodAccessor.callMethod and see why it is not finding it. musachy On Sat, Dec 12, 2009 at 1:44 PM, Dale Newfield wrote: > Often when I'm stumped writing a detailed "help!" message leads me to the > bug and I never have to send it.  This time I was no

Re: Essential Dependencies Only

2009-12-15 Thread Musachy Barroso
mvn dependency:tree will give you all the dependencies nicely. I also have to help with this task in my company, and we haven't found any decent tool that does what you described. If all your projects use maven, then there is probably a plugin for that, but that's not the case for us. On Tue, Dec

Re: Essential Dependencies Only

2009-12-15 Thread Musachy Barroso
ach project into as many constituent OS projects as > it made from and then recursively walk down the tree doing this at each > node.  It is a big PITA! > > On Tue, Dec 15, 2009 at 12:03 PM, Musachy Barroso wrote: > >> mvn dependency:tree will give you all the dependencies nicel

Re: Anyone used jsTree with Struts2?

2009-12-15 Thread Musachy Barroso
On Tue, Dec 15, 2009 at 1:20 PM, Michael Obster wrote: > jsTree I used it with the JSON plugin many moons ago, what problem are you having? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-

Re: Struts 2.1.8 with Spring Web Flow plugin

2009-12-25 Thread Musachy Barroso
It needs to be fixed to work with SWF 2. musachy On Fri, Dec 25, 2009 at 11:54 AM, Celinio Fernandes wrote: > Hi, > does anyone know a tutorial or an example about Struts 2 with the Spring Web > Flow plugin ? > There is this one : > http://cwiki.apache.org/S2PLUGINS/spring-webflow-plugin.html >

Re: Example of dumping the valuestack?

2009-12-28 Thread Musachy Barroso
if you add a debug=browse param and have the dojo plugin in the app, you can browse the stack content. On Mon, Dec 28, 2009 at 9:55 AM, Stephen Turner wrote: > > On Mon, 28 Dec 2009 07:38:38 -0500, Jim Collings > wrote: > >> I'm having some trouble finding things due to some arcane code.  Was >>

Re: Distinguish between request parameters and struts.xml parameters in Struts2

2010-01-13 Thread Musachy Barroso
No way to distinguish, that I know off. But the static params interceptor has a setting to not merge them. On Mon, Jan 11, 2010 at 7:54 PM, Jose Luis Martinez Avial wrote: > Hi all, >  I'm trying to distinguish the parameters that come from the request > from those that come from the params defin

Re: Distinguish between request parameters and struts.xml parameters in Struts2

2010-01-13 Thread Musachy Barroso
well, I meant built in :) On Wed, Jan 13, 2010 at 2:17 PM, Dale Newfield wrote: > Musachy Barroso wrote: >> >> No way to distinguish, that I know off. > > Perhaps simply inserting a custom interceptor between params and > actionMappingParams/staticParams so you can track

Re: Struts 2 Tags / Freemarker performance

2010-01-14 Thread Musachy Barroso
I would expect that, FreeMarker templates(+ struts code) will always be slower than java code. If you are using the simple tags, give a try to the Java Tags: http://cwiki.apache.org/S2PLUGINS/java-templates-plugin.html musachy On Thu, Jan 14, 2010 at 4:48 PM, Mark Greene wrote: > I've been eval

Re: Struts 2 Tags / Freemarker performance

2010-01-15 Thread Musachy Barroso
Not really, you can mix the tags using the "theme" attribute, not very pretty, but that should work. musachy On Fri, Jan 15, 2010 at 10:27 AM, Dale Newfield wrote: > On Thu, Jan 14, 2010 at 8:00 PM, Musachy Barroso wrote: >> I would expect that, FreeMarker templates(+ strut

Re: Struts 2 Tags / Freemarker performance

2010-01-15 Thread Musachy Barroso
d would be a very nice feature. On Fri, Jan 15, 2010 at 10:40 AM, Dale Newfield wrote: > Musachy Barroso wrote: >> >> Not really, you can mix the tags using the "theme" attribute, not very >> pretty, but that should work. > > Just to make sure I understan

Re: Struts2.1.8.1, s:push does not return s:property value

2010-01-18 Thread Musachy Barroso
The pushed object will be on the stack while the tag is evaluated (in the tag body), and it will be popped after the end of the tag, so <--- will print 'not now john' <--will print whatever was in the top of the stack, before the "push" tag was invoked musachy On Mon, Jan 18, 2010 at 1

Re: How to make json plugin see SMD methods ?

2009-04-02 Thread Musachy Barroso
use firebug to see if dojo is making a request to "url" to retrieve the method signature. musachy On Thu, Apr 2, 2009 at 5:52 AM, boraldo wrote: > > I use Struts 2 with json-plugin 0.33 > > I have the following in my js: > >        dojo.require("dojo.rpc.*"); >        var service = new dojo.rpc.

Re: Mixing convention plugin and legacy action mappings

2009-04-03 Thread Musachy Barroso
Convention configuration just gets mixed with xml configuration, they should not conflict. What kind of problem are you having? musachy On Fri, Apr 3, 2009 at 12:52 PM, Ryan Chichirico wrote: > We've recently migrated to Struts 2.1.6 and started looking into the > convention plugin.  Since our a

Re: Struts 2/Spring and @Required

2009-04-06 Thread Musachy Barroso
You should post your spring xml config file, it looks like some AOP config is probably missing. musachy On Mon, Apr 6, 2009 at 2:34 PM, Timothy Orme wrote: > Hello All, > >        One of the nice annotation features of spring is the ability to > annotate injected fields with @Required so that yo

Re: New maven convention archetype

2009-04-08 Thread Musachy Barroso
The archetype is generating the jsps in the wrong location, it is missing the namespace in the patch. For example, if I enter "actions.test" for the package, the jsp is generated as WEB-INF/content/hello.jsp, it should be WEB-INF/content/test/hello.jsp musachy On Wed, Apr 8, 2009 at 8:56 AM, Luka

Re: New maven convention archetype

2009-04-08 Thread Musachy Barroso
an't determine were to put the files at runtime, then you can either 1) don't let users pick the package, 2) use @Result annotations to indicate where the results are (kind of defeating the purpose of using Convention) musachy On Wed, Apr 8, 2009 at 10:24 AM, Lukasz Lenart wrote: > 200

Re: New maven convention archetype

2009-04-08 Thread Musachy Barroso
lol. I hadn't thought of that, no package, no subdir required, clever ;) musachy On Wed, Apr 8, 2009 at 11:16 AM, Lukasz Lenart wrote: > 2009/4/8 Musachy Barroso : >> no, that would just instruct convention to scan from that package >> down, what you need to do (I have no

Re: struts2-showcase on OC4J

2009-04-08 Thread Musachy Barroso
I am sorry but that makes no sense. musachy On Wed, Apr 8, 2009 at 8:40 PM, Martin Gainty wrote: > > //PrepareOperations.findActionMapping method contains this hardcoded lookup > struts.actionMapping > > //PrepareInterceptor has this Action class mapping > > > class org.apache.struts2.dispatche

Re: struts2-showcase on OC4J

2009-04-08 Thread Musachy Barroso
This error you are getting, we have seen it with other containers, and it should be fixed in trunk xwork (you can build it yourself, or grab a snapshot). Try setting this in your struts.xml file: musachy On Wed, Apr 8, 2009 at 6:19 PM, Mick_ wrote: > > > > Nils-Helge Garli wrote: >> >> And wh

Re: Problems using Struts2 on JBoss 5.0.1GA

2009-04-09 Thread Musachy Barroso
It is a known bug: http://jira.opensymphony.com/browse/XW-669 musachy On Thu, Apr 9, 2009 at 8:20 AM, Michael Obster wrote: > Hi, > > anybody here who have already a working struts2 application on JBoss > 5.0.1 GA? I currently try to deploy one on the JBoss but got an error, > which I attach as

Re: Problems using Struts2 on JBoss 5.0.1GA

2009-04-09 Thread Musachy Barroso
You need to use the latest xwork (built it yourself), or grab it from a snapshot. I think Lukasz is hosting it somewhere also. musachy On Thu, Apr 9, 2009 at 9:45 AM, Michael Obster wrote: > I know that, but is there no way to work around this bug? > > Michael > > Musachy Barroso

Re: Problems using Struts2 on JBoss 5.0.1GA

2009-04-09 Thread Musachy Barroso
Thanks for letting us know. (good work Lukasz) musachy On Thu, Apr 9, 2009 at 10:48 AM, Michael Obster wrote: > Thx. Problem is resolved ;-). > > Cheers, > Michael > > Wes Wannemacher schrieb: >> On Thursday 09 April 2009 09:54:40 Musachy Barroso wrote: >>>

Re: MissingDependenyException - logMissingProperties - what's that?

2009-04-09 Thread Musachy Barroso
That property is brand new and it is set by struts-core, you will need to get the latest version of it, or build it. musachy On Thu, Apr 9, 2009 at 11:07 AM, Michael Obster wrote: > Hi, > > I've run into the next problem running struts2 on JBoss :-(. Does > anybody of know this error? What does

Re: MissingDependenyException - logMissingProperties - what's that?

2009-04-09 Thread Musachy Barroso
by latest version, I meant, latest snapshot. musachy On Thu, Apr 9, 2009 at 11:55 AM, Musachy Barroso wrote: > That property is brand new and it is set by struts-core, you will need > to get the latest version of it, or build it. > > musachy > > On Thu, Apr 9, 2009 at 11:07

Re: [jira] (WW-2642) resolved on Websphere

2009-04-09 Thread Musachy Barroso
It would be great if you could create a wiki page that explains this stuff. Thanks for the feedback/research. musachy On Thu, Apr 9, 2009 at 11:22 AM, Struts Two wrote: > > For those of you who had problem running Struts 2.1.6 on WAS 6.1 as reported > in [jira] (WW-2642). The problem  has been

Re: MissingDependenyException - logMissingProperties - what's that?

2009-04-09 Thread Musachy Barroso
On Thu, Apr 9, 2009 at 12:23 PM, Michael Obster wrote: > Btw. can you tell when next release is planned? I am sorry to say there is no such a thing in Struts 2 :), hopefully, soon. musachy -- "Hey you! Would you help me to carry the stone?" Pink Floyd --

Re: Struts 2 on Google App Engine for Java

2009-04-09 Thread Musachy Barroso
We were talking about it on the dev mailing list(Don said how to fix that error): http://www.nabble.com/Google-App-Engine-support--td22972179.html musachy On Thu, Apr 9, 2009 at 1:35 PM, wrote: > Yesterday, I attempted to construct and deploy a simple Struts 2 application > for the GAE/J and

Re: [jira] (WW-2642) resolved on Websphere

2009-04-09 Thread Musachy Barroso
to create a wiki page on struts, any > instructions/links on how to proceed is appreciated. There is also work in > progress to fix the issue of running struts on WAS 7.x and I would post as > soon as the issue is resovled. > > --- On Thu, 4/9/09, Musachy Barroso wrote:

Re: Convention plugin with custom interceptor stack

2009-04-09 Thread Musachy Barroso
Hi Ryan In Convention, as well as in XML, if you try to use an interceptor or result outside the package where it is defined, you will get an error. You interceptor is defined in your package, and your actions are getting mapped in Convention into another package. To fix this you need to either: m

Re: Struts upgrade notes?

2009-04-11 Thread Musachy Barroso
It seems like it is using an old version of xwork I would say. musachy On Sat, Apr 11, 2009 at 10:57 AM, Wendy Smoak wrote: > Is there a page on upgrading from 2.0 to 2.1, like we used to have > here http://wiki.apache.org/struts/StrutsUpgrade ?  I looked on the > new wiki and didn't find anythi

Re: Struts upgrade notes?

2009-04-11 Thread Musachy Barroso
I was afraid to suggest you might have something wrong in the pom ;) musachy On Sat, Apr 11, 2009 at 11:23 AM, Wendy Smoak wrote: > On Sat, Apr 11, 2009 at 8:12 AM, Musachy Barroso wrote: >> It seems like it is using an old version of xwork I would say. > > Looking in WEB-INF

Re: Struts Action Issue

2009-04-13 Thread Musachy Barroso
That doesn't make any sense. That link is outdated (very) from the webwork days. Forms can use either POST or GET. @original poster: add breakpoints to the ParametersInterceptor and see if your params are getting filtered out by it. musachy On Mon, Apr 13, 2009 at 4:18 PM, Martin Gainty wrote:

Re: AJAX Theme - text fields side-by-side

2009-04-14 Thread Musachy Barroso
You can extend one of the themes, or use the simple theme(very close to plain html). There is no way to create a layout that will fit all possible designs. regards musachy On Tue, Apr 14, 2009 at 10:32 AM, Andre L DINIZ-POLITEC wrote: > Hi All, > > I'd like to use the ajax theme to build my jsp

Re: When using jsp:include or s:include in a JSP page the next Struts 2 tags will throw java.lang.NullPointerException on WebLogic 10.3

2009-04-15 Thread Musachy Barroso
is this a plain application or are you using Sitemesh or Tiles? musachy 2009/4/15 Néstor Boscán : > When using jsp:include or s:include in a JSP page the next Struts 2 tags > will throw: > > > >  java.lang.NullPointerException > >      at > >  org.apache.struts2.views.jsp.ComponentTagSupport.doSt

Re: When using jsp:include or s:include in a JSP page the next Struts 2 tags will throw java.lang.NullPointerException on WebLogic 10.3

2009-04-15 Thread Musachy Barroso
can you post your filter config? I cannot test on weblogic, but maybe someone else can. musachy 2009/4/15 Néstor Boscán : > Plain vanilla application. Just the Filter, an Action, two JSPs, and the > struts tags. > Regards, > > Néstor Boscán > > On Wed, Apr 15, 2009 at 4:4

Re: recipes for 2.0.x?

2009-04-17 Thread Musachy Barroso
I am not sure it is related, but make sure "showLoadingText" is set to false, for that causes all kind of problems in IE. if you are still in development, hear *biased* advice and don't use the Dojo based tags :) musachy On Fri, Apr 17, 2009 at 1:37 PM, mitch gorman wrote: >    is there still a

Re: recipes for 2.0.x?

2009-04-17 Thread Musachy Barroso
I am not sure what the status of the DWR plugin is, but I don't think it has changed much. The DWR plugin just hooks DWR with Struts 2, nothing more, you will be using DWR out of the box, without magic tags. musachy On Fri, Apr 17, 2009 at 3:56 PM, mitch gorman wrote: > Musachy Barro

Re: Struts 2.1.6 - Alternative Template Engines - JSP

2009-04-28 Thread Musachy Barroso
The template engines just process certain types of templates(ftl, vm, jsp, etc), but are not(directly) related to tags. The tags need to output something, what you use to generate the output is up to you, the struts tags use freemarker, but the javatemplates plugin uses plain java, for example. mu

Re: Struts 2.1.6 - Alternative Template Engines - JSP

2009-04-29 Thread Musachy Barroso
Regards, > Kishan.G > > Senior Software Engineer. > www.spansystems.com > > > > -Original Message- > From: Musachy Barroso [mailto:musa...@gmail.com] > Sent: Tuesday, April 28, 2009 6:37 PM > To: Struts Users Mailing List > Subject: Re: Struts 2.1.6

Re: What is wrong with my with OGNL Map expression??

2009-04-30 Thread Musachy Barroso
It could be a conflict with JUEL which uses "#", try the other notation (I think you can disable JUEL somewhere): #...@java.util.linkedhashmap@{ "foo" : "foo value", "bar" : "bar value" } musachy On Wed, Apr 29, 2009 at 3:33 PM, Griffith, Michael * wrote: > Hello all, > > It seems as if I am al

Re: What is wrong with my with OGNL Map expression??

2009-04-30 Thread Musachy Barroso
Actually the name is Unified Expression Language, JUEL is just an implementation of it. musachy On Thu, Apr 30, 2009 at 9:06 AM, Musachy Barroso wrote: > It could be a conflict with JUEL which uses "#", try the other > notation (I think you can disabl

Re: What is wrong with my with OGNL Map expression??

2009-04-30 Thread Musachy Barroso
if you have the debugging interceptor applied to your action, you can add debug=console to the url, and you will get a console where you can type OGNL expressions, and see the result. musachy On Thu, Apr 30, 2009 at 10:40 AM, Griffith, Michael * wrote: > Ding! Sorry I didn't see this reply earli

Re: What is wrong with my with OGNL Map expression??

2009-04-30 Thread Musachy Barroso
http://struts.apache.org/2.x/docs/debugginginterceptor.html On Thu, Apr 30, 2009 at 10:48 AM, Musachy Barroso wrote: > if you have the debugging interceptor applied to your action, you can > add debug=console to the url, and you will get a console where you can > type OGNL expressions

Re: OGNL & DisplayTag = inappropriate expressions

2009-04-30 Thread Musachy Barroso
The parameters interceptor has an attribute (excludeParams), that can take a list of regular expressions. Any param whose name matches on of the regex, will be ignored. We should make a FAQ out of this question. musachy On Thu, Apr 30, 2009 at 3:47 PM, Andy Sykes wrote: > Hi all, > > Is there a

Re: Using Expression Language (EL) To Access ActionSupport Class Properties

2009-05-04 Thread Musachy Barroso
using EL to access the stack/action is fine. musachy On Mon, May 4, 2009 at 3:48 PM, phillips1021 wrote: > > Martin thank you for the reply. > > Your idea: > > > > > does not work with the JSecurity hasAnyRoles tag. The Struts 2 property tag > and OGNL expresson do not work when placed as the

Re: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

2009-05-07 Thread Musachy Barroso
to add to what Lukasz said, don't rely too much on the reloading class loader which is experimental, there is a flag to disable it, check the docs. musachy On Thu, May 7, 2009 at 8:42 AM, Lukasz Lenart wrote: > Could you try to use the latest snapshot build? > http://people.apache.org/builds/str

Re: Problems setting attributes on my Action using Restful2ActionMapper

2009-05-08 Thread Musachy Barroso
That part has always lacked good documentation. I have never used myself so I have no idea how it works. You can submit a CLA and get edit right to the wiki. musachy On Fri, May 8, 2009 at 1:00 PM, David Rocks wrote: > > Hi, > > > > managed to get this kind of working although I am constrained t

Re: Problems setting attributes on my Action using Restful2ActionMapper

2009-05-08 Thread Musachy Barroso
Take a look here: http://struts.apache.org/2.x/docs/editing-the-documentation.html, the CLA is a form that you need to fax, after that, drop an email in the dev@ user list asking for rights to edit the wiki. musachy On Fri, May 8, 2009 at 3:43 PM, David Rocks wrote: > > The documentation was pre

Re: Problems setting attributes on my Action using Restful2ActionMapper

2009-05-08 Thread Musachy Barroso
On Fri, May 8, 2009 at 5:52 PM, David Rocks wrote: > Anyway it's 11pm. Pizza and beer time. now that, sounds good :) musachy -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: user-unsubsc

Re: Retrieving instance of XWorkConverter in 2.1.x

2009-05-11 Thread Musachy Barroso
If your action is instantiated by the default object factory, do this: @Inject public void setConverter(XWorkConverter converter) {.} if you are using a different object factory (I think injection still happens with the Spring factory, but I am not 100% sure): Dispatcher.getInstance().getCon

Re: Removing default mappings in Convention plugin [SEC=UNCLASSIFIED]

2009-05-12 Thread Musachy Barroso
Right now there is no way, we could add a flag that check if there are annotated methods, and prevents the mapping of "execute" musachy On Tue, May 12, 2009 at 8:58 AM, Dave Newton wrote: > Crombie, Joe - BRS wrote: >> >> Hi All, >>  I'm currently switching to 2.1.6 and the Convention plugin for

Re: Removing default mappings in Convention plugin [SEC=UNCLASSIFIED]

2009-05-12 Thread Musachy Barroso
https://issues.apache.org/struts/browse/WW-3123 On Tue, May 12, 2009 at 9:24 AM, Musachy Barroso wrote: > Right now there is no way, we could add a flag that check if there are > annotated methods, and prevents the mapping of "execute" > > musachy > > On Tue, May 12,

Re: Removing default mappings in Convention plugin [SEC=UNCLASSIFIED]

2009-05-12 Thread Musachy Barroso
Fixed in svn trunk musachy On Tue, May 12, 2009 at 9:32 AM, Musachy Barroso wrote: > https://issues.apache.org/struts/browse/WW-3123 > > On Tue, May 12, 2009 at 9:24 AM, Musachy Barroso wrote: >> Right now there is no way, we could add a flag that check if there are >> a

Re: Javatemplates plugin error in 2.1.7 with struts2-blank.war

2009-05-12 Thread Musachy Barroso
A patch was recently applied to the templates plugin, and maybe something is broken. I will take a look, thanks for reporting. musachy On Tue, May 12, 2009 at 9:13 AM, Thomas Terrace wrote: > Has anyone else been able to use the java templates plugin > successfully with 2.1.7? Using struts2-blan

Re: Javatemplates plugin error in 2.1.7 with struts2-blank.war

2009-05-12 Thread Musachy Barroso
yeah, it is broken: https://issues.apache.org/struts/browse/WW-3124 On Tue, May 12, 2009 at 9:51 AM, Musachy Barroso wrote: > A patch was recently applied to the templates plugin, and maybe > something is broken. I will take a look, thanks for reporting. > > musachy > > On Tue,

Re: Javatemplates plugin error in 2.1.7 with struts2-blank.war

2009-05-12 Thread Musachy Barroso
fixed in svn trunk. not big deal, the dependency is not required as it is an extension point. Thanks for reporting! musachy On Tue, May 12, 2009 at 9:55 AM, Musachy Barroso wrote: > yeah, it is broken: https://issues.apache.org/struts/browse/WW-3124 > > On Tue, May 12, 2009 at 9:51 AM

Re: How do I get a request parameter

2009-05-13 Thread Musachy Barroso
don't forget that what is returned from #parameters['somename'] is an array of values, so try: #parameters['somename'][0] musachy On Wed, May 13, 2009 at 3:57 PM, Wes Wannemacher wrote: > Well, parameters are available in the OGNL context through the named > variable 'parameters.' So, you should

Re: convention plug-in question

2009-05-14 Thread Musachy Barroso
Do you have a custom stack interceptor? If the fields are not populated in the action, then the params interceptor is not getting applied, it is hard to say without more details. musachy On Thu, May 14, 2009 at 1:30 PM, Jim Collings wrote: > I have an action with "execute" in the superclass (Act

Re: convention plug-in question

2009-05-14 Thread Musachy Barroso
if you add a "/" to the action name, it won't append the namespace to it, but use it as the whole action name. If your namespace is "myactions", and you set the name as "/action", the action name is "/action", if you set it to "action" then the action name will be "/myaction/action". musachy On T

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Musachy Barroso
It was added after 2.1.6 and it will be available in 2.1.7, here is the ticket: https://issues.apache.org/struts/browse/WW-3051 you need to set: musachy On Fri, May 15, 2009 at 9:09 AM, Robert Graf-Waczenski wrote: > Zoran Avtarovski schrieb: >> >> We upgraded to 2.1.6 and I remember that th

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Musachy Barroso
it has to be friday because all I can think about is happy hour :) musachy On Fri, May 15, 2009 at 9:23 AM, Dave Newton wrote: > Musachy Barroso wrote: >> >> It was added after 2.1.6 and it will be available in 2.1.7, here is the >> ticket: >> >> https://issues

Re: Struts2Builder 0.1.0 has been released

2009-05-15 Thread Musachy Barroso
I gotta say, that sounds really cool. thanks musachy On Fri, May 15, 2009 at 2:23 PM, tsattler wrote: > > Greetings all. > > I have posted the initial release of Struts2Builder over at SourceForge. > > Struts2Builder is a Java code generation system.  It will log into an > existing Postgres or M

Re: JSON plugin class loading problem?

2009-05-19 Thread Musachy Barroso
That's pretty weird, you could try mapping that action with XML, if the problem goes away, then it is a Codebehind problem, but I can't think of anything causing this. musachy On Tue, May 19, 2009 at 2:26 PM, wrote: > I am using version 0.32 of the JSON plugin with Struts 2.0.11.  It seems > to

Re: JSON plugin class loading problem?

2009-05-19 Thread Musachy Barroso
Martin, where do you get these random code sections from? Please refrain from posting "answers" that will just confuse users. This is a community and we benefit from the help and collaboration of users, so we encourage everyone to participate, but just throwing random code, from projects that are n

Re: JSON plugin class loading problem? (Part Deux)

2009-05-19 Thread Musachy Barroso
The OP stated that he is using the JSON plugin, v32, which is this Struts 2 plugin: http://cwiki.apache.org/S2PLUGINS/json-plugin.html, not related to xwork in anyway. musachy On Tue, May 19, 2009 at 7:58 PM, Martin Gainty wrote: > > something else > com.opensymphony.webwork.dispatcher.json.Json

Re: problems upgrading from struts 2.0 to 2.1

2009-05-20 Thread Musachy Barroso
are you using the REST plugin? I can't think of anything else that would add that ".xhtml" extension. musachy On Wed, May 20, 2009 at 11:48 AM, akoo wrote: > > Hi guys, > I am having some strange issues trying to upgrade from struts 2.0 to 2.1. > I have this simple login form > > > > >  Simple

Re: JSON plugin ignoring includeProperties parameter

2009-05-21 Thread Musachy Barroso
There is a getItems() in your action right? Does anything get generated at all? musachy -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional

Re: JSON plugin ignoring includeProperties parameter

2009-05-22 Thread Musachy Barroso
Please don't send private emails following up a thread. This is not a test case for a bug, this is commented code. I am not saying that there isn't a bug there, maybe there is. musachy On Fri, May 22, 2009 at 9:50 AM, Martin Gainty wrote: > //rather lengthy testcase for includeProperties > > com

Re: JSON plugin ignoring includeProperties parameter

2009-05-22 Thread Musachy Barroso
rties.  As an aside, the > "excludeProperties" also seems to be ignored, but the > "excludeNullProperties" is respected. > > Thanks again for your help! > > --john > > Musachy Barroso wr

  1   2   3   4   5   6   7   8   9   10   >