You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Security Management <li...@secmgmt.com> on 2009/04/06 21:21:18 UTC

Debugging form values being set

I have an app that has a form value (rule.days) which should, if I
understand the docs, call:

getSearch().setDays() on the bean it's submitting to.

How can I turn on debug for this, and see why rule.ruleName works, but
rule.days is not being set?

I see this in the log:
2009-04-06 15:14:21,345 [http-8080-Processor25] DEBUG
org.apache.jasper.servlet.JspServlet - 		 rule.ruleName = tetst
2009-04-06 15:14:21,345 [http-8080-Processor25] DEBUG
org.apache.jasper.servlet.JspServlet - 		 rule.days = 1234

In my validation, I can validate that getRule().setRuleName(String s) is
being called, but getRule().setDays(String s) does not.  They are both
public methods on the Rule object.



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


Re: Debugging form values being set

Posted by dusty <du...@yahoo.com>.
Seems like it should work the way you have it described.  Perhaps show the
JSP syntax although is suspect its correct.   Maybe also show the Bean and
action code for good measure.

Is days a reserved word in OGNL?  I don't think so.  Did you try to change
it to dayz and see if that works?



Security Management wrote:
> 
> I have an app that has a form value (rule.days) which should, if I
> understand the docs, call:
> 
> getSearch().setDays() on the bean it's submitting to.
> 
> How can I turn on debug for this, and see why rule.ruleName works, but
> rule.days is not being set?
> 
> I see this in the log:
> 2009-04-06 15:14:21,345 [http-8080-Processor25] DEBUG
> org.apache.jasper.servlet.JspServlet - 		 rule.ruleName = tetst
> 2009-04-06 15:14:21,345 [http-8080-Processor25] DEBUG
> org.apache.jasper.servlet.JspServlet - 		 rule.days = 1234
> 
> In my validation, I can validate that getRule().setRuleName(String s) is
> being called, but getRule().setDays(String s) does not.  They are both
> public methods on the Rule object.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Debugging-form-values-being-set-tp22915414p22917790.html
Sent from the Struts - User mailing list archive at Nabble.com.


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