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: 15 Mar, 2011 04:24

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 'XXXXX' received 
from the client to a method setXXXXX. So you just need top create the internal 
variable and the setter.

At any case, you need to be more clear. A NPE at that point in the code you 
sent does not make sense, even if the parameter is null. And after you ask for 
the NPE, your next mail says that you need to get the parameter from the 
client. We can not help if you don't explain clearly the problem. Is it the 
NPE, or how to put the parameter in the Action? Explain the situation clearly, 
where everything is going and how the parameters are obtained and how the 
action is called and maybe we can help you.
------Mensaje original------
De: JavaNoobie87
Para: user@struts.apache.org
Responder a: Struts Users Mailing List
Asunto: RE: RE: loading Dropdown dynamically from database
Enviado: 15 Mar, 2011 03:10

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-dynamically-from-database-tp3555885p3679412.html
Sent from the Struts - User mailing list archive at Nabble.com.

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



Sent via BlackBerry from T-Mobile

Sent via BlackBerry from T-Mobile

Reply via email to