• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP expressions

 
Aruna Raghavan
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can there be any spaces in a JSP expression scripting element? Or should it always be
<%="someexpr"%>
Manning book has a few typos (i.e, extra spaces) in this section so it is not clear. But Core Servlets and JSP book by Marty Hall shows it as <%="someexpr"%>
Thanks,
Aruna.
 
vivek sivakumar
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well its <%= Expression %>
suns jsp spec says this ..(on 57th page u will find this)
 
Vidya Nayak
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There should not be space between % and =
Cheers,
Vidya
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!