Problem with jsp and session on first call

2010-01-14 Thread Cimballi
ea about where the problem can come from ? Thanks, Cimballi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Problem with jsp and session on first call

2010-01-14 Thread Cimballi
ea about where the problem can come from ? Thanks, Cimballi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Problem with jsp and session on first call

2010-01-14 Thread Cimballi
t uses the HttpSession, but then in the actions it seems to be recommended to use the "context" session. Thanks ! Cimballi On Thu, Jan 14, 2010 at 5:31 PM, Gabriel Belingueres wrote: > This way of obtaining a Session I think is not a good idiom. > > May be there are things that

Re: Problem with jsp and session on first call

2010-01-14 Thread Cimballi
Don't you think it could be interesting to find a solution to have both way working ? Well, maybe it's not possible in fact... I've seen there is also kind of hack to invalidate the session, because if you invalidate the HttpSession it generates an error when recreating and accessgin

Re: Tomcat 5.5 + Struts2 : Erreur lancement Application Web

2010-01-25 Thread Cimballi
Tu as quoi comme code à cette ligne : action.ChargementParamAction.execute(ChargementParamAction.java:66) ? Cimballi 2010/1/25 canardo972 : > > Bonjour, > > Contexte : > Après installation de tomcat 5.5 et le déploiement de mon application Web, > je rencontre une erre

Re: Tomcat 5.5 + Struts2 : Erreur lancement Application Web

2010-01-26 Thread Cimballi
mis "admnin" et non "admin", est-ce normal ? Cimballi 2010/1/26 canardo972 : > > Bonjour Cimballi, > > voici le code de la classe ChargementParamAction (la ligne 66 est dans la > fonction execute : le "return SUCCESS": > public class ChargementPara

Re: NPE

2010-02-04 Thread Cimballi
Look here, there are 2 tips, about security and swing, you will need : http://whyjava.wordpress.com/2009/08/30/creating-struts2-application-on-google-app-engine-gae/ Cimballi On Thu, Feb 4, 2010 at 9:14 AM, Saeed Iqbal wrote: > Any ideas why my application is throwing this error on Google

Re: Problem with Exception Interceptor

2010-02-04 Thread Cimballi
You interceptor declaration should be like that : true com.xxx ERROR Cimballi On Thu, Feb 4, 2010 at 4:14 PM, DavidZaz wrote: > > I have an exception interceptor declared in my struts.xml, but no log > messages ever appear in the log

Re: Problem with Exception Interceptor

2010-02-04 Thread Cimballi
:D Ok, I just noticed than the mailing list engine, or maybe google, removes the < param > tag... Cimballi On Thu, Feb 4, 2010 at 4:40 PM, DavidZaz wrote: > > I actually had the interceptor-ref configured like that in my source code. It > looks like my code didn't paste fr

Re: Problem with Exception Interceptor

2010-02-04 Thread Cimballi
Hum, it's strange because in fact at fatal level you should only have fatal log messages... On Thu, Feb 4, 2010 at 5:33 PM, DavidZaz wrote: > > As an update, I changed the level in my struts.xml to FATAL and the logging > started working. This behavior confuses me since I don't have any loggers

Re: ognl can't handle converting from string to float?

2010-02-09 Thread Cimballi
I have a working case with this declaration : private Float latitude; and getXxx setXxx. And in the JSP : Using Struts 2.1.8.1 Cimballi 2010/2/9 BlackKnight : > Hi, > > Just curious, > > Lib Version: > ognl 2.6.11/Struts2.1.6, > > Initial setting: > I have a flo

Re: ognl can't handle converting from string to float?

2010-02-10 Thread Cimballi
Frankie, here it works also with "0.0" entered in the UI. Cimballi On Wed, Feb 10, 2010 at 11:32 AM, BlackKnight wrote: > Hi Cimballi, > > >  Have you tried to set latitude = 0f (in java class) or  0.0 in the web > textfield and then submit the form? > >  

Re: How to prevent JSP files from being publicly directly accessible?

2010-02-17 Thread Cimballi
The default pattern is to put all JSPs under WEB-INF and so you force the call to an action to access them. Cimballi On Wed, Feb 17, 2010 at 7:46 PM, Wong Chin Shin wrote: > Hi, > > I've had a pen test finding where our JSP files, which are in the public > directories of o

Re: How to prevent JSP files from being publicly directly accessible?

2010-02-18 Thread Cimballi
the RequestDispatcher calls. Cimballi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Interceptor

2010-02-19 Thread Cimballi
Look at ParameterRemoverInterceptor for example, you can access the action context like this : ActionContext ac = invocation.getInvocationContext(); And then you can set values in the value stack. Didn't test it but should work. Cimballi On Fri, Feb 19, 2010 at 11:10 AM, CRANFORD, CHRIS

Re: Interceptor

2010-02-19 Thread Cimballi
will help to debug. You can look at this class too, com.opensymphony.xwork2.interceptor.TimerInterceptor, they do the same, only they don't put it in the value stack. Cimballi On Fri, Feb 19, 2010 at 11:39 AM, CRANFORD, CHRIS wrote: > > My RequestTimerInterceptor is very basic and

Re: Format Currency

2010-02-23 Thread Cimballi
Not sure at 100%, but should be a problem of encoding. What's the encoding of your page ? Cimballi On Tue, Feb 23, 2010 at 12:44 PM, CRANFORD, CHRIS wrote: > I have added a format to my messages resource bundle as follows: > > format.currency={0,number,currency} > > Then I use this in my JSP > >

Re: struts 2 - framework question

2010-03-06 Thread Cimballi
John, you can use namespaces at the package level to distinguish your stores. You can also do that in a rest way, like http://www.xyz.com/store/1. Cimballi On Sat, Mar 6, 2010 at 11:18 PM, john lee wrote: > > my company is distributor, we plan to provide platform for our > customer(

Re: struts 2 - framework question

2010-03-07 Thread Cimballi
paramter, and you set the parameter statically in the action definitions. You will need 2 action definitions, one in each package, calling the same java action and setting the storeId parameter like said before. Then, in each JSP for each store, you call the correct struts action. Is it clear for you ?

Re: struts 2 - framework question

2010-03-09 Thread Cimballi
Something like that : Declare the interceptor unless you use default Struts stacks Declare the static param : value And in the action you need a setFoo(String) Cimballi On Mon, Mar 8, 2010 at 10:40 PM, john lee wrote: > Cimballi, > > tks for your help, but i do not  quite underst

Re: Which Spring and Hibernate versions are compatible

2010-04-06 Thread Cimballi
Yes ! On Tue, Apr 6, 2010 at 11:15 PM, Krunal Dhamelia wrote: > Hi All, > > I am new to Struts 2 and wanted to use latest versions of Spring and > Hibernate with Struts2. > Is it possible to use Spring 3.0.2 and Hibernate 3.5 with Struts 2? > > > Krunal Dhamelia >

Re: Basic security problem

2010-04-15 Thread Cimballi
to your super class, and you write a PermissionInterceptor which calls the hasPermission method. Finally you add the PermissionInterceptor interceptor to your stack on all protected actions. Cimballi On Thu, Apr 15, 2010 at 9:39 PM, Kun Niu wrote: > You should check the authentication all

Re: Struts vs SpringMVC

2010-04-15 Thread Cimballi
Comments are already included in the doc : 1. When we talk about MVC frameworks Struts(original and not Struts2) 2. Sturts 2 is the revision of Struts (original) and takes care of such shortcoming and provides a good set of competing features. So not so much to debate on... Cimballi On Thu

Re: packaging Struts 2 application and third party jars

2010-04-18 Thread Cimballi
Hi Sven, It's better to avoid to put jars in the Tomcat folders. The problem is that if you put your jars there, then all your apps will share them, and then you cannot have different versions of the same API, like one app using Struts 2.0.x and another one using Struts 2.1.x. Cimballi O

Re: Validate without submit?

2010-04-30 Thread Cimballi
Of course it can be done with JQuery and I recommend using JSON too. You call the action via Ajax and you get the JSON result and display it. Cimballi On Fri, Apr 30, 2010 at 1:36 PM, Ozu Natsu wrote: > Is it possible to fire the struts 2 validation without performing a > submit?  I r

Re: Validate without submit?

2010-04-30 Thread Cimballi
7;s a single String but I suppose you can return more complex objects. Cimballi On Fri, Apr 30, 2010 at 2:51 PM, Ozu Natsu wrote: > I am having some problems with the call, the ajax "get" returns no > response, even though I know the form validation should be failing. > My aja

Re: Validate without submit?

2010-04-30 Thread Cimballi
even specify the name of the method to call in your action. Another option is to create 2 actiosns in your configuration file calling the same java action, one for the real action, and the other for the validation. Cimballi On Fri, Apr 30, 2010 at 3:34 PM, Ozu Natsu wrote: > Closer, still

Re: Validate without submit?

2010-04-30 Thread Cimballi
Did you try with the getJSON method of JQuery ? Cimballi On Fri, Apr 30, 2010 at 5:01 PM, Ozu Natsu wrote: > 1 step closer. I had missed the reference to the interceptor > in my struts > action. > > I am now getting a result back from the validator, but it doesn't se

Re: Validate without submit?

2010-04-30 Thread Cimballi
I noticed that I am not using the json interceptor, only the result : What are you using ? Cimballi On Fri, Apr 30, 2010 at 5:16 PM, Ozu Natsu wrote: >        var url= "./checkValid.do"; >        var data= > $('#update').serialize()+'&struts.enableJ

Re: Disappearing Labels

2010-05-20 Thread Cimballi
Did you try putting the xworks jar in each project ? I am not sure but I don't think you can share it. Cimballi On Thu, May 20, 2010 at 9:18 PM, Bhaarat Sharma wrote: > We have a weird problem with multiple Struts2 wars deployed on same > GlassFish server.  These wars share the Xwor

Re: Disappearing Labels

2010-05-20 Thread Cimballi
I recommend you to try to deploy both applications on separate servers, as the guy did in your link, and see if you still have the problem. For sure the s:text in Struts uses Xworks. Cimballi On Thu, May 20, 2010 at 10:10 PM, Bhaarat Sharma wrote: > Hi, > > Have not tried that yet.  W

Re: struts2 + javascript doubt

2010-05-24 Thread Cimballi
Yes you can but instead of using you can use directly JSP EL like {myBean.propertyName}. Cimballi On Mon, May 24, 2010 at 1:10 PM, lucas owen wrote: > Hi: > > > is it possible to pass a dynamic parameter to a javascript function??? > > I'm trying this: > >

Re: Tags in struts2

2010-05-25 Thread Cimballi
http://struts.apache.org/2.1.8.1/docs/result-configuration.html Cimballi On Tue, May 25, 2010 at 6:14 AM, ennidhi wrote: > > Whats the difference between action tag? Which one is called at what point? Please suggest. And also what > does > /empmanager/editEmploye

Re: Struts2: Referring to resources (images, stylesheets, ...)

2010-06-02 Thread Cimballi
You should not call your page from a link but always go through an action. It is more secure and also it would solve your problem. Nevertheless, one solution is to use the tag. Cimballi On Wed, Jun 2, 2010 at 3:12 AM, Guy Thomas wrote: > Hallo, > > On a jsp page booksearchresult.j

Re: How JSP page retrieves ActionForm.bean value?

2010-06-02 Thread Cimballi
You should not write java code inside JSPs, it's very hard to maintain. You should use Struts taglib and JSTL taglibs. Look at the tag and also ${} to display bean values. Cimballi On Wed, Jun 2, 2010 at 12:22 PM, Emi Lu wrote: >>> Could someone tell me how to read actionFor

Re: CRUD for a set of persistent entities?

2010-06-10 Thread Cimballi
It seems you are looking for a tool like Seam but for Struts2. I don't know about any such tool but it should be possible to do the same. Cimballi On Thu, Jun 10, 2010 at 1:47 PM, Ken wrote: > On Thu, 2010-06-10 at 17:38 +0100, Jan T. Kim wrote: > >> Dear List, >> &g

Re: Factoring out URL and link generation

2010-06-15 Thread Cimballi
Hi Jan, One solution could be to externalize the URL generation in a JSP fragment and set a variable containing the resulting URL. Then, in your JSP you call the variable to output the URL. Cimballi On Tue, Jun 15, 2010 at 1:05 PM, Jan T. Kim wrote: > Hi All, > > the basic way to

Re: Interceptors probelms

2010-07-26 Thread Cimballi
input". Cimballi On Mon, Jul 26, 2010 at 12:23 PM, Rohit wrote: > Hi, > > > > I am new to struts2, prior to this I have been using struts1.2, Spring and > Hibernate combination. I have just started using Struts2,Spring and > Hibernate application, but I seem to be plag

Re: No result defined for action ........ and result input

2010-08-01 Thread Cimballi
It's highly probable that at some moment in the action process you (or the framework) return "input" as the result. Cimballi On Sun, Aug 1, 2010 at 2:54 PM, Chris Miles wrote: > Hi folks. > > I am getting the following exception on my action method. > >

Re: No result defined for action ........ and result input

2010-08-01 Thread Cimballi
As a first step you can try to activate the logs for Struts and Xwork and look if they say anything when returning from the action. Cimballi On Sun, Aug 1, 2010 at 4:04 PM, Chris Miles wrote: > Hi, It is not being returned by me so without having to debug the source is > anything which

Re: Unit Testing in Struts 2.1.6

2010-08-03 Thread Cimballi
You can try this : http://cimballisblog.blogspot.com/2009/09/unit-testing-struts2-actions-with.html Cimballi On Tue, Aug 3, 2010 at 3:01 PM, akash uppal wrote: > > > > Dan - Is your Struts 2 application using Spring?  If it isn't you shouldn't > need to use the StrutsS

Re: ibatis is not maintained by apache. So what other db processing plugins combined great with struts2 for db operations

2010-08-12 Thread Cimballi
Why worrying so much ? iBatis is still alive : http://www.mybatis.org/ Cimballi On Thu, Aug 12, 2010 at 1:24 PM, Emi Lu wrote: > Good afternoon, > > http://ibatis.apache.org/index.html shows that "2010/06/16 - Apache iBATIS > has been retired". > > Can you suggest

Re: Does Spring3 support mybatis3.x?

2010-08-12 Thread Cimballi
Lu, this is a Struts ML, not a Spring or iBatis ML. A simple search in Spring documentation would have given you the answer : http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/orm.html#orm-ibatis Cimballi On Thu, Aug 12, 2010 at 3:12 PM, Emi Lu wrote: > He

Re: Does Spring3 support mybatis3.x?

2010-08-12 Thread Cimballi
Frank, I think that you can simply replace the Spring 2.5.6 jars by the 3.0.x jars. Cimballi On Thu, Aug 12, 2010 at 5:32 PM, Frans Thamura wrote: > hi all > > talking spring3 > > any idea to make struts 2.21 using spring 3 rath

Re: Does Spring3 support mybatis3.x?

2010-08-12 Thread Cimballi
Are you sure the crash is related to the dependencies ? Below is a what I used on a project, mixing Struts 2.1.8.1 and Spring 3.0.2. Cimballi com.opensymphony xwork 2.1.3 compile org.springframework spring-beans ${spring.version

Re: Add ValueStack Object In Interceptor

2010-08-13 Thread Cimballi
Chris, the ParametersInterceptor clears the ValueStack, so depending on your stack maybe that's what's happening. Cimballi On Fri, Aug 13, 2010 at 1:09 PM, CRANFORD, CHRIS wrote: > I am trying to add an object to the ValueStack prior to invoking the > action; however my actio

Re: Calling Struts Action file through command line.

2010-08-17 Thread Cimballi
Cimballi On Tue, Aug 17, 2010 at 2:40 PM, E2241 wrote: > > Hi, > > 1.) I would like to know if it is possible to call the struts framework > through a command line or a console application. Can one call an action > class? Is there any possibility to do so? I think i