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

2010-12-15 Thread piyush kumar
I think following would also do, though I haven't tried it yet package name= namespace=/struts extends=struts-default action name=locationAssign class=gov.usbr.etas.web.struts.LocationAssignAction method=execute result

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 alivelove2...@gmail.comwrote: I think following would also do, though I haven't tried it yet package name= namespace=/struts

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 *

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 a

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: s:select key=FIELD.USER_TYPE name=userType list=userTypeList

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

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 pco...@incognito.com ha scritto: Hi! When using s:select, if

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

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 some

Re: Beans stay null

2010-12-15 Thread Philippe Goncalves
Sure, here it is: action name=edit-event class=com.jivesoftware.community.ext.event.action.MyAction result name=success type=redirect/events/${event.ID}/result result name=input type=freemarker/plugins/event-type-plugin/resources/templates/edit-event.ftl/result

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: action name=edit-event

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

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
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 scritto:

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

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