struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alceu Medeiros" <>
Subject Problems registering pojo
Date Tue, 22 Jan 2008 14:10:26 GMT

I'm beginner and I'm trying to make a basic CRUD app following this

In this example, I'm trying to do something similar to the Person's save()
function, but when I submit a form my pojo in Action class isn't populated,
it's coming with null value. To populate 'person.firstName', for example,
Struts 2 should call getPerson() and then the setFirstName() function, but
getPerson() is coming with null value. I'm getting this message:

- - -
type Exception report


description The server encountered an internal error () that prevented it
from fulfilling this request.


javax.servlet.ServletException: attempt to create create event with null


- - -

A friend mine said something about setting the "paramsprepareparams" to my
action's configuration, but it's already extending "struts-default" package.
Shouldn't Struts 2 populate my pojo setting a "new Person()"? Is there
anybody who can help me with something?


"Realize buscando o melhor, mas planeje esperando o pior."
Alceu Medeiros

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message