RE: RE: loading Dropdown dynamically from database

2011-03-16 Thread Biesbrock, Kevin
dynamically from database On Wed, Mar 16, 2011 at 8:35 AM, JavaNoobie87 wrote: > I tried the same but  my drop down becomes empty when i run the jsp > and the source generated from the select tag is as follows > >    --Select-- > Please advise. Please use plain-text messages. "Th

Re: RE: loading Dropdown dynamically from database

2011-03-16 Thread Dave Newton
On Wed, Mar 16, 2011 at 8:35 AM, JavaNoobie87 wrote: > I tried the same but  my drop down becomes empty when i run the jsp and the > source generated from the select tag is as follows > >    --Select-- > Please advise. Please use plain-text messages. "The pastebin" isn't an attached message, it's

Re: RE: loading Dropdown dynamically from database

2011-03-16 Thread JavaNoobie87
Guess that didnt load properly. Heres the pastebin for that snippet. http://struts.1045723.n5.nabble.com/file/n3779718/ajms2KeY.txt snippet.txt -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3779718.html Sent from the

Re: RE: loading Dropdown dynamically from database

2011-03-16 Thread JavaNoobie87
View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3779623.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-u

Re: RE: loading Dropdown dynamically from database

2011-03-16 Thread JOSE L MARTINEZ-AVIAL
list="dtList" >listValue="listbean.code" >listValue="listbean.dt_oid" >name="listbean.domainType" > onchange="function1(this)" > />. > I'm not sure how far

Re: RE: loading Dropdown dynamically from database

2011-03-16 Thread JavaNoobie87
I'm not sure how far this is effective though as the drop down form the jsp is empty . Even though the source shows the various options. Also I dont understand what you mean by creating the ids,could you please explain? -- View this message in context:

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
ning > all records of that particular domain(hence the iterator tag ). I also > intend to be able to edit ,update and save the individual records in a > domain .Thanks for replying > > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/l

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
ing all records of that particular domain(hence the iterator tag ). I also intend to be able to edit ,update and save the individual records in a domain .Thanks for replying -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dyn

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
-- > View this message in context: > http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3758519.html > Sent from the Struts - User mailing list archive at Nabble.com. > > - > To u

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
/XK3DkNCG.txt Bean.txt http://struts.1045723.n5.nabble.com/file/n3758519/jWjVuV7W.txt jspfile.txt -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3758519.html Sent from the Struts - User mailing list archive at Nabble.com

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
t;public void setDomainType(String domainType) { >this.domainType = domainType; } > >public String getDomainType() { >return domainType; > } > And no I havent defined any cutom type converters > > -- > View this message in context: >

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
rters -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3757953.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
e in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3757633.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread Dave Newton
is placed below > http://struts.1045723.n5.nabble.com/file/n3757371/YeMgN74D.txt JSP > SNIPPET.txt > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3757371.html > Sent from the Strut

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
/file/n3757371/YeMgN74D.txt JSP SNIPPET.txt -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3757371.html Sent from the Struts - User mailing list archive at Nabble.com

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
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

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread Dave Newton
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

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
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

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread Dave Newton
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

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
vocation.invoke(DefaultActionInvocation.java:229) at com.opensymphon.. http://struts.1045723.n5.nabble.com/file/n3756079/d6XF5wUN.txt Action Class.txt http://struts.1045723.n5.nabble.com/file/n3756079/VtZEa16s.txt DAO.txt -- View this message in context: http://struts.1045723.n5.nabble.com/

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
cation. > > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3710504.html > Sent from the Struts - User mailing list archive at Nabble.com. > >

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
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

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
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 list archive at Nabble.com. > > > > --

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
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-fro

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
p://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3710199.html > Sent from the Struts - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@s

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread Dave Newton
, JavaNoobie87 wrote: > 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-tp35

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
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

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
http://struts.1045723.n5.nabble.com/file/n3690012/interfacejsp.txt JSP > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3690012.html &g

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
/file/n3690012/DomainDAO.txt DAOClass.txt http://struts.1045723.n5.nabble.com/file/n3690012/interfacejsp.txt JSP -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3690012.html Sent from the Struts - User mailing list archi

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread jlmagc
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

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread jlmagc
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 a

Re: loading Dropdown dynamically from database

2011-03-15 Thread Brian Thompson
5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3683230.html > Sent from the Struts - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For

Re: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
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

Re: loading Dropdown dynamically from database

2011-03-15 Thread Brian Thompson
Connector.closeResultSet(rs); >DBConnector.closeStatement(stmt); >DBConnector.closeConnection(con); >} > >return dtList; >} > > > -- > View this message in context: > http

RE: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
-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

RE: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
Yes the value of dt_oid is null at that point. Im trying to figure out how i can populate it at that point . -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3672845.html Sent from the Struts - User mailing list archive at

RE: RE: loading Dropdown dynamically from database

2011-03-14 Thread Lee Clemens
I think Eclipse auto-compiles by default. What is this? DomainDAO.listDomain(dt_oid) Is dt_oid null at this point? (Add a debugging statement) Have you posted code for DomainDAO? I apologize if I've missed it. - To unsubscrib

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
Ive cleaned the project and restarted eclipse Yet it still throws the NPE -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3669127.html Sent from the Struts - User mailing list archive at Nabble.com

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
my IDE -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3666711.html Sent from the Struts - User mailing list archive at Nabble.com. ---...

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
Yes, very much .In fact, I copied the code directly from my IDE -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3666711.html Sent from the Struts - User mailing list archive at Nabble.com

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
e in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3664225.html > Sent from the Struts - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubsc

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
Im using the same version , as ive pasted for the DAO class. -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3664225.html Sent from the Struts - User mailing list archive at Nabble.com

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
http://struts.1045723.n5.nabble.com/file/n3663281/2vG8DAsH.txt 2vG8DAsH.txt -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3663281.html Sent from the Struts - User mailing list archive at Nabble.com. ---...

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3663281.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

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
; at com.opensymphony.x > http://http://pastebin.com/zKRb7va6 Action Class > http://struts.1045723.n5.nabble.com/file/n3661499/m1pbXyiJ.txtm1pbXyiJ.txt > DAO class > > -- > View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-d

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
) at com.opensymphony.x http://http://pastebin.com/zKRb7va6 Action Class http://struts.1045723.n5.nabble.com/file/n3661499/m1pbXyiJ.txt m1pbXyiJ.txt DAO class -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3661499

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
etDtList() { > return dtList; > } > > Ive also uploaded the entire action class. > http://struts.1045723.n5.nabble.com/file/n3555946/DomainAction1.txt > DomainAction1.txt > > -- > View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from

RE: loading Dropdown dynamically from database

2011-03-14 Thread Jose Luis Martinez Avial
Can you put the chunck of your struts.xml in which the action is defined? -Original Message- From: JavaNoobie87 [mailto:vivek...@enzentech.com] Sent: Monday, March 14, 2011 2:59 AM To: user@struts.apache.org Subject: RE: loading Dropdown dynamically from database Yes there is a method

RE: loading Dropdown dynamically from database

2011-03-13 Thread JavaNoobie87
.nabble.com/file/n3555946/DomainAction1.txt DomainAction1.txt -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3555946.html Sent from the Struts - User mailing list archive at Nabble.com

RE: loading Dropdown dynamically from database

2011-03-13 Thread Jose Luis Martinez Avial
Is there a public List getDtList in the Action? You didn't put it in the code. -Original Message- From: JavaNoobie87 [mailto:vivek...@enzentech.com] Sent: Monday, March 14, 2011 12:57 AM To: user@struts.apache.org Subject: Re: loading Dropdown dynamically from database Th

Re: loading Dropdown dynamically from database

2011-03-13 Thread JavaNoobie87
The jsp corresponding to the dropdown didnt show up im attaching it to the below file. http://struts.1045723.n5.nabble.com/file/n3555886/jsp_snippet.txt jsp_snippet.txt -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database

loading Dropdown dynamically from database

2011-03-13 Thread JavaNoobie87
return dtList; } -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3555885.html Sent from the Struts - User mailing list archive at Nabble.com. --

loading Dropdown dynamically from database

2011-03-13 Thread JavaNoobie87
DBConnector.closeStatement(stmt); DBConnector.closeConnection(con); } return dtList; } -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-data