Oh, I know what is the problem.

I try to recover an ArrayList to populate a select. from #application.types, and it throws an java.lang.NullPointerException.

Cheers.

----- Original Message ----- From: "Dustin Pearce" <dustin_pea...@yahoo.com>
To: <users@appfuse.dev.java.net>
Sent: Wednesday, May 19, 2010 1:47 AM
Subject: Re: [appfuse-user] Problem on view jsp/action


It seems as though you are accessing the wrong action. Typically, there is an action for rendering the form and then an action for handling the posted form. It would appear you have the POST action "updateUserData", but you are missing the form action.

You need something like:

<action name="userDataEdit" class="userDataAction" method="edit">
<result name="success">/WEB-INF/pages/user-form.jsp</result>
</action>

Then the form's action points to updateUserData

<s:form action="updateUserData"  method="POST" ...>



On May 18, 2010, at 4:34 PM, Juan Antonio wrote:

Thanks, for your quick response.

Yes, it returns SUCCESS, but i can't access to the form, I try to enter, it goes through every method, and then returns to the mainMenu.

I try to do the same as "saveUser" or "editUser" action. But it doesn't stops to let me update the data with the form.

Cheers.
----- Original Message ----- From: "Dustin Pearce" <dustin_pea...@yahoo.com>
To: <users@appfuse.dev.java.net>
Sent: Wednesday, May 19, 2010 1:29 AM
Subject: Re: [appfuse-user] Problem on view jsp/action


You action's "success" result is a redirect back to the mainMenu. I am assuming that you are returning "success" from your update() method.

-D

On May 18, 2010, at 4:25 PM, Juan Antonio wrote:


Hello everybody.

I have implemented an action with a "prepare()" "update()" and a
"validate()" method.

I have mapped it like:

      <action name="updateUserData" class="userDataAction"
method="update">
          <result
name="input">/WEB-INF/pages/configuracion_cliente.jsp</result>
          <result name="success" type="redirectAction">mainMenu</result>
          <result name="cancel" type="redirectAction">mainMenu</result>
      </action>

I added it to the menu, and when i enter, its executed all methods
(prepare() - update() - validate()) and it returns to the mainmenu, without
ever display my jsp.

What i'm doing wrong?

Cheers.
--
View this message in context: http://appfuse.547863.n4.nabble.com/Problem-on-view-jsp-action-tp2222063p2222063.html
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to