GlassFish and MySQL, Part 2: Building a CRUD Web Application With Data Persistence


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris BigAdmin RSS GlassFish and MySQL, Part 2: Building a CRUD Web Application With Data Persistence
# 1  
Old 12-05-2008
GlassFish and MySQL, Part 2: Building a CRUD Web Application With Data Persistence

In this SDN article, learn how to use the NetBeans IDE with GlassFish and MySQL to build a create, read, update, and delete (CRUD) application.

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Web Development

Apache2 web application- Submit button - write data into a file

Hello, I am newbie on php-mysql and just know only installation. I have an apache2+php5+mysql installed VPS. What I would like to do is that when visitor enters requested data shown in index.html, submit button will run a script to save each field into a file. Here is an example shown in... (1 Reply)
Discussion started by: baris35
1 Replies
Login or Register to Ask a Question
CRUD(3pm)						User Contributed Perl Documentation						 CRUD(3pm)

NAME
Catalyst::Model::CDBI::CRUD - CRUD CDBI Model Class SYNOPSIS
# lib/MyApp/Model/CDBI.pm package MyApp::Model::CDBI; use base 'Catalyst::Model::CDBI::CRUD'; __PACKAGE__->config( dsn => 'dbi:SQLite2:/tmp/myapp.db', relationships => 1 ); 1; # lib/MyApp.pm package MyApp; use Catalyst 'FormValidator'; __PACKAGE__->config( name => 'My Application', root => '/home/joeuser/myapp/root' ); sub table : Global { my ( $self, $c ) = @_; $c->form( optional => [ MyApp::Model::CDBI::Table->columns ] ); #see Data::FormValidator $c->forward('MyApp::Model::CDBI::Table'); } sub end : Private { $c->forward('MyApp::V::TT'); } 1; DESCRIPTION
This is a subclass of "Catalyst::Model::CDBI" with additional CRUD methods. Don't forget to copy the base templates to config->root! *NOTE* This module has been deprecated. See BUGS section below! METHODS add Does nothing by default. destroy Deletes a Class::DBI object. do_add Creates a new Class::DBI object from $c->form. do_edit Updates a Class::DBI object from $c->form. edit Does nothing by default. list Does nothing by default. process Dispatches CRUD request to methods. view Does nothing by default. BUGS
This module is no longer supported by the Catalyst developers. We keep it indexed for the sake of existing users, but highly recommend new users to look at Catalyst::Helper::Controller::Scaffold SEE ALSO
Catalyst, Catalyst::Model::CDBI AUTHOR
Sebastian Riedel, "sri@cpan.org" COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2005-10-13 CRUD(3pm)