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
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
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 *
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
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
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
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
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
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
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
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
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
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
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:
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
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
16 matches
Mail list logo