Re: Inline handlers and content security policy in struts2 6.3

2024-03-13 Thread Dave Newton
On Wed, Mar 13, 2024 at 10:43 AM Aleksandr Kubar wrote: > I would like to ask whether there is any inbuilt solution from struts2 to > handle inline handlers or maybe something planned to do in next releases? > You mean like something that gathers up all the inline handlers and shovels them into

Inline handlers and content security policy in struts2 6.3

2024-03-13 Thread Aleksandr Kubar
Hello, I migrate struts2 from version 2.5 to 6.3 and now I have observed lots of Security Content Policy warnings. I found information about new struts "script" and "link" tags and I introduced them in my app, but I still have many warning regarding inline handlers like: onlick, onchange etc. I di

Re: Can anyone help to run my first' code in struts2

2022-10-14 Thread Hitesh Fulchand Jaiswar
hii sir > > i try your all thing but it's showing 404 Erros i don't know > > > -- > *From:* Hitesh Fulchand Jaiswar > *Sent:* Friday, October 14, 2022 12:09 PM > *To:* Struts Users Mailing List > *Subject:* RE: Can anyone help to ru

Re: Can anyone help to run my first' code in struts2

2022-10-14 Thread Lukasz Lenart
4 Erros i don't know > > > -- > *From:* Hitesh Fulchand Jaiswar > *Sent:* Friday, October 14, 2022 12:09 PM > *To:* Struts Users Mailing List > *Subject:* RE: Can anyone help to run my first' code in struts2 > > Hii sir > > Can you tell

Re: Can anyone help to run my first' code in struts2

2022-10-14 Thread Hitesh Fulchand Jaiswar
n my first' code in struts2 Hii sir Can you tell what that error mean in pom.xml Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows From: Hitesh Fulchand Jaiswar<mailto:hites

RE: Can anyone help to run my first' code in struts2

2022-10-13 Thread Hitesh Fulchand Jaiswar
com> Sent: Friday, October 14, 2022 12:05 PM To: Struts Users Mailing List<mailto:user@struts.apache.org> Subject: RE: Can anyone help to run my first' code in struts2 Hii sir Can you take my any desk number help to understand where I am wrong, because I am very confuses on thi

RE: Can anyone help to run my first' code in struts2

2022-10-13 Thread Hitesh Fulchand Jaiswar
M To: Struts Users Mailing List<mailto:user@struts.apache.org> Subject: Re: Can anyone help to run my first' code in struts2 pt., 14 paź 2022 o 08:24 Hitesh Fulchand Jaiswar napisał(a): > > Hii sir > > > That’s all example is struts1 I need sturts2 example Why do you thin

Re: Can anyone help to run my first' code in struts2

2022-10-13 Thread Lukasz Lenart
pt., 14 paź 2022 o 08:24 Hitesh Fulchand Jaiswar napisał(a): > > Hii sir > > > That’s all example is struts1 I need sturts2 example Why do you think so? They are using the latest Apache Struts 2 v.6.0.3 https://github.com/apache/struts-examples/blob/master/pom.xml#L44 Cheers Łukasz --

RE: Can anyone help to run my first' code in struts2

2022-10-13 Thread Hitesh Fulchand Jaiswar
ruts.apache.org> Subject: Re: Can anyone help to run my first' code in struts2 pt., 14 paź 2022 o 07:38 Hitesh Fulchand Jaiswar napisał(a): > > Hii sir , > > > Can you send me anyone example code of struts2 for my understanding for me . Here you have a lot of examples [

RE: Can anyone help to run my first' code in struts2

2022-10-13 Thread Hitesh Fulchand Jaiswar
anyone help to run my first' code in struts2 pt., 14 paź 2022 o 07:38 Hitesh Fulchand Jaiswar napisał(a): > > Hii sir , > > > Can you send me anyone example code of struts2 for my understanding for me . Here you have a lot of examples [1], please try this one [2] [1] https:

Re: Can anyone help to run my first' code in struts2

2022-10-13 Thread Lukasz Lenart
pt., 14 paź 2022 o 07:38 Hitesh Fulchand Jaiswar napisał(a): > > Hii sir , > > > Can you send me anyone example code of struts2 for my understanding for me . Here you have a lot of examples [1], please try this one [2] [1] https://github.com/apache/struts-examples [2] https://github.com/apache/s

Re: Can anyone help to run my first' code in struts2

2022-10-13 Thread Hitesh Fulchand Jaiswar
Hii sir , Can you send me anyone example code of struts2 for my understanding for me . From: Lukasz Lenart Sent: Thursday, October 13, 2022 6:26 PM To: Struts Users Mailing List Subject: Re: Can anyone help to run my first' code in struts2 czw., 13 paź

Re: Can anyone help to run my first' code in struts2

2022-10-13 Thread Lukasz Lenart
czw., 13 paź 2022 o 14:43 Hitesh Fulchand Jaiswar napisał(a): > > Hii sir , > > > This url I am seeing In my program > http://localhost:8080/Struts2Example/ You are missing support for default namespace "/" and as far as I see you do not have neither [1] defined in your web.xml nor [2] in strut

RE: Can anyone help to run my first' code in struts2

2022-10-13 Thread Hitesh Fulchand Jaiswar
<mailto:user@struts.apache.org> Subject: Re: Can anyone help to run my first' code in struts2 czw., 13 paź 2022 o 14:06 Hitesh Fulchand Jaiswar napisał(a): > > Hii sir > > I just accept user name using login page and after that it will be redirect > on welcome page and

Re: Can anyone help to run my first' code in struts2

2022-10-13 Thread Lukasz Lenart
czw., 13 paź 2022 o 14:06 Hitesh Fulchand Jaiswar napisał(a): > > Hii sir > > I just accept user name using login page and after that it will be redirect > on welcome page and showing user name +welcome . What url do you see in your browser? Regards -- Łukasz + 48 606 323 122 http://www.lena

RE: Can anyone help to run my first' code in struts2

2022-10-13 Thread Hitesh Fulchand Jaiswar
ber 13, 2022 5:04 PM To: Struts Users Mailing List<mailto:user@struts.apache.org> Subject: Re: Can anyone help to run my first' code in struts2 czw., 13 paź 2022 o 13:28 Hitesh Fulchand Jaiswar < hitesh.jais...@csinfocomm.com> napisał(a): > Hii Lukasz Lenart , > > > &

Re: Can anyone help to run my first' code in struts2

2022-10-13 Thread Lukasz Lenart
czw., 13 paź 2022 o 13:28 Hitesh Fulchand Jaiswar < hitesh.jais...@csinfocomm.com> napisał(a): > Hii Lukasz Lenart , > > > > It’s showing same errors . if you have any normal project of sturts2 can > you share with me . > > I thing that errors reason is jre and jdk because I ma using 1.8.0 versi

RE: Can anyone help to run my first' code in struts2

2022-10-13 Thread Hitesh Fulchand Jaiswar
.org> Subject: Re: Can anyone help to run my first' code in struts2 czw., 13 paź 2022 o 13:09 Hitesh Fulchand Jaiswar napisał(a): > class="com.hit.user.action"> > name="SUCCESS"&

Re: Can anyone help to run my first' code in struts2

2022-10-13 Thread Lukasz Lenart
czw., 13 paź 2022 o 13:09 Hitesh Fulchand Jaiswar napisał(a): > class="com.hit.user.action"> > name="SUCCESS">pages/welcome_user.jsp This is wrong, there is no result "SUCCESS", use "success" instead or remove the n

RE: Can anyone help to run my first' code in struts2

2022-10-13 Thread Hitesh Fulchand Jaiswar
2 4:39 PM To: Struts Users Mailing List<mailto:user@struts.apache.org>; lukaszlen...@apache.org<mailto:lukaszlen...@apache.org> Subject: RE: Can anyone help to run my first' code in struts2 Hii Lukasz, Yeah know 404 errors Is your java code is not finding a your code . But I try

RE: Can anyone help to run my first' code in struts2

2022-10-13 Thread Hitesh Fulchand Jaiswar
t;mailto:user@struts.apache.org> Subject: Re: Can anyone help to run my first' code in struts2 czw., 13 paź 2022 o 12:03 Hitesh Fulchand Jaiswar napisał(a): > Can anyone help to run my first' code in struts2 > My code is perfect but it's not working properly i don't kn

Re: Can anyone help to run my first' code in struts2

2022-10-13 Thread Lukasz Lenart
czw., 13 paź 2022 o 12:03 Hitesh Fulchand Jaiswar napisał(a): > Can anyone help to run my first' code in struts2 > My code is perfect but it's not working properly i don't know why can you > help me . Error is 404 404 means an http resource was not found (a common http

Re: Can anyone help to run my first' code in struts2

2022-10-13 Thread Hitesh Fulchand Jaiswar
Hii Can anyone help to run my first' code in struts2 My code is perfect but it's not working properly i don't know why can you help me . Error is 404

Re: Can anyone help to run my first' code in struts2

2022-10-13 Thread Lukasz Lenart
czw., 13 paź 2022 o 10:44 Hitesh Fulchand Jaiswar napisał(a): > > Hii > > Can anyone help to run my first' code in struts2 > My code is perfect but it's not working properly i don't know why Sure, but please start a new thread with additional info instead of mi

Can anyone help to run my first' code in struts2

2022-10-13 Thread Hitesh Fulchand Jaiswar
Hii Can anyone help to run my first' code in struts2 My code is perfect but it's not working properly i don't know why HITESH jaiswar On 13-Oct-2022 12:56 pm, Lukasz Lenart wrote: You must only re-implement OpenSessionBackgroundProcess as follow: public class OpenSessionBa

Re: [ask] How to pass multiple radio button in struts2

2018-12-24 Thread M Huzaifah
2018 11:44 AM >> To: Struts Users Mailing List >> Subject: [ask] How to pass multiple radio button in struts2 >> >> Hi Members, >> >> i would like to ask something about radio button in strtus2. >> >> i have radio button in jsp like this: >>

RE: [ask] How to pass multiple radio button in struts2

2018-12-22 Thread Yasser Zamani
t: [ask] How to pass multiple radio button in struts2 > >Hi Members, > >i would like to ask something about radio button in strtus2. > >i have radio button in jsp like this: > > > >All >Self >Custom > > > >All >Self >C

[ask] How to pass multiple radio button in struts2

2018-12-21 Thread M Huzaifah
Hi Members, i would like to ask something about radio button in strtus2. i have radio button in jsp like this: All Self Custom All Self Custom and in my JavaAction class i add property " private String viewAccess[]; “ also with setter and getter. the problem is,

Re: newFixedThreadPool in struts2

2018-02-12 Thread Emi
[Try2] . Each user login session create one fixedPool . When user logout, fixedPool.shutdown() What about if users do not call logout action. Where and how the fixedPool to be shutdown? Is there a way to auto shutdown after period of time? You can write your own listener by implementing HttpS

Re: newFixedThreadPool in struts2

2018-02-12 Thread Emi
It's still accessible: public void sessionCreated(HttpSessionEvent hse) { final HttpSession session = hse.getSession(); logger.debug("session created"); session.setAttribute(KEY, new Clickstream()); } public void sessionDestroyed(HttpSessionEvent hse)

Re: newFixedThreadPool in struts2

2018-02-10 Thread Yasser Zamani
On 2/10/2018 12:32 AM, Emi wrote: > Hello Yasser, >> You can write your own listener by implementing HttpSessionListener >> and call shutdown in it's `sessionDestroyed` method. Please see [1]. >> [1] http://www.myjavarecipes.com/tag/session-timeout-handling-in-java/ > In HttpSessionListener, it s

Re: newFixedThreadPool in struts2

2018-02-10 Thread Yasser Zamani
idates the session. And developer has to clean up when a session is about to be invalidated (HttpSessionListener. sessionDestroyed). > So, wouldn't it be that user-session auto-expired only when: > (1) users have not use any features and > (2) All sub-threads submitted by users thro

Re: newFixedThreadPool in struts2

2018-02-09 Thread Martin Gainty
__ From: Emi Sent: Friday, February 9, 2018 4:02 PM To: Struts Users Mailing List Subject: Re: newFixedThreadPool in struts2 Hello Yasser, > You can write your own listener by implementing HttpSessionListener > and call shutdown in it's `sessionDestroyed` method. Please se

Re: newFixedThreadPool in struts2

2018-02-09 Thread Dave Weis
It's still accessible: public void sessionCreated(HttpSessionEvent hse) { final HttpSession session = hse.getSession(); logger.debug("session created"); session.setAttribute(KEY, new Clickstream()); } public void sessionDestroyed(HttpSessionEvent hse) {

Re: newFixedThreadPool in struts2

2018-02-09 Thread Emi
Hello Yasser, You can write your own listener by implementing HttpSessionListener and call shutdown in it's `sessionDestroyed` method. Please see [1]. [1] http://www.myjavarecipes.com/tag/session-timeout-handling-in-java/ In HttpSessionListener, it seems that there are no session attributes any

Re: newFixedThreadPool in struts2

2018-02-09 Thread Emi
.xml consider there are still active actions? So, wouldn't it be that user-session auto-expired only when: (1) users have not use any features and (2) All sub-threads submitted by users through action classes have completed If I misunderstood threads usage in struts2 framework, please kindly correct me. Thanks a lot.

Re: newFixedThreadPool in struts2

2018-02-09 Thread Yasser Zamani
On 2/8/2018 8:51 PM, Emi wrote: >> Firstly you should decide what do you like about life-time of that >> thread pool without being worry about calling shutdown. All your >> examples have solutions to call shutdown which I described below... >> Please read below >>> [Try1] . By springframe wor

Re: newFixedThreadPool in struts2

2018-02-08 Thread Emi
Firstly you should decide what do you like about life-time of that thread pool without being worry about calling shutdown. All your examples have solutions to call shutdown which I described below... Please read below [Try1] . By springframe work setup ThreadPool . In action class, use fixe

Re: newFixedThreadPool in struts2

2018-02-08 Thread Yasser Zamani
u suggest the best way to setup newFixedThreadPool in struts2 > webapp please? > > [Try1] > . By springframe work setup ThreadPool > . In action class, use fixedPool >   Future f1 = fixedPool.submit(() -> { ...actions such as send > email, etc }); > >   So,  th

newFixedThreadPool in struts2

2018-02-08 Thread Emi
Hello, Can you suggest the best way to setup newFixedThreadPool in struts2 webapp please? [Try1] . By springframe work setup ThreadPool . In action class, use fixedPool Future f1 = fixedPool.submit(() -> { ...actions such as send email, etc }); So, there will be NO shutdown in act

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-11 Thread developer researcher
2017-05-08 15:50 GMT-05:00 Adam Brin : > > > > > > > > > Hi, > > > > > > > > > > I presume you’ve read this: https://struts.apache.org/ > > > > > docs/json-plugin.html#JSONPlugin-Proxiedobjects > > > > > > >

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-09 Thread Adam Brin
hat > the > > > > Struts2 Json plugin uses… and thus, you may need to handle the JSON > > > > serialization using Jackson or another library. > > > > > > > > > > > > - adam > > > > -- > > > > _

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-09 Thread Martin Gainty
, May 9, 2017 8:05 AM To: Struts Users Mailing List Subject: Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin MG>below From: developer researcher Sent: Monday, May 8, 2017 10:14 PM To: Struts Users Mailing List Subject: Re: Probl

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-09 Thread developer researcher
o handle the JSON > > > serialization using Jackson or another library. > > > > > > > > > - adam > > > -- > > > _ > > > Adam Brin > > > Director of Technology, Digital

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-09 Thread Martin Gainty
MG>below From: developer researcher Sent: Monday, May 8, 2017 10:14 PM To: Struts Users Mailing List Subject: Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin Hello Adam, Yes, I am using the "ignoreInterfaces" p

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-08 Thread Adam Brin
> > Adam Brin > > Director of Technology, Digital Antiquity > > 480.965.1278 > > > > > On May 8, 2017, at 12:27 PM, developer researcher < > > java.developer.researc...@gmail.com> wrote: > > > > > > Hello Martin, &

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-08 Thread developer researcher
- adam > -- > _ > Adam Brin > Director of Technology, Digital Antiquity > 480.965.1278 > > > On May 8, 2017, at 12:27 PM, developer researcher < > java.developer.researc...@gmail.com> wrote: > > > >

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-08 Thread Adam Brin
if my queries have been > understood. I am using Struts 2.5.10.1 > > My main query is: *Is there a way to use Spring AOP in Struts2 Actions > using the "JDK dynamic proxies"? Does anyone have an example?* > > Sorry, but I can not find any relationship between your a

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-08 Thread developer researcher
Hello Martin, First of all thanks for the reply, but I'm not sure if my queries have been understood. I am using Struts 2.5.10.1 My main query is: *Is there a way to use Spring AOP in Struts2 Actions using the "JDK dynamic proxies"? Does anyone have an example?* Sorry, but I c

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-06 Thread Martin Gainty
MG>below From: developer researcher Sent: Friday, May 5, 2017 10:09 PM To: Struts Users Mailing List Subject: Problem using the Spring's AOP in Struts2's Actions with json-plugin Hello, I am using Strust 2 with spring-plugin and json-plug

Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-05 Thread developer researcher
beans but in my case it does not work and because I do not use the Spring's @Component annotation in the Action class 2. Is there a way to use Spring AOP in Struts2 Actions using the "JDK dynamic proxies"? I have tested with the following results: a) When Spring uses "JDK dynamic

Issue with Struts2 Submit action attribute in Struts2 and Rest Plugin

2017-02-28 Thread Kiran Kongala
Hi, I have a Enterprise java application and we are using Struts1.2 & struts2-core-2.3.14.jar and everything is fine. But now I want to use the Rest Plugin and I copied the rest plugin (struts2-rest-plugin-2.3.14.jar) and made the below changes in the Struts.xml file. Currently I am not using th

Re: how to use ejb 3.1/3.2 in struts2?

2016-03-08 Thread Mike Guo
; > really thanks Martin and Paul. > > > Mike > > > >> 在 2016年3月9日,上午9:13,Martin Gainty 写道: >> >> >> >> >>> From: hongw...@163.com >>> Subject: Re: how to use ejb 3.1/3.2 in struts2? >>> Date: Wed, 9 Mar 2

Re: how to use ejb 3.1/3.2 in struts2?

2016-03-08 Thread Mike Guo
for this. really thanks Martin and Paul. Mike > 在 2016年3月9日,上午9:13,Martin Gainty 写道: > > > > >> From: hongw...@163.com >> Subject: Re: how to use ejb 3.1/3.2 in struts2? >> Date: Wed, 9 Mar 2016 06:38:39 +0800 >> To: user@struts.apache.org >>

RE: how to use ejb 3.1/3.2 in struts2?

2016-03-08 Thread Martin Gainty
> From: hongw...@163.com > Subject: Re: how to use ejb 3.1/3.2 in struts2? > Date: Wed, 9 Mar 2016 06:38:39 +0800 > To: user@struts.apache.org > > Hi, Paul > > Thanks your response, yes. I used ee 7, > would you share with me some examples? > > Thanks >

Re: how to use ejb 3.1/3.2 in struts2?

2016-03-08 Thread Mike Guo
wrote: >> >> Hello, everyone. >> >> I suppose this is very old question to struts user list. >> >> how to use EJB 3.1/3.2 in struts2? >> >> I did some research on google. but I totally no idea what’s the exactly >> solution for this. >>

Re: how to use ejb 3.1/3.2 in struts2?

2016-03-08 Thread Paul Benedict
t out. Cheers, Paul On Tue, Mar 8, 2016 at 9:44 AM, Mike Guo wrote: > Hello, everyone. > > I suppose this is very old question to struts user list. > > how to use EJB 3.1/3.2 in struts2? > > I did some research on google. but I totally no idea what’s the exactly > solutio

how to use ejb 3.1/3.2 in struts2?

2016-03-08 Thread Mike Guo
Hello, everyone. I suppose this is very old question to struts user list. how to use EJB 3.1/3.2 in struts2? I did some research on google. but I totally no idea what’s the exactly solution for this. some one said use cdi plugin. but if I use cdi plugin, I guess it can be @inject a ebb

Adding custom interceptor in struts2 rest project

2015-01-28 Thread Amol Ghotankar
Hi All, I was trying to get more deep in struts2 rest plugin. To better understand things I have created a struts2-rest-sample on github https://github.com/amolghotankar/struts2-rest-sample Issues I see here are 1. If we add a customer interceptor then index action is not getting called. 2

RE: Issues in Struts2 unit testing

2014-06-13 Thread Martin Gainty
> Date: Fri, 13 Jun 2014 19:01:31 +0530 > Subject: Re: Issues in Struts2 unit testing > From: akrajmscjavaquest...@gmail.com > To: user@struts.apache.org > > Hi Paul, > > I placed the break points in struts code. But the control is not redirected > to strut

Re: Issues in Struts2 unit testing

2014-06-13 Thread Paul Benedict
I think you need to minimize your test case and start from something simpler to diagnose the problem. First try using the default stack alone. Let us know how that turns out. Cheers, Paul On Fri, Jun 13, 2014 at 8:25 AM, Krishnaraj A < akrajmscjavaquest...@gmail.com> wrote: > Hi Team, > > > Is

Re: Issues in Struts2 unit testing

2014-06-13 Thread Krishnaraj A
Hi Paul, I placed the break points in struts code. But the control is not redirected to struts code. its throws error in interceptor code.\ Thanks Krishnaraj On Fri, Jun 13, 2014 at 6:58 PM, Paul Benedict wrote: > Go set a breakpoint in Struts where the ISE is being thrown and see what > con

Re: Issues in Struts2 unit testing

2014-06-13 Thread Paul Benedict
Go set a breakpoint in Struts where the ISE is being thrown and see what condition is being tested. If possible, take some time to determine when that condition is being set before your invocation. Cheers, Paul On Fri, Jun 13, 2014 at 8:25 AM, Krishnaraj A < akrajmscjavaquest...@gmail.com> wrot

Re: Issues in Struts2 unit testing

2014-06-13 Thread Krishnaraj A
Hi Team, Is any help for the above issue Thanks Krishna raj On Thu, Jun 12, 2014 at 9:05 PM, Krishnaraj A < akrajmscjavaquest...@gmail.com> wrote: > Hi Dave, > > I added my struts code. > > Junit Code: > > public class AdminValidation extends StrutsTestCase { > > @Test > public void

Re: Issues in Struts2 unit testing

2014-06-12 Thread Krishnaraj A
Hi Paul, The control is not redirected to execute() method. Thanks Krishnaraj On Thu, Jun 12, 2014 at 8:48 PM, Paul Benedict wrote: > Put a breakpoint in your execute() and see if it's being called. The error > message might be telling the truth: the action has already been executed. > > > C

Re: Issues in Struts2 unit testing

2014-06-12 Thread Krishnaraj A
Hi Dave, I added my struts code. Junit Code: public class AdminValidation extends StrutsTestCase { @Test public void testUserNameErrorMessage() throws Exception { HttpSession session = request.getSession(); UserVO uservo1 =new UserVO(); uservo1.setUserMailId("a

Re: Issues in Struts2 unit testing

2014-06-12 Thread Paul Benedict
Put a breakpoint in your execute() and see if it's being called. The error message might be telling the truth: the action has already been executed. Cheers, Paul On Thu, Jun 12, 2014 at 10:15 AM, Dave Newton wrote: > Without knowing what's in your interceptor stack it's impossible to help. >

Re: Issues in Struts2 unit testing

2014-06-12 Thread Dave Newton
Without knowing what's in your interceptor stack it's impossible to help. Dave On Thu, Jun 12, 2014 at 11:11 AM, Krishnaraj A < akrajmscjavaquest...@gmail.com> wrote: > Hi Team, > > Iam new to using Struts2 unit testing. Iam using the Struts 2 JUnit plugin >

Issues in Struts2 unit testing

2014-06-12 Thread Krishnaraj A
Hi Team, Iam new to using Struts2 unit testing. Iam using the Struts 2 JUnit plugin . The normal actions which is working fine. But I have issue when I am testing the action which has interceptor. /MainAdmin.jsp

Re: How to Use JavaScript in Struts2

2014-06-04 Thread Dave Newton
It's not clear to me what the underlying question is. If you have a lot of dynamic elements on the page you'll probably want to look at the S2 jQuery library: https://code.google.com/p/struts2-jquery/ It makes simple usecases drop-dead easy, and might be enough to serve your needs--although usin

Re: How to Use JavaScript in Struts2

2014-06-04 Thread Dave Newton
o...@gmail.com > > Date: Wed, 4 Jun 2014 10:50:14 +0530 > > Subject: How to Use JavaScript in Struts2 > > To: user@struts.apache.org > > > > Hi, > > I'm developing an an application to conduct Online Examinations. Lots of > > table displays are used i

RE: How to Use JavaScript in Struts2

2014-06-04 Thread Martin Gainty
> From: nijo...@gmail.com > Date: Wed, 4 Jun 2014 10:50:14 +0530 > Subject: How to Use JavaScript in Struts2 > To: user@struts.apache.org > > Hi, > I'm developing an an app

Re: How to Use JavaScript in Struts2

2014-06-04 Thread Christoph Nenning
> Hi, > I'm developing an an application to conduct Online Examinations. Lots of > table displays are used in every module. for example Questions, Exam, > Results, etc, > I have a form which saves a question to db. > > My Scenario is Following I Have three types of Questions > 1. Single choice > 2

How to Use JavaScript in Struts2

2014-06-03 Thread NIJO GEORGE
Hi, I'm developing an an application to conduct Online Examinations. Lots of table displays are used in every module. for example Questions, Exam, Results, etc, I have a form which saves a question to db. My Scenario is Following I Have three types of Questions 1. Single choice 2. Mutiple Choice 3

Re: Error in struts2-archetype-starter

2013-10-11 Thread Antonio Sánchez
El 11/10/2013 12:33 a.m., Lukasz Lenart escribió: And you can start working on that issue [2] which contains link to Wiki page with example CRUD app - O was planning add it as a part of Struts distribution. Started. Please check comments in issue. ---

Re: Error in struts2-archetype-starter

2013-10-10 Thread Lukasz Lenart
2013/10/10 Antonio Sánchez : > Done. Thanks! > I'm having problems with some other archetypes. I'll probable be reporting > about that. > > Also, I'm missing a full CRUD archetype, actually a family of > CRUD+Spring/Guice+JPA/MyBatis... archetypes. If I get support and guidances > I can help with

Re: Error in struts2-archetype-starter

2013-10-10 Thread Antonio Sánchez
Done. I'm having problems with some other archetypes. I'll probable be reporting about that. Also, I'm missing a full CRUD archetype, actually a family of CRUD+Spring/Guice+JPA/MyBatis... archetypes. If I get support and guidances I can help with that. Thanks. El Jueves, 10 de Octubre de

Re: Error in struts2-archetype-starter

2013-10-10 Thread Lukasz Lenart
2013/10/10 Antonio Sánchez : > I've selected it in the struts maven catalog: > > mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ > > It seems using the catalog the replacement is not performed. Please create an issue for that, thanks in advance! Regards -- Łukasz + 48 606 32

Re: Error in struts2-archetype-starter

2013-10-10 Thread Antonio Sánchez
I've selected it in the struts maven catalog: mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ It seems using the catalog the replacement is not performed. El Jueves, 10 de Octubre de 2013 12:10:15 a.m., Lukasz Lenart escribió: How did you use that archetype? mvn archetype:

Re: Error in struts2-archetype-starter

2013-10-09 Thread Lukasz Lenart
How did you use that archetype? mvn archetype:generate -DarchetypeCatalog=http://struts.apcahe.org/ ? And then ${package} should be replaced with package name you have defined. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ ---

Error in struts2-archetype-starter

2013-10-09 Thread Antonio Sánchez
I'm using Netbenas and Tomcat. Trying to run, browser displays: Unable to instantiate Action, ${package}.IndexAction, defined for 'index' in namespace '/'${package}.IndexAction Root cause: java.lang.ClassNotFoundException: ${package}.IndexAction in struts.xml: /jsp/in

Re: Cookie in struts2

2013-05-15 Thread john lee
thanks, in my program, after i import it, the compile error is gone. From: Chris Pratt To: Struts Users Mailing List Cc: john lee Sent: Wednesday, May 15, 2013 4:54 PM Subject: Re: Cookie in struts2 Ah, my bad, you are correct, Dave. John, like Dave

Re: Cookie in struts2

2013-05-15 Thread Chris Pratt
ookies. Here's a good post on handling Cookies in Struts > 2: > > http://omkarp.blogspot.com/2007/07/working-with-cookies-in-struts2.html > > (*Chris*) > > > > > > On Wed, May 15, 2013 at 2:14 PM, Dave Newton > > wrote: > > > > > Import

Re: Cookie in struts2

2013-05-15 Thread Dave Newton
27;s a good post on handling Cookies in Struts 2: > http://omkarp.blogspot.com/2007/07/working-with-cookies-in-struts2.html > (*Chris*) > > > On Wed, May 15, 2013 at 2:14 PM, Dave Newton > wrote: > > > Import the Cookie class, and get the cookies from the request, not

Re: Cookie in struts2

2013-05-15 Thread Chris Pratt
You might want to look into the CookiesAware interface. It's a better way of accessing cookies. Here's a good post on handling Cookies in Struts 2: http://omkarp.blogspot.com/2007/07/working-with-cookies-in-struts2.html (*Chris*) On Wed, May 15, 2013 at 2:14 PM, Dave Newton wrote:

Re: Cookie in struts2

2013-05-15 Thread Dave Newton
Import the Cookie class, and get the cookies from the request, not the class of the request? Dave On Wed, May 15, 2013 at 4:56 PM, john lee wrote: > > > I have no difficulty to handle cookie in struts 1, but have lots of error > in struts 2 > > i have the following program > > > public class

Cookie in struts2

2013-05-15 Thread john lee
I have no difficulty to handle cookie in struts 1, but have lots of error in struts 2 i have the following program public class SecurityVerifySessionIntercepter extends AbstractInterceptor implements ServletResponseAware, ServletRequestAware { Map session= ActionContext.getContext().ge

Re: Inconsistency in Struts2 s:component parameters handling

2013-03-03 Thread Lukasz Lenart
Finally I have had some time to check that and the problem is in UIBean#escape(String) method, line 884, which will return "" instead null if provided String is null. Please register an issue for that. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2012/12/6 Thim Anneessens > H

Re: How to add placeholders in Struts2 autocompleters?

2013-02-03 Thread Lukasz Lenart
2013/2/3 Amol Ghotankar : > Hi, > > Can anyone give me some idea of how to add placeholder text for > auto-completer in struts2 This is deprecated Dojo tag, consider migration to the jQuery Plugin as the Dojo Plugin will be removed with next major release. Regards -- Łukasz + 48

Re: Inconsistency in Struts2 s:component parameters handling

2012-12-03 Thread Lukasz Lenart
2012/11/30 Thim Anneessens > We are using Struts 2.3.1.2 and have noticed a strange behavior in > component parameter handling: > > We have a component that uses both an "id" parameter and a "title" > parameter. > > What is strange is that when we use s:component, the "title" parameter > value can

RE: Inconsistency in Struts2 s:component parameters handling

2012-11-30 Thread Martin Gainty
ité pour le contenu fourni. Date: Fri, 30 Nov 2012 17:36:19 +0100 From: t.anneess...@ictjob.be To: user@struts.apache.org CC: mgai...@hotmail.com; w.gha...@ictjob.be Subject: Re: Inconsistency in Struts2 s:component parameters handling Dear Martin, According to st

Re: Inconsistency in Struts2 s:component parameters handling

2012-11-30 Thread Thim Anneessens
Fri, 30 Nov 2012 14:20:42 +0100 From: t.anneess...@ictjob.be To: mgai...@hotmail.com; user@struts.apache.org; w.gha...@ictjob.be Subject: Re: Inconsistency in Struts2 s:component parameters handling Hi Martin,

RE: Inconsistency in Struts2 s:component parameters handling

2012-11-30 Thread Martin Gainty
tenu fourni. Date: Fri, 30 Nov 2012 14:20:42 +0100 From: t.anneess...@ictjob.be To: mgai...@hotmail.com; user@struts.apache.org; w.gha...@ictjob.be Subject: Re: Inconsistency in Struts2 s:component parameters handling Hi Martin, Thank you for your time but I am no

Re: Inconsistency in Struts2 s:component parameters handling

2012-11-30 Thread Thim Anneessens
eulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.   Date: Fri, 30

Inconsistency in Struts2 s:component parameters handling

2012-11-30 Thread Thim Anneessens
Hello, We are using Struts 2.3.1.2 and have noticed a strange behavior in component parameter handling: We have a component that uses both an "id" parameter and a "title" parameter. What is strange is that when we use s:component, the "title" param

Re: Rewriting an application in Struts2 from Struts 1

2012-10-22 Thread Lukasz Lenart
2012/10/20 Srineel Mazumdar : > Hi, > > Thanks for your reply. However I still have some queries : > > 1) Why the namespace = path added ? I could have given /shop/editAccount. > What difference it would have made ? You should use namespaces as action should be just a simple labels, no slashes. I

Re: Rewriting an application in Struts2 from Struts 1

2012-10-22 Thread Lukasz Lenart
2012/10/20 Srineel Mazumdar : > Also would like to add another thing : > > If I add the following line : > > > > then I think I do not need to add namespace in all the entries?? Yes Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://c

Re: Rewriting an application in Struts2 from Struts 1

2012-10-19 Thread Srineel Mazumdar
Also would like to add another thing : If I add the following line : then I think I do not need to add namespace in all the entries?? On Fri, Oct 19, 2012 at 9:28 AM, Srineel Mazumdar wrote: > Hi, > > I am trying t rewrite the jpetstore project in Struts 2. I am referring to > the Struts 1 i

Re: Rewriting an application in Struts2 from Struts 1

2012-10-18 Thread Lukasz Lenart
2012/10/19 Srineel Mazumdar : > Hi, > > I am trying t rewrite the jpetstore project in Struts 2. I am referring to > the Struts 1 implementation of the petstore project. I am having the > following problem : > > There is an entry : > > type="org.springframework.samples.jpetstore.web.struts.EditAcc

Re: Bean scope type in Struts2 plugin

2012-10-02 Thread Lukasz Lenart
2012/10/1 Aum Strut : > Hi All, > > i am having a small doubt regarding bean creation in struts2,while going > through some of the plugin i saw following code > > inside the Interceeptor > > @Inject > public void setMyManager(MyManager myManager) { >

  1   2   3   4   5   6   7   8   >