Pages
Mikael Ståldal
Software projects
Categories
Archives
- July 2019
- June 2016
- February 2016
- August 2015
- July 2015
- June 2015
- May 2015
- December 2014
- October 2014
- June 2014
- March 2014
- December 2013
- October 2013
- August 2013
- January 2013
- August 2012
- July 2012
- January 2012
- December 2011
- November 2011
- October 2011
- July 2011
- May 2011
- April 2011
- November 2010
- August 2010
- June 2010
- April 2010
- November 2009
- September 2009
- August 2009
- July 2009
- April 2009
- January 2009
- December 2008
- July 2008
- October 2007
- May 2007
- March 2007
- September 2006
- May 2006
Category Archives: JavaEE
Using an embedded SQL database in Java web application
You have a Java web application needing a relational SQL database. According to JavaEE conventions, you declare the DataSource in web.xml: <resource-ref> <res-ref-name>jdbc/DS</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> and then fetch it in code with (DataSource)new InitialContext().lookup(“java:comp/env/jdbc/DS”). Using Maven, Jetty and HSQLDB, … Continue reading
Posted in Java, JavaEE, web
3 Comments
Web application frameworks in Java
When you know which type of web application you are to develop, it’s time to have a look at some possible choices. I have tried to categorize some modern and popular web application frameworks in Java. Simple server driven MVC … Continue reading
How to implement RESTful JSON Web Services in Java
You can implement RESTful Web Services in Java using the JAX-RS framework. JAX-RS is part of the JavaEE 6 platform. But if you are not using a JavaEE 6 application server, you can use the reference implementation Jersey and embed … Continue reading
Type safe JSP and JSTL
When using JavaServer Pages, you want to use JSTL to be able to to flow-control (iterations and conditionals) in a reasonable way. And the recommended way to use JSTL is to use the Expression Language (EL). However, using EL is … Continue reading
Configure web applications in JBoss
When you deploy a web application in a JavaEE application server, it usually consist of a .war archive. Sometimes, the web application needs some configuration parameters. The most common way to do this is to have <context-param> in web.xml. That … Continue reading