Re: Beans stay null

2010-12-15 Thread Philippe Goncalves
Thanks for your help maurizio, I found something about my problem: I'm developping a plugin on the Jive SBS Software. To do this, all the action class must extend a JiveActionSupport class. I changed by ActionSupport directly, and my beans are not null anymore. But I can't do this way because the p

Re: Beans stay null

2010-12-15 Thread Maurizio Cucchiara
It's very strange odd. Could you attach at least your action java file, struts.xml and freemarker template? Maurizio Cucchiara Il giorno 16/dic/2010 05.06, "Philippe Goncalves" < philippe.goncal...@gmail.com> ha scritto: > Unfortunately nothing :( > > On Wed, Dec 15, 2010 at 10:25 PM, Maurizio Cu

Re: Beans stay null

2010-12-15 Thread Philippe Goncalves
Unfortunately nothing :( On Wed, Dec 15, 2010 at 10:25 PM, Maurizio Cucchiara < maurizio.cucchi...@gmail.com> wrote: > Did you see if you get any exception? (like conversion errors) > > Maurizio Cucchiara > > Il giorno 16/dic/2010 04.21, "Philippe Goncalves" < > philippe.goncal...@gmail.com> ha s

Re: Beans stay null

2010-12-15 Thread Maurizio Cucchiara
Did you see if you get any exception? (like conversion errors) Maurizio Cucchiara Il giorno 16/dic/2010 04.21, "Philippe Goncalves" < philippe.goncal...@gmail.com> ha scritto: > It's before the redirection. > I come to my page: Ok, my variables are all here > I submit my page: when It comes to my

Re: Beans stay null

2010-12-15 Thread Philippe Goncalves
It's before the redirection. I come to my page: Ok, my variables are all here I submit my page: when It comes to my Action class (method execute) to save the information submited, my bean objects are all null on the class, but they are present on my request object. The only variables not null are t

Re: Beans stay null

2010-12-15 Thread Maurizio Cucchiara
As I guess, when struts do a redirect lost your bean parameters. Try to remove and see what happens Maurizio Cucchiara Il giorno 16/dic/2010 04.09, "Philippe Goncalves" < philippe.goncal...@gmail.com> ha scritto: Sure, here it is: /events/${event.ID} /plugins/event-type-pl

Re: Beans stay null

2010-12-15 Thread Philippe Goncalves
Sure, here it is: /events/${event.ID} /plugins/event-type-plugin/resources/templates/edit-event.ftl /events/${event.ID} On Wed, Dec 15, 2010 at 10:05 PM, Maurizio Cucchiara < maurizio.cucchi...@gmail.com> wrote: > Could you post your struts.xml file? > > Mau

Re: Beans stay null

2010-12-15 Thread Maurizio Cucchiara
Could you post your struts.xml file? Maurizio Cucchiara Il giorno 16/dic/2010 04.02, "Philippe Goncalves" < philippe.goncal...@gmail.com> ha scritto: > Hi all! > > Coming from the Struts1 world, I find Struts2 really convenient! > But I have a simple problem, maybe I miss something. I've read som

Beans stay null

2010-12-15 Thread Philippe Goncalves
Hi all! Coming from the Struts1 world, I find Struts2 really convenient! But I have a simple problem, maybe I miss something. I've read some tutorials about Struts2 but didn't find something... Here it is: I'm modifying an actual project based on struts2, spring and freemarker. I have to add some

Re: unicode breaks s:select?

2010-12-15 Thread Maurizio Cucchiara
I'm not aware of such behavior (I am Italian, and we use the accented characters more than anything else). Did you get some more details?(like struts version, stack trace) Maurizio Cucchiara Il giorno 15/dic/2010 18.40, "Patrick Cosmo" ha scritto: Hi! When using "s:select", if the list of data

Re: Parameter manipulation

2010-12-15 Thread Chris Pratt
I don't think it would be a global fix for all forms, but one way to fix the problem would be to use an interceptor that would make your user object available to your view using a context parameter rather than an action attribute. I.e. something like: public class UserInterceptor extends Abstract

unicode breaks s:select?

2010-12-15 Thread Patrick Cosmo
Hi! When using "s:select", if the list of data returned by my java class contains strings that have unicode characters in them, "s:select" fails to generate the entire tag, it dies at the unicode character. For example, this tag: When "userTypeList" has as its first item the string "Actualiz

Parameter manipulation

2010-12-15 Thread Altenhof, David Aron
I've been getting more and more concerned about the possibility of parameter manipulation attacks with Struts2. I've started doing strict whitelists using the ParameterNameAware interface on all of my forms pages. However, today I tried to code a "display-only" page that shows information about

Re: Convention without REST

2010-12-15 Thread stanlick
Thanks Allen -- I modified the remove() to return SUCCESS and it only resulted in a different error; namely: *Messages*: No result defined for action com.foo.actions.music.InstrumentsAction and result success >From all the reading (source code is next) it sure seems like * http://localhost:80

Re: Help... My url grows...

2010-12-15 Thread piyush kumar
sorry, even this would not work without keeping the form's action attribute simply as the name of the action. On Wed, Dec 15, 2010 at 1:40 PM, piyush kumar wrote: > I think following would also do, though I haven't tried it yet > > > > class="gov.usbr.etas.web.struts.LocationA

Re: Help... My url grows...

2010-12-15 Thread piyush kumar
I think following would also do, though I haven't tried it yet /struts/locationAssign.jsp /struts/locationAssign.jsp On Wed, Dec 15, 2010 at 3:35 AM, Ellson, Jared L wrote: > Yup.. I realized that right after I sent my last e