EL expressions not getting evaluated in JSP pages
EL expressions are quite useful keep your jsps more readable and maintainable. Yesterday I faced a problem with new project. EL expressions in my jsp are not getting evaluated although I have set the attribute in request.
In servlet :
request.setAttribute(message,”Hello World!”);
In JSP :
${message}
On HTML it is being rendered as : ${HTML}
If you are also facing the same problem use following page directive at top of the page :
That will solve the problem.
Eclipse : Searching for a resource based on complete path
If you are a user of eclipse, (Ctrl + SHIFT + R) is one of the most know and used keyboard shortcut. Whenever we want to search for a resource, we type the Regex to filter the results. But sometimes you might want to apply the filter on complete path. Here is a small tip for that purpose.
Read the rest of this entry »
Finding : Enities not getting persisted with Seam
Seam helps to quickly setup a enterprise web project. You can just configure different services like database operations, security and start with your business logic. I have created a small CRUD application. But I have faced this strange problem with persisting entities. Here I will explain, how I have solved it. Read the rest of this entry »
Tip : Setting heap size for maven applications
Some times we may need to provide good amount of heap space to maven to run the build. This may be because you are loading lot of resources like loading temporary db to run the test cases. Or one may like to run the web application using some embedded container like jetty. Here you can find how to set memory options with maven. Read the rest of this entry »
Wrong Maven Jetty Plugin : org.apache.maven.plugins:maven-jetty-plugin
Maven Jetty plugin helps to have a quick feedback cycle in web application development. Recently I got a problem with this plugin. I had two web application projects configured for jetty as follows in their POMs . But jetty was behaving differently in different projects. Maven wrongly resolving this artifact to be in org.apache.maven.plugins group.
Read the rest of this entry »
Developing JSR-168 portlets in Maven+Eclipse environment
Portal technology aims at providing personalized view of content aggregated from different systems with a single sign on. Here we will see how we can develop portlets (JSR-168 & 286 specifications) which can be deployed on any portal container using Maven and Eclipse environment. I assume the reader has idea of Portal system and had worked with them in different environment. There are many portal containers currently available now. among them following few famous portal systems
Common mistakes made in Agile projects based on new technologies : Xebia Blog
“In recent times Agile methodology have proved its worth by successfully executing the projects. It minimizes the risk by developing software in short amounts of time. With this iterative model it also minimizes the cost of change in requirements, which makes it suitable for current dyanmic market. Two main practices that helps the developer to incorporate the change are refactoring and simple design. But when it comes to doing these two things with a completely new technology, it might be hard to implement.
In this article I am going to share some of my experiences with my first project. This is an agile project based on a technology which is new to the whole team. I spent around two weeks in understanding the technical features and strengths of the technology.Where as others in the team had never worked with it or similar technology. Here I will discuss about some mistakes that ( I feel
)we did while executing the project. “
… Readmore
Tips & Tricks For Cross Browser Compatible CSS Development : Xebia Blog
I wrote a blog on Xebia Blog site about different tips and tricks that you can use to write a rich and effective CSS.
“In web development, Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in a markup language. It has a simple syntax, and uses a number of English keywords to specify the names of various style properties. Its specifications were maintained by W3C. It still hasn’t became a standard over all browsers.
Here I want to share some of my experiences( pains I went through
) while developing styles for my previous projects. One of the project is based on div structure and other is based on table and div structure….. Readmore“