Wednesday, 31 August 2011

ROO Commands

Relationship
============
1.m:m use "field set"
(one Pizza can have many Toppings & one Topping can be applied to many Pizzas)
~.domain.Pizza roo> field set --fieldName toppings --type ~.domain.Topping

2.m:1 use ""field reference"
(one Pizza can have one base & one base can be applied to many Pizzas)
~.domain.Pizza roo> field reference --fieldName base --type ~.domain.Base

3.Automatic JSON support, including in Spring MVC applications
curl -v -H 'Accept: application/json' -X GET http://localhost:8080/petclinic/owners/

Thursday, 25 August 2011

JSP Custom Tags

1.Make Java public Class "MyTag"
2.Declare the "MyTag" class under file MyTag.tld
3.In JSP, define the <%@ taglib prefix="tagtool" uri="/WEB-INF/tlds/MyTag.tld" %>
& start to use it.

Wednesday, 24 August 2011

ROO project

Task 2 - point to list.jsp & delete.jsp


Task 1 - point to create.jsp & show.jsp
a.Create new Client Form
http://localhost:8080/simple/clients?form

Form:-
1.need (method = RequestMethod.GET) & (method = RequestMethod.POST)
2.POST need (@ModelAttribute("reservation") Reservation reservation,
BindingResult result, SessionStatus status) AS parameter
3.JSP need modelAttribute="reservation"

b.Show Client
http://localhost:8080/simple/clients/2
Answer :- change views.xml +

username : ${client.username}

ROO

1.
delgad9

2.
Forum

3.viralpatel Master Detail

jd showcases

Wednesday, 17 August 2011

Use H2 database

Start the bin/h2.bat

jdbc:h2:tcp://127.0.0.1/~/crm_example

Use Derby

1.For the sake of low memory consumption and easy configuration,chosen Apache Derby
as database engine.

2.For testing purposes, the client/server mode is more appropriate because it allows you to inspect and edit data with any visual database tools that support JDBC. Example, the Eclipse Data Tools Platform (DTP).

3.To start the Derby server in the client/server mode, execute the startNetworkServer script in the bin directory.

4.Under ij

5.connect 'jdbc:derby://localhost:1527/vehicle;create=true' ;

Git usage

To obtain a copy of the source:
From the bash command line, you can use the command
git clone git://git.springsource.org/spring-security/spring-security.git

Git Wiki

http://git-scm.com/download

Git-1.7.6-preview20110708.exe of msysgit (Git for Windows)

git

github

spring git

Eclipse GIT

If
git clone git://site/xxx/abc.git
having error fatal: unable to connect a socket (Invalid argument)
then use (http instead)
git clone http://site/xxx/abc.git