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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2008-09-22 Thread Miguel
will need to do your homework. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Sun, Sep 21, 2008 at 20:32, Jim Kiley <[EMAIL PROTECTED]> wrote: > You're going to need to provide a lot more detail if you want a useful > answer of any kind. > > On

Re: Struts2 + jqGrid possible?

2008-09-29 Thread Miguel
positivo, pierde un electrón Miguel Ruiz Velasco S. On Mon, Sep 29, 2008 at 16:50, Francisco Exposito <[EMAIL PROTECTED]> wrote: > > I am trying to do it by hand. > > I have this in my jsp: > > > jQuery(document).ready(function() > { > jQuery("#list1").

Re: Tons of Could not find property messages - log4j is not helping?

2008-10-03 Thread Miguel
Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Thu, Oct 2, 2008 at 17:19, Dave Belfer-Shevett <[EMAIL PROTECTED]> wrote: > I saw another thread about this already, and the suggestions were to turn > off dev mode (I'm not running devmode), or to filt

Re: Transaction wrapper for web request?

2008-11-11 Thread Miguel
You may use spring to do the thing you want (springframework.org), it's relative straightforward to do what you want with it, but you may need to change the OpenEntityManagerInView to manage the transactions. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Tue

Re: [OT] Re: Displaying "Please Wait" message

2008-12-09 Thread Miguel
know the id of the form in the resulting form. Give it a check, use the beforeSubmit function to disable the submit button, and the success to reactivate it. You may also use JQuery to do the disable/enable stuff in the button. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S.

Fwd: Stream Result

2009-01-16 Thread Miguel
7;m doing something very wrong, but how can I convert an outputStream to an inputStream without writing a string or byte array? It is deadlocking the tomcat thread. Does anybody know how to make it work? Thanks Si quieres ser más positivo, pierde un

Re: Sending XML data from action to YUI

2009-01-19 Thread Miguel
a stylesheet you get a identity transform). Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Mon, Jan 19, 2009 at 21:11, dusty wrote: > > Has either of you tried the XSLT result type? I have not and I am curious > about how well it works. > > > >

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-01-30 Thread Miguel
You can use the method attribute in the s:submit button, combined with a method in your action. You could use the different method invocation as an implicit parameter. You may need to use the action wildcard feature in struts.xml Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco

Re: Multi pages - Wizard with Struts 2 ?

2009-02-09 Thread Miguel
I've used the scope interceptor and works great, you may create an action for each screen or a method for each screen and use a redirect or an action chain to change between screens (after validation). Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Mon, Feb 9,

redirectAction with parameters

2009-02-17 Thread Miguel
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509) java.lang.Thread.run(Unknown Source) Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. - To unsubscribe, e-mail: user-unsubscr...

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

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: [S2]Integration Of Struts 2 and Acegi

2008-07-10 Thread Miguel
I can send you an example, if you need Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Thu, Jul 10, 2008 at 2:43 PM, nani2ratna <[EMAIL PROTECTED]> wrote: > > Hi, > > can anybody tell me how to configure struts 2.0 and acegi, > I searched, but i got

Re: How can I store temporary data during user input procedure?

2008-07-18 Thread Miguel
-interceptor.html The scope interceptor also exists and works identically in the 2.0.x family Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Fri, Jul 18, 2008 at 10:45 AM, Owen Berry <[EMAIL PROTECTED]> wrote: > Another option is to store it as a temporary reco

Re: Dojo javascript errors with ajax theme. please help

2008-07-22 Thread Miguel
Those files doesn't exist in the original Dojo source, because dojo looks the files acording to your language preferences, but the en and the en-us are the default. It's normal to have errors with those encodings. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S

Re: Data Leakage in Struts 2

2008-07-26 Thread Miguel
service classes that don't have persistence state between methods. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Sat, Jul 26, 2008 at 23:04, Arun M <[EMAIL PROTECTED]> wrote: > > Yes , we are using spring and hibernate also along with struts.

Re: Data Leakage in Struts 2

2008-07-26 Thread Miguel
can allways create a preparable bean (implements Preparable) and in the prepare() method, clear what you need; or you can additionally use the ParamsPrepareParams stack to do more complicated stuff. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Sat, Jul 26, 2008 at

Re: ServletOutputStream

2008-07-30 Thread Miguel
action. If you want to show the save data dialog, use the content disponsition header. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Wed, Jul 30, 2008 at 10:19, Mike Rooney <[EMAIL PROTECTED]> wrote: > Thank you for the reply. I know my action can

input Map

2008-08-28 Thread Miguel
} } Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: input Map

2008-08-28 Thread Miguel
I've also read: http://struts.apache.org/2.x/docs/type-conversion.html but I don't understand how to use a Map Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Thu, Aug 28, 2008 at 12:14, Miguel <[EMAIL PROTECTED]> wrote: > Hi, > > I'm

Re: input Map

2008-08-28 Thread Miguel
y the fully qualified class name, even on java.lang clases. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Thu, Aug 28, 2008 at 14:06, Laurie Harper <[EMAIL PROTECTED]> wrote: > Miguel wrote: >> >> Hi, >> >> I'm currently writing a

Re: [OT] Web app confirm changes

2008-08-29 Thread Miguel
To acomplish exactly what Dave recomended you, you may use jQuery. It has precisely the one-liner syntax to make the same change on lots of elements simultaneously. http://jquery.com Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Fri, Aug 29, 2008 at 07:41, Dave

Re: OT: Thread pool samples

2008-09-04 Thread Miguel
different threads. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Wed, Sep 3, 2008 at 23:43, Zoran Avtarovski <[EMAIL PROTECTED]>wrote: > I¹m trying to implement a simple thread pool model (Java 1.4) for a > telemetry application. > > I¹m getting up to spee

Multiple submit buttons in the same form

2004-05-29 Thread Miguel Arroz
;s precisely my question. How can I know what button did the user pressed to submit the form? Yours Miguel Arroz Fire, walk with me. Miguel Arroz - [EMAIL PROTECTED] - http://www.guiamac.com --

Can I use multibox with text fields?

2004-06-02 Thread Miguel Arroz
array), or do I have to do this manually (using iterate, etc)? Yours Miguel Arroz Fire, walk with me. Miguel Arroz - [EMAIL PROTECTED] - http://www.guiamac.com - To unsubscribe

Populating a form before displaying it

2004-05-11 Thread Miguel Arroz
Hello! I want to display a JSP when a user clicks on a link on a previous page. The JSP has a form that must be populated with data before being displayed for the first time. How can I populate the form before showing it? Yours Miguel Arroz

Re: Populating a form before displaying it

2004-05-12 Thread Miguel Arroz
Hi! Hope this helped a little more ;) -Riyad Yeah, it did! :-) Still not implemented (I just woke up, here in Portugal!) but looks like a good way to do it... better than the one I was using! Thanks a lot for your help! Yours Miguel Arroz

Re: Populating a form before displaying it

2004-05-12 Thread Miguel Arroz
Hi again! I'm sorry, I can't make this work... I always get an empty form! Can you send me 2 entries from your config file, and a prepare execute() method? Maybe you forgot some important detail, or maybe it's just me doing a stupid mistake, but anyway, it doesn't work!

Re: Populating a form before displaying it

2004-05-12 Thread Miguel Arroz
Hi again! Found the problem... sorry! I have to specify scope="request" on both actions! Thanks for your help! Yours Miguel Arroz On 12 de mai de 2004, at 12:55, Riyad Kalla wrote: Miguel, I had this problem alot when I was developing a management system. For exam

Displaying a dynamic table from a collection

2004-05-10 Thread Miguel Arroz
ot;row2", etc property on the Form object. How can I get all the data back? Again, i just need a push in the right direction, I do not need any detailed stuff, although links to examples would be welcome. Yours Miguel Arroz Fire, walk

Trouble validating

2005-01-07 Thread Miguel Atienza
name="MyValidatorForm" validate="true" scope="request" input="/pages/ErrorValidation.jsp" Any help is appreciated. Miguel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Trouble validating

2005-01-09 Thread Miguel Atienza
quot; %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> -Mensaje original- De: Matt Bathje [mailto:[EMAIL PROTECTED] Enviado el: viernes, 07 de enero de 2005 16:29 Para: Struts Users Mailing List Asunto: Re: Trouble va

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.

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

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

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

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

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

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

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

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

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

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 >

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

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

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

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

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

  1   2   >