Visualizzazione post con etichetta website. Mostra tutti i post
Visualizzazione post con etichetta website. Mostra tutti i post

giovedì 21 aprile 2011

Use Jetty to run Maven web applications in NetBeans

Jetty is a great web server. It is fast to start up and that makes it very useful during development. Jetty has a Maven plugin we can use in our Maven web application project. This way we can use Jetty to test our JSP files. We can change the JSP file and hit the Refresh button of our browser to see the result immediately. We can even compile a Java class file and Jetty will restart so we can test the result in our browser.
Let's see how we can do this in NetBeans. We go to File | New Project, select Maven Project and click the Next button.
In the next dialog window we select Maven Webapp Archetype and click the Next button.
Now we can fill in the values for our project and press the Finish button.
NetBeans creates a new project for us. To add Jetty Maven plugin we must open the pom.xml file for our project. In the build section we must add the following code:

 
  org.mortbay.jetty
  maven-jetty-plugin
  6.1.14
  
   5
  
 
At line 6 we define how often Jetty will scan the source directories to look for changes. Because we add this definition we can change JSP files and see the result in our web browser without restarting the server.
Okay, we have defined Jetty for our project, but how can we run Jetty in NetBeans? We go to File | Project Properties and select the Actions category. We must look for the action Run project and select it. In the Execute goals field we add jetty:run. This will start Jetty if we run our project. We can close the dialog window.
Now we go to Run | Run Project to start Jetty. In the Output window of NetBeans we see the following text:
Starting jetty 6.1.14 ...
2009-02-11 10:20:20.610::INFO:  jetty-6.1.14
2009-02-11 10:20:20.982::INFO:  No Transaction manager found - if your webapp requires one, please configure one.
2009-02-11 10:20:21.335::INFO:  Started SelectChannelConnector@0.0.0.0:8080
Started Jetty Server
Starting scanner at interval of 5 seconds.
At line 3 we see Started SelectChannelConnector@0.0.0.0:8080 this means Jetty is available at port 8080. We open a web browser and open http://localhost:8080/webappjetty/ and we see the following:
We go back to NetBeans and open the file index.jsp. We add the following to the file:

It works!

We switch back to our web browser and reload the page and we get:

mercoledì 20 aprile 2011

Parancoe 3 web framework

Parancoe is a project aiming to simplify the release of web applications promoting the convention over configuration philosophy and the DRY principle. This project is promoted by the JUG Padova, and everybody can partecipate.
Parancoe is a Java meta-framework aggregating in an useful way Hibernate/JPA, Spring 2, Spring MVC and, for the AJAX support, DWR.
Parancoe purpose is to give to developers a set of libraries ready to build standard web applications (which in most cases are just crud applications) without worrying of long and harmful configurations files. Parancoe will be composed of a full MVC stack.
Parancoe is open source and is released under the Apache License, Version 2.0.
Are you interested in the parancoe word meaning? A “parancoa” is a scaffolding in the dialect of the Venice (Italy) area.

Lot of time I don’t post something…
But the development of Parancoe is not death. I’m working at the next major release: Parancoe 3.0!
Some of the changes:
  • The persistence (generic DAOs) has its own independent project now: Lambico. It’s more evolved and robust.
  • Parancoe now uses Spring 3.0, with it latest evolution and improvements.
  • The suggested style for developing the controllers is the REST one.
  • The validation is JSR 303 – Bean Validation (according to Spring MVC 3.0).
  • We have a new subproject called Parancoe – Validation, for introducing some useful validator, ready for use. (what about a “new password” validator?)
You can start trying Parancoe 3 using the snapshots: Parancoe artifacts are already in our Maven snapshot repository.
For starting a new project based on Parancoe 3, use the “Parancoe Advanced Archetype”, typing the following command:

mvn -DarchetypeGroupId=org.parancoe \
    -DarchetypeArtifactId=parancoe-advancedarchetype \
    -DarchetypeVersion=3.0-SNAPSHOT \
    -DarchetypeRepository=https://oss.sonatype.org/content/repositories/snapshots \
    -Darchetype.repository=https://oss.sonatype.org/content/repositories/snapshots \
    -Darchetype.interactive=false \
    -DgroupId=org.myorg \
    -DartifactId=myapp \
    -Dpackage=org.myorg.padt \
    -Dversion=1.0-SNAPSHOT \
    --batch-mode \
    --update-snapshots \
    org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate


project page: http://www.parancoe.org/

venerdì 18 febbraio 2011

25 Beautiful Minimalist Designs

"Simplify, simplify, simplify."
It's one of Thoreau's most enduring witticisms, and with good reason. When faced with the ever-increasing barrage of information that is modern life, many people find solace in minimalism. This trend has taken an especially strong hold on the Web.
Minimalism and simplification draw attention to important page elements. Using lots and lots of empty space makes content stand out. The overall effect is calming and sophisticated, a welcome break from the typical gauntlet of advertisements and traffic and television and whatever else screams incessantly for your attention.
For your inspiration, here are 25 beautiful minimalist designs. Some are charming, some powerful, some stunning, but they’re all linked by the same idea: simplicity, simplicity, simplicity.

Miguel Ripoll
Miguel Ripoll's homepage, a white background with black serif text of varying sizes

26000 Vodka
26000 Vodka's Natural Grain Spirit page, a hand cupping some grain with a short paragraph of description

Weather Flash
Weather Flash displaying Atlanta's weather. An uncluttered blue background with bubbly icons and basic weather information.

FRKT
FRKT's Website, monochromatic with only one image

Cascading Style S--t
Cascading Style Shit, a plain white background with neatly arranged, visually spare icons that link to various CSS blogs

The Big Word Project
The Big Word Project, a white page containing magnet-art-style words linking to various Websites

WordPress AntiVirus
WordPress AntiVirus homepage, containing a short paragraph of text and a chunky image of the WordPress icon wearing a camouflage hat

For a Beautiful Web
For a Beautiful Web homepage, a brown background with large, white text

Have You Flossed Today?
Flossed Today homepage, a blue and pink background with two icons of a happy tooth and a sad tooth

Tajloro
Tajloro homepage, with a white background, neatly arranged text elements, and a few unintrusive images

jeromeM
JeromeM, an earthy color scheme with minimal visual elements

min-style
min-style homepage, containing minimalist font and one large image

Delicious Design Studio
Delicious Design Studio, with a mulled, pastel color scheme, rectangular page elements, and a solid background

Plush Department
Plush Department, with a white background, chunky pink and black text, and one large image

Troiani Design
Troiani Design homepage, with a faded gradient background, a clean layout, and small images

Get and Give
Get and Give's Care for Kids Farm page is drenched in white space

Black Estate
Black Estate homepage, black background with white text and a black wine bottle shrouded in shadow

The Unexpected Pit Bull
The Unexpected Pit Bull homepage has a sky background fading to white, a faded text nav bar down the left-hand side, and a large image in the middle that shifts between pictures of gentle-looking pit bulls

Go Go Gunner
Go Go Gunner page displaying a large image against a white background and minimal black text navigation

A Woman in the Mirror
A Woman in the Mirror homepage, with a plain background, neatly organized chunks of text, and one simple image of a flower

zupadupa
Zupadupa homepage, consisting of a black background and graceful green and white lines and text navigation

Organic SEO
Organic SEO homepage has earthy colors, an image of a treetop, and neatly organized blocks of text

The How To Stretching Zone
How to Stretch homepage, featuring a built, shirtless man balancing on one hand next to a list of text links to different stretches

Made By On
MadeByOn homepage, black-and-white with a large featured design commanding most of the visual space

Popmatik
Popmatik homepage, featuring an image of a water bottle with a small starburst background and a ton of white space

Website Design & Development

Website Design, Development, and E-Commerce

With my experience in graphic design, website development, and e-commerce programming, you can be confident that whatever your project demands, I can deliver on time and on budget. View the Web Design Process and request a no cost, no obligation Web Design Quote now!
contact me: diego.benna@gmail.com

Here you can see one of my recent work for the study of landscape architecture, panGea: www.pangeaprogetti.it