tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Articles > Servlets > How to concatenate a string in JSP Expression Language

How to concatenate a string in JSP Expression Language

Author: Venkata Sudhakar

The below example shows how to concatenate a string in JSP Expression Language (EL)

1${user.firstName}${empty user.lastName ? '': ', '.concat(user.lastName)}
2 
3#{'one'.concat(' two').concat(' three')}

 
  


  
bl  br