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: 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: 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-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: 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: 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: 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: 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: 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: 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: 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: 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: "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: 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: 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: [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: 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: -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: 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: 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 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 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: 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: 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: 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: 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: 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: 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: 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: (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: 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: 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: 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: 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: 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: 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-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: 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: 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

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

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: Struts tags with Groovy meta programming

2009-11-10 Thread Musachy Barroso
please pardon the bot, it hasn't been patched in a while, this *is* the right place to ask this question. musachy On Tue, Nov 10, 2009 at 12:57 PM, Martin Gainty wrote: > > ask this question on tomcat-users list > > Groovy and all CGI languages do not exist in J2EE world (correction i havent >

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Musachy Barroso
can you try "${action.someMethod()} ? I think that should work musachy On Tue, Nov 10, 2009 at 9:46 AM, Christopher Maloof wrote: > Thanks!  I don't know what that's really doing, but it does work.  Adding > parameters to the methods is a bit wonky; it's very difficult to get the > syntax right

Re: Struts tags with Groovy meta programming

2009-11-10 Thread Musachy Barroso
yes, field/methods are calling using reflection, I have no idea how the Groovy MetaClass works. You can look at the OGNLReflectionProvider class, that's the one doing the reflection stuff. musachy On Tue, Nov 10, 2009 at 7:10 AM, Ronny Løvtangen wrote: > Anyone? > > Does the struts tags do some

Re: struts 2 helloWorld example not properly working in tomcat 5.5

2009-11-10 Thread Musachy Barroso
hum, I use this all the time: mvn archetype:create -DgroupId=tutorial \ -DartifactId=tutorial \ -DarchetypeGroupId=org.apache.struts \ -DarchetypeArtifactId=struts2-archetype-starter \ -DarchetypeVersion=

Re: Question about OGNL in JSP

2009-11-09 Thread Musachy Barroso
That's because creating an object in a scriptlet doesn't mean it will be in the page context, you need to actually add it to the context. musachy On Mon, Nov 9, 2009 at 1:47 PM, Oscar Calderón wrote: > Hi to all, this is my first question here. I have a doubt about the use of > OGNL expressions

Re: struts 2 helloWorld example not properly working in tomcat 5.5

2009-11-09 Thread Musachy Barroso
using the maven archetype to get an app setup is a good idea, it can save you a lot of frustration. musachy On Mon, Nov 9, 2009 at 6:07 AM, reason wrote: > > Hello Jozef > > Great bit of help, along with the other guys! After dozens of hours of > frustration finally got the app running! > Struts

Re: advice on building front-end rapidly

2009-11-09 Thread Musachy Barroso
Vi just kidding, it is monday you know :) On Sun, Nov 8, 2009 at 5:39 AM, Farshad Rabbani wrote: > > Hello: > > > > I am currently building all my JSPs using notepad.  It is a very slow and > tedius process to get the struts tags to align and show exactly as I want and > also to format the pag

Re: S2: how to deal with NULL value with s:text tag?

2009-11-09 Thread Musachy Barroso
that should be fixed, could you please open a jira ticket with the details? http://issues.apache.org/struts/browse/WW musachy On Sun, Nov 8, 2009 at 8:31 AM, Burton Rhodes wrote: > Thanks for the reply.  There should definately be some sort of > enhancment to the tag.  I found a more susinct s

Re: s:iterator ¿begin -> end?

2009-11-04 Thread Musachy Barroso
Prints: 2 3 4 5 6 7 8 9 it seems to work fine. On Wed, Nov 4, 2009 at 1:35 PM, Volker Karlmeier wrote: > With 2.1.8, you can use > > > ... > > > But it still has a bug: see http://issues.apache.org/struts/browse/WW-3314 > > Regards > >  Volker > > Am 04.02.2009 16:04, schrieb Igna

Re: ognl.InappropriateExpressionException: Inappropriate OGNL expression: 1

2009-11-03 Thread Musachy Barroso
Can you post the whole stacktrace to see what it is trying to do? REST is mostly undocumented. If what you need are restful urls, and not the other rest functionality, I would suggest you to just use wildcards. musachy On Tue, Nov 3, 2009 at 2:43 PM, Graham Leggett wrote: > Hi all, > > I am curr

Re: Performance issue using tag

2009-11-02 Thread Musachy Barroso
ity that the delay was caused by the >   EJB lookup / execution > > I hope my analysis above is correct. Hope someone with more experience can > provide their input here as I'm really getting pasted about the performance > issue on a daily basis. > > Thanks! > Wong > &g

Re: Performance issue using tag

2009-11-02 Thread Musachy Barroso
It is the same struts code running all the time, so it should as fast(or slow) every time. The only thing that changes is the call to the EJB, so I would bet that the problem is there. musachy On Mon, Nov 2, 2009 at 9:57 AM, CS Wong wrote: > Hi, > > I seem to be having a performance issue in som

Re: Preserving Messages and Garbage values Across a Redirect in Struts 2

2009-11-02 Thread Musachy Barroso
both ${} and %{} are supported in 2.1.x On Mon, Nov 2, 2009 at 11:10 AM, Greg Lindholm wrote: > Here is the link [1] for "Parameters in configuration results", and yes it > is suppose to be ${} not %{} (but I thought it had been changed to support > %{}, hard to keep straight.) so you want to use

Re: Strange Problem With Struts2 Action

2009-11-01 Thread Musachy Barroso
null pointer exception in your code. On Sun, Nov 1, 2009 at 8:18 AM, shekher awasthi wrote: > java.lang.NullPointerException >         > com.raisonne.billsmart.challan.action.CreateChallanJob.execute(CreateChallanJob.java:41) -

Re: Convention Plugin & Struts Packages

2009-10-29 Thread Musachy Barroso
It is a file where you put annotations that are applied to the package. See: http://onjava.com/pub/a/onjava/2004/04/21/declarative.html?page=3 musachy On Thu, Oct 29, 2009 at 11:51 AM, Roger wrote: > On Thursday 29 October 2009 19:33:49 Musachy Barroso wrote: >> also, the @ParentPacka

Re: Convention Plugin & Struts Packages

2009-10-29 Thread Musachy Barroso
also, the @ParentPackage can be applied to a whole package by putting it in a package-info.java file. I will add that to the docs. musachy On Thu, Oct 29, 2009 at 7:01 AM, James Cook wrote: > If you use > > struts.convention.default.parent.package > > In either the web.xml or struts.xml, I think

Re: struts.convention.package.locators.basePackage

2009-10-29 Thread Musachy Barroso
you can just build it from trunk, and dump the new convention jar into your existing app, it should work. musachy On Thu, Oct 29, 2009 at 3:16 AM, James Cook wrote: > Infact I think I have answered my own question. > > In context of my previous email regarding the scanning, this bug: > https://i

Re: read the source code

2009-10-28 Thread Musachy Barroso
debugging is a great tool to understanding code. try to debug the blank application bundled with struts. Put a breakpoint in Dispatcher.serviceAction (double check name, off the top of my head) and debug all the way down. There is also some tools that generate sequence diagrams at runtime, but they

Re: Getting result of JSP before sending to client

2009-10-28 Thread Musachy Barroso
you can use the embeddedjsp plugin to process a jsp as a template library without using the container. another alternative is to create your own filter and create a response object which will have a writer to capture what is written to it, so you can modify it and then write it to the real output s

Re: deserializable ActionSupport

2009-10-28 Thread Musachy Barroso
The people who made that decision are by now long gone, and I can't think of any good reason myself. musachy On Wed, Oct 28, 2009 at 7:26 AM, Greg Lindholm wrote: > I believe the short answer is you can ignore this warning.  If really > inclined you could create your own base class that extends

Re: DefaultObjectTypeDeterminer Error

2009-10-27 Thread Musachy Barroso
can we see the java class? it seems like it is missing setParameters On Tue, Oct 27, 2009 at 1:19 PM, Pam Teerink wrote: > I am receiving the following error and do not know how to resolve the issue > > DEBUG DefaultObjectTypeDeterminer - Error while retrieving generic property > class for proper

Re: /struts-tags not found

2009-10-27 Thread Musachy Barroso
I have never used this approach, but I am guessing it would be: /struts-tags /WEB-INF/struts-tags.tld On Tue, Oct 27, 2009 at 1:29 PM, Bhaarat Sharma wrote: > > /WEB-INF/struts-tags.tld > /WEB-INF/struts-tags.tld > > -- Screw John Galt, who is Martin Gainty? --

Re: /struts-tags not found

2009-10-27 Thread Musachy Barroso
There are other ways to define a tag library, from jsp spec: "The container searches for all files with a .tld extension under /WEB-INF or a subdirectory, and inside JAR files that are in /WEB-INF/lib. When examining a JAR file, only resources under /META-INF or a subdirectory are considered. The

Re: RE: Adding Json to existing action

2009-10-27 Thread Musachy Barroso
can you show us your action mapping and the relevant parts of your code? musachy On Tue, Oct 27, 2009 at 8:50 AM, Michael Varlik wrote: > I just noticed a mistake I made. When adding the parameter to the result I > also have to add a getJsonData() method to the action, right? > I have added thi

Re: struts2 StringTemplate support

2009-10-25 Thread Musachy Barroso
I had never heard of it before, but you could write your own result for it. musachy On Sun, Oct 25, 2009 at 2:58 AM, Ran Tavory wrote: > Hi, I'm somewhat new to struts2 and very new to StringTemplate and I was > wondering if there's a struts2 result type of StringTemplate? > StringTemplate (http

Re: Possible bug on fieldError? (S2.1.6)

2009-10-22 Thread Musachy Barroso
Are you using the simple theme? musachy On Thu, Oct 22, 2009 at 2:39 PM, Burton Rhodes wrote: > I have the following line in my jsp: > > cssErrorClass="ErrorDataField" cssStyle="width: 350px" /> > > When no fieldErrors exist, it displays like this: > > id="ContactNote_update_contactNote_note"

Re: Warning: The default value expression 'Blabla' was evaluated and did not match a property

2009-10-21 Thread Musachy Barroso
are you using log4j? On Wed, Oct 21, 2009 at 1:54 AM, wrote: > Thanks for helping me. > > But how to increase the log level? > > >> -Ursprüngliche Nachricht- >> Von: Musachy Barroso [mailto:musa...@gmail.com] >> Gesendet: Montag, 19. Oktober 2009 17:20

Re: OGNL - Multi-dimensional Array

2009-10-20 Thread Musachy Barroso
what kind of problem are you having? Is it not calling "setDataCollection" at all? or are you not getting the expected values in the array? musachy On Tue, Oct 20, 2009 at 10:04 AM, Daniel Stephenson wrote: > Hello everyone, > > I had a question regarding multi-dimensional arrays and how they ar

Re: Warning: The default value expression 'Blabla' was evaluated and did not match a property

2009-10-19 Thread Musachy Barroso
you would have to increase the log level for that class. this has been turned off by default in 2.1.8+ musachy On Mon, Oct 19, 2009 at 6:18 AM, wrote: > Hallo, > > I use the tag. Every call leads to a "The default value > expression 'Blabla' was evaluated and did not match a property" warning

Re: struts2.1.8 generator tag problem

2009-10-16 Thread Musachy Barroso
the other 3 threads were not enough? musachy On Fri, Oct 16, 2009 at 10:17 PM, shenxiaojing wrote: > http://struts.apache.org/2.1.8/docs/generator.html > Example Three doesn't work!!! > > Example Three: > > Generate an iterator with var attribute > var="myAtt" /> > <% >  Iterator i = (Iterator

Re: Convention Plugin - Setting dynamic parameter values

2009-10-16 Thread Musachy Barroso
when you declare a result using annotations, the param values can contain OGNL values, just like in xml,: @Action(value="/different/url", result...@result(name="success", type="httpheader", params={"status", "%{status}", "errorMessage", "%{error}"})} ) public String execute() { return

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Musachy Barroso
that's only a problem for defining maps in ognl, which used the "#{a:b}" syntax, which made the jstl el complain. The solution is just to use the alternative map syntax: #...@java.util.linkedhashmap@{ "foo" : "foo value", "bar" : "bar value" } http://www.opensymphony.com/ognl/html/LanguageGuide/c

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Musachy Barroso
ntains little complex code. What about this one: > >         > > It is not so kind to deal w/ code like that((. But what to do? Add one more > function to *Action class? > > Musachy Barroso wrote: >> >> on top of that, you can use the the struts "set" tag

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Musachy Barroso
on top of that, you can use the the struts "set" tag to set stuff in any of the contexts. Scriptlets are evil. musachy On Tue, Oct 13, 2009 at 9:41 AM, Dale Newfield wrote: > Alex Siman wrote: >> >> Thanx you Dave for your advice! > > Sure, Alix. > >> I switched off the JSTL-EL (as it was recome

Re: Why is PageContext null?

2009-10-13 Thread Musachy Barroso
that should be available inside tags only, not actions..I think. On Tue, Oct 13, 2009 at 6:57 AM, Alex Siman wrote: > > I do try to get PageContext inside action in a such way: > >        ServletActionContext.getPageContext(); > > and it is null. Why? > -- > View this message in context: > http:

Re: How to get value of tag attribute from OGNL?

2009-10-12 Thread Musachy Barroso
I am not sure I understand what you mean. Is "someTagAttribute" set in the context by your custom tag? musachy On Mon, Oct 12, 2009 at 2:57 PM, Alex Siman wrote: > > I have created JSP file tag as it is described here > http://java.sun.com/javaee/5/docs/tutorial/doc/bnama.html > > To get value o

Re: cannot find property [templateDir]

2009-10-12 Thread Musachy Barroso
you can turn off logging for that class, in log4j. Those messages will won't be logged by default in 2.1.8+ musachy On Mon, Oct 12, 2009 at 4:07 AM, RogerV wrote: > > I'm getting hundreds of these messages cluttering up my tomcat logs - it > doesn't stop my > struts application working though. C

Re: Overriding default action mapper

2009-10-12 Thread Musachy Barroso
yes, it will work. musachy On Mon, Oct 12, 2009 at 2:08 AM, RogerV wrote: > > > > Musachy Barroso wrote: >> >> this is how you do it: >> >>  > class="com.MySuperMapper" name="superMapper"/> >>   >> >> mus

Re: Prevent request filter invocation when struts action tag is invoked

2009-10-11 Thread Musachy Barroso
What REQUEST FILTER is this you are talking about? On Sat, Oct 10, 2009 at 10:15 PM, Pancham wrote: > request filter -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@s

Re: LDAP WITH Struts 2

2009-10-10 Thread Musachy Barroso
Struts doen't know anything about LDAP. If you are using Spring, look at the spring LDAP support: http://www.springsource.org/ldap musachy On Sat, Oct 10, 2009 at 2:22 AM, nani2ratna wrote: > > Hi , > Can anybody tell me how to configure LDAP with struts 2. > We already configures struts2 with

Re: Overriding default action mapper

2009-10-09 Thread Musachy Barroso
this is how you do it: musachy On Fri, Oct 9, 2009 at 2:59 PM, RogerV wrote: > > I've followed the instructions at > http://struts.apache.org/2.0.14/docs/actionmapper.html and defined my custom > mapper that extends DefaultActionMapper in struts.xml, but it won't load > because the mapper h

Re: Prevent request filter invocation when struts action tag is invoked

2009-10-09 Thread Musachy Barroso
Use the "dispatcher" element in the "filter-mapping" element in web.xml, like: MyFilter /* REQUEST On Fri, Oct 9, 2009 at 10:16 AM, Pancham wrote: > > I have a request filter that needs to be executed only once during processing > of a request. Unfortunately, whene

Re: Error 500 problem.

2009-10-09 Thread Musachy Barroso
It seems like ajaxtags is doing something that xerces doesn't like: On Fri, Oct 9, 2009 at 10:44 AM, Bruno wrote: > at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) >    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) >    at > net.sourceforge.ajaxtags.tags.BaseAja

Re: Weblogic and annotations

2009-10-09 Thread Musachy Barroso
search the mailing list, I vaguely remember this came up before. musachy On Fri, Oct 9, 2009 at 9:16 AM, Gregor Marinšek wrote: > Hi there! > > Well finally got the problem Weblogic when exploding WAR does not put > classes in WEB-INF/classes. That's why ClassFinder (via ClassLoader) does >

Re: 2.1.6, Convention Plugin + Spring + Glassfish 2 ur2

2009-10-08 Thread Musachy Barroso
. from the config-browser and > would this affect the operation? > > Thanks again > > James > > -Original Message- > From: Musachy Barroso [mailto:musa...@gmail.com] > Sent: 08 October 2009 18:59 > To: Struts Users Mailing List > Subject: Re: 2.1.6, Convent

Re: 2.1.6, Convention Plugin + Spring + Glassfish 2 ur2

2009-10-08 Thread Musachy Barroso
Those exceptions are annoying, but they can be ignored. There are multiple settings for scanning, like not scanning jars, which you can play with. musachy On Thu, Oct 8, 2009 at 10:19 AM, James Cook wrote: > Hi All, > > I did ask this question before but never received an answer, I do > understa

Re: TypeConverter needs Spring Bean

2009-10-07 Thread Musachy Barroso
gt; it should work. >> >> musachy >> >> On Fri, Feb 6, 2009 at 9:59 AM, Griffith, Michael * >> wrote: >>> How can you tell? This is handed by the plug-in, right? From my >>> struts.properties file: >>> >>> struts.objectFactory = spring >>> struts.objectFac

Re: Struts 2, annotated actions an weblogic

2009-10-07 Thread Musachy Barroso
set the debug level to trace and see what is writes out. Most likely it is not finding your actions/jars. musachy On Wed, Oct 7, 2009 at 2:58 AM, Gregor Marinšek wrote: > Hi there! > > I have an application running on tomcat without any problem. But when i > delploy application to oracle weblogi

Re: Refactoring of Interceptor.intercept(ActionInvocation)

2009-10-06 Thread Musachy Barroso
yes, although I am kind of confused about your first email. musachy On Tue, Oct 6, 2009 at 7:50 PM, Alex Siman wrote: > > Is it safe to get ActionInvocation inside of [Interceptor.intercept()] in > this way?: > > ActionInvocation invocation = > ActionContext.getContext().getActionInvocation(); >

Re: Struts2 and TestNG

2009-10-06 Thread Musachy Barroso
also, make sure the convention plugin is in the classpath for the tests. musachy On Tue, Oct 6, 2009 at 2:22 PM, Alex Siman wrote: > > > dolsen-2 wrote: >> >> Does this method work if I declare my actions with annotations instead of >> declaring them in struts.xml? >> > Of course, I also declare

Re: iterator tag: how to interpret the property value which are html

2009-10-06 Thread Musachy Barroso
html gets escaped by the 'property' tag. hint: read my other hint. On Tue, Oct 6, 2009 at 10:05 AM, samsun wrote: > > value on value stack are, i think, changed when retreiving > from valuestack thru ,the problem i have is > value with html tag around it is not interpreted properly > by browser,

Re: iterator tag: how to interpret the property value which are html

2009-10-06 Thread Musachy Barroso
hint: check the documentation of the "property" tag On Tue, Oct 6, 2009 at 7:12 AM, samsun wrote: > > I have to iterate thru a list of strings, some of the string element include > html tag > like Copmany Names:   it print out litterlly like this >  Copmany Names:, not the bolded word Comp

Re: Access Denied error with Struts 2.1.8

2009-10-05 Thread Musachy Barroso
did you try asking in the GAE forums? This is more of a GAE problem, so you have a better chance to find an answer there. musachy On Mon, Oct 5, 2009 at 12:58 PM, Dan R. Olsen III wrote: > I have been able to open the jar with WinZip so I don't think it is an > invalid jar. > > I am using Google

Re: Struts 2.1.8 + SiteMesh 2.4.2 + FreeMarkerPageFilter Broken

2009-10-02 Thread Musachy Barroso
can you please file a jira ticket with the details? thanks musachy On Fri, Oct 2, 2009 at 12:52 PM, Scott Hong wrote: > > > The dependency of Struts 2.1.8 on SiteMesh 2.4.2 breaks FreeMarkerPageFilter > as a decorator. > > If the web.xml is setup as follows and using Freemarker as the SiteMesh >

about testing releases

2009-10-02 Thread Musachy Barroso
Hi all, to make a long story short, we have problems in the way that we test/release struts. We cannot announce test builds in the user mailing list, but at the same time we really need the help of user to test releases, and find any problems before calling a release GA. It is assumed that anyone i

Re: http://struts.apache.org/dtds/struts-2.1.7.dtd NOT FOUND

2009-10-01 Thread Musachy Barroso
there was a change after 2.1.6 to add the plugin load order attribute. musachy On Thu, Oct 1, 2009 at 10:56 AM, Lukasz Lenart wrote: > 2009/10/1 Wes Wannemacher : >> There was a post-2.1.6 change to that dtd, that's why it doesn't >> currently point to 2.1.dtd > > Are you sure? I've just checked

Re: [ANN] Struts 2.1.8 GA Release

2009-10-01 Thread Musachy Barroso
We are looking at it, this will probably mean another build, if you guys can keep an eye on the dev@ mailing list and help us test it, it will be greatly appreciated. musachy On Thu, Oct 1, 2009 at 9:44 AM, Karl wrote: > As reported by Lee, the zip file for 2.1.8GA on Windows is unusable. Please

Re: Convention Plugin - "Unable to find a result type for extension [svn/]"

2009-10-01 Thread Musachy Barroso
course does not start with a ".". > > I attached a patch which solves this problem. You may want to adjust the > code. > > Best regards, >    Chris > > > > > > > Am 30.09.2009 um 19:30 schrieb Musachy Barroso: > >> convention uses the extension

  1   2   3   4   5   6   7   8   9   10   >