You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Dhaliwal, Pritpal (HQP)" <Pr...@rhi.com> on 2004/08/21 00:28:17 UTC

FormBean values are null

So here is the deal..

ActionA is input for ActionB
They both share the ABFormBean, ABFormBean has some properties..

For both actions, validate=false, scope=request

When I hit submit on ActionA and it goes to ActionB, the values in the
ABFormBean are null. I don't know why.

I event did request.getParameter("EventID"), even that returned a null
when  I clearly see that in the query string, I have EventID=5.

I think I am doing something wrong.. I just dunno what.. Can someone
help please.

I have two combinations of such events and form bean, that are behaving
the same way.


Paul




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Why not make scaffold exceptions as ModulExceptions with chaining ability?

Posted by struts Dude <sc...@slingshot.co.nz>.
Ok this is more like a question that shud be asked
in developer group, but authors of scaffold are
going to read it here any way. I hope.

The org.apache.commons.scaffold.lang dir has a whole
bunch of exceptions that simply does chaining. Why not
integrate them with ActionErrors as in ModulException?

This can save us the trouble to develop another version
of exceptions as in org.apache.commons.scaffold.lang
, that simply act like ModuleException.

The user can then simply catch and throw exceptions 
without adding ActionErrors explicitly in Action
or business beans when used with ProcessAction.
That wud be cool.

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: FormBean values are null

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
Without seeing what you're doing all anyone can do is guess, much better if
you post a question with full info.

Post the jsp showing your form for ActionB on and relevant bits of
struts-config and someone might be able to help you.

Niall

----- Original Message ----- 
From: "Dhaliwal, Pritpal (HQP)" <Pr...@rhi.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Friday, August 20, 2004 11:28 PM
Subject: FormBean values are null


So here is the deal..

ActionA is input for ActionB
They both share the ABFormBean, ABFormBean has some properties..

For both actions, validate=false, scope=request

When I hit submit on ActionA and it goes to ActionB, the values in the
ABFormBean are null. I don't know why.

I event did request.getParameter("EventID"), even that returned a null
when  I clearly see that in the query string, I have EventID=5.

I think I am doing something wrong.. I just dunno what.. Can someone
help please.

I have two combinations of such events and form bean, that are behaving
the same way.


Paul




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org