o create a
Radiobutton table on the fly
using RowSetDynaClass
I have an action that calls a DAO which returns a RowSetDynaClass like
this:
*public* ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletRespons
Hello all,
I've done it before, in one project it works perfectly in the other it
doesn't so I was hoping
I could get some help from you. This new project tries to create a
Radiobutton table on the fly
using RowSetDynaClass
I have an action that calls a DAO which returns a RowSe
Hello all,
I would like to ask a few questions about RowSetDynaClass.
I can successfully set up one in a DAO class and include it in the
request scope of an action class to forward to a JSP.
The problem is with the JSP.
Problem number one:
- If the bean is null or empty I have an error
8 June 2005 14:27
To: user@struts.apache.org
Subject: help needed with RowSetDynaClass
Hello all,
I am writing a jsp that retrieves a row of a table in my database and
allows the user to modify the fields using a form. For example, if I
have
the following table in my database:
NAME GENDER
John Ma
Hello all,
I am writing a jsp that retrieves a row of a table in my database and
allows the user to modify the fields using a form. For example, if I have
the following table in my database:
NAME GENDER
John Male
Ann Female
and the following code in my action class
...
RowSetDynaClass
ts Users Mailing List" <[EMAIL PROTECTED]>
To
"'Struts Users Mailing
List'" <[EMAIL PROTECTED]>
cc
Subject
RE: RowSetDynaClass
Hey Chris,
Thanks a lot for the detailed information. I have just one more issue,
I
have used the RowSetDynaClass (be
]
Sent: Tuesday, June 15, 2004 8:34 AM
To: Struts Users Mailing List
Subject: RE: RowSetDynaClass
I'm curious. When I proposed the use of RowSetDynaClass yesterday, you
replied that it wasn't fast enough. What changed?
Dennis
"CRANFORD, CHRIS" <[EMAIL PROTECTED]&
I'm curious. When I proposed the
use of RowSetDynaClass yesterday, you replied that it wasn't fast enough.
What changed?
Dennis
"CRANFORD, CHRIS"
<[EMAIL PROTECTED]>
06/15/2004 01:46 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PR
ntains a
> field called item_number. I access it like as follows:
>
>
>
>
> Your item number wasn't provided.
>
>
>
>
>
>
> Does this make sense?
> Chris
>
> -Original Message-
> From: Rajat Pandit, Gurgaon [
Original Message-
From: Rajat Pandit, Gurgaon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 15, 2004 4:21 AM
To: 'Struts Users Mailing List'
Subject: RE: RowSetDynaClass
Hey chris,
This seems like a perfectly logical way to do it, but the problem that I
came across for a generic quer
(property) from the
bean.
Any clue?
rajat
-Original Message-
From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 15, 2004 12:56 PM
To: 'Struts Users Mailing List'
Subject: RE: RowSetDynaClass
I don't use the display tags so couldn't tell you. I simply d
as the DB supports a JDBC
connection.
HTH,
Chris
-Original Message-
From: Rajat Pandit, Gurgaon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 15, 2004 2:52 AM
To: 'Struts Users Mailing List'
Subject: RE: RowSetDynaClass
just one more passing thought, I was wondering if there was
Your item number wasn't provided.
Does this make sense?
Chris
-Original Message-
From: Rajat Pandit, Gurgaon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 15, 2004 2:49 AM
To: 'Struts Users Mailing List'
Subject: RE: RowSetDynaClass
Hey Chris,
: Tuesday, June 15, 2004 11:44 AM
To: 'Struts Users Mailing List'
Subject: RE: RowSetDynaClass
My PagedTableBean constructor looks like the following:
public PagedTableBean(Connection conn,
String sql,
long pageNumber,
Hey Chris,
Thanks a lot for the detailed information. I have just one more issue, I
have used the RowSetDynaClass (beanutils.jar) and I had this issue where I
couldn't control the position of the column numbers as in the 2 column in
the sql could be anywhere in the resultset returned.
caching stuff etc.
Any pointers?
Rajat
(OT (only for navjot) ps: any clue where amit malhotra is these days?)
-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 15, 2004 11:38 AM
To: Struts Users Mailing List
Subject: Re: RowSetDynaClass
if that was really a
: 'Struts Users Mailing List'
Subject: RE: RowSetDynaClass
Hey navjot,
Thanks for the inputs(any pointers to the documentations (URL) would again
be of great help) I have been pretty happy using the display tag, for small
record sets (about 12000 or so) but I needed something more in case I ne
ResultSet rs = ps.executeQuery();
rows = new RowSetDynaClass(rs,true);
rs.close();
ps.close();
}
catch(SQLException e) {
throw new PagedTableException(e.getMessage());
}
}
public Collection getRo
.
Any pointers?
Rajat
(OT (only for navjot) ps: any clue where amit malhotra is these days?)
-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 15, 2004 11:38 AM
To: Struts Users Mailing List
Subject: Re: RowSetDynaClass
if that was really a problem for
period of time.
I would really appreciate your time and effort.
Thanks in adv.
rajat
-Original Message-
From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 15, 2004 11:17 AM
To: 'Struts Users Mailing List'
Subject: RE: RowSetDynaClass
Found the answer ;-) ...
effort.
Thanks in adv.
rajat
-Original Message-
From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 15, 2004 11:17 AM
To: 'Struts Users Mailing List'
Subject: RE: RowSetDynaClass
Found the answer ;-) ... Avoid the tags all together and stick with
the standard s
ECTED]'
Subject: RowSetDynaClass
I am storing a RowSetDynaClass property in my java class and I have
implemented a method on my class as follows:
public Collection getRows() {
return((Collection)rsdc.getRows());
}
In my action, I store my custom class object reference
I am storing a RowSetDynaClass property in my java class and I have
implemented a method on my class as follows:
public Collection getRows() {
return((Collection)rsdc.getRows());
}
In my action, I store my custom class object reference as follows:
request.setAttribute("results", my
OrderVO contains a collection of OrderLineVo and OrderNoteVO. However This means I an
copying data by value when I create these value objects.
I was thinking of using the RowsetDynaClass. Mu question is, How can I use the
RowsetDynaclass to get this information back to the JSP.
Thanks,
Milind
24 matches
Mail list logo