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
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
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
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
list="dtList"
>listValue="listbean.code"
>listValue="listbean.dt_oid"
>name="listbean.domainType"
> onchange="function1(this)"
> />.
> I'm not sure how far
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:
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
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
--
> 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
/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
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:
>
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
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.
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
/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
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
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/
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.
>
>
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
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.
> >
> > --
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
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
, 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
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
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
/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
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
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
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
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
Connector.closeResultSet(rs);
>DBConnector.closeStatement(stmt);
>DBConnector.closeConnection(con);
>}
>
>return dtList;
>}
>
>
> --
> View this message in context:
> http
-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
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
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
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
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.
---...
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
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
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
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.
---...
.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
; 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
)
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
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
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
.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
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
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
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.
--
DBConnector.closeStatement(stmt);
DBConnector.closeConnection(con);
}
return dtList;
}
--
View this message in context:
http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-data
53 matches
Mail list logo