Re: Apache Struts 2.3.35 Upgrade - backward incompatibility in s:if

2018-08-30 Thread Miguel Almeida
Thanks Lukasz, On Thu, Aug 30, 2018 at 10:03 AM Lukasz Lenart wrote: > czw., 30 sie 2018 o 10:40 Miguel Almeida > napisał(a): > > Out of curiosity, is the problem the conversion from List to XWorkList > > mentioned > > by Yasser > > < > https://i

Re: Apache Struts 2.3.35 Upgrade - backward incompatibility in s:if

2018-08-30 Thread Miguel Almeida
about this incompatibility? Going forward, is there a way to improve the compatibility assessments? Kind regards, Miguel On Thu, Aug 30, 2018 at 7:21 AM Lukasz Lenart wrote: > śr., 29 sie 2018 o 19:04 Miguel Almeida > napisał(a): > > *And *scopesValues was previously set ( > value=&qu

Apache Struts 2.3.35 Upgrade - backward incompatibility in s:if

2018-08-29 Thread Miguel Almeida
our pages we are now hesitant on what other places could break after the upgrade. Kind regards, Miguel

Re: Can we use the decorator pattern in Actions?

2017-03-31 Thread Miguel Almeida
original suggestion, I'm not sure I followed, since "Thus must be implemented in each interceptor which interacts with action base on interface (Preparable, ValidationAware, SessionAware, etc)." sounded like all (or most) Struts interceptors would need to be re-written. Miguel On Qui, 2

Re: Can you use type conversion with JSONInterceptor?

2016-12-02 Thread Miguel Almeida
Thank you Lukasz! I will check if/how we can inject the converter there. If we manage to get it working in a way that helps the ticket resolution I'll also post the information there. On Sex, 2016-12-02 at 09:50 +0100, Lukasz Lenart wrote: > Hi, > > JSON plugin uses its own conversation mecha

Can you use type conversion with JSONInterceptor?

2016-12-01 Thread Miguel Almeida
and 10672 in the value). How would we configure this correctly? Is it possible for the JSON interceptor to be aware of the -conversion.properties? If not, what alternatives do you envision? Thanks! Miguel

Re: S:url and s:param and character encoding

2014-09-01 Thread Miguel Almeida
On Mon, 2014-09-01 at 10:20 +0200, Lukasz Lenart wrote: > 2014-08-29 18:11 GMT+02:00 Miguel Almeida : > > I had an issue recently with a download action not finding the > > corresponding file and you might be able to help me with it. The > > filename (on disk) was "Cal

S:url and s:param and character encoding

2014-08-29 Thread Miguel Almeida
e="> Is there something missing from s:url? I also found https://issues.apache.org/jira/browse/WW-2414 which seems to mention something similar, but marked as solved in 2.0.x. Cheers, Miguel

Re: Is the email regex validator in Struts validation incorrect?

2014-08-25 Thread Miguel Almeida
solution for completely-spec-compliant email address validation. > > Note that other email validators can be plugged in fairly easily. > > Dave > > > > > On Mon, Aug 25, 2014 at 12:11 PM, Miguel Almeida wrote: > > > I have added it to the JIRA - >

Re: Is the email regex validator in Struts validation incorrect?

2014-08-25 Thread Miguel Almeida
characters? Cheers! Miguel On Mon, 2014-08-25 at 10:51 -0500, Paul Benedict wrote: > I looked up the RFC. The document lists itself as a "proposed standard" [1] > so it's not really available yet for general use (but correct me if wrong). > I propose that an enhancement sho

Is the email regex validator in Struts validation incorrect?

2014-08-25 Thread Miguel Almeida
ur view on this? Could this regex be incorrect and miss out any special characters? Miguel Almeida

Re: REST question

2014-02-11 Thread Miguel
Thanks Lukasz, the REST namespace makes everything work well with the REST Plugin loaded. Now the real work begins, but that will be for tomorrow morning. Regards Miguel Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco Sobrino On Tue, Feb 11, 2014 at 11:46 PM, Lukasz Lenart

Re: REST question

2014-02-11 Thread Miguel
Thanks for your time reading an replying the question. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco Sobrino On Tue, Feb 11, 2014 at 3:42 PM, Ken McWilliams wrote: > Sounds like you have used the Open Session in View method... probably > provided by a custom interce

REST question

2014-02-10 Thread Miguel
what can be happening? Thanks Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco Sobrino

Re: Best book reference for struts 2

2014-01-16 Thread Miguel Almeida
You're welcome! I like to give credit when credit is due, and your book helped me a lot when I started out, in 2007/2008, knowing virtually nothing about web development and very little about programming. Speaking of which, are you thinking about creating a new edition for 2.x or 3.x ? M

Re: Best book reference for struts 2

2014-01-16 Thread Miguel Almeida
I've found Dave Newton's Apache Struts to be one of the best Struts books out there. Miguel On Thu, 2014-01-16 at 14:17 +0530, Arvind Gupta wrote: > Struts2 by Vincent is really good for starting out. Also have a look at > this one from infoq > > http://www.infoq.

Re: minimal set of jar files for struts 2.3

2014-01-06 Thread Miguel Almeida
Lukasz, Incidentally, is this list compiled by hand or is it built automatically using a (which?) maven plugin? Miguel On Sat, 2014-01-04 at 13:18 +0100, Lukasz Lenart wrote: > The first section compile and optional No > > http://struts.apache.org/release/2.3.x/xwork-core/dependen

Re: Is Struts 2.3.15.2 affected by the security vulnerability S2-018?

2013-12-17 Thread Miguel Almeida
On Tue, 2013-12-17 at 11:40 +0100, Lukasz Lenart wrote: > 2013/12/17 Miguel Almeida : > > Lukasz, > > > > Just to be sure, does that mean that if you use 2.3.15.3 and you set the > > flag to enable the action: prefix it means you'll get the old behaviour > &g

Re: Is Struts 2.3.15.2 affected by the security vulnerability S2-018?

2013-12-17 Thread Miguel Almeida
Lukasz, Just to be sure, does that mean that if you use 2.3.15.3 and you set the flag to enable the action: prefix it means you'll get the old behaviour (and vulnerability) back? Miguel On Mon, 2013-12-16 at 08:27 +0100, Lukasz Lenart wrote: > 2.3.15.2 and 2.3.15.3 address the same is

Re: Token Session Interceptor and back button

2013-12-06 Thread Miguel Almeida
Paul, I was thinking about this example...what did you have in mind as a way to achieve that, tough, i.e., that a browser "back" refreshes the page? I can only see some javascript method/hack for that. Were you thinking of something else? Miguel On Thu, 2013-12-05 at 14:59 -

Re: S2 - custom tag with Spring

2013-12-04 Thread Miguel Almeida
ich you've told Spring to scan) it is managed by spring - so you'll be able to inject whatever you want onto the bean. Beware of the scope you give to that bean, though. If it's in a tag, you might want to give it a request scope. Miguel On Wed, 2013-12-04 at 11:00 +0800, Steven Yang wr

Re: Sending email on uncought exception problems

2013-11-26 Thread Miguel Almeida
The first thought I had was also that this might be better suited on an interceptor. You'll also have more control over the desired behaviour since interceptors are more easily testable than JSPs. Miguel On Tue, 2013-11-26 at 09:43 -0500, Dave Newton wrote: > Why not use an int

Re: security impact after enabling back the "action:" prefix in Struts 2.3.15.3

2013-11-26 Thread Miguel Almeida
the normal behaviour will return in both situations on a future non-security release - hopefully the next one! Maybe someone from the dev team can share their input with us? Kind regards, Miguel Almeida On Wed, 2013-11-20 at 04:33 +0100, Krassen Deltchev wrote: > Dear Struts2 mailing list, &g

s:token doesn't accept data- attributes, cssClass ignored

2013-10-02 Thread Miguel Almeida
#x27;t break rendering, the class is not passed onto the hidden input elements. Is there a reason for this? While in the case of data-foo this seems to be a missing feature, in the case of cssClass it's also misleading - you can set the property, but it doesn't have any consequence. Miguel

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Miguel Almeida
Without any code it's hard to know what's happening. I do ask you to seriously reconsider refactoring database access out of the action or you'll end up with a huge, very hard to test action class. Miguel Almeida On Fri, 2013-09-06 at 10:50 +0100, Chris wrote: > Where : serve

Re: How to set the name parameter on a multiple s:select

2013-05-30 Thread Miguel Almeida
ks as expected (as evidenced by the test case [1]). The challenge is to create an s:select that generates that request parameters! Miguel [1] Unit Test snippet request.setParameter("entity.entity2List[0].entity3.id", "2"); request.setParameter("e

Re: How to set the name parameter on a multiple s:select

2013-05-29 Thread Miguel Almeida
I've also posted this on http://stackoverflow.com/questions/16812357/how-to-set-the-name-parameter-on-a-multiple-sselect so the knowledge can be shared once the answer is known. I also plan to add this to struts' documentation! Miguel On Wed, 2013-05-29 at 11:27 +0100, Miguel Alm

How to set the name parameter on a multiple s:select

2013-05-29 Thread Miguel Almeida
n the form entity.entity2List[n].entity3.id (n=0,1,2...depending on how many items are selected). Question: how should the name parameter of the s:select be like to achieve this? Me and Lukasz have tried the following without success (meaning entity.entity2List has is empty): Thank you for your hel

Re: Struts application

2013-02-20 Thread Miguel Almeida
Or, if you already use Maven, use the Maven archetypes available at http://struts.apache.org/ Miguel Almeida On Wed, 2013-02-20 at 22:31 +0530, Umesh Awasthi wrote: > download sample application from S2 official download section and you will > be able to see how things are being configur

Private setter method breaking application in Tomcat7

2013-02-20 Thread Miguel Almeida
tainer complaining? Neither tomcat6 nor our embedded jetty containers complain about this 2) Even though the method's name should be changed, I also find it strange that this is a problem when the 2nd method is private. Any thoughts appreciated, Miguel Almeida

Re: Issue with maven archetypes - jetty plugin version 8 not refreshing JSPs

2012-11-07 Thread Miguel Almeida
ile's timestamp and refreshes anyway, Jetty 8 is more sensitive and does not reload the file. So the "solution" here was simply to update the remote NFS server's clock. Why the NTP-aware server is having trouble with the time is another issue... Miguel Almeida On Tue, 2012-11-

Re: Issue with maven archetypes - jetty plugin version 8 not refreshing JSPs

2012-10-31 Thread Miguel Almeida
configuration without for jetty 6 and 8? Miguel Almeida On Tue, 2012-10-30 at 21:57 +0100, Lukasz Lenart wrote: > Hi, > > I've tested with apps/blank and it works as expected, the same with an > app created base on struts2-archetype-blank (mvn archetype:generate - > 307)

Issue with maven archetypes - jetty plugin version 8 not refreshing JSPs

2012-10-29 Thread Miguel Almeida
ame and version) org.mortbay.jetty jetty-maven-plugin 8.1.7.v20120910 10 Does anyone know what configuration change is needed so you get the same behaviour as before? Miguel Almeida

Re: Can we use the decorator pattern in Actions?

2012-10-03 Thread Miguel Almeida
is to use Spring IoC to define these needed objects in OriginalAction. But it would be neat if that was performed by Struts. What are your thoughts on this? Miguel Almeida On Wed, 2012-05-16 at 11:22 +0100, Miguel Almeida wrote: > Imagine the scenario where you have security implemented

RE: Type conversion on a Map

2012-09-21 Thread Miguel Almeida
t assertEquals, not here. > > assertFalse(complexMap.isEmpty()); //FAIL it is empty > assertEquals("value", complexMap.get(entity)); //Never initialised so > this would fail as well This is where it is failing. Not because it hasn't been initialized, but because it doesn't have that key. Miguel Almeida

Type conversion on a Map

2012-09-20 Thread Miguel Almeida
Is the -conversion file wrong, the parameter set in the unit test, or both? Cheers, Miguel Almeida

Re: OGNL error in log - Error setting expression

2012-07-27 Thread Miguel Almeida
Answering my own question: apparently you need to define a name property for the submit tag. Thanks to http://www.coderanch.com/t/487063/Struts/Internationalization Miguel On Fri, 2012-07-27 at 18:33 +0100, Miguel Almeida wrote: > I noticed some OGNL warnings in my log that I show below

OGNL error in log - Error setting expression

2012-07-27 Thread Miguel Almeida
whether or not these warnings should appear has been discussed in the mailing list before. What I couldn't find is this: should there even be a warning in this case, given that the property should be searched for in the i18n resources and not the action? Thank you, Miguel Almeida [1] 2012-07-27

Re: some issues upgrade struts from 2.2.3 to 2.3.4

2012-07-18 Thread Miguel
Also REST doesn't work in 2.3.3 and 2.3.4. Not even the rest-showcase war. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco Sobrino On Sun, Jul 15, 2012 at 12:46 PM, ekstse wrote: > sorry that i do not aware that attachment is not valid sorry about > tha

Re: Performance issue with nested iterator

2012-07-05 Thread Miguel Almeida
hat commit. Updating to 2.3.19 makes performance normal again (the complete project needed freemarker, hence the direct dependency reference in the pom). While I don't know what changed between these freemarker versions, apparently the problem was there. Miguel Almeida On Thu, 2012-07-05

Re: Performance issue with nested iterator

2012-07-05 Thread Miguel Almeida
is using tiles, so I kept it there. However, I don't think it's being used in the web workflow I created (which just goes to index.jsp). Is there anything there that might explain this slowness? Cheers, Miguel Almeida On Thu, 2012-07-05 at 13:05 +0100, Miguel Almeida wrote: >

Re: Performance issue with nested iterator

2012-07-05 Thread Miguel Almeida
Sure, Lukas: https://github.com/mmalmeida/struts-performance On Thu, 2012-07-05 at 06:48 +0200, Lukasz Lenart wrote: > Could you post somewhere (GitHub) the whole code base ? > > > Regards

Performance issue with nested iterator

2012-07-04 Thread Miguel Almeida
ops from 8 to 2 seconds). Looking at http://struts.apache.org/2.x/docs/performance-tuning.html, I double checked the OGNL version loaded in maven and indeed I have 3.0.3. Is there any obvious reason why I'm getting such a slow performance? Thanks for the input! Miguel Almeida

Re: data injection attack

2012-07-04 Thread Miguel Almeida
Lukas: that's not always viable though. You might need a setter for your model object elsewhere, but don't want that action to set that property. On Wed, 2012-07-04 at 14:57 +0200, Lukasz Lenart wrote: > By removing setter for it ? > > > Regards >

Can you define variables as the value in struts.properties?

2012-06-18 Thread Miguel Almeida
ly need is struts.custom.i18n.resources=environments/app-${envName}. Can one have this, so only the file that makes sense for that environment is loaded? [1] https://gist.github.com/2948672 Cheers, Miguel Almeida

Can we use the decorator pattern in Actions?

2012-05-16 Thread Miguel Almeida
icity for testing, however, is great! Cheers, Miguel Almeida [1] The code might end up like this (semi-pseudo code) Tests: test_admin_can_call_method_a() { // setup a fake request with admin role: httpRequest = buildRequestWithRole("admin"); // se

Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-16 Thread Miguel Almeida
g called at app startup - even if you define it with, say, a prototype scope in spring. This means that apparently Struts disregards spring's scope for interceptors, which has thread safety implications (and you might be better off using the approach in 3) ). Miguel On Tue, 2012-05-15 at

Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-14 Thread Miguel Almeida
#x27;t know anything about http sessions or requests and should really be http agnostic). Could you clear me up on you meant by your approach? Thanks, Miguel Almeida On 05/14/2012 08:11 PM, Łukasz Lenart wrote: I think it's better to repackage what you need and pass as a context variables ins

RE: Does the StrutsTestCase test filters defined in web.xml?

2012-05-14 Thread Miguel Almeida
Hi Steve, On Mon, 2012-05-14 at 11:09 +0100, Steve Higham wrote: > Hi Miguel, > > I haven't used the StrutsSpringTestCase however I have made use of the > StrutsTestCase. > > This only tests the interceptor stack / Action / Result. There is no web > server involve

Does the StrutsTestCase test filters defined in web.xml?

2012-05-14 Thread Miguel Almeida
suggest I perform this test? Thank you, Miguel Almeida [1]- see http://www.displaytag.org/1.2/export_filter.html

Re: Testing with StrutsTestCase in a Tiles application - NullPointerException

2012-01-30 Thread Miguel Almeida
, "WEB-INF/tiles.xml"); final StrutsTilesListener tilesListener = new StrutsTilesListener(); final ServletContextEvent event = new ServletContextEvent(servletContext); tilesListener.contextInitialized(event); } } Miguel Almeida On Fri, 201

Testing with StrutsTestCase in a Tiles application - NullPointerException

2012-01-27 Thread Miguel Almeida
/user@struts.apache.org/msg77582.html ). Petrelli tried to answer, but no solution was posted. >From these resources, do you know what the problem might be and if it is possible to use StrutsTestCase to test an application that has Tiles enabled through the StrutsTilesListener? Cheers, Miguel Almeida

Maven archetypes not working?

2012-01-20 Thread Miguel Almeida
3.1.1 -> https://repository.apache.org/content/groups/public/] The defined artifact is not an archetype While I've just added the catalog to my workspace, I have used maven archetypes before. Is there something not working with the archetypes at the moment? Cheers, Miguel Almeida

Message lookup (from key) in Test

2011-11-16 Thread Miguel Almeida
x27;m trying is: assertEquals(expectedMessage, action.getActionErrors().iterator().next()); But actionErrors() contains the key (error.authorisation) and not the value ("you cannot do this"). What's the cleanest way to retrieve the value from the test? Cheers, Miguel Almeida

Re: Can Struts Junit plugin be used to test the redirect result of an action

2011-09-24 Thread miguel
retrieve the correct results from the database unless I pause its execution for a second. Weird. Very. > Maurizio Cucchiara > > > > On 21 September 2011 17:25, Miguel Almeida wrote: > > I am using the Struts Junit plugin > > (http://struts.apache.org/2.2.3.1/d

Re: Unit Test Struts2 Action - Custom type converters not being run?

2011-09-21 Thread Miguel Almeida
could be replaced with request.setParameter() (can it?), but I need the second - otherwise I'll have a nullpointerexception in my action's session.get() method (because ServletConfigInterceptor's ((SessionAware) action).setSession(context.getSession()); (line 146) will set it to null and override the action.setSession(session) instruction) Miguel

Can Struts Junit plugin be used to test the redirect result of an action

2011-09-21 Thread Miguel Almeida
this base test case to make it call the 2nd action? Regards, Miguel Almeida

Re: PropertyPlaceholderConfigurer can't read file properties

2011-07-01 Thread Miguel Almeida
On Fri, 2011-07-01 at 08:46 -0500, Paul Benedict wrote: > Can you clarify? You spoke about reloading -- are you trying to change > property files on the fly? Agree: as far as I know, you can't do that with PropertyPlaceholderConfigurer. Also agree with previous mail: this is Spring, not Struts.

Re: Multi Devices and Multilanguage

2011-06-29 Thread Miguel
browse" Stuts 2 can handle natively The international and localization stuff. Enviado desde mi Nexus S Miguel Ruiz Velasco Sobrino On Jun 29, 2011 10:28 AM, "Frans Thamura" wrote: > hi all > > we want to create a multi devices rendering for our apps, which we use > stru

Re: getText on XSLT transformation on an Action

2011-06-16 Thread Miguel
positivo, pierde un electrón Miguel Ruiz Velasco Sobrino On Thu, Jun 16, 2011 at 19:31, JOSE L MARTINEZ-AVIAL wrote: > could you expand that? do you mean to create the XSLT on the fly? > > 2011/6/16 Maurizio Cucchiara > >> The first solution I thought is: a template engine. >

Re: Adding a JNDI lookup yields unexpected Struts errors (Spring injection)

2011-06-08 Thread Miguel
To ease inspection of the problem, I created a unit test in the JIRA issue (https://issues.apache.org/jira/browse/WW-3647 ): run JNDIProblemTestCase in https://issues.apache.org/jira/secure/attachment/12481828/redirectActionErrorWithJunitTest.zip On Wed, 2011-06-08 at 16:08 +0100, Miguel

Re: Adding a JNDI lookup yields unexpected Struts errors (Spring injection)

2011-06-08 Thread Miguel
redirectAction is with login, whose result is triggered by writing "issue" in the field name. Can you try it again? You should see the error then! Miguel

Re: Adding a JNDI lookup yields unexpected Struts errors (Spring injection)

2011-06-08 Thread Miguel
expected Struts errors (Spring injection) Para: "Struts Users Mailing List" It works for me ... Hello Lukasz, today is 2011/06/08 Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2011/6/8 Miguel : > Hi, > > I

Re: Adding a JNDI lookup yields unexpected Struts errors

2011-06-07 Thread Miguel
ion mapped for action name YYY/tutorial/randomiseRedirect. Why is it adding my jndi property to the URL? On Tue, 2011-06-07 at 18:07 +0100, Miguel wrote: > Dear all, > > I am having a strange problem and was hoping anyone knows why this is > happening. > > My web app was work

Adding a JNDI lookup yields unexpected Struts errors

2011-06-07 Thread Miguel
- or trying to reach http://localhost:8080/AAA/welcome!AAA.action#AAA (why it is appending so many AAA I don't know) While this is not strictly a problem with struts, perhaps somehow this configuration is conflicting with Struts. Any help is appreciated in trying to understand this proble

Re: Can we use spring-plugin to inject a HttpServletRequest onto a bean?

2011-05-27 Thread Miguel
On Fri, 2011-05-27 at 09:00 -0400, Dave Newton wrote: > On Friday, May 27, 2011, Miguel wrote: > > Following my previous email and agreeing with you on this, I might, of > > course, get off the request hook by changing the request injection with > > injecting, for example,

Re: Can we use spring-plugin to inject a HttpServletRequest onto a bean?

2011-05-27 Thread Miguel
On Fri, 2011-05-27 at 13:24 +0100, Miguel wrote: > Hi Dave, > > On Fri, 2011-05-27 at 08:10 -0400, Dave Newton wrote: > > > What specifically do you need an actual request for? This strikes me > > as coupling your design to the servlet spec, and there's rarely a

Re: Can we use spring-plugin to inject a HttpServletRequest onto a bean?

2011-05-27 Thread Miguel
dress. Do you see any other better alternative and/or a solution to my previous mails' question? Thanks a lot for your quick reply! Miguel Almeida

Can we use spring-plugin to inject a HttpServletRequest onto a bean?

2011-05-27 Thread Miguel
s a request onto the actions. I'm using spring-plugin. But @autowire-ing the request doesn't work, and in my springcontext.xml, I fail to see how to fetch struts' request (whose spring bean would be XXX in the following code): Is what I am trying to achieve possible? Regards, Miguel Almeida

Where's the best way to test session timeout?

2011-05-23 Thread Miguel
est it? More specifically: 1) Can we test it with a struts integration test? 2) How can we mock the time span (ie, we obviously don't want to wait 5 minutes for the test to finish...). Thanks for the input, Miguel Almeida

RE: S2 TEst Best Practices

2011-05-20 Thread Miguel
On Fri, 2011-05-20 at 09:29 -0400, Dave Newton wrote: > On May 20, 2011 9:26 AM, "Ilya Kazakevich" wrote: > > There should not be logic in view. If there is no logic -- there is > nothing > > to test:) > > Sure there is, and I'm not even including JavaScript-based functionality. > Are the right t

RE: S2 TEst Best Practices

2011-05-20 Thread Miguel
On Fri, 2011-05-20 at 15:38 +0400, Ilya Kazakevich wrote: > Hello, > > In pure struts your action is just a presenter (see MVP pattern). So you can > test it using unit testing engines like testNG and jUnit. > > For GUI testing you can use selenium. Ilya, what kind of tests do you usually run w

Re: S2 TEst Best Practices

2011-05-20 Thread Miguel
more) tests. So of course you can set that up in jenkins. I am actually starting with jenkins and have little experience with CI systems. Everything is easy until you have environment specific settings (like different databases and database credentials, or upload paths). Miguel Almeida

Re: S2 TEst Best Practices

2011-05-20 Thread Miguel
happy with this approach, as a) I end up testing my action in 2 or 3 different places b) I'm not completely happy with my validation test class yet, which currently extends from StrutsSpringTestCase Regards, Miguel Almeida

Re: Type conversion of List - how does one do it?

2011-05-18 Thread Miguel
On Tue, 2011-05-17 at 14:42 -0700, Jeffrey Black wrote: > Hey there Miguel. > > Have a look here: > > http://struts.apache.org/2.0.14/docs/type-conversion.html#TypeConversion-GenericsandErasure Thanks Jb. In my case a possible solution is to remove the generic reference

Type conversion of List - how does one do it?

2011-05-17 Thread Miguel
an one use the automatic type conversion when your list is defined for an interface? Thank you in advance, Miguel Almeida

Re: Pagination using Struts library

2011-05-13 Thread Miguel
due to the fact that displaytag's export url is Someaction.action?6578706f7274=1&d-16533-e=5 and 6578706f7274 doesn't seem to be valid on recent versions. Miguel Almeida Dave,On Wed, 2011-05-11 at 08:06 -0400, Dave Newton wrote: > > DisplayTag is open-source, BTW.

jsp's outside WEB-INF in maven archetype?

2011-05-10 Thread Miguel
#x27;t it preferable to store the jsp's inside WEB-INF (to reduce their visibility)? If so, shouldn't the archetypes be changed in accordance? Regards, Miguel Almeida

Re: [ANN] Struts2 jQuery Plugin Version 3.0.0 is available

2011-05-09 Thread miguel
Johannes, Have you posted 3.0.0 on maven repositories yet? I have used jquery extensively, but never jquery plugin. I am trying it out on a pet project. Well done! Miguel On Mon, 2011-05-09 at 11:22 -0700, Johannes Geppert wrote: > arin_12 wrote: > > > > Seems that we have so

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Miguel
Which means: try changing your property name to something else; the tagId may already be in use. I also had a problem with a property name once. It might be useful to have a wiki page with names already in use in struts. Enviado a partir do meu HTC - Reply message - De: "Eric Reed" Da

Overriding interceptor in stack

2011-04-28 Thread Miguel
Today's question actually follows yesterday's suggestion by Dave of using the preparable interface and is really an architecture/convention-over-configuration question: - what do you think about the possibility to override an interceptor by reassigning it in the configuration? I don't think this i

Re: How to make s:action run when validation fails?

2011-04-27 Thread Miguel
ot;, because the logic is in the preparable. Isn't this odd-looking? That said, I don't use validation very often. It appears to over complicate things a bit (a bit egg vs chicken theory, perhaps that's why I don't use it very often). Regards, Miguel

How to make s:action run when validation fails?

2011-04-27 Thread Miguel
pulate a table that should be shown with the form, even when validation fail) Your help is greatly appreciated, Miguel Almeida

Re: Restrict direct access to static content

2011-02-22 Thread Miguel
You can always make a request aware struts action that returns a stream (not a jsp) and inside the action You can put everything You want to check the user. Open the file with a fileinputstream from an internal resource directory. Enviado desde mi Nexus S Miguel Ruiz Velasco Sobrino On Feb 16

Re: Struts2 - implementing SSL

2010-11-10 Thread Miguel
ured in the java way), or in "native mode" using tomcat native, using openssl (and is configured in the openssl way), and the performance difference is significative. Those are my reasons for my preference. Regards, Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco Sobri

Re: Struts2 - implementing SSL

2010-11-09 Thread Miguel
u can find documentation about this in the tomcat connectors page and the httpd documentation. Regards, Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco Sobrino On Tue, Nov 9, 2010 at 15:12, Ken McWilliams wrote: > I'm just looking into this and have never implemented

Re: Struts2 - Html to PDF

2010-07-24 Thread Miguel
Miguel Ruiz Velasco Sobrino On Sat, Jul 24, 2010 at 09:08, Martin Gainty wrote: > > i dont know how Crystal can ingest either XSD schema entities or POJOs..maybe > someone out there knows of a converter? > > > FOP transform is the best solution offered > > http://xm

Re: jsp in WEB-INF

2010-07-16 Thread Miguel
27;s of directories, and some are assembled dynamically at build time from sub-projects, so I think it's somewhat difficult that way as it needs a lot of manual bookkeeping. Thanks for the help from everyone. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco Sobrino > Mi

jsp in WEB-INF

2010-07-15 Thread Miguel
e this: ... paisDetail.jsp ... and makes struts2 search the jsp as: /WEB-INF/jsp/admin/paisDetail.jsp Is there something like this? Thanks Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco Sobrino ---

Re: How to prevent direct access to JSP

2010-07-05 Thread Miguel
tivo, pierde un electrón Miguel Ruiz Velasco Sobrino On Mon, Jul 5, 2010 at 23:53, Kushan Jayathilake wrote: > Hi Guys, > > Can anyone suggest me how to prevent an user entering a direct URL for the > JSP instead of action, > > ie : *search.jsp* instead of *search.action* &

Re: Different results with spring

2010-01-30 Thread Miguel
On Fri, Jan 29, 2010 at 19:09, Miguel wrote: > Hi, > Thanks for answering!! > I'll post my relevant configurations. I'm using spring 2.5.6 and struts > 2.1.8.1. > I have the spring plugin in the struts.conf, and my actions are > correctly autowired by name.

Re: Different results with spring

2010-01-29 Thread Miguel
e trick of making spring instanciate actions, and this is the first time I have this behavior. In the other project, I use the same spring version, but struts 2.1.6, and the struts.conf has not includes. I'll test it without includes to see if the error appears or not. Thanks for your help.

Different results with spring

2010-01-28 Thread Miguel
) I hope someone can help me Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco Sobrino - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h

Re: Where to disable encrypting of non latin chars?

2009-11-27 Thread Miguel
for me. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco Sobrino On Fri, Nov 27, 2009 at 20:14, Saeed Iqbal wrote: > I mean if you want to dis

weird display tag behavior

2009-06-09 Thread Miguel
the first? Thanks Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco Sobrino - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: jQuery Plugin

2009-06-09 Thread Miguel
Miguel Ruiz Velasco Sobrino On Tue, Jun 9, 2009 at 15:34, Johannes Geppert wrote: > > You can easily use Themes created with jQuery Themeroller. > Take a look in the Wiki about Custume Themes > > http://code.google.com/p/struts2-jquery/wiki/HeadTag > > BTW: I also have h

Re: jQuery Plugin

2009-06-08 Thread Miguel
r más positivo, pierde un electrón Miguel Ruiz Velasco Sobrino On Mon, Jun 8, 2009 at 10:07, Johannes Geppert wrote: > > Hello, > > since last Friday i have lunched a new jQuery plugin for struts2 at Google > Code. > http://code.google.com/p/struts2-jquery/ > > It p

Re: Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread Miguel
Check you only have one ocurrence of "myService" in your spring configuration specially if it's in more than one file. Maybe there is more than one instance and spring uses the "last wins" design principle. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velas

Changing parameters via interceptor

2009-03-17 Thread Miguel
to interact with the session or an action variable which holds the permissions for each user? Thanks Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. Sent from: Mexico City DF Mexico. - To unsubscribe, e

Re: Web Services

2009-03-17 Thread Miguel
You may take a look at Spring-WS. Remoting is like "RMI over http", meanwhile Spring-WS is a contract-first approach. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Tue, Mar 17, 2009 at 09:02, Griffith, Michael * wrote: > Spring has excellent remoting

  1   2   >