Well, the NPE is due to the fact that you are setting declaring dt_oid as an
Integer(which can be null) but in the method listdomain is an int. The JVM
automatically tries to convert Integer to int, but if it's null, it will
throw a NPE, since an int can not be null. That's the first thing you shou
JOSE L MARTINEZ-AVIAL wrote:
>
> Struts does not know that yo want to should map that domainType to your
> bean. It wil try to map the parameters received from the request to the
> action. So for each parameter it founds in the request received from the
> user, it is gonna look in the action for
Struts does not know that yo want to should map that domainType to your
bean. It wil try to map the parameters received from the request to the
action. So for each parameter it founds in the request received from the
user, it is gonna look in the action for a set.
If I remember correctly, if the p
No its not present in the action class. That snippet was taken from the bean
class, that im using to set the values. Pardon my ignorance , but should i
set it in the action class too? (because i dont use it in the action class
directly ).
The bean class is just a set of getters and setters that im
humm, that snippet is not in the Action you gave before. Can you provide the
current version of the Action ?
2011/3/16 JavaNoobie87
>
> Dave Newton-6 wrote:
> >
> > The snippet doesn't actually help, and can't you just include small
> > samples in the email itself?
> >
> > The headerKey is a num
Dave Newton-6 wrote:
>
> The snippet doesn't actually help, and can't you just include small
> samples in the email itself?
>
> The headerKey is a number, what are the ones filled by the tag? What
> does the setDomainType method take as a parameter? Have you defined
> any custom type converters?
JOSE L MARTINEZ-AVIAL wrote:
>
> Well, you are right, but I didn't say that that was the error :D. I just
> pointed to that because AFAIK a setter is needed for the
> parameterinterceptor to work, right?. Any case, and looking at the error
> '[Ljava.lang.String;@aea710', is it possible that it's
The snippet doesn't actually help, and can't you just include small
samples in the email itself?
The headerKey is a number, what are the ones filled by the tag? What
does the setDomainType method take as a parameter? Have you defined
any custom type converters?
Dave
On Wed, Mar 16, 2011 at 12:42
The domaintype is of type string .Im using it to store the domain type that
is selected from the master table (domain table) obtained through the jsp
(ie from the user ) after he selects values from the dropdown . The jsp
snippet for the same is placed below
http://struts.1045723.n5.nabble.com/file
Well, you are right, but I didn't say that that was the error :D. I just
pointed to that because AFAIK a setter is needed for the
parameterinterceptor to work, right?. Any case, and looking at the error
'[Ljava.lang.String;@aea710', is it possible that it's receving an array? to
what should it try
On Wed, Mar 16, 2011 at 12:27 AM, JOSE L MARTINEZ-AVIAL wrote:
> In the action there is no setDomainType.
(Just for completeness, that's not necessarily correct; this error may
occur under some type conversion conditions.)
Dave
In the action there is no setDomainType. Is it suppoused to be a parameter
received from the user? where is it used?
2011/3/16 Dave Newton
> On Wed, Mar 16, 2011 at 12:12 AM, mv wrote:
> > SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught
> > setting 'domainType' on
On Wed, Mar 16, 2011 at 12:12 AM, mv wrote:
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught
> setting 'domainType' on 'class com.vivek.struts2.action.DomainAction1: Error
> setting expression 'domainType' with value '[Ljava.lang.String;@aea710'
I'd say you're trying
As Suggested ive set the devmode to true and as hinted the error is being
thrown by the Parameters interceptor , as im new to coding im not being able
to figure out where I'm going wrong .Ive put logging into the action ,dao
classes and attached them here . The stack trace is as below.
my logging s
Yes, you can try this.
Greetings
El mar, 15-03-2011 a las 10:16 -0500, Muneer Malik escribió:
> You mean have all your action logic in getJSON?
>
>
>
> On Tuesday, March 15, 2011, Rodrigo Esteban Cares Guarda
> wrote:
> > Hi,
> > if you have the method "execute" and "getJSON" in your action c
Johannes,
"if you are using validation it is normally that you get two requests.
the first request is for validation and the second is the expected request"
but only one request should get to the action logic and not both other wise
the action logic would be called twice and this is what is happe
>
> I tried the getJSON as well,
> the action is being called twice this means my logic would execute twice
> for
> an AJAX call.
>
> INFO [http-8080-6]
> net.polymorphic.emr.common.Validation.EsignCodeValidator
> validate- Esign Validator being used
> DEBUG [http-8080-6] net.polymorphic.emr.workf
It will take the parameter from the request and call the setter in your
action, so you will have the parameter available in you action.
2011/3/15 JavaNoobie87
> Im aware of the documentation .My question was how parameters interceptor
> would be of use to me , for this particular application.
>
Im aware of the documentation .My question was how parameters interceptor
would be of use to me , for this particular application.
--
View this message in context:
http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3710504.html
Sent from the Struts - User ma
Dave is right as usual. I was writing from memory.
2011/3/15 Dave Newton
> Are you aware there is Struts 2 documentation?
>
> http://struts.apache.org/2.x/docs/parameters-interceptor.html
>
> But I think the interceptor in question is the parameter filter
> interceptor:
>
> http://struts.apache.
Sorry, you need to put
2011/3/15 JOSE L MARTINEZ-AVIAL
> You can activate devMode putting this in you struts.xml
>
>
>
>
>
> [...]
>
>
> The ParameterInterceptor is in the default stack of Struts2. If you are
> using the default stack, it should work automatically. If not, you need to
>
You can activate devMode putting this in you struts.xml
[...]
The ParameterInterceptor is in the default stack of Struts2. If you are
using the default stack, it should work automatically. If not, you need to
add it to your interceptor stack.
http://struts.apache.org/2.0.6/struts2-core/
Are you aware there is Struts 2 documentation?
http://struts.apache.org/2.x/docs/parameters-interceptor.html
But I think the interceptor in question is the parameter filter interceptor:
http://struts.apache.org/2.x/docs/parameter-filter-interceptor.html
Dave
On Tue, Mar 15, 2011 at 12:57 PM, J
devmode is disabled (I have never used it before) and how do I implement the
ParamsInterceptor and whats the use of the same ?
--
View this message in context:
http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3710199.html
Sent from the Struts - User mailing
On Tue, Mar 15, 2011 at 9:49 AM, Maurizio Cucchiara <
maurizio.cucchi...@gmail.com> wrote:
> It looks like that your action execution fails inside the method you
> defined
> for the action. You should look inside the invocation target exception
> (through the get cause method) in order to investig
You mean have all your action logic in getJSON?
On Tuesday, March 15, 2011, Rodrigo Esteban Cares Guarda
wrote:
> Hi,
> if you have the method "execute" and "getJSON" in your action class, try
> comment the "execute" method.
>
> Greetings
>
> El mar, 15-03-2011 a las 00:27 -0700, Johannes Geppe
Hi,
if you have the method "execute" and "getJSON" in your action class, try
comment the "execute" method.
Greetings
El mar, 15-03-2011 a las 00:27 -0700, Johannes Geppert escribió:
> if you are using validation it is normaly that you get two requests.
> the first request is for validation and
Well, ParametersInterceptor should take care of that. Do you have devMode
enable? check the logs, you should find there if it is been used, and if it
is working.
2011/3/15 JavaNoobie87
> I am submitting a form in the page and trying to store the value in a bean
> (in the action class )and trying
try setting devMode=true and set logging to DEBUG and see what message you
get
On Sat, Mar 12, 2011 at 2:59 AM, Jainitya wrote:
>
> Hi I have to pass a parmeter to action
>
>
>
> Now the Problem is : this code is unable to call the
> action"DailyShopStockChart"
> //Output URL o
I am submitting a form in the page and trying to store the value in a bean
(in the action class )and trying to use that bean to insert a row( but the
values from the form aren't being reflected onto the bean and hence the NPE)
, however I dont know how the values i submit from the form can be put
Just to comment that Struts2 will populate the parameter from the request if
you aure using the corresponding interceptor, or the default stack.
--Mensaje original--
De: Yo
Para: Struts Users Mailing List
Responder a: Yo
Asunto: Re: RE: loading Dropdown dynamically from database
Enviado: 1
Humm, I think you need to be far more clear in your problem/request. I assume
you are navigating from one JSP to that Action, right? And in that navigation
you have a value that you need to put in the Action to load the list. If that
is the case, Struts will populate automatically any parameter
Oh, nevermind -- I replied before I saw that you'd solved that part of it :/
-Brian
On Tue, Mar 15, 2011 at 2:40 AM, JavaNoobie87 wrote:
> Following changes? I didnt get what you meant. i dont see any code :S
>
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/loading-Dr
Following changes? I didnt get what you meant. i dont see any code :S
--
View this message in context:
http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3683230.html
Sent from the Struts - User mailing list archive at Nabble.com.
---
if you are using validation it is normaly that you get two requests.
the first request is for validation and the second is the expected request.
Johannes
--
View this message in context:
http://struts.1045723.n5.nabble.com/JSON-Plugin-my-execute-method-is-being-called-twice-tp3635553p3681532.ht
Try making the following changes to your Java code -- the output should give
you some clues about what's going wrong.
-Brian
On Sun, Mar 13, 2011 at 11:52 PM, JavaNoobie87 wrote:
> Hi All,
> Im developing a Crud example using Struts 2 where im in the need to load
> values for a dropdown box dyna
Is there any way that i can set the value of one attribute that i obtain from
the database in this case objid as given in the loaddomaintype ()method DAO
class , to dt_oid , through the jsp
Please advise
--
View this message in context:
http://struts.1045723.n5.nabble.com/loading-Dropdown-dy
37 matches
Mail list logo