Re: Intermittent Session Problems in Strut2.

2009-09-09 Thread Paweł Wielgus
Hi, i don't know if it will help but You can try same thing i did here [1] i was trying to force pages not to being cached and it turned out not to be trivial. Still i don't know how it will behave with proxy. [1] http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html

Re: Warning message when setting BigDecimal to list of bean

2009-09-09 Thread Steven Yang
Sorry I forgot to mention I am using Struts 2.1.8 SNAP SHOT with XWork 2.1.6 samething happens with XWork 2.1.5 On Wed, Sep 9, 2009 at 2:03 PM, Steven Yang wrote: > Hi > I have a bean like > public class Account { > > private String type; > private String name; > private BigDecimal v

Re: uploading a .xls file

2009-09-09 Thread Bill Bohnenberger
if you use name="file" in the tag, your variable names should be "file", "fileFileName" and "fileContentType" - Bill On Wed, Sep 9, 2009 at 10:45 PM, KIRTI CHOPRA wrote: > > hi > but does it make any difference it is just variable name if i am not wrong > but i am not sure about it also > pleas

Re: uploading a .xls file

2009-09-09 Thread KIRTI CHOPRA
hi but does it make any difference it is just variable name if i am not wrong but i am not sure about it also please let me know if it makes any difference. Thanks!!! -- View this message in context: http://www.nabble.com/uploading-a-.xls-file-tp25377242p25377629.html Sent from the Struts - Use

Re: uploading a .xls file

2009-09-09 Thread Steven Yang
are u getting anything from the uploadContent? because i think i should be File file String fileContentType String fileFileName On Thu, Sep 10, 2009 at 12:50 PM, KIRTI CHOPRA wrote: > > hi all > i am new to struts and trying to upload a file in struts 2.0 > i am using tag and have given simple

uploading a .xls file

2009-09-09 Thread KIRTI CHOPRA
hi all i am new to struts and trying to upload a file in struts 2.0 i am using tag and have given simple getter setters in action class i am getting null value in file name pls help and let me know how i can do it. code is given below: Action class package com.neevtech.newsletter.action; impor

Re: Problem with result returning from interceptor

2009-09-09 Thread ManiKanta G
Hi, Sorry for my late reply. Yes I m setting the parent package property to the default s2 package (not class package). *struts.xml* *s2-default.xml*

Re: Intermittent Session Problems in Strut2.

2009-09-09 Thread rohansd
Even we am facing this problem with my application whe it runs on proxy servers. Apparently, this problem occurs only with a certain proxy server. There may be rules defined on the proxy server but being an internet application we have to live with it and find a solution. The information that is s

Re: Interceptor question

2009-09-09 Thread musomesa
By the way, Pawel, at that link some software seems to have severely butchered your xml in the struts.xml part. Chris -Original Message- From: Dale Newfield To: Struts Users Mailing List Sent: Wed, Sep 9, 2009 12:41 pm Subject: Re: Interceptor question Paweł Wiel

Re: Interceptor question

2009-09-09 Thread Dale Newfield
Paweł Wielgus wrote: Mike You can take a look at my post about this problem [1] and read more about Spring Security (ACEGI). [1] - http://poulwiel.blogspot.com/2009/01/intercepting-all-actions-inside-my-app.html I don't understand what your problem is. As you state, you can set the intercep

Re: Interceptor question

2009-09-09 Thread Paweł Wielgus
Hi all, Mike You can take a look at my post about this problem [1] and read more about Spring Security (ACEGI). [1] - http://poulwiel.blogspot.com/2009/01/intercepting-all-actions-inside-my-app.html Best greetings, Paweł Wielgus. 2009/9/9 Dale Newfield : > Mike Baranski wrote: >> >> If I run a

Re: Interceptor question

2009-09-09 Thread Dale Newfield
Mike Baranski wrote: If I run an interceptor on an action, then redirect, is the same interceptor run on the redirected-to action? "then redirect" means that request is done, and the browser will be submitting a new request. That new request gets processed according to the action/interceptor

Re: Interceptor question

2009-09-09 Thread Dale Newfield
Wes Wannemacher wrote: If the action you are redirecting to has the same interceptor-stack (via package inheritance or interceptor configuration), then the answer is 'yes' So the answer is to not put this "force to password change page" interceptor in the stack used for the password change pag

Re: Interceptor question

2009-09-09 Thread Wes Wannemacher
If the action you are redirecting to has the same interceptor-stack (via package inheritance or interceptor configuration), then the answer is 'yes' -Wes On Wed, Sep 9, 2009 at 12:12 PM, Mike Baranski wrote: > I have a question about an interceptor. > > If I run an interceptor on an action, then

Interceptor question

2009-09-09 Thread Mike Baranski
I have a question about an interceptor. If I run an interceptor on an action, then redirect, is the same interceptor run on the redirected-to action? I'm redirecting to a change password page if a password is over x days old, so do I need to specify a different interceptor stack for the change pa

Re: Struts 2 custom ClassLoader

2009-09-09 Thread Musachy Barroso
In fact, the spring plugin contains an example of a custom classloader. We have a classloader there that reloads classes, that should give you some ideas. musachy On Wed, Sep 9, 2009 at 6:41 AM, Wes Wannemacher wrote: > I don't know if I would override the class loader (did I suggest that > earli

Re: Problem with empty values

2009-09-09 Thread Mileidys Gonzalez Prieto
ok, thank you!!! Dale Newfield wrote: Mileidys Gonzalez Prieto wrote: ${relation.address[st.index].extraInfo} This sets a value in a map that goes along with the valuestack. value="%{value}" maxlength="20" size="15"> This is not how you fetch that value. use %{#value} to get the val

Re: [S2]All the methods with "get" prefix are invoked

2009-09-09 Thread Gábor Kovács
Hi Dennis, You are right! Thank you very much! Gábor

Re: Struts 2 custom ClassLoader

2009-09-09 Thread Wes Wannemacher
I don't know if I would override the class loader (did I suggest that earlier, if so, sorry :( ). I would take a look at overriding the buildBean methods. Use your custom classloader to build the 'beans' but do it in a way that tries your classloader first, then falls through to the super class...

Re: [S2]All the methods with "get" prefix are invoked

2009-09-09 Thread Denis Cabasson
Hi, The debug tag is "inspecting" the status of your action to build its HTML output, which include knowing the value of test1, and thus calling the corresponding getter. Take out the debug tag, and everything should be back to normal. Denis. Gábor Kovács a écrit : Hi everyone, I'm confus

RE: [S2] Accessing objects in the Spring context?

2009-09-09 Thread Mike Baranski
Why not have a base action that has the setters and getters (which extends ActionSupport), put the methods in there, and have all your actions extend that instead of ActionSupport. Mike. >-Original Message- >From: Musachy Barroso [mailto:musa...@gmail.com] >Sent: Tuesday, September 08, 20

[S2]All the methods with "get" prefix are invoked

2009-09-09 Thread Gábor Kovács
Hi everyone, I'm confused, because I don't understand this problem: I've made a simple Struts2 project. Here are the codes (they're short) ACTION CLASS --- package test.action; import com.opensymphony.xwork2.ActionSupport; public class TestAction extends ActionSupport{

Re: [struts2] disable parameter pass between actions

2009-09-09 Thread Nils-Helge Garli Hegvik
How do you create the url (seeing some code would help...), and which version of S2? If you're using the url-tag, try setting the includeParams attribute to "none". http://struts.apache.org/2.1.6/docs/url.html Nils-H 2009/9/9 Halil Ağın : > Hello List; > > I have 2 urls as below > > /myapp/myac

[struts2] disable parameter pass between actions

2009-09-09 Thread Halil Ağın
Hello List; I have 2 urls as below /myapp/myaction1.action?p=3 /myapp/myacction2.action i reqeust the first action with param as above. when first request completed i click a button which request second action. but when second action is requested, the parameter part is also passed to second acti

Re: Struts 2 custom ClassLoader

2009-09-09 Thread Andriy Pererva
Hello, Wes! Thank you for your quick help! I did exactly what you advised me, but something still doesn't work. Here are my steps: 1) Created CustomObjectFactory which extends StrutsObjectFactory, with only one method overriden - setClassLoader(). Inside this method I simply pass my custom classloa

Dynamic Tree construction with Struts 1.3

2009-09-09 Thread Hanen Ben Rhouma
Hello There, Can someone tell me if it's possible to code dynamic trees making some actions load their result accordingly with Struts 1.3 ? I've seen many threads related to Dojo integration into Struts2 but I need to work with Struts 1.3, are there any tutorials for such requirement? Thanks in

creating dynamic trees (using sx:tree tag)

2009-09-09 Thread Ignacio Enriquez
Hi, I Never used trees before, so... I would like to have a ROOT with x sons ( no grandsons at all ) How can I create this? I thought that doing children.add(node) will not create a son but a brother. I have this, but this is creating a ROOT, a son, a grandson, grand-grandson, etc (4 generations