You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by John Yu <jo...@scioworks.com> on 2002/01/14 04:13:34 UTC
Comptability of JSR 127 and Struts [Was: SHORT TERM PLANS]
I'm wondering how JSR-127 will fit with Struts.
While it's beyond my comprehension how JSR-127 will look like and offer, I
have this gut feeling that there is an architectural impedance. Frankly,
it's still vague to me what and how JSR-127 tries to achieve and I always
thought the JSR-127 effort would somehow overlap a lot with Struts.
Can someone shed some light on this? (Martin, I think you mentioned you saw
the demo in JavaOne. And Craig, I think you are on the expert group?)
--
John
At 10:51 am 13-01-2002 -0500, you wrote:
>And, then of course, there is JavaServer Faces, when that comes of age.
>
>http://jcp.org/jsr/detail/127.jsp
>
>So, personally, I think we need to move the focus away from the "Struts
>taglibs" and toward "How do we expose the framework to the growing
>number of standard presentation layer devices, like the JSTL, Velocity
>Templates, and JavaServer Faces?"
--
John Yu Scioworks Technologies
e: john@scioworks.com w: +(65) 873 5989
w: http://www.scioworks.com m: +(65) 9782 9610
Scioworks Camino - "Rapid WebApp Assembly for Struts"
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Simper and MySQL - building database error.
Posted by Matt Raible <ma...@yahoo.com>.
Yep, I downloaded the .02 release last night - and tried running the load
script. If anyone has successfully been able to do this - please let me
know (and send your modified script ;)
I've seen dbXML, and have it installed, I'm just wondering how difficult it
would be to "adapt" simper to talk to it...
Thanks,
Matt
-----Original Message-----
From: Ted Husted [mailto:husted@apache.org]
Sent: Wednesday, January 16, 2002 2:11 PM
To: Struts Developers List
Subject: Re: Simper and MySQL - building database error.
Are you using the .02 release? Bryan made some changes to accomodate
MySQL.
http://netmeme.org/simper/
For an XML database, have you seen this?
http://www.dbxml.org/
This is part of xml.apache.org now.
Matt Raible wrote:
>
> I was definitely intrigued when I saw this package and have been trying to
> install it.
>
> However, when I try to create the tables in MySQL, I get the error below:
>
> Also, I'm wondering how this fits in with standard DAO and other
recommended
> design patterns published by Sun. I'm thinking that I might need to use
an
> XML database for persistence in some areas of my application - can I use
> this for that too? If not, how hard would it be to "adapt" it.
>
> Please advise of any pros/cons with using this as a persistence mechanism.
> It LOOKS great, I just don't want to jump the gun.
>
> Thanks,
>
> Matt
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Simper and MySQL - building database error.
Posted by Ted Husted <hu...@apache.org>.
Are you using the .02 release? Bryan made some changes to accomodate
MySQL.
http://netmeme.org/simper/
For an XML database, have you seen this?
http://www.dbxml.org/
This is part of xml.apache.org now.
Matt Raible wrote:
>
> I was definitely intrigued when I saw this package and have been trying to
> install it.
>
> However, when I try to create the tables in MySQL, I get the error below:
>
> Also, I'm wondering how this fits in with standard DAO and other recommended
> design patterns published by Sun. I'm thinking that I might need to use an
> XML database for persistence in some areas of my application - can I use
> this for that too? If not, how hard would it be to "adapt" it.
>
> Please advise of any pros/cons with using this as a persistence mechanism.
> It LOOKS great, I just don't want to jump the gun.
>
> Thanks,
>
> Matt
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Simper and MySQL - building database error.
Posted by Matt Raible <ma...@yahoo.com>.
I was definitely intrigued when I saw this package and have been trying to
install it.
However, when I try to create the tables in MySQL, I get the error below:
Also, I'm wondering how this fits in with standard DAO and other recommended
design patterns published by Sun. I'm thinking that I might need to use an
XML database for persistence in some areas of my application - can I use
this for that too? If not, how hard would it be to "adapt" it.
Please advise of any pros/cons with using this as a persistence mechanism.
It LOOKS great, I just don't want to jump the gun.
Thanks,
Matt
$cat simperdemo.sql | mysql simper;
ERROR 1064 at line 12: You have an error in your SQL syntax near 'with time
zone,
Constraint books_pkey Primary Key (id)
)' at line 5
The SQL I'm using is below.
--
-- SQL commands to generate the simperdemo database
--
CREATE TABLE authors (
id integer NOT NULL,
name text,
email text,
Constraint authors_pkey Primary Key (id)
);
CREATE TABLE books (
id integer NOT NULL,
id_author integer,
title text,
publishdate timestamp with time zone,
Constraint books_pkey Primary Key (id)
);
CREATE TABLE next_id_table (
table_name text,
next_id integer
);
INSERT INTO next_id_table (table_name, next_id) values ('authors', 0);
INSERT INTO next_id_table (table_name, next_id) values ('books', 0);
alter table books add constraint fk_books_authors foreign key (id_author)
references authors (id)
-----Original Message-----
From: Ted Husted [mailto:husted@apache.org]
Sent: Tuesday, January 15, 2002 2:41 PM
To: Struts Developers List
Subject: Re: Comptability of JSR 127 and Struts [Was: SHORT TERM PLANS]
"Craig R. McClanahan" wrote:
> I've got one more useful new goody on my workbench - an ActionForm
> implementation that uses the new DynaBean APIs in the Commons version of
> BeanUtils that let you define form beans without having to write all the
> properties in individual bean classes.
Bryan Field-Elliot is also doing some interesting, seminal work with the
(very kewl) DynaBeans as part of a persistence layer framework.
http://netmeme.org/simper/
We're hoping to polish this up and propose it to the Commons. Bryan
doesn't have a Jakarta account right now, otherwise we'd check it into
the sandbox.
The example uses Struts, and the DynaBeans look very sweet when called
from an Action :)
It's also filter-based, and so requires a "leading edge" container, like
Tomcat 4.0.1.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Comptability of JSR 127 and Struts [Was: SHORT TERM PLANS]
Posted by Nicholas Lesiecki <ni...@eblox.com>.
>>It's also filter-based, and so requires a "leading edge" container, like
>>Tomcat 4.0.1.
Or Resin 2.0.5.
(Another developer-source app-server we've had luck with--an that Struts
runs flawlessly on.)
Cheers,
Nick
-----Original Message-----
From: Ted Husted [mailto:husted@apache.org]
Sent: Tuesday, January 15, 2002 2:41 PM
To: Struts Developers List
Subject: Re: Comptability of JSR 127 and Struts [Was: SHORT TERM PLANS]
"Craig R. McClanahan" wrote:
> I've got one more useful new goody on my workbench - an ActionForm
> implementation that uses the new DynaBean APIs in the Commons version of
> BeanUtils that let you define form beans without having to write all the
> properties in individual bean classes.
Bryan Field-Elliot is also doing some interesting, seminal work with the
(very kewl) DynaBeans as part of a persistence layer framework.
http://netmeme.org/simper/
We're hoping to polish this up and propose it to the Commons. Bryan
doesn't have a Jakarta account right now, otherwise we'd check it into
the sandbox.
The example uses Struts, and the DynaBeans look very sweet when called
from an Action :)
It's also filter-based, and so requires a "leading edge" container, like
Tomcat 4.0.1.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Comptability of JSR 127 and Struts [Was: SHORT TERM PLANS]
Posted by Ted Husted <hu...@apache.org>.
"Craig R. McClanahan" wrote:
> I've got one more useful new goody on my workbench - an ActionForm
> implementation that uses the new DynaBean APIs in the Commons version of
> BeanUtils that let you define form beans without having to write all the
> properties in individual bean classes.
Bryan Field-Elliot is also doing some interesting, seminal work with the
(very kewl) DynaBeans as part of a persistence layer framework.
http://netmeme.org/simper/
We're hoping to polish this up and propose it to the Commons. Bryan
doesn't have a Jakarta account right now, otherwise we'd check it into
the sandbox.
The example uses Struts, and the DynaBeans look very sweet when called
from an Action :)
It's also filter-based, and so requires a "leading edge" container, like
Tomcat 4.0.1.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Comptability of JSR 127 and Struts [Was: SHORT TERM PLANS]
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Mon, 14 Jan 2002, John Yu wrote:
> Date: Mon, 14 Jan 2002 20:13:47 +0800
> From: John Yu <jo...@scioworks.com>
> Reply-To: Struts Developers List <st...@jakarta.apache.org>
> To: Struts Developers List <st...@jakarta.apache.org>
> Subject: Re: Comptability of JSR 127 and Struts [Was: SHORT TERM PLANS]
>
>
> Thanks for your reply, Craig. Your assurance is encouraging.
>
> A couple of questions:
>
> 1. I think, correct me if I'm wrong, JSF's components are event-driven,
> like what Swing does, and the server-side needs the infrastructure (some
> servlets?) to handle the events. If so, I'm wondering how Struts controller
> can jell with this infrastructure.
>
In event processing terms, the only event that the Struts controller cares
about is a "page submit". A GUI framework that intercepts any lower level
events it cares about, invisibly to the application, will be really easy
to integrate with.
> 2. Is there timetable for the publicly available spec draft?
>
When the expert group feels it's ready. Prior to public draft, there will
be a "community review" period when everyone who is participating in the
JCP process (ans has signed a JPDA, as outlined at <http://www.jcp.org>)
gets to see and review it first.
> 3. Is there timetable for the Early Access impl?
>
When the expert group feels it's ready.
> I hope answering these are still within your NDA boundary.
>
How did I do :-)
> p.s. I saw the other thread on the multi-app support you checked in. Good
> work! (Do you sleep? :) I should check it out soon.
I've got one more useful new goody on my workbench - an ActionForm
implementation that uses the new DynaBean APIs in the Commons version of
BeanUtils that let you define form beans without having to write all the
properties in individual bean classes.
After that, maybe I can get some sleep. :-)
> --
> John
Craig
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Comptability of JSR 127 and Struts [Was: SHORT TERM PLANS]
Posted by John Yu <jo...@scioworks.com>.
Thanks for your reply, Craig. Your assurance is encouraging.
A couple of questions:
1. I think, correct me if I'm wrong, JSF's components are event-driven,
like what Swing does, and the server-side needs the infrastructure (some
servlets?) to handle the events. If so, I'm wondering how Struts controller
can jell with this infrastructure.
2. Is there timetable for the publicly available spec draft?
3. Is there timetable for the Early Access impl?
I hope answering these are still within your NDA boundary.
p.s. I saw the other thread on the multi-app support you checked in. Good
work! (Do you sleep? :) I should check it out soon.
--
John
At 09:17 pm 13-01-2002 -0800, you wrote:
>On Mon, 14 Jan 2002, John Yu wrote:
>
> > Date: Mon, 14 Jan 2002 11:13:34 +0800
> > From: John Yu <jo...@scioworks.com>
> > Reply-To: Struts Developers List <st...@jakarta.apache.org>
> > To: Struts Developers List <st...@jakarta.apache.org>
> > Subject: Comptability of JSR 127 and Struts [Was: SHORT TERM PLANS]
> >
> > I'm wondering how JSR-127 will fit with Struts.
> >
>
>It's too early to know much, but I'm confident about the long term
>outcome.
>
> > While it's beyond my comprehension how JSR-127 will look like and offer, I
> > have this gut feeling that there is an architectural impedance. Frankly,
> > it's still vague to me what and how JSR-127 tries to achieve and I always
> > thought the JSR-127 effort would somehow overlap a lot with Struts.
> >
> > Can someone shed some light on this? (Martin, I think you mentioned you saw
> > the demo in JavaOne. And Craig, I think you are on the expert group?)
>
>Yes, I am on the expert group forFaces (and for the JSP Standard Tag
>Library, JSTL). Discussions are ongoing, and good progress towards
>defining a good architecture for GUI components is being made.
>
>In general terms, I look at JavaServer Faces (and the JSP Standard Tag
>Library) as "mainstream" efforts that will, ultimately, supplant the use
>of the majority of the Struts custom tag libraries. We'll continue to
>support the existing libraries (there are *way* too many apps using them
>to consider deprecating them :-), but I am not putting any attention on
>major functional improvements in the areas that Faces and JSTL are going
>to cover. Instead, I'm going to be focusing my personal attention on
>things like the multi-application support (just checked in), and
>integration of the workflow project that is in the Commons sandbox.
>
>Happily, the Struts controller doesn't care what technology was used to
>create the user interface -- it deals with request parameters and request
>dispatcher forwards. We may need to do a little bit of glue work to
>emulate some of the "automatic" interactions between form beans and the UI
>compoennts, but I don't anticipate any significant hurdles in this
>respect.
>
>I would encourage future-looking Struts applcation developers to start
>learning the JSP Standard Tag Library (JSTL) now -- you can get the early
>access release from <http://jakarta.apache.org/taglibs> -- and be ready to
>examine an early access release of Faces if and when the Expert Group is
>ready to share one.
>
> > --
> > John
> >
>
>Craig McClanahan
--
John Yu Scioworks Technologies
e: john@scioworks.com w: +(65) 873 5989
w: http://www.scioworks.com m: +(65) 9782 9610
Scioworks Camino - "Rapid WebApp Assembly for Struts"
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Comptability of JSR 127 and Struts [Was: SHORT TERM PLANS]
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Mon, 14 Jan 2002, John Yu wrote:
> Date: Mon, 14 Jan 2002 11:13:34 +0800
> From: John Yu <jo...@scioworks.com>
> Reply-To: Struts Developers List <st...@jakarta.apache.org>
> To: Struts Developers List <st...@jakarta.apache.org>
> Subject: Comptability of JSR 127 and Struts [Was: SHORT TERM PLANS]
>
> I'm wondering how JSR-127 will fit with Struts.
>
It's too early to know much, but I'm confident about the long term
outcome.
> While it's beyond my comprehension how JSR-127 will look like and offer, I
> have this gut feeling that there is an architectural impedance. Frankly,
> it's still vague to me what and how JSR-127 tries to achieve and I always
> thought the JSR-127 effort would somehow overlap a lot with Struts.
>
> Can someone shed some light on this? (Martin, I think you mentioned you saw
> the demo in JavaOne. And Craig, I think you are on the expert group?)
Yes, I am on the expert group forFaces (and for the JSP Standard Tag
Library, JSTL). Discussions are ongoing, and good progress towards
defining a good architecture for GUI components is being made.
In general terms, I look at JavaServer Faces (and the JSP Standard Tag
Library) as "mainstream" efforts that will, ultimately, supplant the use
of the majority of the Struts custom tag libraries. We'll continue to
support the existing libraries (there are *way* too many apps using them
to consider deprecating them :-), but I am not putting any attention on
major functional improvements in the areas that Faces and JSTL are going
to cover. Instead, I'm going to be focusing my personal attention on
things like the multi-application support (just checked in), and
integration of the workflow project that is in the Commons sandbox.
Happily, the Struts controller doesn't care what technology was used to
create the user interface -- it deals with request parameters and request
dispatcher forwards. We may need to do a little bit of glue work to
emulate some of the "automatic" interactions between form beans and the UI
compoennts, but I don't anticipate any significant hurdles in this
respect.
I would encourage future-looking Struts applcation developers to start
learning the JSP Standard Tag Library (JSTL) now -- you can get the early
access release from <http://jakarta.apache.org/taglibs> -- and be ready to
examine an early access release of Faces if and when the Expert Group is
ready to share one.
> --
> John
>
Craig McClanahan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>