• Post Reply Bookmark Topic Watch Topic
  • New Topic

Way to optimize this JSTL?  RSS feed

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using Tomcat 6.0.26. If someone passes the param "id" to my page, I want to display the word, "Update", otherwise, I want to display the word "add". So far, I have this messy JSTL ...



Is there a more concise way to write this? Thanks, - Dave
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!