Struts2 (caching, valuestack, etc...) problem

2012-06-04 Thread Omar Ngarigari
Hi All, I have developed an application using struts2.3.1.2, but I am experiencing a weird situation that I have bumping my head for a week now, but It does not go away.  Scenario 1 - I have a query page (jsp) where I have to query database based on the quarter date an input. If I entered a qu

Re: Struts2 (caching, valuestack, etc...) problem

2012-06-04 Thread Omar Ngarigari
e url, but I got no record found. Can you show me how to clean a cache? From: Chris Pratt To: Struts Users Mailing List ; Omar Ngarigari Sent: Monday, June 4, 2012 2:17 PM Subject: Re: Struts2 (caching, valuestack, etc...) problem Are you watching your s

Re: Struts2 (caching, valuestack, etc...) problem

2012-06-04 Thread Omar Ngarigari
; Omar Ngarigari Sent: Monday, June 4, 2012 2:42 PM Subject: Re: Struts2 (caching, valuestack, etc...) problem Are you using spring plugin? Looks like you are using a previous initialized instance of your action class. If yes, ensure that the scope is prototype and not the default one (which is

Re: Struts2 (caching, valuestack, etc...) problem

2012-06-04 Thread Omar Ngarigari
I added the scope to prototype in my spring beans definitions. However, the problem persisting. I deleted my browser history and ran the application. From: Maurizio Cucchiara To: Struts Users Mailing List ; Omar Ngarigari Sent: Monday, June 4, 2012 2:42 PM

Re: Struts2 (caching, valuestack, etc...) problem

2012-06-04 Thread Omar Ngarigari
s expected. Thanks Maurizio and Chris for your help.  Thanks,  From: Maurizio Cucchiara To: Struts Users Mailing List ; Omar Ngarigari Sent: Monday, June 4, 2012 2:42 PM Subject: Re: Struts2 (caching, valuestack, etc...) problem Are you using spring plugin?

How to repopulate data on s:textfield after validation error

2012-06-15 Thread Omar Ngarigari
Hello, Please advice me on how to repopulate data on s:textfield after validation error. When a user enters some values on the s:textfield or s:select fields and click submit button validation error displays, the values goes back to the default not the ones that a user entered in first place.

Re: How to repopulate data on s:textfield after validation error

2012-06-15 Thread Omar Ngarigari
The default value is list value. For example, my code is as follow: What I want is on validation error to repopulated data that user entered not the one that comes with list from database. From: Łukasz Lenart To: Struts Users Mailing List ; Omar Ngarigari

Re: Struts 2 Spring 3 Spring Security 3.1 RedirectAction

2012-06-18 Thread Omar Ngarigari
I am using struts 2.3.1.2 version and also using simple theme. From: Maurizio Cucchiara To: Struts Users Mailing List Sent: Monday, June 18, 2012 10:01 AM Subject: Re: Struts 2 Spring 3 Spring Security 3.1 RedirectAction Could you specify your struts2 versio

Including JSP page from a jar file that placed on /WEB-INF/lib

2012-07-25 Thread Omar Ngarigari
Hello, I would like know how to include a JSP page that was bundled in the jar file (WEB-INF/lib) using struts2. I used s:include tag, but I got the error (Exception thrown during invlude of /common/header.jsp"  1 - web/common/header is in the jar file under WEB-INF/lib 2  - in the mypages.jsp,

Re: Including JSP page from a jar file that placed on /WEB-INF/lib

2012-07-26 Thread Omar Ngarigari
l Message- > From: paulus.benedic...@gmail.com [mailto:paulus.benedic...@gmail.com] On > Behalf Of Paul Benedict > Sent: 26 July 2012 01:26 > To: Struts Users Mailing List; Omar Ngarigari > Subject: Re: Including JSP page from a jar file that placed on /WEB-INF/lib > > Omar, >

struts2.3.1.2 does not come with jquery-plugin jar

2012-08-15 Thread Omar Ngarigari
Hello, I just want to know if it is okay to use struts2-jquery-plugin.3.3.1.jar with struts2-core-.3.1.2.jar. Thanks,

Re: struts2.3.1.2 does not come with jquery-plugin jar

2012-08-15 Thread Omar Ngarigari
that shares the same form. This is how I did it. <%@ taglib prefix="sj" uri="/struts-jquery-tags"%>   From: Umesh Awasthi To: Struts Users Mailing List ; Omar Ngarigari Sent: Wednesday, August 15, 2012 9:10 AM Subject: Re: s

Re: struts2.3.1.2 does not come with jquery-plugin jar

2012-08-15 Thread Omar Ngarigari
s not come with jquery-plugin jar Without knowing anything about what is or isn't working, what's supposed to happen vs. what does, it's really difficult to provide assistance. I don't see a taglib for the normal S2 tags, though. Dave On Wed, Aug 15, 2012 at 9:27 AM, Omar Ngari

s:checkbox inside s:iterator in struts2.3.1.2

2012-09-23 Thread Omar Ngarigari
Hello, Please help, I am having problem that I cannot figure out how to solve it. The problem is as follow: 1. JSP page: 2. Action Class public class ExampleAction extends ActionSupport { private List myList = new ArrayList(); private List stringList = new ArrayList(); private int age; get

Re: s:checkbox inside s:iterator in struts2.3.1.2

2012-09-24 Thread Omar Ngarigari
Hello, I changed my JSP page as per the documentation recommendation:   From: Lukasz Lenart To: Struts Users Mailing List ; Omar Ngarigari Sent: Monday, September 24, 2012 12:50 AM Subject: Re: s:checkbox inside s:iterator in struts2.3.1.2 2012/9/24

Re: s:checkbox inside s:iterator in struts2.3.1.2

2012-09-24 Thread Omar Ngarigari
"setAge" failed for object From: Lukasz Lenart To: Struts Users Mailing List ; Omar Ngarigari Sent: Monday, September 24, 2012 12:50 AM Subject: Re: s:checkbox inside s:iterator in struts2.3.1.2 2012/9/24 Omar Ngarigari : > Hello, > > Please

Re: s:checkbox inside s:iterator in struts2.3.1.2

2012-09-24 Thread Omar Ngarigari
I figured it out. I think the correct way is to use fieldValue instead of value. It is working now. Thanks so much for your help. From: Lukasz Lenart To: Struts Users Mailing List ; Omar Ngarigari Sent: Monday, September 24, 2012 2:08 PM Subject: Re

How to pass the current logged in username to struts2 action from spring security 3

2013-02-28 Thread Omar Ngarigari
Hello, Thanks in advance. I have an application that uses Spring Security 3 + Struts2. The integration works just fine. I can login without an issue. However, I would like to get the username in the Struts2 action class so that I can display in the Struts2 tags jsp pages. Omar N.

Re: How to pass the current logged in username to struts2 action from spring security 3

2013-03-01 Thread Omar Ngarigari
Thanks Luksz for replying, but what i want is to use the username in Struts 2 action class and display in struts2 jsp tags Sent from my iPhone On Mar 1, 2013, at 1:09 AM, Lukasz Lenart wrote: > 2013/3/1 Omar Ngarigari : >> Hello, >> >> Thanks in advance. I have an

Re: How to pass the current logged in username to struts2 action from spring security 3

2013-03-01 Thread Omar Ngarigari
Thanks Lukasz, I will give a try. From: Lukasz Lenart To: Struts Users Mailing List Sent: Friday, March 1, 2013 7:01 AM Subject: Re: How to pass the current logged in username to struts2 action from spring security 3 2013/3/1 Omar Ngarigari : > Tha

Re: How to pass the current logged in username to struts2 action from spring security 3

2013-03-19 Thread Omar Ngarigari
getModel(){ return addCustomer; } } JSP I am not sure this is correct way to display the current logged in username; Thanks, From: Hernán To: Struts Users Mailing List ; Omar Ngarigari Sent: Friday, March 1, 2013 2:33 PM Subject: Re: How to pass the

Re: How to pass the current logged in username to struts2 action from spring security 3

2013-03-20 Thread Omar Ngarigari
Which annotation type should I use in my actiom class to inject user object? Sent from my iPhone On Mar 20, 2013, at 2:14 AM, Lukasz Lenart wrote: > 2013/3/20 Omar Ngarigari : >> > value="%{springSecurity.currentUser}"/> > > You cannot call interceptor

Re: How to pass the current logged in username to struts2 action from spring security 3

2013-03-20 Thread Omar Ngarigari
I annotated my action class as follow: @Target({java.lang.annotation.ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface SpringSecurityPrincipal {     public String getUsername(); } in my action class public class AddAction extends ActionSupport implements ModelDriven{

Re: generating taglib using Ant and Java 6

2013-04-04 Thread Omar Ngarigari
Did you mean Struts2?  From: Lukasz Lenart To: Struts Users Mailing List Sent: Thursday, April 4, 2013 12:36 PM Subject: Re: generating taglib using Ant and Java 6 If you find a solution, please share it as we can use with Struts 3 then :-) 2013/4/4 Steven

Re: generating taglib using Ant and Java 6

2013-04-04 Thread Omar Ngarigari
Struts3 is coming? Great! how soon? From: Dave Newton To: Struts Users Mailing List Sent: Thursday, April 4, 2013 7:45 PM Subject: Re: generating taglib using Ant and Java 6 Nope. On Apr 4, 2013 7:39 PM, "Omar Ngarigari" wrote: > Did you

How to submit a form with enter key

2013-06-05 Thread Omar Ngarigari
Hello, I am not able to submit a form using "enter key" from the keyboard. The form is as follow:                                                                                                                                                                                        

Warning message when execAndWait

2013-06-27 Thread Omar Ngarigari
Hello, Is anybody knows why I am getting the following warning message while waiting page is displaying. (execAndWait)? WARN  [org.apache.struts2.util.TokenHelper] Could not find token mapped to token name struts.token Thanks,

Re: Warning message when execAndWait

2013-06-27 Thread Omar Ngarigari
Users Mailing List ; Omar Ngarigari Sent: Thursday, June 27, 2013 4:27 PM Subject: Re: Warning message when execAndWait Hello Omar, Is needed more information, but I can guess some things: 1 - struts.dev is setted to false? 2 - are you using token interceptor? 3 - if yes, there is a token

accessing an external file in the struts.xml

2013-07-02 Thread Omar Ngarigari
Hello, Is it possible to access a file that is located in the local drive or server side folder from struts.xml? as follow: C:/Folder/jasperReport.jasper or

Re: accessing an external file in the struts.xml

2013-07-02 Thread Omar Ngarigari
Thanks, Omar N. From: Maurizio Cucchiara To: Struts Users Mailing List ; Omar Ngarigari Sent: Tuesday, July 2, 2013 12:20 PM Subject: Re: accessing an external file in the struts.xml Much of the answer depends on what your application server is. In any case, I don't think this is

Re: accessing an external file in the struts.xml

2013-07-02 Thread Omar Ngarigari
the struts.xml You have at least one extra layer in your file path, normally you'd keep files like this under WEB-INF, and start the file path from there. Dave On Jul 2, 2013 1:14 PM, "Omar Ngarigari" wrote: > Thanks for responding to my question. However, JBoss server does

Struts2 - Using java.util.Map as datasource in the jasperreports

2013-07-29 Thread Omar Ngarigari
Hello, I was able to generate a PDF file using struts2-jasperreports-plugin using java.util.List as datasource. However, I am not able to do the same with the java.util.Map datasource. My question is anybody knows how to use java.util.Map datasource in the struts2-jasperreports-plugin? Thank

conflict between message.properties for multiple Struts war files

2013-08-15 Thread Omar Ngarigari
I have three different applications that were developed using Struts2 framework. I deployed three different war files on the JBoss AS6. But, now I am having problem with global message.properties files. Each war file has its own message.properties file. message.properties file for the App1.war

Re: conflict between message.properties for multiple Struts war files

2013-08-16 Thread Omar Ngarigari
f the same EAR? Or they just separated WARs? You can define a constant struts.custom.i18n.resources in struts.xml for each WAR: and then put your app.title in app1-message.properties and so on for the rest. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/8/15 Omar Ngarigari

s:url & s:param does not work on struts 2.3.15.1

2013-08-19 Thread Omar Ngarigari
Hello, I am in the process of upgrading my struts2.3.1.2 application to struts2.3.15.1. Everything works fine except the and tags. In struts2.3.1.2, I have the following code in jsp file   %{stateName} Add I used to get correct state name when using struts2.3.1.2. However, using st

Re: s:url & s:param does not work on struts 2.3.15.1

2013-08-19 Thread Omar Ngarigari
Thanks Chris, it works with ${stateName} From: Chris Pratt To: Struts Users Mailing List Cc: Omar Ngarigari Sent: Monday, August 19, 2013 1:44 PM Subject: Re: s:url & s:param does not work on struts 2.3.15.1 It might even work using *$*{stateName}.

Re: conflict between message.properties for multiple Struts war files

2013-08-26 Thread Omar Ngarigari
Yes, I am using the shared Stutrus2 libs jar files. From: Lukasz Lenart To: Struts Users Mailing List Sent: Monday, August 26, 2013 9:11 AM Subject: Re: conflict between message.properties for multiple Struts war files 2013/8/16 Omar Ngarigari : >

Re: Struts2-jquery-grid-show on jboss as 6.0.final

2013-09-13 Thread Omar Ngarigari
Thanks Martin, From: Martin Gainty To: Struts Users Mailing List Sent: Friday, September 13, 2013 7:41 AM Subject: RE: Struts2-jquery-grid-show on jboss as 6.0.final struts.xml containing action specification for JsonTableAction                    

Re: Struts2-jquery-grid-show on jboss as 6.0.final

2013-09-13 Thread Omar Ngarigari
Thanks Lukasz, now I can see the index page. It worked. From: Lukasz Lenart To: Struts Users Mailing List Sent: Friday, September 13, 2013 3:12 AM Subject: Re: Struts2-jquery-grid-show on jboss as 6.0.final No, it doesn't, rather this http://struts.apach