Re: LocaleProvder not unique

2017-03-15 Thread Christian Grobmeier
ter an issue with your case > > > > 2017-03-14 10:13 GMT+01:00 Christian Grobmeier <grobme...@apache.org>: > >> Yes, actually I think you are right: LocaleProvider and TextProvider > >> have both the same issue. It's just popping up for me with > >> Lo

Re: LocaleProvder not unique

2017-03-14 Thread Christian Grobmeier
, 2017, at 06:57, Lukasz Lenart wrote: > https://issues.apache.org/jira/browse/WW-4756 > > I know that this is for TextProvider but the same approach I can use > for LocaleProvider > > 2017-03-14 6:53 GMT+01:00 Lukasz Lenart <lukaszlen...@apache.org>: > > 2017-0

Re: LocaleProvder not unique

2017-03-13 Thread Christian Grobmeier
:44, Christian Grobmeier wrote: > > > On Mon, Mar 13, 2017, at 19:08, Lukasz Lenart wrote: > > 2017-03-13 19:03 GMT+01:00 Christian Grobmeier <grobme...@apache.org>: > > > Wether @Service was right or not, I need to somehow tell Spring how to > > > find

Re: LocaleProvder not unique

2017-03-13 Thread Christian Grobmeier
On Mon, Mar 13, 2017, at 19:08, Lukasz Lenart wrote: > 2017-03-13 19:03 GMT+01:00 Christian Grobmeier <grobme...@apache.org>: > > Wether @Service was right or not, I need to somehow tell Spring how to > > find my beans (i.e. @Component). > > I can understand Springs

Re: LocaleProvder not unique

2017-03-13 Thread Christian Grobmeier
, Christian Grobmeier wrote: > > > On Mon, Mar 13, 2017, at 18:26, Lukasz Lenart wrote: > > 2017-03-13 17:55 GMT+01:00 Christian Grobmeier <grobme...@apache.org>: > > > Removing @Service helped. In addition I had to remove the remaining > > > Actions from app

Re: LocaleProvder not unique

2017-03-13 Thread Christian Grobmeier
On Mon, Mar 13, 2017, at 18:26, Lukasz Lenart wrote: > 2017-03-13 17:55 GMT+01:00 Christian Grobmeier <grobme...@apache.org>: > > Removing @Service helped. In addition I had to remove the remaining > > Actions from applicationContext.xml (I am in the middle of a > >

Re: LocaleProvder not unique

2017-03-13 Thread Christian Grobmeier
, but still, I would love to know. Thanks Lukasz! On Mon, Mar 13, 2017, at 16:44, Christian Grobmeier wrote: > > > On Mon, Mar 13, 2017, at 16:31, Lukasz Lenart wrote: > > 2017-03-13 16:25 GMT+01:00 Christian Grobmeier <grobme...@apache.org>: > > &g

Re: LocaleProvder not unique

2017-03-13 Thread Christian Grobmeier
On Mon, Mar 13, 2017, at 16:31, Lukasz Lenart wrote: > 2017-03-13 16:25 GMT+01:00 Christian Grobmeier <grobme...@apache.org>: > > @Service > > @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE) > > public class EmptyAction extends AbstractAction { > > Looks

Re: LocaleProvder not unique

2017-03-13 Thread Christian Grobmeier
/mysite.jsp It worked with 2.5.1, but no more with 2.5.10.1. Spring version is 4.1.6.RELEASE Thanks Lukasz! Christian On Mon, Mar 13, 2017, at 16:12, Lukasz Lenart wrote: > 2017-03-13 16:02 GMT+01:00 Christian Grobmeier <grobme...@apache.org>: > > Hello all, > > >

LocaleProvder not unique

2017-03-13 Thread Christian Grobmeier
Hello all, I trying to upgrade my Struts app from 2.5.1 to 2.5.10.1. I saw there are some changes in I18nInterceptor like that: https://github.com/apache/struts/commit/ea92e95461386f1ddfda37bb09ec170b8e306ae7#diff-f9eff9d34d35d47f349c7fa0531e51bdR130 My actions extend from ActionSupport, which

Munich: Free Struts talk in JUGM

2014-08-22 Thread Christian Grobmeier
Hey folks, if you live near Munich, you are welcome to join the talk of Struts Committer Christoph Nenning on 25.08.! He is usually a bit a shy guy so i am posting this so nobody misses it. Here is the full address of the location and the sponsor of this talk: mgm technology partners -

Re: Apple sec breach.. Struts?

2013-08-02 Thread Christian Grobmeier
On Fri, Aug 2, 2013 at 7:01 AM, Jim Macalister jimmacalis...@gmail.com wrote: To get to my point. Struts2 is a great framework and we do use it for production systems. I think we should all contribute at least by donating directly to the struts2 developers. This will ensure the life of the

Re: missing action

2013-07-31 Thread Christian Grobmeier
I am not familiar with the Run As options of the IDE as I use command line for such tasks, but basically you are expected to create a war file and deploy it to your container when something changes. Personally I am using the mvn jetty plugin and Jrebel (when doing open source work) for that. Can

Re: Apple sec breach.. Struts?

2013-07-31 Thread Christian Grobmeier
I read that. I don't think we should do anything. The blog post is speculative. Nobody from Apple did tell us if it was really a Struts problem or not. If it is, then well, we can't do anything. This doesn't make Struts a dangerous framework at all, it just highlights you should update when your

Re: Changing locale for any current request

2013-07-25 Thread Christian Grobmeier
Have you tried request only for these links? See: http://struts.apache.org/release/2.3.x/docs/i18n-interceptor.html basically using foo.action?request_only_locale=en_US your locale would not be stored in the session, it's just for this request On Thu, Jul 25, 2013 at 10:15 AM, Antonio Sánchez

Struts Hackathon in Germany

2013-07-16 Thread Christian Grobmeier
Hello all, I would like to invite you to a Struts Hackathon in Augsburg, Germany. The Hackathon is free, thanks to our sponsor of GFU. GFU provides a lot of great trainings. Please see more information here: http://strutsathon.opensource.io/ If you would like to join us, please let us know.

Re: ServletResponseAware - request can be null?

2013-07-08 Thread Christian Grobmeier
, but it does. I am going to read the interceptor code... On Mon, Jul 8, 2013 at 2:38 PM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2013/7/5 Christian Grobmeier grobme...@gmail.com: I am implementing the ServletResponseAware interface and found out that sometimes the HttpServletResponse

ServletResponseAware - request can be null?

2013-07-05 Thread Christian Grobmeier
Hi, I am implementing the ServletResponseAware interface and found out that sometimes the HttpServletResponse is null when I execute() the action. ServletConfigInterceptor is definitely executed before. Actually often the HttpServletResponse is not null and my code seems to work. Not sure if I

Re: angularjs and struts action result

2013-02-20 Thread Christian Grobmeier
On Thu, Feb 21, 2013 at 8:03 AM, Lukasz Lenart lukaszlen...@apache.org wrote: 2013/2/20 Frans Thamura fr...@meruvian.org: anyone working with struts2 action result (#name etc) and integrate with angularjs AngularJS expects JSON via REST so everything is already supported by Struts2 I did

Re: Java security issue vs. struts?

2013-01-16 Thread Christian Grobmeier
On Wed, Jan 16, 2013 at 11:12 PM, Emi Lu em...@encs.concordia.ca wrote: On 01/16/2013 05:02 PM, Chris Pratt wrote: I believe the description says it all. This Security Alert addresses security issues CVE-2013-0422 (US-CERT Alert TA13-010A - Oracle Java 7 Security Manager Bypass

Re: Struts 2 Plugin for Netbeans

2012-04-20 Thread Christian Grobmeier
I have tried Eclipse and Netbeans and finally found out that life is so freaking easy with IntelliJ and the Struts 2 plugin. I could not believe it first, because it was the Struts-guys who recommended it to me and I was previously using Eclipse for 10 years or so. My advice: do exactly what

Re: Struts/CMS/Drupal

2012-03-29 Thread Christian Grobmeier
Tony, can Drupal consume json data easily? You probably can use Struts as some kind of data layer which delivers only json data. You might want to look at Quercus: http://quercus.caucho.com/ Quercus is a Java implementation of PHP. It might serve Drupal, and this way you might have a chance to

Re: Struts/CMS/Drupal

2012-03-29 Thread Christian Grobmeier
On Thu, Mar 29, 2012 at 8:32 PM, Santinello, Anthony anthony.santine...@experian.com wrote: The only way I see it possibly working is having PHP making calls to the back-end logic via some web-service?  And try to re-use the code/business logic  we used for Struts? Thats possible, if you

Re: Struts/CMS/Drupal

2012-03-29 Thread Christian Grobmeier
a serious chance if struts delivers business data (facts, user data whatever) and Drupal manages the CMS stuff. But then you have two databases Guess you'll have a lot of fun pretty soon. Thanks for you help. -- Tony -Original Message- From: Christian Grobmeier [mailto:grobme

Re: Current status in testing with struts2, spring3 +junit 4?

2012-03-21 Thread Christian Grobmeier
2012/3/20 Łukasz Lenart lukasz.len...@googlemail.com: As I see there is a small mess with the test classes. Struts 2 has three StrutsTestCase classes, in core in junit plugin and in testng plugin. It would be nice to clean them up. Remove StrutsTestCase from core and two other StrutsTestCase

Advice needed: Offline Struts App

2012-03-15 Thread Christian Grobmeier
Hi, yes I know Struts 2 is a web framework. But recently somebody told me he would love to see a desktop version of my app instead of a cloud based version. I think this would be great for me too. Now I am considering different ways... not sure, probably somebody here already did the same in the

Re: Advice needed: Offline Struts App

2012-03-15 Thread Christian Grobmeier
using localhost that is the way i use it here F On Thu, Mar 15, 2012 at 10:25 PM, Christian Grobmeier grobme...@gmail.com wrote: Hi, yes I know Struts 2 is a web framework. But recently somebody told me he would love to see a desktop version of my app instead of a cloud based version. I

Re: Advice needed: Offline Struts App

2012-03-15 Thread Christian Grobmeier
thanks - i will evaluate that On Thu, Mar 15, 2012 at 4:33 PM, Frans Thamura fr...@meruvian.org wrote: you can use izpack F On Thu, Mar 15, 2012 at 10:31 PM, Christian Grobmeier grobme...@gmail.com wrote: the customers for my apps are mostly non-techies... I am afraid they will fail

Re: Advice needed: Offline Struts App

2012-03-15 Thread Christian Grobmeier
, Mar 15, 2012 at 10:35 PM, Christian Grobmeier grobme...@gmail.com  wrote: thanks - i will evaluate that On Thu, Mar 15, 2012 at 4:33 PM, Frans Thamurafr...@meruvian.org  wrote: you can use izpack F On Thu, Mar 15, 2012 at 10:31 PM, Christian Grobmeier grobme...@gmail.com  wrote

Re: Advice needed: Offline Struts App

2012-03-15 Thread Christian Grobmeier
with service layer. My current plan is actually to let the Struts stuff go and replace the UI with JavaFX. It seems you are advising the same (or similar) :-) Cheers Christian M -Original Message- From: Christian Grobmeier [mailto:grobme...@gmail.com] Sent: 15 March 2012 15:26 To: Struts

Re: Advice needed: Offline Struts App

2012-03-15 Thread Christian Grobmeier
On Thu, Mar 15, 2012 at 8:49 PM, Wes Wannemacher w...@wantii.com wrote: Christian, have you considered using XWork? Struts2 is basically a web implementation of the command pattern framework implemented by XWork. I worked on a project where I embedded XWork in a non-web-app and was very happy

Re: Advice needed: Offline Struts App

2012-03-15 Thread Christian Grobmeier
On Thu, Mar 15, 2012 at 9:44 PM, Brian Thompson elephant...@gmail.com wrote: Another option that might work for you is an Adobe AIR app.  There's a sample AIR web browser app [1]; install that demo and test your S2 app in it.  If it works out properly, you can embed your Tomcat stack in the AIR

Re: 'Best' Struts Development Envirnoment?

2012-01-24 Thread Christian Grobmeier
I can agree on what has been said about IntelliJ. It took me one week to move over from Eclipse (speaking of getting your workflow back). But then I have improved my speed a lots. not only the S2 plugin is great, there are many other cool things, like for Android dev. And I was a long time

Re: Can't insert picture on a XSSFWorkbook

2012-01-20 Thread Christian Grobmeier
wrong list, use u...@poi.apache.org instead Cheers Christian On Fri, Jan 20, 2012 at 1:10 PM, Felipe Issa felipe.i...@simova.com.br wrote: Hi. I'm using apache poi 3.8 beta 5 (20111217) and i can't get it to insert a picture on a XSSFWorkbook. It works just fine when i try to insert it on a

Re: Mobile Device Support

2012-01-13 Thread Christian Grobmeier
Look at responsive CSS frameworks. Actually I would not put anything for this into struts code if possible, you should make it just a css/javascript only trick: http://idesignow.com/css/7-css-grid-layout-frameworks-for-responsive-web-design.html I am a bootstrap fan, 2.0 is supporting responsive

Re: Struts 2 Webinar in Wednesday

2011-12-23 Thread Christian Grobmeier
...@trinitymobility.com wrote: Dear Grobmeier, I also missed the webminar,Can you please send a review of it? -Original Message- From: Christian Grobmeier [mailto:grobme...@gmail.com] Sent: Friday, December 23, 2011 12:23 AM To: Struts Users Mailing List Subject: Re: Struts 2 Webinar in Wednesday I

Re: Struts 2 Webinar in Wednesday

2011-12-22 Thread Christian Grobmeier
I was there, it is pretty cool You can interview me on chat, if you need some info. I installed it for my struts-dev env Cheers On Thu, Dec 22, 2011 at 7:18 PM, Maurizio Cucchiara mcucchi...@apache.org wrote: Unfortunately I missed the webinar, is there an offline version? Twitter    

Re: Help Struts 1.3

2011-12-13 Thread Christian Grobmeier
Hello, On Tue, Dec 13, 2011 at 10:46 AM, AlexCross mattiap...@yahoo.it wrote: How can i read data from DB and display using Jsp with Struts? What's the correct logic of struts(1.3)? Not sure what you expecting as an answer. Basics are: create a struts.xml and tie a view and an action together.

Re: Cimande 2.0 and Mervpolis 2.0

2011-11-25 Thread Christian Grobmeier
Not sure what BlueOxygen should do, but when I try to login with the credentials below: org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionException: JDBC begin failed:

Re: Dynamic Result Selection

2011-11-19 Thread Christian Grobmeier
an own interceptor which catches something like that or to extend the throwing interceptor to put a correct value into the object. cheers Christian Thanks Regards, Rohan From: Christian Grobmeier grobme...@gmail.com To: Struts Users Mailing List user

Re: Dynamic Result Selection

2011-11-18 Thread Christian Grobmeier
Hello Rohan, On Sat, Nov 19, 2011 at 8:44 AM, rohan jamkhedkar rgjamkhed...@yahoo.co.in wrote: result name=success%{nextPage}/result try to add these results too: result name=input%{nextPage}/result result name=error%{nextPage}/result Input is what is returned when some input is missing,

Re: utf8 problems...

2011-11-14 Thread Christian Grobmeier
the need to use it. Twitter     :http://www.twitter.com/m_cucchiara G+          :https://plus.google.com/107903711540963855921 Linkedin    :http://www.linkedin.com/in/mauriziocucchiara Maurizio Cucchiara On 13 November 2011 17:35, Christian Grobmeier grobme...@gmail.com wrote: Hi guys, I am

utf8 problems...

2011-11-13 Thread Christian Grobmeier
Hi guys, I am searching for a utf-8 problem in my app. I have struts 2 with sitemesh 2.x bundled. backoffice is apache cayenne which connects to mysql with: useUnicode=truecharacterEncoding=utf8 Now I suspect sitemesh somehow. Any ideas were I could look appreciated Is sitemesh still

Re: [ANN] Struts 2 Plugin for IntelliJ IDEA 11 - Early Access

2011-09-29 Thread Christian Grobmeier
Looks pretty nice. Are the changes available in the community edition or is is ultimate version only? Cheers Christian On Wed, Sep 28, 2011 at 8:04 PM, Yann Cébron yann.ceb...@googlemail.com wrote: Early Access Preview has started for the next major version of JetBrains IntelliJ IDEA, and

Re: [ANN] Struts 2 Plugin for IntelliJ IDEA 11 - Early Access

2011-09-29 Thread Christian Grobmeier
internet connection I try to save every mb I can. Are you IDEA user? Happy? Cheers Christian Maurizio Cucchiara On 29 September 2011 10:50, Christian Grobmeier grobme...@gmail.com wrote: Looks pretty nice. Are the changes available in the community edition or is is ultimate version only

Re: [ANN] Struts 2 Plugin for IntelliJ IDEA 11 - Early Access

2011-09-29 Thread Christian Grobmeier
, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote: Ok, as I suspected: idea is free for apache (and generally for OS developer) committers. Maurizio Cucchiara Il giorno 29/set/2011 11.12, Christian Grobmeier grobme...@gmail.com ha scritto: Hi, In the meanwhile that Yann answers your question

Re: [ANN] Struts 2 Plugin for IntelliJ IDEA 11 - Early Access

2011-09-29 Thread Christian Grobmeier
can't I choose a version number myself? What I not like at the moment (more related to IDEA) is the fact it creates an lib folder in my project folder and creates an out folder. Try to figure that out Regards, Yann On 29 September 2011 10:50, Christian Grobmeier grobme...@gmail.com wrote

Re: Returning response object only from Action

2011-09-28 Thread Christian Grobmeier
Hi Ajib, public ActionForward execute(ActionMapping mapping, ActionForm inForm, HttpServletRequest request, HttpServletResponse response) throws Exception {        // Get a list of characters associated with the select TV show        String tvShow = (String) request.getParameter(tvShow);    

Re: Returning response object only from Action

2011-09-28 Thread Christian Grobmeier
br/            Characters: span id=characters/span html:submit / /html:form On 9/28/2011 10:41 AM, Christian Grobmeier wrote: Hi Ajib, public ActionForward execute(ActionMapping mapping, ActionForm inForm, HttpServletRequest request, HttpServletResponse response) throws Exception

Re: Returning response object only from Action

2011-09-28 Thread Christian Grobmeier
://www.vaannila.com/struts/struts-example/struts-html-select-tag-example-1.html Cheers Christian On 9/28/2011 12:14 PM, Christian Grobmeier wrote: Ajib, I am using jQuery, which makes an json object out of the json string you would get. This is very straightforward. Since you are using plain

Re: Convention plugin can't find Actions

2011-08-29 Thread Christian Grobmeier
On Mon, Aug 29, 2011 at 3:02 AM, chengas123 benjamin.j.mcc...@gmail.com wrote: Got it working.  I needed to set the constants below in my struts.xml.  Could be good to add this to the docs for other people using Jetty in embedded mode.  constant name=struts.convention.action.fileProtocols

Re: Deploy S2 apps with Mysql to cloud

2011-08-27 Thread Christian Grobmeier
can share how deploy the .war to the Ec2? i still dont get it, as us said it more virtual server, do u mean, u install OS/Linux first in the virtual rather deploy directly you have to install an os image first (i have choosen debian). Then usual process: install Tomcat/Jetty and all other

Re: [OT] JQuery or dojo?

2011-08-16 Thread Christian Grobmeier
Can any one suggest, for ajax which framework is better? Every answer is highly subjective, but I have made great experiences with jQuery. In addition, I was able to use jQuery mobile without pain later and there seems to be a huge community around jQuery. My current js combination is jQuery +

Re: [OT] JQuery or dojo?

2011-08-16 Thread Christian Grobmeier
Out of curiosity. What are the criteria which speak for Dojo, in your opinion? On Tue, Aug 16, 2011 at 7:07 PM, Dave Newton davelnew...@gmail.com wrote: jQuery. Dave  On Aug 16, 2011 1:01 PM, Balwinder balwinder@gmail.com wrote: Dave, My criteria is: Able to ajaxify my app

Re: how to make onchange in s:select to submit a form and call a specific method in one action class

2011-08-11 Thread Christian Grobmeier
Or someone could provide more info will sj:select help satisfy the following requirement? (1) sj:select name=country onchange=to_change_region / (2) sj:select name=region  onchange=to_change_city   / (3) sj:select name=coutry   / Actually, I prefer not to use complex javascript code to do

Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Christian Grobmeier
Hi, I do not know a text tag in struts: http://struts.apache.org/2.2.3/docs/ui-tag-reference.html And the texfield tags renders correct with closing / (at least in my app) Might it be related to the tag itself? What doctype do you use? Cheers On Thu, Aug 11, 2011 at 7:18 PM, Anjib Mulepati

Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Christian Grobmeier
oh :-)) I am sorry On Thu, Aug 11, 2011 at 7:31 PM, Dave Newton davelnew...@gmail.com wrote: wrong version of struts. On Aug 11, 2011 1:23 PM, Christian Grobmeier grobme...@gmail.com wrote: Hi, I do not know a text tag in struts: http://struts.apache.org/2.2.3/docs/ui-tag-reference.html

Re: Using s:actionerror

2011-08-10 Thread Christian Grobmeier
Cucchiara On 9 August 2011 17:07, Christian Grobmeier grobme...@gmail.com wrote: On Tue, Aug 9, 2011 at 4:23 PM, Dave Newton davelnew...@gmail.com wrote: On Tue, Aug 9, 2011 at 10:20 AM, Christian Grobmeier wrote: Shouldn't at least the message text come out of it? No, the plain theme

Using s:actionerror

2011-08-09 Thread Christian Grobmeier
Using s:actionerror / worked fine so far. But now it appears not to show my action errors anymore. For example with: @RequiredFieldValidator( type = ValidatorType.SIMPLE, fieldName = username, key = errors.usernamemissing) Or:

Re: Using s:actionerror

2011-08-09 Thread Christian Grobmeier
Shouldn't at least the message text come out of it? On Tue, Aug 9, 2011 at 4:16 PM, Dave Newton davelnew...@gmail.com wrote: On Tue, Aug 9, 2011 at 10:14 AM, Christian Grobmeier wrote: Is it probably related when i switched to the plain theme? Yes; the plain templates don't do much for you

Re: Using s:actionerror

2011-08-09 Thread Christian Grobmeier
On Tue, Aug 9, 2011 at 4:23 PM, Dave Newton davelnew...@gmail.com wrote: On Tue, Aug 9, 2011 at 10:20 AM, Christian Grobmeier wrote: Shouldn't at least the message text come out of it? No, the plain theme doesn't do much for you. Just to make sure.. I am using simple theme, i mixed up

Re: Using s:actionerror

2011-08-09 Thread Christian Grobmeier
Of course, I should use s:fielderror / when i try to print field errors. Btw, actionerror is doing stuff in simple theme, like field error does too. I have finally digged the code Cheers + Thanks! On Tue, Aug 9, 2011 at 5:07 PM, Christian Grobmeier grobme...@gmail.com wrote: On Tue, Aug 9, 2011

Re: How to StrutsJUnit4TestCase?

2011-08-08 Thread Christian Grobmeier
$struts2-junit-plugin/ [2] https://issues.apache.org/jira/browse/WW-3667?focusedCommentId=13079421page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13079421 On 3 August 2011 20:16, Christian Grobmeier grobme...@gmail.com wrote: Hi, at the moment I found out to test

Re: How to StrutsJUnit4TestCase?

2011-08-08 Thread Christian Grobmeier
of the struts 2 project. But I will watch your project from now on. Cheers! Christian On Wed, Aug 3, 2011 at 9:12 PM, Gabriel Belingueres belingue...@gmail.com wrote: There you go: http://code.google.com/p/struts2-junit/ Regards, Gabriel 2011/8/3 Christian Grobmeier grobme...@gmail.com: Hi

Re: How to StrutsJUnit4TestCase?

2011-08-08 Thread Christian Grobmeier
2011 10:35, Christian Grobmeier grobme...@gmail.com wrote: Hello Maurizio, I do some change on the S2 Junit4 plugin, now it should be simpler run a test with or without spring. Could you test the latest version of the aforementioned plugin [1]? Christian, is this [2] your use case? WDYT

How to StrutsJUnit4TestCase?

2011-08-03 Thread Christian Grobmeier
Hello all, today I tried to figure out how one can use StrutsJUnit4TestCase. I am currently puzzled. I found docs for the older implementation for Junit3 of course, but nothing on the StrutsJUnit4TestCase class. Any pointers? With the old stuff i simply did: this.executeAction() and all was

Re: How to StrutsJUnit4TestCase?

2011-08-03 Thread Christian Grobmeier
on the web. Anyway it would not be difficult to add the executeAction method. I'm going to open a new issue. [1] https://issues.apache.org/jira/browse/WW-3403 On 3 August 2011 13:56, Christian Grobmeier grobme...@gmail.com wrote: Hello all, today I tried to figure out how one can use

Re: How to StrutsJUnit4TestCase?

2011-08-03 Thread Christian Grobmeier
utility, which is based on StrutsJUnit4TestCase (only tested it on Struts 2.2.3 I'm afraid), so if you can hold on a few minutes, you may download it from google code. Regards, Gabriel 2011/8/3 Christian Grobmeier grobme...@gmail.com: Hello all, today I tried to figure out how one can use

Re: [struts-user] How to encrypt the url?

2011-07-29 Thread Christian Grobmeier
is logging out to the login screen, so I have to give links like http://localhost:8080/UNOT/User/ViewProfile.action?id=1passwd =643def90app_login=Login So, is there any way to encrypt the url? Bad idea. But yes, and it is not a struts issue. So I will ask why can't you use a session? I

Submit image button sends coordinates

2011-07-26 Thread Christian Grobmeier
Hi, using: s:submit type=image src=images/icons/app/32x32/sign-in.png name=submit / Sends the following to my action: submit = [ Submit ] submit.x = [ 40 ] submit.y = [ 7 ] x / y are coordinates of my click, defined by w3c. Now they are sent to my action, and OGNL tries to set it. Which leads

Re: Submit image button sends coordinates

2011-07-26 Thread Christian Grobmeier
message)    category name=com.opensymphony.xwork2.ognl.OgnlValueStack        priority value=error/    /category On 26 July 2011 11:27, Christian Grobmeier grobme...@gmail.com wrote: Hi, using: s:submit type=image src=images/icons/app/32x32/sign-in.png name=submit / Sends the following

Re: Submit image button sends coordinates

2011-07-26 Thread Christian Grobmeier
,-) Maurizio Cucchiara Il giorno 26/lug/2011 12.26, Christian Grobmeier grobme...@gmail.com ha scritto: Thanks Maurizio. I don't want to reduce my error level, now I created something weird. Not nice, but it works: private Submit submitCoord = null; public Submit getSubmit() { return

Re: Submit image button sends coordinates

2011-07-26 Thread Christian Grobmeier
answers: please, take a look at http://struts.1045723.n5.nabble.com/S2-OgnlValueStack-Error-setting-expression-warnings-after-upgrade-from-struts-2-to-struts-2-1-7-td3495667.html On 26 July 2011 14:58, Christian Grobmeier grobme...@gmail.com wrote: @Christian Good workaround, in my defence I

Hidden Exceptions

2011-05-30 Thread Christian Grobmeier
Hi, given this Action: public class MyAction { public String execute() throws Exception { // throws IllegalArgumentException } } I do not get a log output or anything else indicating that error. I have struts dev mode = true. Report page shows: Struts has detected an unhandled

Re: Hidden Exceptions

2011-05-30 Thread Christian Grobmeier
/global-results global-exception-mappings        exception-mapping exception=java.lang.Exception result=error / /global-exception-mappings On May 30, 2011, at 5:40 AM, Christian Grobmeier wrote: Hi, given this Action: public class MyAction {  public String execute() throws Exception

Converting a hidden input field to Boolean?

2011-05-01 Thread Christian Grobmeier
Hi, given the following: s:hidden name=myBean.active value=true / and the fact MyBean contains a method with this signature: MyBean.setActive(Boolean value) {} I always receive null for this field in my Action. I guess it is because the conversion does not apply to hidden fields - right? Any

Re: Converting a hidden input field to Boolean?

2011-05-01 Thread Christian Grobmeier
Forget this. I found out that I do not need a setter for MyBean only, I do necessary need a getter. As I found out, getMyBean is always called before setting a property Cheers On Sun, May 1, 2011 at 10:41 AM, Christian Grobmeier grobme...@gmail.com wrote: Hi, given the following: s:hidden

Re: Struts 2 Interceptor Question

2011-04-22 Thread Christian Grobmeier
Can a Struts 2 interceptor change/add a request or session parameter? Yes, and you can look at an example when you have the source and open: com.opensymphony.xwork2.interceptor.ParametersInterceptor I'm trying to write a Struts 2 Exception Handler which is executed whenever there is an

Recommended number of forms in one action

2011-04-19 Thread Christian Grobmeier
Hi, this is question on best practice. It is: is it ok too let one Struts Action handle two different forms? For example: Assume an Action called RegistrationAction. Its intention is to use it for user registration. The first form is a set of three properties for the registration itself; the

Re: Recommended number of forms in one action

2011-04-19 Thread Christian Grobmeier
Truly an excellent answer from both of you guys. It helped me recognize validation goes down to method level and I learned about the wildcard methods. In my example case, I will keep the two forms in one class. For future development i will create more classes as I like this approach more

Conversion problem

2011-04-18 Thread Christian Grobmeier
Hi all, i have a form with only 6 values. 4 Dates, 1 int, one string. I created 2 different conversion classes for the 4 dates. One is for creating a good date from a string like 13:30, one is for the actual date. I don't know why, but the ones for dates work and the one for time does not work.

Re: Conversion problem

2011-04-18 Thread Christian Grobmeier
is as follows: deadlineTime = de.converter.DateConverter or in the actions case: project.deadlineTime = de.converter.DateConverter Any ideas why this is not drawn by Struts? Thanks! Christian  (*Chris*) On Mon, Apr 18, 2011 at 7:59 AM, Christian Grobmeier grobme...@gmail.comwrote: Hi all

Re: Conversion problem

2011-04-18 Thread Christian Grobmeier
as the class is? Cheers Christian On Mon, Apr 18, 2011 at 5:40 PM, Christian Grobmeier grobme...@gmail.com wrote: Hi, It appears to be trying to set an Array of Strings to your setDeadlineTime method, is it typed to take an Array of Strings? no arrays anywhere. But I found out I get more

Re: Conversion problem

2011-04-18 Thread Christian Grobmeier
(i.e. /WEB-INF/classes/com.package...) it should work, but normally the .java files don't get included in the .war file.  (*Chris*) On Mon, Apr 18, 2011 at 9:01 AM, Christian Grobmeier grobme...@gmail.comwrote: Oh wow, is it true? It seem ProjectsAction-conversion.properties

Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
Hi all, this is probably a trivial question, but I am unsure how to solve it best. I have an object User user. It has the properties name, password and ListRoles roles. Now I would like to create a navigation bar in my struts 2.2.1 jsp pages. I wanted to avoid huge chunks of logic in my code.

Re: Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
you could do something like this: s:if test=hasPrivilege(#user.roles).../s:if where (bool) hasPrivilege(ListRoles,...) is a function in your action. sounds good. I actually have now that signature in an AbstractAction from which all the other extend: public boolean hasPrivileg(String role) {

Re: Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
s:if test=hasPrivilege(\user\)Login/s:if The correct syntax is: s:if test=hasPrivileg('user') == trueYeah/s:if I really would enjoy some more debugging help in this area Cheers - To unsubscribe, e-mail:

Re: Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
s:if test=hasPrivileg('user')  == trueYeah/s:if Actually, you added a spelling mistake (+e on Privileg).  However, the previous example would work fine.  So a hybrid of the two: Actually I had the spelling typo before, but now saw that in english it is with +e s:if

Re: Forward to original page

2004-05-10 Thread Christian Grobmeier
this problem again sooner or later. Thanks for your time, Christian Grobmeier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Forward to the requesting page

2004-05-05 Thread Christian Grobmeier
Hello all, i have written an small application with struts. Now i have a problem, which is easily to solve with such languages as PHP. But with Struts it seems not to be such easy. I have read all the documentation and what i could find in the archives nor in google. I have this pages (Tiles):

Forward to original page

2004-05-05 Thread Christian Grobmeier
in advance, Christian -- take a look -- www.pfister.de Christian Grobmeier -- mailto:[EMAIL PROTECTED] AMAN Media GmbH network media Dorfstrasse 1-4 85235 Unterumbach @ Munich Germany fon

Re: Forward to original page

2004-05-05 Thread Christian Grobmeier
Hello Rüdiger You could pass the name of the forwarding as a hidden field into the form. The value of the field is defined in the tile definition of the actual page template. You might put tiles:importAttribute scope=request / into the page templates to have access to that page attribute (not