Chris Pat wrote:
The NPE is happening on the first cast. Everything
else looks fine.
But WE wouldn't know that 'cuz you keep not giving us info.
That seems fine.
Here I start to get suspicious.
Your original code sample yo
05 3:38 PM
> To: Struts Users Mailing List
> Subject: Re: newbie...but not stupid...so I thought
>
> Hi Dave
> I second your analogies, grin.
> The NPE is happening on the first cast. Everything
> else looks fine. The fb is standard set/get made by
> JB05 wizard and looks norma
Hi Dave
I second your analogies, grin.
The NPE is happening on the first cast. Everything
else looks fine. The fb is standard set/get made by
JB05 wizard and looks normal. The struts-config has
all the proper syntax for the required elements but in
weird order, but there. Here it is. I am nonpl
Well, if all these things are true, then you are indeed correct and
everything should work fine. Which it doesn't. Which means that there
is a problem somewhere, possibly in something assumed to be correct.
The code you have below is dead-simple, so it's got to be something in
the configuration or
>
> That's because Java and XML is like crack for people that like to type ;)
>
> Dave
LOL!!!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Chris Pat wrote:
That is just a leftover. The retrieved form value is
from the fast of the passed in form bean.
Yeah, but where is the NPE happenning?
What does the ActionForm look like?
What does the struts config look like?
It's "fastiduous" because non-fastiduous webapps rarely work.
Hi Ed
Thanks. I will look again at typos, however the
action mapping properly has the name element in it for
the form bean and the form beans element has the
proper syntax. Except for the stylistic issues, if
all else is correct this should work fine, correct?
Why is this so mind-numbingly fasti
Hi Dave
That is just a leftover. The retrieved form value is
from the fast of the passed in form bean.
--- Dave Newton <[EMAIL PROTECTED]> wrote:
> Chris Pat wrote:
>
> >header1Form header1Form_ = (header1Form)
> form;
> >String queryString =
> ((header1Form)form).getQuery();
>
In search1Action, is the whole form null? Without seeing the relevant
parts of struts-config nor the form bean declaration, I can only
guess. There could be a typo in your struts-config for the action or
the form bean getter/setter declaration. Also, this isn't causing your
problem, but you assign
Chris Pat wrote:
header1Form header1Form_ = (header1Form) form;
String queryString = ((header1Form)form).getQuery();
String animalType = ((header1Form)form).getAnimalType();
Where is the NPE happening? Is form null? Is the NPE in the getters?
Kinda hard to say from this.
10 matches
Mail list logo