• Post Reply Bookmark Topic Watch Topic
  • New Topic

Way to optimize this JSTL?  RSS feed

 
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
 
Author and ninkuma
Marshal
Posts: 66690
167
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

 
Nothing? Or something? Like this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!