Re: LocaleProvder not unique

2017-03-15 Thread Christian Grobmeier
; > > > 2017-03-14 10:13 GMT+01:00 Christian Grobmeier : > >> Yes, actually I think you are right: LocaleProvider and TextProvider > >> have both the same issue. It's just popping up for me with > >> LocaleProvider first, but TextProvider will surely follow. >

Re: LocaleProvder not unique

2017-03-14 Thread Christian Grobmeier
ar 14, 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 : > > 2017-03-13 21:51 GMT+01:00 Christi

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 : > > > Wether @Service was right or not, I need to somehow tell Spring how to > > > find my beans (i.e. @Component

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 : > > Wether @Service was right or not, I need to somehow tell Spring how to > > find my beans (i.e. @Component). > > I can understand Springs confusion, when it reali

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 : > > > Removing @Service helped. In addition I had to remove the remaining > > > Actions from applicationContext.xml (I am in

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 : > > Removing @Service helped. In addition I had to remove the remaining > > Actions from applicationContext.xml (I am in the middle of a > > transition). > > > &

Re: LocaleProvder not unique

2017-03-13 Thread Christian Grobmeier
e yet, 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 : > > > @Service > > > @Scope(value = C

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 : > > @Service > > @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE) > > public class EmptyAction extends AbstractAction { > > Looks like you have turned eac

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 : > > Hello all, > > > > I trying to upgrade my Str

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 i

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

Re: Apple sec breach.. Struts?

2013-08-02 Thread Christian Grobmeier
On Fri, Aug 2, 2013 at 7:01 AM, Jim Macalister 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 > project as well. I sugg

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 f

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

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

Re: ServletResponseAware - request can be null?

2013-07-08 Thread Christian Grobmeier
appen, but it does. I am going to read the interceptor code... > > > On Mon, Jul 8, 2013 at 2:38 PM, Lukasz Lenart wrote: > >> 2013/7/5 Christian Grobmeier : >> > I am implementing the ServletResponseAware interface and found out >> > that sometimes the

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 s

Re: angularjs and struts action result

2013-02-20 Thread Christian Grobmeier
On Thu, Feb 21, 2013 at 8:03 AM, Lukasz Lenart wrote: > 2013/2/20 Frans Thamura : >> 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 that recently with my own app and it w

Re: Java security issue vs. struts?

2013-01-16 Thread Christian Grobmeier
On Wed, Jan 16, 2013 at 11:12 PM, Emi Lu 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 Vulnerability) >> and anot

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 Lukas

Re: Struts/CMS/Drupal

2012-03-29 Thread Christian Grobmeier
without pain. You have only 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 > > -Orig

Re: Struts/CMS/Drupal

2012-03-29 Thread Christian Grobmeier
On Thu, Mar 29, 2012 at 8:32 PM, Santinello, Anthony 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 don't use tools like Quercus. Y

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: Current status in testing with struts2, spring3 +junit 4?

2012-03-21 Thread Christian Grobmeier
2012/3/20 Łukasz Lenart : > 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 classes rename accordingly

Re: Advice needed: Offline Struts App

2012-03-15 Thread Christian Grobmeier
On Thu, Mar 15, 2012 at 9:44 PM, Brian Thompson 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 > app [2] and cust

Re: Advice needed: Offline Struts App

2012-03-15 Thread Christian Grobmeier
On Thu, Mar 15, 2012 at 8:49 PM, Wes Wannemacher 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 with it. Ac

Re: Advice needed: Offline Struts App

2012-03-15 Thread Christian Grobmeier
s logic. I think it is what you meant 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

Re: Advice needed: Offline Struts App

2012-03-15 Thread Christian Grobmeier
e, try it, installer with encrypted >> mysql, struts2 app >> >> F >> >> >> >> On Thu, Mar 15, 2012 at 10:35 PM, Christian Grobmeier >>  wrote: >>> >>> thanks - i will evaluate that >>> >>> On Thu, Mar 15, 2012 at

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 wrote: > you can use izpack > > F > > > > On Thu, Mar 15, 2012 at 10:31 PM, Christian Grobmeier > wrote: >> the customers for my apps are mostly non-techies... I am afraid they >>

Re: Advice needed: Offline Struts App

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

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 p

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 eclipse

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 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 > HSSFWorkbook, but when i

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 d

Re: Struts 2 Webinar in Wednesday

2011-12-23 Thread Christian Grobmeier
> >> 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

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 wrote: > Unfortunately I missed the webinar, is there an offline version? > > Twitter     :http://www.twitter.com/m_

Re: Help Struts 1.3

2011-12-13 Thread Christian Grobmeier
Hello, On Tue, Dec 13, 2011 at 10:46 AM, AlexCross 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. The action should

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

Re: Dynamic Result Selection

2011-11-19 Thread Christian Grobmeier
ght be a good idea to write 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 > To

Re: Dynamic Result Selection

2011-11-18 Thread Christian Grobmeier
Hello Rohan, On Sat, Nov 19, 2011 at 8:44 AM, rohan jamkhedkar wrote: > > %{nextPage} try to add these results too: %{nextPage} %{nextPage} Input is what is returned when some input is missing, error in case an error happens. Please also see the class ActionSupport, were these String constants

Re: utf8 problems...

2011-11-14 Thread Christian Grobmeier
eed 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

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=true&characterEncoding=utf8 Now I suspect sitemesh somehow. Any ideas were I could look appreciated Is sitemesh still recommend

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

2011-09-29 Thread Christian Grobmeier
maven repos? And why 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,

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

2011-09-29 Thread Christian Grobmeier
, Maurizio Cucchiara 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" ha > scritto: > Hi, > > >> In the meanwhile that Yann answ

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

2011-09-29 Thread Christian Grobmeier
y slow 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 wrote: > >> Looks pretty nice. >> >> Are the changes available in the community ed

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 wrote: > Early Access Preview has started for the next major version of JetBrains > IntelliJ IDEA, and Struts 2 Plugin already has

Re: Returning response object only from Action

2011-09-28 Thread Christian Grobmeier
which might help you: http://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

Re: Returning response object only from Action

2011-09-28 Thread Christian Grobmeier
>                var data = req.responseText; >                alert(data); >                document.getElementById("characters").innerHTML = data; >            } else { >                alert("Problem: " + req.statusText); >            } >        } >  

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: Convention plugin can't find Actions

2011-08-29 Thread Christian Grobmeier
On Mon, Aug 29, 2011 at 3:02 AM, chengas123 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. >   value="jar,code-source" /> >   /> I added it to the wiki, thanks for coming bac

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
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 wrote: > jQuery. > > Dave >  On Aug 16, 2011 1:01 PM, "Balwinder" wrote: >> Dave, >> >> My criteria is: >> >> Able to ajaxify my app seamlessly. >> Quick in implementation.

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: 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 wrote: > wrong version of struts. > On Aug 11, 2011 1:23 PM, "Christian Grobmeier" wrote: >> Hi, >> >> I do not know a text tag in struts: >> http://struts.apache.org/2.2.3/docs/ui-tag-re

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 w

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) > (2) > (3) > > Actually, I prefer not to use complex javascript code to do change select1, > select2 is updated, change select2, and select3 is updated. No chance without javascript. There i

Re: Using s:actionerror

2011-08-10 Thread Christian Grobmeier
izio Cucchiara > > > On 9 August 2011 17:07, Christian Grobmeier wrote: > >> On Tue, Aug 9, 2011 at 4:23 PM, Dave Newton wrote: >> > On Tue, Aug 9, 2011 at 10:20 AM, Christian Grobmeier wrote: >> >> Shouldn't at least the message text come out of it? >

Re: Using s:actionerror

2011-08-09 Thread Christian Grobmeier
Of course, I should use 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 wrote: > On Tue, Aug 9, 2011 at 4:23 PM, Dave Newton wr

Re: Using s:actionerror

2011-08-09 Thread Christian Grobmeier
On Tue, Aug 9, 2011 at 4:23 PM, Dave Newton 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" th

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

Using s:actionerror

2011-08-09 Thread Christian Grobmeier
Using 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: this.addActionError(getText("err

Re: How to StrutsJUnit4TestCase?

2011-08-08 Thread Christian Grobmeier
ara > > > On 8 August 2011 10:35, Christian Grobmeier 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 afore

Re: How to StrutsJUnit4TestCase?

2011-08-08 Thread Christian Grobmeier
and is part 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 wrote: > There you go: > > http://code.google.com/p/struts2-junit/ > > Regards, > Gabriel > > 2011/8/3 Christian Grobmeier :

Re: How to StrutsJUnit4TestCase?

2011-08-08 Thread Christian Grobmeier
apache.org/job/Struts2/334/org.apache.struts$struts2-junit-plugin/ > [2] > https://issues.apache.org/jira/browse/WW-3667?focusedCommentId=13079421&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13079421 > On 3 August 2011 20:16, Christian Grobmeier wrote:

Re: How to StrutsJUnit4TestCase?

2011-08-03 Thread Christian Grobmeier
g our Struts > 2 integration testing 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 : >

Re: How to StrutsJUnit4TestCase?

2011-08-03 Thread Christian Grobmeier
cases 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 wrote: >> >>> Hell

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

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=1&passwd > =643def90&app_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

Re: Submit image button sends coordinates

2011-07-26 Thread Christian Grobmeier
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 wrote: > >> > @Christian >> > Good workaround, >> > i

Re: Submit image button sends coordinates

2011-07-26 Thread Christian Grobmeier
en in development mode ,-) > > Maurizio Cucchiara > > Il giorno 26/lug/2011 12.26, "Christian Grobmeier" ha > scritto: >> Thanks Maurizio. >> >> I don't want to reduce my error level, now I created something weird. >> Not nice, but it w

Re: Submit image button sends coordinates

2011-07-26 Thread Christian Grobmeier
t should not be a warning message) > >     >         >     > > > On 26 July 2011 11:27, Christian Grobmeier wrote: > >> Hi, >> >> using: >> > name="submit" /> >> >> Sends the following to my action: >> submit => [ Submit ] su

Submit image button sends coordinates

2011-07-26 Thread Christian Grobmeier
Hi, using: 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 to: > Error setting expression 'submit.x' with value '[Ljava.lang.Stri

Re: Hidden Exceptions

2011-05-30 Thread Christian Grobmeier
g like this in your interceptors: > > >         >                 >                        true >                        ERROR >                 >         > > > > > Then, to make sure Struts handles all exceptions, add this below your > interceptor section: > > >        /your_error_page.

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 exce

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 wrote: > Hi, > > given the following: > > > a

Converting a hidden input field to Boolean?

2011-05-01 Thread Christian Grobmeier
Hi, given the following: 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 chance i can make this work? Cheers Chr

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 unca

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 Cheers

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 sec

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 > wrote: > >> Oh wow, is it true? >> >> It seem ProjectsAction-conversi

Re: Conversion problem

2011-04-18 Thread Christian Grobmeier
the class is? Cheers Christian On Mon, Apr 18, 2011 at 5:40 PM, Christian Grobmeier 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 fou

Re: Conversion problem

2011-04-18 Thread Christian Grobmeier
ation as ProjectsAction. Content 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

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: Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
>> Yeah > > 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 > Yeah You are right, this works. After all I am not sure why I hav

Re: Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
> Login The correct syntax is: Yeah I really would enjoy some more debugging help in this area Cheers - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
> you could do something like this: > ... where (bool) > hasPrivilege(List,...) 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) { ... } In my JSP: Login I did not unders

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 List 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. Theref

Re: Forward to original page

2004-05-10 Thread Christian Grobmeier
my sub-template. Probably it doesn't know about the other templates... i have tried the import-tag, but this doesnt work. Well, it worx now, despite it's uglyness :) If someone can correct me, i am eager to hear. I believe i will have this problem again sooner or later. Thank

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 into the page templates to have access to that page attribute (not sure about this). Does this work? This so

Forward to original page

2004-05-05 Thread Christian Grobmeier
logical name. Thanks in advance, Christian -- take a look --> www.pfister.de ~~~~~~~~ Christian Grobmeier -->> mailto:[EMAIL PROTECTED] AMAN Media GmbH network & media Dorfstras

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