Comparison of DSP and DSPEL

ATG has two JSP tag libraries, DSP and DSPEL. Both have similar syntax but DSPEL allows you to use JSTL.

Here’s a simple comparison of how you would use DSP versue how you would use DSPEL to do a simple RQL query.

DSPEL


  
  
  
  
    No merchant with the name "".
  
  
    Name: 
  

DSP

<% String query = "name EQUALS \"" + request.getAttribute("nm") + "\"";%>


  
  
  
  
    No merchant with the name "<%= request.getAttribute("nm") %>".
  
  
    Name: 
  


One thought on “Comparison of DSP and DSPEL

Leave a Reply

Your email address will not be published. Required fields are marked *